diff --git a/prepare_dependencies.py b/prepare_dependencies.py index 32fa51b..7957b1b 100755 --- a/prepare_dependencies.py +++ b/prepare_dependencies.py @@ -664,11 +664,11 @@ def _VerifyProgram(cls, prog, args): class MongoosePackageInstaller(PackageInstaller): """Custom installer for the Mongoose package.""" - def __init__(self, config, url): + def __init__(self, config, url, package_path='mongoose'): """Standard PackageInstaller initializer.""" super(MongoosePackageInstaller, self).__init__(config, url) self._config_type = CMAKE_CONFIG - self._package_path = os.path.join(self._config.download_dir, 'mongoose') + self._package_path = os.path.join(self._config.download_dir, package_path) def MaybeTweakAfterUnpackage(self): """Creates a CMakeLists.txt file for building the package.""" @@ -1094,9 +1094,10 @@ def __init__(self, config, restricted_package_names): # Mongoose is used as webserver for samples. # The ownership and license style seems to keep changing, so we do not # download it by default. - #'mongoose': (MongoosePackageInstaller( - # config, - # 'https://github.com/cesanta/mongoose/archive/master.zip')), + 'mongoose': (MongoosePackageInstaller( + config, + 'https://github.com/cesanta/mongoose/archive/6.7.zip', + 'mongoose-6.7')), 'curl': (CurlPackageInstaller( config, 'https://github.com/curl/curl/releases/download/curl-7_54_0/curl-7.54.0.tar.gz')), diff --git a/service_apis/calendar/descriptor.json b/service_apis/calendar/descriptor.json deleted file mode 100644 index 12fa5f0..0000000 --- a/service_apis/calendar/descriptor.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "kind": "discovery#directoryItem", - "id": "calendar:v3", - "name": "calendar", - "version": "v3", - "title": "Calendar API", - "description": "Manipulates events and other calendar data.", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest", - "discoveryLink": "./apis/calendar/v3/rest", - "icons": { - "x16": "http://www.google.com/images/icons/product/calendar-16.png", - "x32": "http://www.google.com/images/icons/product/calendar-32.png" - }, - "documentationLink": "https://developers.google.com/google-apps/calendar/firstapp", - "preferred": true, - "packagePath": null, - "canonicalName": null, - "files": [ - { - "downloadUrl": "/downloads/calendar/v3/243/cpp/0.1.4/google-calendar-v3-rev243-cpp-0.1.4-doc.zip", - "path": "google-calendar-v3-rev243-cpp-0.1.4-doc.zip", - "type": "documentation", - "timestamp": "2017-04-06 03:08" - }, - { - "downloadUrl": "/downloads/calendar/v3/243/cpp/0.1.4/google-calendar-v3-rev243-cpp-0.1.4-src.zip", - "path": "", - "type": "source", - "timestamp": "2017-04-06 03:08" - } - ], - "revision": 243, - "language": "cpp", - "language_version": "0.1.4" -} \ No newline at end of file diff --git a/service_apis/calendar/google-calendar-v3-rev243-cpp-0.1.4-doc.zip b/service_apis/calendar/google-calendar-v3-rev243-cpp-0.1.4-doc.zip deleted file mode 100644 index 076862b..0000000 Binary files a/service_apis/calendar/google-calendar-v3-rev243-cpp-0.1.4-doc.zip and /dev/null differ diff --git a/service_apis/calendar/google/calendar_api/acl.h b/service_apis/calendar/google/calendar_api/acl.h index 87aac2c..a026bff 100644 --- a/service_apis/calendar/google/calendar_api/acl.h +++ b/service_apis/calendar/google/calendar_api/acl.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_ACL_H_ #define GOOGLE_CALENDAR_API_ACL_H_ @@ -77,8 +77,8 @@ class Acl : public client::JsonCppData { * * @return google_calendar_api::Acl */ - const char* GetTypeName() const { - return "google_calendar_api::Acl"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Acl"); } /** diff --git a/service_apis/calendar/google/calendar_api/acl_rule.h b/service_apis/calendar/google/calendar_api/acl_rule.h index 165125c..f966b94 100644 --- a/service_apis/calendar/google/calendar_api/acl_rule.h +++ b/service_apis/calendar/google/calendar_api/acl_rule.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_ACL_RULE_H_ #define GOOGLE_CALENDAR_API_ACL_RULE_H_ @@ -82,8 +82,8 @@ class AclRule : public client::JsonCppData { * * @return google_calendar_api::AclRuleScope */ - const char* GetTypeName() const { - return "google_calendar_api::AclRuleScope"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::AclRuleScope"); } /** @@ -207,8 +207,8 @@ class AclRule : public client::JsonCppData { * * @return google_calendar_api::AclRule */ - const char* GetTypeName() const { - return "google_calendar_api::AclRule"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::AclRule"); } /** diff --git a/service_apis/calendar/google/calendar_api/calendar.h b/service_apis/calendar/google/calendar_api/calendar.h index bc96b77..aa388e7 100644 --- a/service_apis/calendar/google/calendar_api/calendar.h +++ b/service_apis/calendar/google/calendar_api/calendar.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_CALENDAR_H_ #define GOOGLE_CALENDAR_API_CALENDAR_H_ @@ -75,8 +75,8 @@ class Calendar : public client::JsonCppData { * * @return google_calendar_api::Calendar */ - const char* GetTypeName() const { - return "google_calendar_api::Calendar"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Calendar"); } /** diff --git a/service_apis/calendar/google/calendar_api/calendar_list.h b/service_apis/calendar/google/calendar_api/calendar_list.h index eb250e9..5942b7e 100644 --- a/service_apis/calendar/google/calendar_api/calendar_list.h +++ b/service_apis/calendar/google/calendar_api/calendar_list.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_CALENDAR_LIST_H_ #define GOOGLE_CALENDAR_API_CALENDAR_LIST_H_ @@ -77,8 +77,8 @@ class CalendarList : public client::JsonCppData { * * @return google_calendar_api::CalendarList */ - const char* GetTypeName() const { - return "google_calendar_api::CalendarList"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::CalendarList"); } /** diff --git a/service_apis/calendar/google/calendar_api/calendar_list_entry.h b/service_apis/calendar/google/calendar_api/calendar_list_entry.h index ebcd682..fc2efe3 100644 --- a/service_apis/calendar/google/calendar_api/calendar_list_entry.h +++ b/service_apis/calendar/google/calendar_api/calendar_list_entry.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_CALENDAR_LIST_ENTRY_H_ #define GOOGLE_CALENDAR_API_CALENDAR_LIST_ENTRY_H_ @@ -87,8 +87,8 @@ class CalendarListEntry : public client::JsonCppData { * @return * google_calendar_api::CalendarListEntryNotificationSettings */ - const char* GetTypeName() const { - return "google_calendar_api::CalendarListEntryNotificationSettings"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::CalendarListEntryNotificationSettings"); } /** @@ -158,8 +158,8 @@ class CalendarListEntry : public client::JsonCppData { * * @return google_calendar_api::CalendarListEntry */ - const char* GetTypeName() const { - return "google_calendar_api::CalendarListEntry"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::CalendarListEntry"); } /** diff --git a/service_apis/calendar/google/calendar_api/calendar_notification.h b/service_apis/calendar/google/calendar_api/calendar_notification.h index 0897133..55c8e46 100644 --- a/service_apis/calendar/google/calendar_api/calendar_notification.h +++ b/service_apis/calendar/google/calendar_api/calendar_notification.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_CALENDAR_NOTIFICATION_H_ #define GOOGLE_CALENDAR_API_CALENDAR_NOTIFICATION_H_ @@ -75,8 +75,8 @@ class CalendarNotification : public client::JsonCppData { * * @return google_calendar_api::CalendarNotification */ - const char* GetTypeName() const { - return "google_calendar_api::CalendarNotification"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::CalendarNotification"); } /** diff --git a/service_apis/calendar/google/calendar_api/calendar_service.cc b/service_apis/calendar/google/calendar_api/calendar_service.cc index e5b7edd..2dbad44 100644 --- a/service_apis/calendar/google/calendar_api/calendar_service.cc +++ b/service_apis/calendar/google/calendar_api/calendar_service.cc @@ -53,7 +53,7 @@ const char CalendarService::googleapis_API_NAME[] = {"calendar"}; const char CalendarService::googleapis_API_VERSION[] = {"v3"}; const char CalendarService::googleapis_API_GENERATOR[] = { - "google-apis-code-generator 1.5.1 / 0.1.5"}; + "google-apis-code-generator 1.5.1 / 0.1.4"}; const char CalendarService::SCOPES::CALENDAR[] = {"https://www.googleapis.com/auth/calendar"}; @@ -63,7 +63,7 @@ CalendarServiceBaseRequest::CalendarServiceBaseRequest( const client::ClientService* service, client::AuthorizationCredential* credential, client::HttpRequest::HttpMethod method, - const string& uri_template) + const StringPiece& uri_template) : client::ClientServiceRequest( service, credential, method, uri_template), alt_("json"), @@ -81,7 +81,7 @@ CalendarServiceBaseRequest::~CalendarServiceBaseRequest() { } util::Status CalendarServiceBaseRequest::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { return client::StatusInvalidArgument( @@ -165,7 +165,7 @@ AclResource_DeleteMethod::~AclResource_DeleteMethod() { util::Status AclResource_DeleteMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -200,7 +200,7 @@ AclResource_GetMethod::~AclResource_GetMethod() { util::Status AclResource_GetMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -235,7 +235,7 @@ AclResource_InsertMethod::~AclResource_InsertMethod() { util::Status AclResource_InsertMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -295,7 +295,7 @@ util::Status AclResource_ListMethod::AppendOptionalQueryParameters(string* targe return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status AclResource_ListMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -326,7 +326,7 @@ AclResource_PatchMethod::~AclResource_PatchMethod() { util::Status AclResource_PatchMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -362,7 +362,7 @@ AclResource_UpdateMethod::~AclResource_UpdateMethod() { util::Status AclResource_UpdateMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -428,7 +428,7 @@ util::Status AclResource_WatchMethod::AppendOptionalQueryParameters(string* targ return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status AclResource_WatchMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -457,7 +457,7 @@ CalendarListResource_DeleteMethod::~CalendarListResource_DeleteMethod() { util::Status CalendarListResource_DeleteMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -486,7 +486,7 @@ CalendarListResource_GetMethod::~CalendarListResource_GetMethod() { util::Status CalendarListResource_GetMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -525,7 +525,7 @@ util::Status CalendarListResource_InsertMethod::AppendOptionalQueryParameters(st return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status CalendarListResource_InsertMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { return CalendarServiceBaseRequest::AppendVariable( @@ -593,7 +593,7 @@ util::Status CalendarListResource_ListMethod::AppendOptionalQueryParameters(stri return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status CalendarListResource_ListMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { return CalendarServiceBaseRequest::AppendVariable( @@ -628,7 +628,7 @@ util::Status CalendarListResource_PatchMethod::AppendOptionalQueryParameters(str return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status CalendarListResource_PatchMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -668,7 +668,7 @@ util::Status CalendarListResource_UpdateMethod::AppendOptionalQueryParameters(st return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status CalendarListResource_UpdateMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -742,7 +742,7 @@ util::Status CalendarListResource_WatchMethod::AppendOptionalQueryParameters(str return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status CalendarListResource_WatchMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { return CalendarServiceBaseRequest::AppendVariable( @@ -766,7 +766,7 @@ CalendarsResource_ClearMethod::~CalendarsResource_ClearMethod() { util::Status CalendarsResource_ClearMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -795,7 +795,7 @@ CalendarsResource_DeleteMethod::~CalendarsResource_DeleteMethod() { util::Status CalendarsResource_DeleteMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -824,7 +824,7 @@ CalendarsResource_GetMethod::~CalendarsResource_GetMethod() { util::Status CalendarsResource_GetMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -869,7 +869,7 @@ CalendarsResource_PatchMethod::~CalendarsResource_PatchMethod() { util::Status CalendarsResource_PatchMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -899,7 +899,7 @@ CalendarsResource_UpdateMethod::~CalendarsResource_UpdateMethod() { util::Status CalendarsResource_UpdateMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -968,7 +968,7 @@ util::Status EventsResource_DeleteMethod::AppendOptionalQueryParameters(string* return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_DeleteMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1027,7 +1027,7 @@ util::Status EventsResource_GetMethod::AppendOptionalQueryParameters(string* tar return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_GetMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1072,7 +1072,7 @@ util::Status EventsResource_ImportMethod::AppendOptionalQueryParameters(string* return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_ImportMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1126,7 +1126,7 @@ util::Status EventsResource_InsertMethod::AppendOptionalQueryParameters(string* return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_InsertMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1222,7 +1222,7 @@ util::Status EventsResource_InstancesMethod::AppendOptionalQueryParameters(strin return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_InstancesMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1385,7 +1385,7 @@ util::Status EventsResource_ListMethod::AppendOptionalQueryParameters(string* ta return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_ListMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1430,7 +1430,7 @@ util::Status EventsResource_MoveMethod::AppendOptionalQueryParameters(string* ta return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_MoveMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1497,7 +1497,7 @@ util::Status EventsResource_PatchMethod::AppendOptionalQueryParameters(string* t return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_PatchMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1546,7 +1546,7 @@ util::Status EventsResource_QuickAddMethod::AppendOptionalQueryParameters(string return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_QuickAddMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1608,7 +1608,7 @@ util::Status EventsResource_UpdateMethod::AppendOptionalQueryParameters(string* return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_UpdateMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1772,7 +1772,7 @@ util::Status EventsResource_WatchMethod::AppendOptionalQueryParameters(string* t return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status EventsResource_WatchMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "calendarId") { @@ -1816,7 +1816,7 @@ SettingsResource_GetMethod::~SettingsResource_GetMethod() { util::Status SettingsResource_GetMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { if (variable_name == "setting") { @@ -1868,7 +1868,7 @@ util::Status SettingsResource_ListMethod::AppendOptionalQueryParameters(string* return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status SettingsResource_ListMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { return CalendarServiceBaseRequest::AppendVariable( @@ -1916,7 +1916,7 @@ util::Status SettingsResource_WatchMethod::AppendOptionalQueryParameters(string* return CalendarServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status SettingsResource_WatchMethod::AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target) { return CalendarServiceBaseRequest::AppendVariable( diff --git a/service_apis/calendar/google/calendar_api/calendar_service.h b/service_apis/calendar/google/calendar_api/calendar_service.h index 782d1bd..81d6d2a 100644 --- a/service_apis/calendar/google/calendar_api/calendar_service.h +++ b/service_apis/calendar/google/calendar_api/calendar_service.h @@ -107,7 +107,7 @@ class CalendarServiceBaseRequest const client::ClientService* service, client::AuthorizationCredential* credential, client::HttpRequest::HttpMethod method, - const string& uri_template); + const StringPiece& uri_template); /** * Standard destructor. @@ -392,7 +392,7 @@ class CalendarServiceBaseRequest * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -480,7 +480,7 @@ class AclResource_DeleteMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -539,7 +539,7 @@ class AclResource_GetMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -612,7 +612,7 @@ class AclResource_InsertMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -825,7 +825,7 @@ class AclResource_ListMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -919,7 +919,7 @@ class AclResource_PatchMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -994,7 +994,7 @@ class AclResource_UpdateMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -1210,7 +1210,7 @@ class AclResource_WatchMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -1297,7 +1297,7 @@ class CalendarListResource_DeleteMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -1353,7 +1353,7 @@ class CalendarListResource_GetMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -1451,7 +1451,7 @@ class CalendarListResource_InsertMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -1740,7 +1740,7 @@ class CalendarListResource_ListMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -1865,7 +1865,7 @@ class CalendarListResource_PatchMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -1976,7 +1976,7 @@ class CalendarListResource_UpdateMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -2268,7 +2268,7 @@ class CalendarListResource_WatchMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -2358,7 +2358,7 @@ class CalendarsResource_ClearMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -2413,7 +2413,7 @@ class CalendarsResource_DeleteMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -2469,7 +2469,7 @@ class CalendarsResource_GetMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -2593,7 +2593,7 @@ class CalendarsResource_PatchMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -2665,7 +2665,7 @@ class CalendarsResource_UpdateMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -2859,7 +2859,7 @@ class EventsResource_DeleteMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -3026,7 +3026,7 @@ class EventsResource_GetMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -3140,7 +3140,7 @@ class EventsResource_ImportMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -3305,7 +3305,7 @@ class EventsResource_InsertMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -3684,7 +3684,7 @@ class EventsResource_InstancesMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -4374,7 +4374,7 @@ class EventsResource_ListMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -4522,7 +4522,7 @@ class EventsResource_MoveMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -4724,7 +4724,7 @@ class EventsResource_PatchMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -4840,7 +4840,7 @@ class EventsResource_QuickAddMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -5041,7 +5041,7 @@ class EventsResource_UpdateMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -5718,7 +5718,7 @@ class EventsResource_WatchMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -5885,7 +5885,7 @@ class SettingsResource_GetMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -6066,7 +6066,7 @@ class SettingsResource_ListMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); @@ -6266,7 +6266,7 @@ class SettingsResource_WatchMethod : public CalendarServiceBaseRequest { * @param[in, out] target The string to append the value to. */ virtual util::Status AppendVariable( - const string& variable_name, + const StringPiece& variable_name, const client::UriTemplateConfig& config, string* target); diff --git a/service_apis/calendar/google/calendar_api/channel.h b/service_apis/calendar/google/calendar_api/channel.h index dca122d..7f3cbe0 100644 --- a/service_apis/calendar/google/calendar_api/channel.h +++ b/service_apis/calendar/google/calendar_api/channel.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_CHANNEL_H_ #define GOOGLE_CALENDAR_API_CHANNEL_H_ @@ -76,8 +76,8 @@ class Channel : public client::JsonCppData { * * @return google_calendar_api::Channel */ - const char* GetTypeName() const { - return "google_calendar_api::Channel"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Channel"); } /** diff --git a/service_apis/calendar/google/calendar_api/color_definition.h b/service_apis/calendar/google/calendar_api/color_definition.h index b0d3402..edc1520 100644 --- a/service_apis/calendar/google/calendar_api/color_definition.h +++ b/service_apis/calendar/google/calendar_api/color_definition.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_COLOR_DEFINITION_H_ #define GOOGLE_CALENDAR_API_COLOR_DEFINITION_H_ @@ -75,8 +75,8 @@ class ColorDefinition : public client::JsonCppData { * * @return google_calendar_api::ColorDefinition */ - const char* GetTypeName() const { - return "google_calendar_api::ColorDefinition"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::ColorDefinition"); } /** diff --git a/service_apis/calendar/google/calendar_api/colors.h b/service_apis/calendar/google/calendar_api/colors.h index 811d4c6..9971897 100644 --- a/service_apis/calendar/google/calendar_api/colors.h +++ b/service_apis/calendar/google/calendar_api/colors.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_COLORS_H_ #define GOOGLE_CALENDAR_API_COLORS_H_ @@ -78,8 +78,8 @@ class Colors : public client::JsonCppData { * * @return google_calendar_api::Colors */ - const char* GetTypeName() const { - return "google_calendar_api::Colors"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Colors"); } /** diff --git a/service_apis/calendar/google/calendar_api/deep_link_data.h b/service_apis/calendar/google/calendar_api/deep_link_data.h index 2e57cf2..94aeee8 100644 --- a/service_apis/calendar/google/calendar_api/deep_link_data.h +++ b/service_apis/calendar/google/calendar_api/deep_link_data.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_DEEP_LINK_DATA_H_ #define GOOGLE_CALENDAR_API_DEEP_LINK_DATA_H_ @@ -77,8 +77,8 @@ class DeepLinkData : public client::JsonCppData { * * @return google_calendar_api::DeepLinkData */ - const char* GetTypeName() const { - return "google_calendar_api::DeepLinkData"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::DeepLinkData"); } /** diff --git a/service_apis/calendar/google/calendar_api/display_info.h b/service_apis/calendar/google/calendar_api/display_info.h index e575865..c2b7f25 100644 --- a/service_apis/calendar/google/calendar_api/display_info.h +++ b/service_apis/calendar/google/calendar_api/display_info.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_DISPLAY_INFO_H_ #define GOOGLE_CALENDAR_API_DISPLAY_INFO_H_ @@ -75,8 +75,8 @@ class DisplayInfo : public client::JsonCppData { * * @return google_calendar_api::DisplayInfo */ - const char* GetTypeName() const { - return "google_calendar_api::DisplayInfo"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::DisplayInfo"); } /** diff --git a/service_apis/calendar/google/calendar_api/error.h b/service_apis/calendar/google/calendar_api/error.h index 4dfac22..fb4df82 100644 --- a/service_apis/calendar/google/calendar_api/error.h +++ b/service_apis/calendar/google/calendar_api/error.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_ERROR_H_ #define GOOGLE_CALENDAR_API_ERROR_H_ @@ -75,8 +75,8 @@ class Error : public client::JsonCppData { * * @return google_calendar_api::Error */ - const char* GetTypeName() const { - return "google_calendar_api::Error"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Error"); } /** diff --git a/service_apis/calendar/google/calendar_api/event.h b/service_apis/calendar/google/calendar_api/event.h index 99d0965..eb7ee3c 100644 --- a/service_apis/calendar/google/calendar_api/event.h +++ b/service_apis/calendar/google/calendar_api/event.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_EVENT_H_ #define GOOGLE_CALENDAR_API_EVENT_H_ @@ -89,8 +89,8 @@ class Event : public client::JsonCppData { * * @return google_calendar_api::EventCreator */ - const char* GetTypeName() const { - return "google_calendar_api::EventCreator"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventCreator"); } /** @@ -284,8 +284,8 @@ class Event : public client::JsonCppData { * * @return google_calendar_api::EventExtendedProperties */ - const char* GetTypeName() const { - return "google_calendar_api::EventExtendedProperties"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventExtendedProperties"); } /** @@ -407,8 +407,8 @@ class Event : public client::JsonCppData { * * @return google_calendar_api::EventGadget */ - const char* GetTypeName() const { - return "google_calendar_api::EventGadget"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventGadget"); } /** @@ -761,8 +761,8 @@ class Event : public client::JsonCppData { * * @return google_calendar_api::EventOrganizer */ - const char* GetTypeName() const { - return "google_calendar_api::EventOrganizer"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventOrganizer"); } /** @@ -957,8 +957,8 @@ class Event : public client::JsonCppData { * * @return google_calendar_api::EventReminders */ - const char* GetTypeName() const { - return "google_calendar_api::EventReminders"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventReminders"); } /** @@ -1075,8 +1075,8 @@ class Event : public client::JsonCppData { * * @return google_calendar_api::EventSource */ - const char* GetTypeName() const { - return "google_calendar_api::EventSource"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventSource"); } /** @@ -1189,8 +1189,8 @@ class Event : public client::JsonCppData { * * @return google_calendar_api::Event */ - const char* GetTypeName() const { - return "google_calendar_api::Event"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Event"); } /** diff --git a/service_apis/calendar/google/calendar_api/event_attachment.h b/service_apis/calendar/google/calendar_api/event_attachment.h index d105494..86abd68 100644 --- a/service_apis/calendar/google/calendar_api/event_attachment.h +++ b/service_apis/calendar/google/calendar_api/event_attachment.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_EVENT_ATTACHMENT_H_ #define GOOGLE_CALENDAR_API_EVENT_ATTACHMENT_H_ @@ -75,8 +75,8 @@ class EventAttachment : public client::JsonCppData { * * @return google_calendar_api::EventAttachment */ - const char* GetTypeName() const { - return "google_calendar_api::EventAttachment"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventAttachment"); } /** diff --git a/service_apis/calendar/google/calendar_api/event_attendee.h b/service_apis/calendar/google/calendar_api/event_attendee.h index 4862733..bf15b00 100644 --- a/service_apis/calendar/google/calendar_api/event_attendee.h +++ b/service_apis/calendar/google/calendar_api/event_attendee.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_EVENT_ATTENDEE_H_ #define GOOGLE_CALENDAR_API_EVENT_ATTENDEE_H_ @@ -76,8 +76,8 @@ class EventAttendee : public client::JsonCppData { * * @return google_calendar_api::EventAttendee */ - const char* GetTypeName() const { - return "google_calendar_api::EventAttendee"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventAttendee"); } /** diff --git a/service_apis/calendar/google/calendar_api/event_date_time.h b/service_apis/calendar/google/calendar_api/event_date_time.h index 146d312..1e67605 100644 --- a/service_apis/calendar/google/calendar_api/event_date_time.h +++ b/service_apis/calendar/google/calendar_api/event_date_time.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_EVENT_DATE_TIME_H_ #define GOOGLE_CALENDAR_API_EVENT_DATE_TIME_H_ @@ -76,8 +76,8 @@ class EventDateTime : public client::JsonCppData { * * @return google_calendar_api::EventDateTime */ - const char* GetTypeName() const { - return "google_calendar_api::EventDateTime"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventDateTime"); } /** diff --git a/service_apis/calendar/google/calendar_api/event_habit_instance.h b/service_apis/calendar/google/calendar_api/event_habit_instance.h index f88aaed..0f686de 100644 --- a/service_apis/calendar/google/calendar_api/event_habit_instance.h +++ b/service_apis/calendar/google/calendar_api/event_habit_instance.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_EVENT_HABIT_INSTANCE_H_ #define GOOGLE_CALENDAR_API_EVENT_HABIT_INSTANCE_H_ @@ -77,8 +77,8 @@ class EventHabitInstance : public client::JsonCppData { * * @return google_calendar_api::EventHabitInstance */ - const char* GetTypeName() const { - return "google_calendar_api::EventHabitInstance"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventHabitInstance"); } /** diff --git a/service_apis/calendar/google/calendar_api/event_reminder.h b/service_apis/calendar/google/calendar_api/event_reminder.h index 293f38e..387ef09 100644 --- a/service_apis/calendar/google/calendar_api/event_reminder.h +++ b/service_apis/calendar/google/calendar_api/event_reminder.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_EVENT_REMINDER_H_ #define GOOGLE_CALENDAR_API_EVENT_REMINDER_H_ @@ -76,8 +76,8 @@ class EventReminder : public client::JsonCppData { * * @return google_calendar_api::EventReminder */ - const char* GetTypeName() const { - return "google_calendar_api::EventReminder"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::EventReminder"); } /** diff --git a/service_apis/calendar/google/calendar_api/events.h b/service_apis/calendar/google/calendar_api/events.h index 79a7f1f..592def5 100644 --- a/service_apis/calendar/google/calendar_api/events.h +++ b/service_apis/calendar/google/calendar_api/events.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_EVENTS_H_ #define GOOGLE_CALENDAR_API_EVENTS_H_ @@ -79,8 +79,8 @@ class Events : public client::JsonCppData { * * @return google_calendar_api::Events */ - const char* GetTypeName() const { - return "google_calendar_api::Events"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Events"); } /** diff --git a/service_apis/calendar/google/calendar_api/free_busy_calendar.h b/service_apis/calendar/google/calendar_api/free_busy_calendar.h index 737c5be..f4c2741 100644 --- a/service_apis/calendar/google/calendar_api/free_busy_calendar.h +++ b/service_apis/calendar/google/calendar_api/free_busy_calendar.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_FREE_BUSY_CALENDAR_H_ #define GOOGLE_CALENDAR_API_FREE_BUSY_CALENDAR_H_ @@ -77,8 +77,8 @@ class FreeBusyCalendar : public client::JsonCppData { * * @return google_calendar_api::FreeBusyCalendar */ - const char* GetTypeName() const { - return "google_calendar_api::FreeBusyCalendar"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::FreeBusyCalendar"); } /** diff --git a/service_apis/calendar/google/calendar_api/free_busy_group.h b/service_apis/calendar/google/calendar_api/free_busy_group.h index 14d488c..ea69df6 100644 --- a/service_apis/calendar/google/calendar_api/free_busy_group.h +++ b/service_apis/calendar/google/calendar_api/free_busy_group.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_FREE_BUSY_GROUP_H_ #define GOOGLE_CALENDAR_API_FREE_BUSY_GROUP_H_ @@ -77,8 +77,8 @@ class FreeBusyGroup : public client::JsonCppData { * * @return google_calendar_api::FreeBusyGroup */ - const char* GetTypeName() const { - return "google_calendar_api::FreeBusyGroup"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::FreeBusyGroup"); } /** diff --git a/service_apis/calendar/google/calendar_api/free_busy_request.h b/service_apis/calendar/google/calendar_api/free_busy_request.h index 07ecf53..0668634 100644 --- a/service_apis/calendar/google/calendar_api/free_busy_request.h +++ b/service_apis/calendar/google/calendar_api/free_busy_request.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_FREE_BUSY_REQUEST_H_ #define GOOGLE_CALENDAR_API_FREE_BUSY_REQUEST_H_ @@ -79,8 +79,8 @@ class FreeBusyRequest : public client::JsonCppData { * * @return google_calendar_api::FreeBusyRequest */ - const char* GetTypeName() const { - return "google_calendar_api::FreeBusyRequest"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::FreeBusyRequest"); } /** diff --git a/service_apis/calendar/google/calendar_api/free_busy_request_item.h b/service_apis/calendar/google/calendar_api/free_busy_request_item.h index de5d9aa..b30651f 100644 --- a/service_apis/calendar/google/calendar_api/free_busy_request_item.h +++ b/service_apis/calendar/google/calendar_api/free_busy_request_item.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_FREE_BUSY_REQUEST_ITEM_H_ #define GOOGLE_CALENDAR_API_FREE_BUSY_REQUEST_ITEM_H_ @@ -75,8 +75,8 @@ class FreeBusyRequestItem : public client::JsonCppData { * * @return google_calendar_api::FreeBusyRequestItem */ - const char* GetTypeName() const { - return "google_calendar_api::FreeBusyRequestItem"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::FreeBusyRequestItem"); } /** diff --git a/service_apis/calendar/google/calendar_api/free_busy_response.h b/service_apis/calendar/google/calendar_api/free_busy_response.h index 13dae48..b7271b9 100644 --- a/service_apis/calendar/google/calendar_api/free_busy_response.h +++ b/service_apis/calendar/google/calendar_api/free_busy_response.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_FREE_BUSY_RESPONSE_H_ #define GOOGLE_CALENDAR_API_FREE_BUSY_RESPONSE_H_ @@ -79,8 +79,8 @@ class FreeBusyResponse : public client::JsonCppData { * * @return google_calendar_api::FreeBusyResponse */ - const char* GetTypeName() const { - return "google_calendar_api::FreeBusyResponse"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::FreeBusyResponse"); } /** diff --git a/service_apis/calendar/google/calendar_api/habit_instance_data.h b/service_apis/calendar/google/calendar_api/habit_instance_data.h index 4204150..4ee84a6 100644 --- a/service_apis/calendar/google/calendar_api/habit_instance_data.h +++ b/service_apis/calendar/google/calendar_api/habit_instance_data.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_HABIT_INSTANCE_DATA_H_ #define GOOGLE_CALENDAR_API_HABIT_INSTANCE_DATA_H_ @@ -75,8 +75,8 @@ class HabitInstanceData : public client::JsonCppData { * * @return google_calendar_api::HabitInstanceData */ - const char* GetTypeName() const { - return "google_calendar_api::HabitInstanceData"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::HabitInstanceData"); } /** diff --git a/service_apis/calendar/google/calendar_api/launch_info.h b/service_apis/calendar/google/calendar_api/launch_info.h index cd438e6..09adb00 100644 --- a/service_apis/calendar/google/calendar_api/launch_info.h +++ b/service_apis/calendar/google/calendar_api/launch_info.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_LAUNCH_INFO_H_ #define GOOGLE_CALENDAR_API_LAUNCH_INFO_H_ @@ -75,8 +75,8 @@ class LaunchInfo : public client::JsonCppData { * * @return google_calendar_api::LaunchInfo */ - const char* GetTypeName() const { - return "google_calendar_api::LaunchInfo"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::LaunchInfo"); } /** diff --git a/service_apis/calendar/google/calendar_api/link.h b/service_apis/calendar/google/calendar_api/link.h index 95f672d..108ab12 100644 --- a/service_apis/calendar/google/calendar_api/link.h +++ b/service_apis/calendar/google/calendar_api/link.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_LINK_H_ #define GOOGLE_CALENDAR_API_LINK_H_ @@ -78,8 +78,8 @@ class Link : public client::JsonCppData { * * @return google_calendar_api::Link */ - const char* GetTypeName() const { - return "google_calendar_api::Link"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Link"); } /** diff --git a/service_apis/calendar/google/calendar_api/setting.h b/service_apis/calendar/google/calendar_api/setting.h index c7ab20c..8633b14 100644 --- a/service_apis/calendar/google/calendar_api/setting.h +++ b/service_apis/calendar/google/calendar_api/setting.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_SETTING_H_ #define GOOGLE_CALENDAR_API_SETTING_H_ @@ -75,8 +75,8 @@ class Setting : public client::JsonCppData { * * @return google_calendar_api::Setting */ - const char* GetTypeName() const { - return "google_calendar_api::Setting"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Setting"); } /** diff --git a/service_apis/calendar/google/calendar_api/settings.h b/service_apis/calendar/google/calendar_api/settings.h index 40bf61e..ef93e49 100644 --- a/service_apis/calendar/google/calendar_api/settings.h +++ b/service_apis/calendar/google/calendar_api/settings.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_SETTINGS_H_ #define GOOGLE_CALENDAR_API_SETTINGS_H_ @@ -77,8 +77,8 @@ class Settings : public client::JsonCppData { * * @return google_calendar_api::Settings */ - const char* GetTypeName() const { - return "google_calendar_api::Settings"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::Settings"); } /** diff --git a/service_apis/calendar/google/calendar_api/time_period.h b/service_apis/calendar/google/calendar_api/time_period.h index 2ea64f3..4313446 100644 --- a/service_apis/calendar/google/calendar_api/time_period.h +++ b/service_apis/calendar/google/calendar_api/time_period.h @@ -21,7 +21,7 @@ // Revision: 20170507 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.5 +// C++: 0.1.4 #ifndef GOOGLE_CALENDAR_API_TIME_PERIOD_H_ #define GOOGLE_CALENDAR_API_TIME_PERIOD_H_ @@ -75,8 +75,8 @@ class TimePeriod : public client::JsonCppData { * * @return google_calendar_api::TimePeriod */ - const char* GetTypeName() const { - return "google_calendar_api::TimePeriod"; + const StringPiece GetTypeName() const { + return StringPiece("google_calendar_api::TimePeriod"); } /** diff --git a/service_apis/drive/descriptor.json b/service_apis/drive/descriptor.json deleted file mode 100644 index 0fd81d2..0000000 --- a/service_apis/drive/descriptor.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "discoveryLink": "./apis/drive/v2/rest", - "kind": "discovery#directoryItem", - "description": "The API to interact with Drive.", - "title": "Drive API", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/drive/v2/rest", - "preferred": false, - "version": "v2", - "icons": { - "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png", - "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png" - }, - "documentationLink": "https://developers.google.com/drive/", - "id": "drive:v2", - "name": "drive", - "packagePath": null, - "canonicalName": null, - "files": [ - { - "downloadUrl": "/downloads/drive/v2/198/cpp/0.1.3/google-drive-v2-rev198-cpp-0.1.3-doc.zip", - "path": "google-drive-v2-rev198-cpp-0.1.3-doc.zip", - "type": "documentation", - "timestamp": "2016-01-07 01:55" - }, - { - "downloadUrl": "/downloads/drive/v2/198/cpp/0.1.3/google-drive-v2-rev198-cpp-0.1.3-src.zip", - "path": "", - "type": "source", - "timestamp": "2016-01-07 01:55" - } - ], - "revision": 198, - "language": "cpp", - "language_version": "0.1.3" -} \ No newline at end of file diff --git a/service_apis/drive/google/drive_api/CMakeLists.txt b/service_apis/drive/google/drive_api/CMakeLists.txt index f232a5a..52b4938 100644 --- a/service_apis/drive/google/drive_api/CMakeLists.txt +++ b/service_apis/drive/google/drive_api/CMakeLists.txt @@ -34,6 +34,9 @@ add_library(google_drive_api STATIC property_list.cc revision.cc revision_list.cc + start_page_token.cc + team_drive.cc + team_drive_list.cc user.cc drive_service.cc) target_link_libraries(google_drive_api googleapis_http) diff --git a/service_apis/drive/google/drive_api/about.cc b/service_apis/drive/google/drive_api/about.cc index 98ddda0..0124cba 100644 --- a/service_apis/drive/google/drive_api/about.cc +++ b/service_apis/drive/google/drive_api/about.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // About // Documentation: @@ -62,6 +59,8 @@ About::AboutAdditionalRoleInfo::AboutAdditionalRoleInfoRoleSets::AboutAdditional // Standard destructor. About::AboutAdditionalRoleInfo::AboutAdditionalRoleInfoRoleSets::~AboutAdditionalRoleInfoRoleSets() { } + +// Properties. // Object factory method (static). About::AboutAdditionalRoleInfo* About::AboutAdditionalRoleInfo::New() { return new client::JsonCppCapsule; @@ -81,6 +80,8 @@ About::AboutAdditionalRoleInfo::AboutAdditionalRoleInfo(Json::Value* storage) About::AboutAdditionalRoleInfo::~AboutAdditionalRoleInfo() { } +// Properties. + // Object factory method (static). About::AboutExportFormats* About::AboutExportFormats::New() { return new client::JsonCppCapsule; @@ -100,6 +101,8 @@ About::AboutExportFormats::AboutExportFormats(Json::Value* storage) About::AboutExportFormats::~AboutExportFormats() { } +// Properties. + // Object factory method (static). About::AboutFeatures* About::AboutFeatures::New() { return new client::JsonCppCapsule; @@ -119,6 +122,8 @@ About::AboutFeatures::AboutFeatures(Json::Value* storage) About::AboutFeatures::~AboutFeatures() { } +// Properties. + // Object factory method (static). About::AboutImportFormats* About::AboutImportFormats::New() { return new client::JsonCppCapsule; @@ -138,6 +143,8 @@ About::AboutImportFormats::AboutImportFormats(Json::Value* storage) About::AboutImportFormats::~AboutImportFormats() { } +// Properties. + // Object factory method (static). About::AboutMaxUploadSizes* About::AboutMaxUploadSizes::New() { return new client::JsonCppCapsule; @@ -157,6 +164,8 @@ About::AboutMaxUploadSizes::AboutMaxUploadSizes(Json::Value* storage) About::AboutMaxUploadSizes::~AboutMaxUploadSizes() { } +// Properties. + // Object factory method (static). About::AboutQuotaBytesByService* About::AboutQuotaBytesByService::New() { return new client::JsonCppCapsule; @@ -175,6 +184,29 @@ About::AboutQuotaBytesByService::AboutQuotaBytesByService(Json::Value* storage) // Standard destructor. About::AboutQuotaBytesByService::~AboutQuotaBytesByService() { } + +// Properties. + +// Object factory method (static). +About::AboutTeamDriveThemes* About::AboutTeamDriveThemes::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +About::AboutTeamDriveThemes::AboutTeamDriveThemes(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +About::AboutTeamDriveThemes::AboutTeamDriveThemes(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +About::AboutTeamDriveThemes::~AboutTeamDriveThemes() { +} + +// Properties. // Object factory method (static). About* About::New() { return new client::JsonCppCapsule; @@ -193,4 +225,16 @@ About::About(Json::Value* storage) // Standard destructor. About::~About() { } + +// Properties. + +const User About::get_user() const { + const Json::Value& storage = Storage("user"); + return client::JsonValueToCppValueHelper(storage); +} + +User About::mutable_user() { + Json::Value* storage = MutableStorage("user"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/about.h b/service_apis/drive/google/drive_api/about.h index 795ce25..2fc3f41 100644 --- a/service_apis/drive/google/drive_api/about.h +++ b/service_apis/drive/google/drive_api/about.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_ABOUT_H_ #define GOOGLE_DRIVE_API_ABOUT_H_ @@ -887,6 +885,162 @@ class About : public client::JsonCppData { private: void operator=(const AboutQuotaBytesByService&); }; // AboutQuotaBytesByService + /** + * No description provided. + * + * @ingroup DataObject + */ + class AboutTeamDriveThemes : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static AboutTeamDriveThemes* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit AboutTeamDriveThemes(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit AboutTeamDriveThemes(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~AboutTeamDriveThemes(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_drive_api::AboutTeamDriveThemes + */ + const StringPiece GetTypeName() const { + return StringPiece("google_drive_api::AboutTeamDriveThemes"); + } + + /** + * Determine if the 'backgroundImageLink' attribute was set. + * + * @return true if the 'backgroundImageLink' attribute was set. + */ + bool has_background_image_link() const { + return Storage().isMember("backgroundImageLink"); + } + + /** + * Clears the 'backgroundImageLink' attribute. + */ + void clear_background_image_link() { + MutableStorage()->removeMember("backgroundImageLink"); + } + + + /** + * Get the value of the 'backgroundImageLink' attribute. + */ + const StringPiece get_background_image_link() const { + const Json::Value& v = Storage("backgroundImageLink"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'backgroundImageLink' attribute. + * + * A link to this Team Drive theme's background image. + * + * @param[in] value The new value. + */ + void set_background_image_link(const StringPiece& value) { + *MutableStorage("backgroundImageLink") = value.data(); + } + + /** + * Determine if the 'colorRgb' attribute was set. + * + * @return true if the 'colorRgb' attribute was set. + */ + bool has_color_rgb() const { + return Storage().isMember("colorRgb"); + } + + /** + * Clears the 'colorRgb' attribute. + */ + void clear_color_rgb() { + MutableStorage()->removeMember("colorRgb"); + } + + + /** + * Get the value of the 'colorRgb' attribute. + */ + const StringPiece get_color_rgb() const { + const Json::Value& v = Storage("colorRgb"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'colorRgb' attribute. + * + * The color of this Team Drive theme as an RGB hex string. + * + * @param[in] value The new value. + */ + void set_color_rgb(const StringPiece& value) { + *MutableStorage("colorRgb") = value.data(); + } + + /** + * Determine if the 'id' attribute was set. + * + * @return true if the 'id' attribute was set. + */ + bool has_id() const { + return Storage().isMember("id"); + } + + /** + * Clears the 'id' attribute. + */ + void clear_id() { + MutableStorage()->removeMember("id"); + } + + + /** + * Get the value of the 'id' attribute. + */ + const StringPiece get_id() const { + const Json::Value& v = Storage("id"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'id' attribute. + * + * The ID of the theme. + * + * @param[in] value The new value. + */ + void set_id(const StringPiece& value) { + *MutableStorage("id") = value.data(); + } + + private: + void operator=(const AboutTeamDriveThemes&); + }; // AboutTeamDriveThemes /** * Creates a new default instance. * @@ -1713,7 +1867,7 @@ class About : public client::JsonCppData { /** * Change the 'remainingChangeIds' attribute. * - * The number of remaining change ids. + * The number of remaining change ids, limited to no more than 2500. * * @param[in] value The new value. */ @@ -1796,6 +1950,45 @@ class About : public client::JsonCppData { *MutableStorage("selfLink") = value.data(); } + /** + * Determine if the 'teamDriveThemes' attribute was set. + * + * @return true if the 'teamDriveThemes' attribute was set. + */ + bool has_team_drive_themes() const { + return Storage().isMember("teamDriveThemes"); + } + + /** + * Clears the 'teamDriveThemes' attribute. + */ + void clear_team_drive_themes() { + MutableStorage()->removeMember("teamDriveThemes"); + } + + + /** + * Get a reference to the value of the 'teamDriveThemes' + * attribute. + */ + const client::JsonCppArray get_team_drive_themes() const { + const Json::Value& storage = Storage("teamDriveThemes"); + return client::JsonValueToCppValueHelper >(storage); + } + + /** + * Gets a reference to a mutable value of the 'teamDriveThemes' + * property. + * + * A list of themes that are supported for Team Drives. + * + * @return The result can be modified to change the attribute value. + */ + client::JsonCppArray mutable_teamDriveThemes() { + Json::Value* storage = MutableStorage("teamDriveThemes"); + return client::JsonValueToMutableCppValueHelper >(storage); + } + /** * Determine if the 'user' attribute was set. * diff --git a/service_apis/drive/google/drive_api/app.cc b/service_apis/drive/google/drive_api/app.cc index 518271b..9214a17 100644 --- a/service_apis/drive/google/drive_api/app.cc +++ b/service_apis/drive/google/drive_api/app.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // App // Documentation: @@ -59,6 +56,8 @@ App::AppIcons::AppIcons(Json::Value* storage) // Standard destructor. App::AppIcons::~AppIcons() { } + +// Properties. // Object factory method (static). App* App::New() { return new client::JsonCppCapsule; @@ -77,4 +76,6 @@ App::App(Json::Value* storage) // Standard destructor. App::~App() { } + +// Properties. } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/app.h b/service_apis/drive/google/drive_api/app.h index a36b361..2ba982a 100644 --- a/service_apis/drive/google/drive_api/app.h +++ b/service_apis/drive/google/drive_api/app.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_APP_H_ #define GOOGLE_DRIVE_API_APP_H_ diff --git a/service_apis/drive/google/drive_api/app_list.cc b/service_apis/drive/google/drive_api/app_list.cc index 744429b..7c6bff5 100644 --- a/service_apis/drive/google/drive_api/app_list.cc +++ b/service_apis/drive/google/drive_api/app_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // AppList // Documentation: @@ -59,4 +56,16 @@ AppList::AppList(Json::Value* storage) // Standard destructor. AppList::~AppList() { } + +// Properties. + +const client::JsonCppArray AppList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray AppList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/app_list.h b/service_apis/drive/google/drive_api/app_list.h index 717a9c3..2d08402 100644 --- a/service_apis/drive/google/drive_api/app_list.h +++ b/service_apis/drive/google/drive_api/app_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_APP_LIST_H_ #define GOOGLE_DRIVE_API_APP_LIST_H_ @@ -185,7 +183,7 @@ class AppList : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'items' property. * - * The actual list of apps. + * The list of apps. * * @return The result can be modified to change the attribute value. */ diff --git a/service_apis/drive/google/drive_api/change.cc b/service_apis/drive/google/drive_api/change.cc index d0afaa8..014d37d 100644 --- a/service_apis/drive/google/drive_api/change.cc +++ b/service_apis/drive/google/drive_api/change.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // Change // Documentation: @@ -34,6 +31,7 @@ #include "googleapis/strings/stringpiece.h" #include "google/drive_api/file.h" +#include "google/drive_api/team_drive.h" #include @@ -61,4 +59,26 @@ Change::Change(Json::Value* storage) // Standard destructor. Change::~Change() { } + +// Properties. + +const File Change::get_file() const { + const Json::Value& storage = Storage("file"); + return client::JsonValueToCppValueHelper(storage); +} + +File Change::mutable_file() { + Json::Value* storage = MutableStorage("file"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TeamDrive Change::get_team_drive() const { + const Json::Value& storage = Storage("teamDrive"); + return client::JsonValueToCppValueHelper(storage); +} + +TeamDrive Change::mutable_teamDrive() { + Json::Value* storage = MutableStorage("teamDrive"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/change.h b/service_apis/drive/google/drive_api/change.h index 30b3491..1b762e2 100644 --- a/service_apis/drive/google/drive_api/change.h +++ b/service_apis/drive/google/drive_api/change.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_CHANGE_H_ #define GOOGLE_DRIVE_API_CHANGE_H_ @@ -35,6 +33,7 @@ #include "googleapis/strings/stringpiece.h" #include "google/drive_api/file.h" +#include "google/drive_api/team_drive.h" namespace Json { class Value; @@ -44,7 +43,7 @@ namespace google_drive_api { using namespace googleapis; /** - * Representation of a change to a file. + * Representation of a change to a file or Team Drive. * * @ingroup DataObject */ @@ -113,7 +112,8 @@ class Change : public client::JsonCppData { /** * Change the 'deleted' attribute. * - * Whether the file has been deleted. + * Whether the file or Team Drive has been removed from this list of changes, + * for example by deletion or loss of access. * * @param[in] value The new value. */ @@ -147,7 +147,8 @@ class Change : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'file' property. * - * The updated state of the file. Present if the file has not been deleted. + * The updated state of the file. Present if the type is file and the file has + * not been removed from this list of changes. * * @return The result can be modified to change the attribute value. */ @@ -338,6 +339,114 @@ class Change : public client::JsonCppData { *MutableStorage("selfLink") = value.data(); } + /** + * Determine if the 'teamDrive' attribute was set. + * + * @return true if the 'teamDrive' attribute was set. + */ + bool has_team_drive() const { + return Storage().isMember("teamDrive"); + } + + /** + * Clears the 'teamDrive' attribute. + */ + void clear_team_drive() { + MutableStorage()->removeMember("teamDrive"); + } + + + /** + * Get a reference to the value of the 'teamDrive' attribute. + */ + const TeamDrive get_team_drive() const; + + /** + * Gets a reference to a mutable value of the 'teamDrive' + * property. + * + * The updated state of the Team Drive. Present if the type is teamDrive, the + * user is still a member of the Team Drive, and the Team Drive has not been + * deleted. + * + * @return The result can be modified to change the attribute value. + */ + TeamDrive mutable_teamDrive(); + + /** + * Determine if the 'teamDriveId' attribute was set. + * + * @return true if the 'teamDriveId' attribute was set. + */ + bool has_team_drive_id() const { + return Storage().isMember("teamDriveId"); + } + + /** + * Clears the 'teamDriveId' attribute. + */ + void clear_team_drive_id() { + MutableStorage()->removeMember("teamDriveId"); + } + + + /** + * Get the value of the 'teamDriveId' attribute. + */ + const StringPiece get_team_drive_id() const { + const Json::Value& v = Storage("teamDriveId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'teamDriveId' attribute. + * + * The ID of the Team Drive associated with this change. + * + * @param[in] value The new value. + */ + void set_team_drive_id(const StringPiece& value) { + *MutableStorage("teamDriveId") = value.data(); + } + + /** + * Determine if the 'type' attribute was set. + * + * @return true if the 'type' attribute was set. + */ + bool has_type() const { + return Storage().isMember("type"); + } + + /** + * Clears the 'type' attribute. + */ + void clear_type() { + MutableStorage()->removeMember("type"); + } + + + /** + * Get the value of the 'type' attribute. + */ + const StringPiece get_type() const { + const Json::Value& v = Storage("type"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'type' attribute. + * + * The type of the change. Possible values are file and teamDrive. + * + * @param[in] value The new value. + */ + void set_type(const StringPiece& value) { + *MutableStorage("type") = value.data(); + } + private: void operator=(const Change&); }; // Change diff --git a/service_apis/drive/google/drive_api/change_list.cc b/service_apis/drive/google/drive_api/change_list.cc index 277f04b..1bc9836 100644 --- a/service_apis/drive/google/drive_api/change_list.cc +++ b/service_apis/drive/google/drive_api/change_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // ChangeList // Documentation: @@ -60,4 +57,16 @@ ChangeList::ChangeList(Json::Value* storage) // Standard destructor. ChangeList::~ChangeList() { } + +// Properties. + +const client::JsonCppArray ChangeList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray ChangeList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/change_list.h b/service_apis/drive/google/drive_api/change_list.h index 8aa0f2f..a575e04 100644 --- a/service_apis/drive/google/drive_api/change_list.h +++ b/service_apis/drive/google/drive_api/change_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_CHANGE_LIST_H_ #define GOOGLE_DRIVE_API_CHANGE_LIST_H_ @@ -146,7 +144,8 @@ class ChangeList : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'items' property. * - * The actual list of changes. + * The list of changes. If nextPageToken is populated, then this list may be + * incomplete and an additional page of results should be fetched. * * @return The result can be modified to change the attribute value. */ @@ -226,6 +225,44 @@ class ChangeList : public client::JsonCppData { value, MutableStorage("largestChangeId")); } + /** + * Determine if the 'newStartPageToken' attribute was set. + * + * @return true if the 'newStartPageToken' attribute was set. + */ + bool has_new_start_page_token() const { + return Storage().isMember("newStartPageToken"); + } + + /** + * Clears the 'newStartPageToken' attribute. + */ + void clear_new_start_page_token() { + MutableStorage()->removeMember("newStartPageToken"); + } + + + /** + * Get the value of the 'newStartPageToken' attribute. + */ + const StringPiece get_new_start_page_token() const { + const Json::Value& v = Storage("newStartPageToken"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'newStartPageToken' attribute. + * + * The starting page token for future changes. This will be present only if + * the end of the current changes list has been reached. + * + * @param[in] value The new value. + */ + void set_new_start_page_token(const StringPiece& value) { + *MutableStorage("newStartPageToken") = value.data(); + } + /** * Determine if the 'nextLink' attribute was set. * @@ -292,7 +329,10 @@ class ChangeList : public client::JsonCppData { /** * Change the 'nextPageToken' attribute. * - * The page token for the next page of changes. + * The page token for the next page of changes. This will be absent if the end + * of the changes list has been reached. If the token is rejected for any + * reason, it should be discarded, and pagination should be restarted from the + * first page of results. * * @param[in] value The new value. */ diff --git a/service_apis/drive/google/drive_api/channel.cc b/service_apis/drive/google/drive_api/channel.cc index b49f892..e8753ff 100644 --- a/service_apis/drive/google/drive_api/channel.cc +++ b/service_apis/drive/google/drive_api/channel.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // Channel // Documentation: @@ -58,4 +55,6 @@ Channel::Channel(Json::Value* storage) // Standard destructor. Channel::~Channel() { } + +// Properties. } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/channel.h b/service_apis/drive/google/drive_api/channel.h index c56d67b..3649735 100644 --- a/service_apis/drive/google/drive_api/channel.h +++ b/service_apis/drive/google/drive_api/channel.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_CHANNEL_H_ #define GOOGLE_DRIVE_API_CHANNEL_H_ diff --git a/service_apis/drive/google/drive_api/child_list.cc b/service_apis/drive/google/drive_api/child_list.cc index eb2448b..d22d93e 100644 --- a/service_apis/drive/google/drive_api/child_list.cc +++ b/service_apis/drive/google/drive_api/child_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // ChildList // Documentation: @@ -59,4 +56,16 @@ ChildList::ChildList(Json::Value* storage) // Standard destructor. ChildList::~ChildList() { } + +// Properties. + +const client::JsonCppArray ChildList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray ChildList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/child_list.h b/service_apis/drive/google/drive_api/child_list.h index 1b4b6d7..bbc2dd7 100644 --- a/service_apis/drive/google/drive_api/child_list.h +++ b/service_apis/drive/google/drive_api/child_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_CHILD_LIST_H_ #define GOOGLE_DRIVE_API_CHILD_LIST_H_ @@ -145,7 +143,8 @@ class ChildList : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'items' property. * - * The actual list of children. + * The list of children. If nextPageToken is populated, then this list may be + * incomplete and an additional page of results should be fetched. * * @return The result can be modified to change the attribute value. */ @@ -254,7 +253,10 @@ class ChildList : public client::JsonCppData { /** * Change the 'nextPageToken' attribute. * - * The page token for the next page of children. + * The page token for the next page of children. This will be absent if the + * end of the children list has been reached. If the token is rejected for any + * reason, it should be discarded, and pagination should be restarted from the + * first page of results. * * @param[in] value The new value. */ diff --git a/service_apis/drive/google/drive_api/child_reference.cc b/service_apis/drive/google/drive_api/child_reference.cc index 40e4c9e..4489bbe 100644 --- a/service_apis/drive/google/drive_api/child_reference.cc +++ b/service_apis/drive/google/drive_api/child_reference.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // ChildReference // Documentation: @@ -57,4 +54,6 @@ ChildReference::ChildReference(Json::Value* storage) // Standard destructor. ChildReference::~ChildReference() { } + +// Properties. } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/child_reference.h b/service_apis/drive/google/drive_api/child_reference.h index d8e6ab2..9c072ce 100644 --- a/service_apis/drive/google/drive_api/child_reference.h +++ b/service_apis/drive/google/drive_api/child_reference.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_CHILD_REFERENCE_H_ #define GOOGLE_DRIVE_API_CHILD_REFERENCE_H_ diff --git a/service_apis/drive/google/drive_api/comment.cc b/service_apis/drive/google/drive_api/comment.cc index b39dc7e..5ed3c8f 100644 --- a/service_apis/drive/google/drive_api/comment.cc +++ b/service_apis/drive/google/drive_api/comment.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // Comment // Documentation: @@ -62,6 +59,8 @@ Comment::CommentContext::CommentContext(Json::Value* storage) // Standard destructor. Comment::CommentContext::~CommentContext() { } + +// Properties. // Object factory method (static). Comment* Comment::New() { return new client::JsonCppCapsule; @@ -80,4 +79,26 @@ Comment::Comment(Json::Value* storage) // Standard destructor. Comment::~Comment() { } + +// Properties. + +const User Comment::get_author() const { + const Json::Value& storage = Storage("author"); + return client::JsonValueToCppValueHelper(storage); +} + +User Comment::mutable_author() { + Json::Value* storage = MutableStorage("author"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const client::JsonCppArray Comment::get_replies() const { + const Json::Value& storage = Storage("replies"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray Comment::mutable_replies() { + Json::Value* storage = MutableStorage("replies"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/comment.h b/service_apis/drive/google/drive_api/comment.h index 2d723b3..8acdef8 100644 --- a/service_apis/drive/google/drive_api/comment.h +++ b/service_apis/drive/google/drive_api/comment.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_COMMENT_H_ #define GOOGLE_DRIVE_API_COMMENT_H_ diff --git a/service_apis/drive/google/drive_api/comment_list.cc b/service_apis/drive/google/drive_api/comment_list.cc index 76f5a28..5c8265c 100644 --- a/service_apis/drive/google/drive_api/comment_list.cc +++ b/service_apis/drive/google/drive_api/comment_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // CommentList // Documentation: @@ -59,4 +56,16 @@ CommentList::CommentList(Json::Value* storage) // Standard destructor. CommentList::~CommentList() { } + +// Properties. + +const client::JsonCppArray CommentList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray CommentList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/comment_list.h b/service_apis/drive/google/drive_api/comment_list.h index 6eeb603..a169bc7 100644 --- a/service_apis/drive/google/drive_api/comment_list.h +++ b/service_apis/drive/google/drive_api/comment_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_COMMENT_LIST_H_ #define GOOGLE_DRIVE_API_COMMENT_LIST_H_ @@ -108,7 +106,8 @@ class CommentList : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'items' property. * - * List of comments. + * The list of comments. If nextPageToken is populated, then this list may be + * incomplete and an additional page of results should be fetched. * * @return The result can be modified to change the attribute value. */ @@ -217,7 +216,10 @@ class CommentList : public client::JsonCppData { /** * Change the 'nextPageToken' attribute. * - * The token to use to request the next page of results. + * The page token for the next page of comments. This will be absent if the + * end of the comments list has been reached. If the token is rejected for any + * reason, it should be discarded, and pagination should be restarted from the + * first page of results. * * @param[in] value The new value. */ diff --git a/service_apis/drive/google/drive_api/comment_reply.cc b/service_apis/drive/google/drive_api/comment_reply.cc index 2267f21..36ffc3b 100644 --- a/service_apis/drive/google/drive_api/comment_reply.cc +++ b/service_apis/drive/google/drive_api/comment_reply.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // CommentReply // Documentation: @@ -60,4 +57,16 @@ CommentReply::CommentReply(Json::Value* storage) // Standard destructor. CommentReply::~CommentReply() { } + +// Properties. + +const User CommentReply::get_author() const { + const Json::Value& storage = Storage("author"); + return client::JsonValueToCppValueHelper(storage); +} + +User CommentReply::mutable_author() { + Json::Value* storage = MutableStorage("author"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/comment_reply.h b/service_apis/drive/google/drive_api/comment_reply.h index 6f4d0a0..378c9be 100644 --- a/service_apis/drive/google/drive_api/comment_reply.h +++ b/service_apis/drive/google/drive_api/comment_reply.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_COMMENT_REPLY_H_ #define GOOGLE_DRIVE_API_COMMENT_REPLY_H_ diff --git a/service_apis/drive/google/drive_api/comment_reply_list.cc b/service_apis/drive/google/drive_api/comment_reply_list.cc index 4d98727..dda44d7 100644 --- a/service_apis/drive/google/drive_api/comment_reply_list.cc +++ b/service_apis/drive/google/drive_api/comment_reply_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // CommentReplyList // Documentation: @@ -59,4 +56,16 @@ CommentReplyList::CommentReplyList(Json::Value* storage) // Standard destructor. CommentReplyList::~CommentReplyList() { } + +// Properties. + +const client::JsonCppArray CommentReplyList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray CommentReplyList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/comment_reply_list.h b/service_apis/drive/google/drive_api/comment_reply_list.h index 02c370a..5c156a6 100644 --- a/service_apis/drive/google/drive_api/comment_reply_list.h +++ b/service_apis/drive/google/drive_api/comment_reply_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_COMMENT_REPLY_LIST_H_ #define GOOGLE_DRIVE_API_COMMENT_REPLY_LIST_H_ @@ -108,7 +106,8 @@ class CommentReplyList : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'items' property. * - * List of reply. + * The list of replies. If nextPageToken is populated, then this list may be + * incomplete and an additional page of results should be fetched. * * @return The result can be modified to change the attribute value. */ @@ -217,7 +216,10 @@ class CommentReplyList : public client::JsonCppData { /** * Change the 'nextPageToken' attribute. * - * The token to use to request the next page of results. + * The page token for the next page of replies. This will be absent if the end + * of the replies list has been reached. If the token is rejected for any + * reason, it should be discarded, and pagination should be restarted from the + * first page of results. * * @param[in] value The new value. */ diff --git a/service_apis/drive/google/drive_api/drive_api.h b/service_apis/drive/google/drive_api/drive_api.h index 2d9e1e8..053ad2f 100644 --- a/service_apis/drive/google/drive_api/drive_api.h +++ b/service_apis/drive/google/drive_api/drive_api.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -12,7 +10,6 @@ // License for the specific language governing permissions and limitations under // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 #ifndef GOOGLE_DRIVE_API_DRIVE_API_H_ #define GOOGLE_DRIVE_API_DRIVE_API_H_ @@ -25,6 +22,7 @@ #include "google/drive_api/permission.h" #include "google/drive_api/property.h" #include "google/drive_api/file.h" +#include "google/drive_api/team_drive.h" #include "google/drive_api/change.h" #include "google/drive_api/change_list.h" #include "google/drive_api/channel.h" @@ -42,6 +40,8 @@ #include "google/drive_api/property_list.h" #include "google/drive_api/revision.h" #include "google/drive_api/revision_list.h" +#include "google/drive_api/start_page_token.h" +#include "google/drive_api/team_drive_list.h" #include "google/drive_api/drive_service.h" diff --git a/service_apis/drive/google/drive_api/drive_service.cc b/service_apis/drive/google/drive_api/drive_service.cc index 4402f00..888ad0a 100644 --- a/service_apis/drive/google/drive_api/drive_service.cc +++ b/service_apis/drive/google/drive_api/drive_service.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -14,7 +12,6 @@ // //------------------------------------------------------------------------------ // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -52,6 +49,9 @@ #include "google/drive_api/property_list.h" #include "google/drive_api/revision.h" #include "google/drive_api/revision_list.h" +#include "google/drive_api/start_page_token.h" +#include "google/drive_api/team_drive.h" +#include "google/drive_api/team_drive_list.h" #include "googleapis/client/data/data_reader.h" @@ -62,31 +62,31 @@ namespace google_drive_api { using namespace googleapis; -const StringPiece DriveService::googleapis_API_NAME("drive"); +const char DriveService::googleapis_API_NAME[] = {"drive"}; -const StringPiece DriveService::googleapis_API_VERSION("v2"); +const char DriveService::googleapis_API_VERSION[] = {"v2"}; -const StringPiece DriveService::googleapis_API_GENERATOR( - "google-apis-code-generator 1.5.1 / 0.1.3"); +const char DriveService::googleapis_API_GENERATOR[] = { + "google-apis-code-generator 1.5.1 / 0.1.4"}; -const string DriveService::SCOPES::DRIVE("https://www.googleapis.com/auth/drive"); +const char DriveService::SCOPES::DRIVE[] = {"https://www.googleapis.com/auth/drive"}; -const string DriveService::SCOPES::DRIVE_APPDATA("https://www.googleapis.com/auth/drive.appdata"); +const char DriveService::SCOPES::DRIVE_APPDATA[] = {"https://www.googleapis.com/auth/drive.appdata"}; -const string DriveService::SCOPES::DRIVE_APPS_READONLY("https://www.googleapis.com/auth/drive.apps.readonly"); +const char DriveService::SCOPES::DRIVE_APPS_READONLY[] = {"https://www.googleapis.com/auth/drive.apps.readonly"}; -const string DriveService::SCOPES::DRIVE_FILE("https://www.googleapis.com/auth/drive.file"); +const char DriveService::SCOPES::DRIVE_FILE[] = {"https://www.googleapis.com/auth/drive.file"}; -const string DriveService::SCOPES::DRIVE_METADATA("https://www.googleapis.com/auth/drive.metadata"); +const char DriveService::SCOPES::DRIVE_METADATA[] = {"https://www.googleapis.com/auth/drive.metadata"}; -const string DriveService::SCOPES::DRIVE_METADATA_READONLY("https://www.googleapis.com/auth/drive.metadata.readonly"); +const char DriveService::SCOPES::DRIVE_METADATA_READONLY[] = {"https://www.googleapis.com/auth/drive.metadata.readonly"}; -const string DriveService::SCOPES::DRIVE_PHOTOS_READONLY("https://www.googleapis.com/auth/drive.photos.readonly"); +const char DriveService::SCOPES::DRIVE_PHOTOS_READONLY[] = {"https://www.googleapis.com/auth/drive.photos.readonly"}; -const string DriveService::SCOPES::DRIVE_READONLY("https://www.googleapis.com/auth/drive.readonly"); +const char DriveService::SCOPES::DRIVE_READONLY[] = {"https://www.googleapis.com/auth/drive.readonly"}; -const string DriveService::SCOPES::DRIVE_SCRIPTS("https://www.googleapis.com/auth/drive.scripts"); +const char DriveService::SCOPES::DRIVE_SCRIPTS[] = {"https://www.googleapis.com/auth/drive.scripts"}; DriveServiceBaseRequest::DriveServiceBaseRequest( const client::ClientService* service, client::AuthorizationCredential* credential, @@ -182,7 +182,7 @@ AboutResource_GetMethod::AboutResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "about")), + "about"), include_subscribed_(true), max_change_id_count_(1), _have_include_subscribed_(false), @@ -231,7 +231,7 @@ AppsResource_GetMethod::AppsResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "apps/{appId}")), + "apps/{appId}"), app_id_(app_id.as_string()) { } @@ -260,10 +260,10 @@ AppsResource_ListMethod::AppsResource_ListMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "apps")), - _have_language_code_(false), + "apps"), _have_app_filter_extensions_(false), - _have_app_filter_mime_types_(false) { + _have_app_filter_mime_types_(false), + _have_language_code_(false) { } // Standard destructor. @@ -272,12 +272,6 @@ AppsResource_ListMethod::~AppsResource_ListMethod() { util::Status AppsResource_ListMethod::AppendOptionalQueryParameters(string* target) { const char* sep = (target->find('?') == string::npos) ? "?" : "&"; - if (_have_language_code_) { - StrAppend(target, sep, "languageCode=", - client::CppValueToEscapedUrlValue( - language_code_)); - sep = "&"; - } if (_have_app_filter_extensions_) { StrAppend(target, sep, "appFilterExtensions=", client::CppValueToEscapedUrlValue( @@ -290,6 +284,12 @@ util::Status AppsResource_ListMethod::AppendOptionalQueryParameters(string* targ app_filter_mime_types_)); sep = "&"; } + if (_have_language_code_) { + StrAppend(target, sep, "languageCode=", + client::CppValueToEscapedUrlValue( + language_code_)); + sep = "&"; + } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status AppsResource_ListMethod::AppendVariable( @@ -307,15 +307,33 @@ ChangesResource_GetMethod::ChangesResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "changes/{changeId}")), - change_id_(change_id.as_string()) { + "changes/{changeId}"), + change_id_(change_id.as_string()), + supports_team_drives_(false), + _have_supports_team_drives_(false), + _have_team_drive_id_(false) { } // Standard destructor. ChangesResource_GetMethod::~ChangesResource_GetMethod() { } - +util::Status ChangesResource_GetMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + if (_have_team_drive_id_) { + StrAppend(target, sep, "teamDriveId=", + client::CppValueToEscapedUrlValue( + team_drive_id_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status ChangesResource_GetMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -330,22 +348,70 @@ util::Status ChangesResource_GetMethod::AppendVariable( } +// Standard constructor. +ChangesResource_GetStartPageTokenMethod::ChangesResource_GetStartPageTokenMethod( + const DriveService* _service_, client::AuthorizationCredential* _credential_) + : DriveServiceBaseRequest( + _service_, _credential_, + client::HttpRequest::GET, + "changes/startPageToken"), + supports_team_drives_(false), + _have_supports_team_drives_(false), + _have_team_drive_id_(false) { +} + +// Standard destructor. +ChangesResource_GetStartPageTokenMethod::~ChangesResource_GetStartPageTokenMethod() { +} + +util::Status ChangesResource_GetStartPageTokenMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + if (_have_team_drive_id_) { + StrAppend(target, sep, "teamDriveId=", + client::CppValueToEscapedUrlValue( + team_drive_id_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} +util::Status ChangesResource_GetStartPageTokenMethod::AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target) { + return DriveServiceBaseRequest::AppendVariable( + variable_name, config, target); +} + + // Standard constructor. ChangesResource_ListMethod::ChangesResource_ListMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_) : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "changes")), - include_subscribed_(true), + "changes"), + include_corpus_removals_(false), include_deleted_(true), + include_subscribed_(true), + include_team_drive_items_(false), max_results_(100), - _have_include_subscribed_(false), + supports_team_drives_(false), + _have_include_corpus_removals_(false), _have_include_deleted_(false), + _have_include_subscribed_(false), + _have_include_team_drive_items_(false), _have_max_results_(false), _have_page_token_(false), _have_spaces_(false), - _have_start_change_id_(false) { + _have_start_change_id_(false), + _have_supports_team_drives_(false), + _have_team_drive_id_(false) { } // Standard destructor. @@ -354,10 +420,10 @@ ChangesResource_ListMethod::~ChangesResource_ListMethod() { util::Status ChangesResource_ListMethod::AppendOptionalQueryParameters(string* target) { const char* sep = (target->find('?') == string::npos) ? "?" : "&"; - if (_have_include_subscribed_) { - StrAppend(target, sep, "includeSubscribed=", + if (_have_include_corpus_removals_) { + StrAppend(target, sep, "includeCorpusRemovals=", client::CppValueToEscapedUrlValue( - include_subscribed_)); + include_corpus_removals_)); sep = "&"; } if (_have_include_deleted_) { @@ -366,6 +432,18 @@ util::Status ChangesResource_ListMethod::AppendOptionalQueryParameters(string* t include_deleted_)); sep = "&"; } + if (_have_include_subscribed_) { + StrAppend(target, sep, "includeSubscribed=", + client::CppValueToEscapedUrlValue( + include_subscribed_)); + sep = "&"; + } + if (_have_include_team_drive_items_) { + StrAppend(target, sep, "includeTeamDriveItems=", + client::CppValueToEscapedUrlValue( + include_team_drive_items_)); + sep = "&"; + } if (_have_max_results_) { StrAppend(target, sep, "maxResults=", client::CppValueToEscapedUrlValue( @@ -390,6 +468,18 @@ util::Status ChangesResource_ListMethod::AppendOptionalQueryParameters(string* t start_change_id_)); sep = "&"; } + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + if (_have_team_drive_id_) { + StrAppend(target, sep, "teamDriveId=", + client::CppValueToEscapedUrlValue( + team_drive_id_)); + sep = "&"; + } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status ChangesResource_ListMethod::AppendVariable( @@ -407,16 +497,23 @@ ChangesResource_WatchMethod::ChangesResource_WatchMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "changes/watch")), - include_subscribed_(true), + "changes/watch"), + include_corpus_removals_(false), include_deleted_(true), + include_subscribed_(true), + include_team_drive_items_(false), max_results_(100), - _have_include_subscribed_(false), + supports_team_drives_(false), + _have_include_corpus_removals_(false), _have_include_deleted_(false), + _have_include_subscribed_(false), + _have_include_team_drive_items_(false), _have_max_results_(false), _have_page_token_(false), _have_spaces_(false), - _have_start_change_id_(false) { + _have_start_change_id_(false), + _have_supports_team_drives_(false), + _have_team_drive_id_(false) { AddJsonContentToRequest(&__request_content__); } @@ -426,10 +523,10 @@ ChangesResource_WatchMethod::~ChangesResource_WatchMethod() { util::Status ChangesResource_WatchMethod::AppendOptionalQueryParameters(string* target) { const char* sep = (target->find('?') == string::npos) ? "?" : "&"; - if (_have_include_subscribed_) { - StrAppend(target, sep, "includeSubscribed=", + if (_have_include_corpus_removals_) { + StrAppend(target, sep, "includeCorpusRemovals=", client::CppValueToEscapedUrlValue( - include_subscribed_)); + include_corpus_removals_)); sep = "&"; } if (_have_include_deleted_) { @@ -438,6 +535,18 @@ util::Status ChangesResource_WatchMethod::AppendOptionalQueryParameters(string* include_deleted_)); sep = "&"; } + if (_have_include_subscribed_) { + StrAppend(target, sep, "includeSubscribed=", + client::CppValueToEscapedUrlValue( + include_subscribed_)); + sep = "&"; + } + if (_have_include_team_drive_items_) { + StrAppend(target, sep, "includeTeamDriveItems=", + client::CppValueToEscapedUrlValue( + include_team_drive_items_)); + sep = "&"; + } if (_have_max_results_) { StrAppend(target, sep, "maxResults=", client::CppValueToEscapedUrlValue( @@ -462,6 +571,18 @@ util::Status ChangesResource_WatchMethod::AppendOptionalQueryParameters(string* start_change_id_)); sep = "&"; } + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + if (_have_team_drive_id_) { + StrAppend(target, sep, "teamDriveId=", + client::CppValueToEscapedUrlValue( + team_drive_id_)); + sep = "&"; + } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status ChangesResource_WatchMethod::AppendVariable( @@ -479,7 +600,7 @@ ChannelsResource_StopMethod::ChannelsResource_StopMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "channels/stop")) { + "channels/stop") { AddJsonContentToRequest(&__request_content__); } @@ -494,7 +615,7 @@ ChildrenResource_DeleteMethod::ChildrenResource_DeleteMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::DELETE, - StrCat(_service_->service_url(), "files/{folderId}/children/{childId}")), + "files/{folderId}/children/{childId}"), folder_id_(folder_id.as_string()), child_id_(child_id.as_string()) { } @@ -529,7 +650,7 @@ ChildrenResource_GetMethod::ChildrenResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{folderId}/children/{childId}")), + "files/{folderId}/children/{childId}"), folder_id_(folder_id.as_string()), child_id_(child_id.as_string()) { } @@ -564,8 +685,10 @@ ChildrenResource_InsertMethod::ChildrenResource_InsertMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{folderId}/children")), - folder_id_(folder_id.as_string()) { + "files/{folderId}/children"), + folder_id_(folder_id.as_string()), + supports_team_drives_(false), + _have_supports_team_drives_(false) { AddJsonContentToRequest(&__request_content__); } @@ -573,7 +696,16 @@ ChildrenResource_InsertMethod::ChildrenResource_InsertMethod( ChildrenResource_InsertMethod::~ChildrenResource_InsertMethod() { } - +util::Status ChildrenResource_InsertMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status ChildrenResource_InsertMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -594,13 +726,13 @@ ChildrenResource_ListMethod::ChildrenResource_ListMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{folderId}/children")), + "files/{folderId}/children"), folder_id_(folder_id.as_string()), max_results_(100), + _have_max_results_(false), _have_order_by_(false), _have_page_token_(false), - _have_q_(false), - _have_max_results_(false) { + _have_q_(false) { } // Standard destructor. @@ -609,6 +741,12 @@ ChildrenResource_ListMethod::~ChildrenResource_ListMethod() { util::Status ChildrenResource_ListMethod::AppendOptionalQueryParameters(string* target) { const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_max_results_) { + StrAppend(target, sep, "maxResults=", + client::CppValueToEscapedUrlValue( + max_results_)); + sep = "&"; + } if (_have_order_by_) { StrAppend(target, sep, "orderBy=", client::CppValueToEscapedUrlValue( @@ -627,12 +765,6 @@ util::Status ChildrenResource_ListMethod::AppendOptionalQueryParameters(string* q_)); sep = "&"; } - if (_have_max_results_) { - StrAppend(target, sep, "maxResults=", - client::CppValueToEscapedUrlValue( - max_results_)); - sep = "&"; - } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status ChildrenResource_ListMethod::AppendVariable( @@ -655,7 +787,7 @@ CommentsResource_DeleteMethod::CommentsResource_DeleteMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::DELETE, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}")), + "files/{fileId}/comments/{commentId}"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()) { } @@ -690,7 +822,7 @@ CommentsResource_GetMethod::CommentsResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}")), + "files/{fileId}/comments/{commentId}"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()), include_deleted_(false), @@ -736,7 +868,7 @@ CommentsResource_InsertMethod::CommentsResource_InsertMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/comments")), + "files/{fileId}/comments"), file_id_(file_id.as_string()) { AddJsonContentToRequest(&__request_content__); } @@ -766,14 +898,14 @@ CommentsResource_ListMethod::CommentsResource_ListMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/comments")), + "files/{fileId}/comments"), file_id_(file_id.as_string()), include_deleted_(false), max_results_(20), - _have_page_token_(false), - _have_updated_min_(false), _have_include_deleted_(false), - _have_max_results_(false) { + _have_max_results_(false), + _have_page_token_(false), + _have_updated_min_(false) { } // Standard destructor. @@ -782,18 +914,6 @@ CommentsResource_ListMethod::~CommentsResource_ListMethod() { util::Status CommentsResource_ListMethod::AppendOptionalQueryParameters(string* target) { const char* sep = (target->find('?') == string::npos) ? "?" : "&"; - if (_have_page_token_) { - StrAppend(target, sep, "pageToken=", - client::CppValueToEscapedUrlValue( - page_token_)); - sep = "&"; - } - if (_have_updated_min_) { - StrAppend(target, sep, "updatedMin=", - client::CppValueToEscapedUrlValue( - updated_min_)); - sep = "&"; - } if (_have_include_deleted_) { StrAppend(target, sep, "includeDeleted=", client::CppValueToEscapedUrlValue( @@ -806,6 +926,18 @@ util::Status CommentsResource_ListMethod::AppendOptionalQueryParameters(string* max_results_)); sep = "&"; } + if (_have_page_token_) { + StrAppend(target, sep, "pageToken=", + client::CppValueToEscapedUrlValue( + page_token_)); + sep = "&"; + } + if (_have_updated_min_) { + StrAppend(target, sep, "updatedMin=", + client::CppValueToEscapedUrlValue( + updated_min_)); + sep = "&"; + } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status CommentsResource_ListMethod::AppendVariable( @@ -828,7 +960,7 @@ CommentsResource_PatchMethod::CommentsResource_PatchMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PATCH, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}")), + "files/{fileId}/comments/{commentId}"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()) { AddJsonContentToRequest(&__request_content__); @@ -864,7 +996,7 @@ CommentsResource_UpdateMethod::CommentsResource_UpdateMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PUT, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}")), + "files/{fileId}/comments/{commentId}"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()) { AddJsonContentToRequest(&__request_content__); @@ -900,19 +1032,21 @@ FilesResource_CopyMethod::FilesResource_CopyMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/copy")), + "files/{fileId}/copy"), file_id_(file_id.as_string()), convert_(false), - visibility_("DEFAULT"), - pinned_(false), ocr_(false), + pinned_(false), + supports_team_drives_(false), + visibility_("DEFAULT"), _have_convert_(false), + _have_ocr_(false), _have_ocr_language_(false), - _have_visibility_(false), _have_pinned_(false), - _have_ocr_(false), + _have_supports_team_drives_(false), + _have_timed_text_language_(false), _have_timed_text_track_name_(false), - _have_timed_text_language_(false) { + _have_visibility_(false) { AddJsonContentToRequest(&__request_content__); } @@ -928,16 +1062,16 @@ util::Status FilesResource_CopyMethod::AppendOptionalQueryParameters(string* tar convert_)); sep = "&"; } - if (_have_ocr_language_) { - StrAppend(target, sep, "ocrLanguage=", + if (_have_ocr_) { + StrAppend(target, sep, "ocr=", client::CppValueToEscapedUrlValue( - ocr_language_)); + ocr_)); sep = "&"; } - if (_have_visibility_) { - StrAppend(target, sep, "visibility=", + if (_have_ocr_language_) { + StrAppend(target, sep, "ocrLanguage=", client::CppValueToEscapedUrlValue( - visibility_)); + ocr_language_)); sep = "&"; } if (_have_pinned_) { @@ -946,10 +1080,16 @@ util::Status FilesResource_CopyMethod::AppendOptionalQueryParameters(string* tar pinned_)); sep = "&"; } - if (_have_ocr_) { - StrAppend(target, sep, "ocr=", + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", client::CppValueToEscapedUrlValue( - ocr_)); + supports_team_drives_)); + sep = "&"; + } + if (_have_timed_text_language_) { + StrAppend(target, sep, "timedTextLanguage=", + client::CppValueToEscapedUrlValue( + timed_text_language_)); sep = "&"; } if (_have_timed_text_track_name_) { @@ -958,10 +1098,10 @@ util::Status FilesResource_CopyMethod::AppendOptionalQueryParameters(string* tar timed_text_track_name_)); sep = "&"; } - if (_have_timed_text_language_) { - StrAppend(target, sep, "timedTextLanguage=", + if (_have_visibility_) { + StrAppend(target, sep, "visibility=", client::CppValueToEscapedUrlValue( - timed_text_language_)); + visibility_)); sep = "&"; } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); @@ -986,15 +1126,26 @@ FilesResource_DeleteMethod::FilesResource_DeleteMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::DELETE, - StrCat(_service_->service_url(), "files/{fileId}")), - file_id_(file_id.as_string()) { + "files/{fileId}"), + file_id_(file_id.as_string()), + supports_team_drives_(false), + _have_supports_team_drives_(false) { } // Standard destructor. FilesResource_DeleteMethod::~FilesResource_DeleteMethod() { } - +util::Status FilesResource_DeleteMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status FilesResource_DeleteMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -1015,7 +1166,7 @@ FilesResource_EmptyTrashMethod::FilesResource_EmptyTrashMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::DELETE, - StrCat(_service_->service_url(), "files/trash")) { + "files/trash") { } // Standard destructor. @@ -1023,13 +1174,50 @@ FilesResource_EmptyTrashMethod::~FilesResource_EmptyTrashMethod() { } +// Standard constructor. +FilesResource_ExportMethod::FilesResource_ExportMethod( + const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, const StringPiece& mime_type) + : DriveServiceBaseRequest( + _service_, _credential_, + client::HttpRequest::GET, + "files/{fileId}/export"), + file_id_(file_id.as_string()), + mime_type_(mime_type.as_string()) { +} + +// Standard destructor. +FilesResource_ExportMethod::~FilesResource_ExportMethod() { +} + +util::Status FilesResource_ExportMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + StrAppend(target, sep, "mimeType=", + client::CppValueToEscapedUrlValue( + mime_type_)); + sep = "&"; + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} +util::Status FilesResource_ExportMethod::AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target) { + if (variable_name == "fileId") { + client::UriTemplate::AppendValue( + file_id_, config, target); + return client::StatusOk(); + } + return DriveServiceBaseRequest::AppendVariable( + variable_name, config, target); +} + + // Standard constructor. FilesResource_GenerateIdsMethod::FilesResource_GenerateIdsMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_) : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/generateIds")), + "files/generateIds"), max_results_(10), space_("drive"), _have_max_results_(false), @@ -1071,14 +1259,16 @@ FilesResource_GetMethod::FilesResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}")), + "files/{fileId}"), file_id_(file_id.as_string()), acknowledge_abuse_(false), + supports_team_drives_(false), update_viewed_date_(false), _have_acknowledge_abuse_(false), - _have_update_viewed_date_(false), + _have_projection_(false), _have_revision_id_(false), - _have_projection_(false) { + _have_supports_team_drives_(false), + _have_update_viewed_date_(false) { } // Standard destructor. @@ -1093,10 +1283,10 @@ util::Status FilesResource_GetMethod::AppendOptionalQueryParameters(string* targ acknowledge_abuse_)); sep = "&"; } - if (_have_update_viewed_date_) { - StrAppend(target, sep, "updateViewedDate=", + if (_have_projection_) { + StrAppend(target, sep, "projection=", client::CppValueToEscapedUrlValue( - update_viewed_date_)); + projection_)); sep = "&"; } if (_have_revision_id_) { @@ -1105,10 +1295,16 @@ util::Status FilesResource_GetMethod::AppendOptionalQueryParameters(string* targ revision_id_)); sep = "&"; } - if (_have_projection_) { - StrAppend(target, sep, "projection=", + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", client::CppValueToEscapedUrlValue( - projection_)); + supports_team_drives_)); + sep = "&"; + } + if (_have_update_viewed_date_) { + StrAppend(target, sep, "updateViewedDate=", + client::CppValueToEscapedUrlValue( + update_viewed_date_)); sep = "&"; } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); @@ -1146,20 +1342,22 @@ FilesResource_InsertMethod::FilesResource_InsertMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files")), + "files"), convert_(false), + ocr_(false), + pinned_(false), + supports_team_drives_(false), use_content_as_indexable_text_(false), visibility_("DEFAULT"), - pinned_(false), - ocr_(false), _have_convert_(false), - _have_use_content_as_indexable_text_(false), + _have_ocr_(false), _have_ocr_language_(false), - _have_visibility_(false), _have_pinned_(false), - _have_ocr_(false), + _have_supports_team_drives_(false), + _have_timed_text_language_(false), _have_timed_text_track_name_(false), - _have_timed_text_language_(false) { + _have_use_content_as_indexable_text_(false), + _have_visibility_(false) { uploader_.reset(new client::MediaUploader( &SIMPLE_MEDIA_UPLOAD, _service_->url_root(), @@ -1172,20 +1370,22 @@ FilesResource_InsertMethod::FilesResource_InsertMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files")), + "files"), convert_(false), + ocr_(false), + pinned_(false), + supports_team_drives_(false), use_content_as_indexable_text_(false), visibility_("DEFAULT"), - pinned_(false), - ocr_(false), _have_convert_(false), - _have_use_content_as_indexable_text_(false), + _have_ocr_(false), _have_ocr_language_(false), - _have_visibility_(false), _have_pinned_(false), - _have_ocr_(false), + _have_supports_team_drives_(false), + _have_timed_text_language_(false), _have_timed_text_track_name_(false), - _have_timed_text_language_(false) { + _have_use_content_as_indexable_text_(false), + _have_visibility_(false) { if (_media_content_reader_) { client::MediaUploader* uploader = new client::MediaUploader( @@ -1216,10 +1416,10 @@ util::Status FilesResource_InsertMethod::AppendOptionalQueryParameters(string* t convert_)); sep = "&"; } - if (_have_use_content_as_indexable_text_) { - StrAppend(target, sep, "useContentAsIndexableText=", + if (_have_ocr_) { + StrAppend(target, sep, "ocr=", client::CppValueToEscapedUrlValue( - use_content_as_indexable_text_)); + ocr_)); sep = "&"; } if (_have_ocr_language_) { @@ -1228,22 +1428,22 @@ util::Status FilesResource_InsertMethod::AppendOptionalQueryParameters(string* t ocr_language_)); sep = "&"; } - if (_have_visibility_) { - StrAppend(target, sep, "visibility=", - client::CppValueToEscapedUrlValue( - visibility_)); - sep = "&"; - } if (_have_pinned_) { StrAppend(target, sep, "pinned=", client::CppValueToEscapedUrlValue( pinned_)); sep = "&"; } - if (_have_ocr_) { - StrAppend(target, sep, "ocr=", + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", client::CppValueToEscapedUrlValue( - ocr_)); + supports_team_drives_)); + sep = "&"; + } + if (_have_timed_text_language_) { + StrAppend(target, sep, "timedTextLanguage=", + client::CppValueToEscapedUrlValue( + timed_text_language_)); sep = "&"; } if (_have_timed_text_track_name_) { @@ -1252,10 +1452,16 @@ util::Status FilesResource_InsertMethod::AppendOptionalQueryParameters(string* t timed_text_track_name_)); sep = "&"; } - if (_have_timed_text_language_) { - StrAppend(target, sep, "timedTextLanguage=", + if (_have_use_content_as_indexable_text_) { + StrAppend(target, sep, "useContentAsIndexableText=", client::CppValueToEscapedUrlValue( - timed_text_language_)); + use_content_as_indexable_text_)); + sep = "&"; + } + if (_have_visibility_) { + StrAppend(target, sep, "visibility=", + client::CppValueToEscapedUrlValue( + visibility_)); sep = "&"; } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); @@ -1275,15 +1481,21 @@ FilesResource_ListMethod::FilesResource_ListMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files")), + "files"), + include_team_drive_items_(false), max_results_(100), + supports_team_drives_(false), + _have_corpora_(false), + _have_corpus_(false), + _have_include_team_drive_items_(false), + _have_max_results_(false), _have_order_by_(false), + _have_page_token_(false), _have_projection_(false), - _have_max_results_(false), _have_q_(false), - _have_page_token_(false), _have_spaces_(false), - _have_corpus_(false) { + _have_supports_team_drives_(false), + _have_team_drive_id_(false) { } // Standard destructor. @@ -1292,16 +1504,22 @@ FilesResource_ListMethod::~FilesResource_ListMethod() { util::Status FilesResource_ListMethod::AppendOptionalQueryParameters(string* target) { const char* sep = (target->find('?') == string::npos) ? "?" : "&"; - if (_have_order_by_) { - StrAppend(target, sep, "orderBy=", + if (_have_corpora_) { + StrAppend(target, sep, "corpora=", client::CppValueToEscapedUrlValue( - order_by_)); + corpora_)); sep = "&"; } - if (_have_projection_) { - StrAppend(target, sep, "projection=", + if (_have_corpus_) { + StrAppend(target, sep, "corpus=", client::CppValueToEscapedUrlValue( - projection_)); + corpus_)); + sep = "&"; + } + if (_have_include_team_drive_items_) { + StrAppend(target, sep, "includeTeamDriveItems=", + client::CppValueToEscapedUrlValue( + include_team_drive_items_)); sep = "&"; } if (_have_max_results_) { @@ -1310,10 +1528,10 @@ util::Status FilesResource_ListMethod::AppendOptionalQueryParameters(string* tar max_results_)); sep = "&"; } - if (_have_q_) { - StrAppend(target, sep, "q=", + if (_have_order_by_) { + StrAppend(target, sep, "orderBy=", client::CppValueToEscapedUrlValue( - q_)); + order_by_)); sep = "&"; } if (_have_page_token_) { @@ -1322,16 +1540,34 @@ util::Status FilesResource_ListMethod::AppendOptionalQueryParameters(string* tar page_token_)); sep = "&"; } + if (_have_projection_) { + StrAppend(target, sep, "projection=", + client::CppValueToEscapedUrlValue( + projection_)); + sep = "&"; + } + if (_have_q_) { + StrAppend(target, sep, "q=", + client::CppValueToEscapedUrlValue( + q_)); + sep = "&"; + } if (_have_spaces_) { StrAppend(target, sep, "spaces=", client::CppValueToEscapedUrlValue( spaces_)); sep = "&"; } - if (_have_corpus_) { - StrAppend(target, sep, "corpus=", + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", client::CppValueToEscapedUrlValue( - corpus_)); + supports_team_drives_)); + sep = "&"; + } + if (_have_team_drive_id_) { + StrAppend(target, sep, "teamDriveId=", + client::CppValueToEscapedUrlValue( + team_drive_id_)); sep = "&"; } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); @@ -1351,28 +1587,30 @@ FilesResource_PatchMethod::FilesResource_PatchMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PATCH, - StrCat(_service_->service_url(), "files/{fileId}")), + "files/{fileId}"), file_id_(file_id.as_string()), - update_viewed_date_(true), - set_modified_date_(false), - use_content_as_indexable_text_(false), convert_(false), - pinned_(false), new_revision_(true), ocr_(false), + pinned_(false), + set_modified_date_(false), + supports_team_drives_(false), + update_viewed_date_(true), + use_content_as_indexable_text_(false), _have_add_parents_(false), - _have_modified_date_behavior_(false), - _have_remove_parents_(false), - _have_update_viewed_date_(false), - _have_set_modified_date_(false), - _have_use_content_as_indexable_text_(false), _have_convert_(false), - _have_ocr_language_(false), - _have_pinned_(false), + _have_modified_date_behavior_(false), _have_new_revision_(false), _have_ocr_(false), + _have_ocr_language_(false), + _have_pinned_(false), + _have_remove_parents_(false), + _have_set_modified_date_(false), + _have_supports_team_drives_(false), _have_timed_text_language_(false), - _have_timed_text_track_name_(false) { + _have_timed_text_track_name_(false), + _have_update_viewed_date_(false), + _have_use_content_as_indexable_text_(false) { AddJsonContentToRequest(&__request_content__); } @@ -1388,40 +1626,28 @@ util::Status FilesResource_PatchMethod::AppendOptionalQueryParameters(string* ta add_parents_)); sep = "&"; } - if (_have_modified_date_behavior_) { - StrAppend(target, sep, "modifiedDateBehavior=", - client::CppValueToEscapedUrlValue( - modified_date_behavior_)); - sep = "&"; - } - if (_have_remove_parents_) { - StrAppend(target, sep, "removeParents=", - client::CppValueToEscapedUrlValue( - remove_parents_)); - sep = "&"; - } - if (_have_update_viewed_date_) { - StrAppend(target, sep, "updateViewedDate=", + if (_have_convert_) { + StrAppend(target, sep, "convert=", client::CppValueToEscapedUrlValue( - update_viewed_date_)); + convert_)); sep = "&"; } - if (_have_set_modified_date_) { - StrAppend(target, sep, "setModifiedDate=", + if (_have_modified_date_behavior_) { + StrAppend(target, sep, "modifiedDateBehavior=", client::CppValueToEscapedUrlValue( - set_modified_date_)); + modified_date_behavior_)); sep = "&"; } - if (_have_use_content_as_indexable_text_) { - StrAppend(target, sep, "useContentAsIndexableText=", + if (_have_new_revision_) { + StrAppend(target, sep, "newRevision=", client::CppValueToEscapedUrlValue( - use_content_as_indexable_text_)); + new_revision_)); sep = "&"; } - if (_have_convert_) { - StrAppend(target, sep, "convert=", + if (_have_ocr_) { + StrAppend(target, sep, "ocr=", client::CppValueToEscapedUrlValue( - convert_)); + ocr_)); sep = "&"; } if (_have_ocr_language_) { @@ -1436,16 +1662,22 @@ util::Status FilesResource_PatchMethod::AppendOptionalQueryParameters(string* ta pinned_)); sep = "&"; } - if (_have_new_revision_) { - StrAppend(target, sep, "newRevision=", + if (_have_remove_parents_) { + StrAppend(target, sep, "removeParents=", client::CppValueToEscapedUrlValue( - new_revision_)); + remove_parents_)); sep = "&"; } - if (_have_ocr_) { - StrAppend(target, sep, "ocr=", + if (_have_set_modified_date_) { + StrAppend(target, sep, "setModifiedDate=", client::CppValueToEscapedUrlValue( - ocr_)); + set_modified_date_)); + sep = "&"; + } + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); sep = "&"; } if (_have_timed_text_language_) { @@ -1460,6 +1692,18 @@ util::Status FilesResource_PatchMethod::AppendOptionalQueryParameters(string* ta timed_text_track_name_)); sep = "&"; } + if (_have_update_viewed_date_) { + StrAppend(target, sep, "updateViewedDate=", + client::CppValueToEscapedUrlValue( + update_viewed_date_)); + sep = "&"; + } + if (_have_use_content_as_indexable_text_) { + StrAppend(target, sep, "useContentAsIndexableText=", + client::CppValueToEscapedUrlValue( + use_content_as_indexable_text_)); + sep = "&"; + } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status FilesResource_PatchMethod::AppendVariable( @@ -1482,15 +1726,26 @@ FilesResource_TouchMethod::FilesResource_TouchMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/touch")), - file_id_(file_id.as_string()) { + "files/{fileId}/touch"), + file_id_(file_id.as_string()), + supports_team_drives_(false), + _have_supports_team_drives_(false) { } // Standard destructor. FilesResource_TouchMethod::~FilesResource_TouchMethod() { } - +util::Status FilesResource_TouchMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status FilesResource_TouchMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -1511,15 +1766,26 @@ FilesResource_TrashMethod::FilesResource_TrashMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/trash")), - file_id_(file_id.as_string()) { + "files/{fileId}/trash"), + file_id_(file_id.as_string()), + supports_team_drives_(false), + _have_supports_team_drives_(false) { } // Standard destructor. FilesResource_TrashMethod::~FilesResource_TrashMethod() { } - +util::Status FilesResource_TrashMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status FilesResource_TrashMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -1540,15 +1806,26 @@ FilesResource_UntrashMethod::FilesResource_UntrashMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/untrash")), - file_id_(file_id.as_string()) { + "files/{fileId}/untrash"), + file_id_(file_id.as_string()), + supports_team_drives_(false), + _have_supports_team_drives_(false) { } // Standard destructor. FilesResource_UntrashMethod::~FilesResource_UntrashMethod() { } - +util::Status FilesResource_UntrashMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status FilesResource_UntrashMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -1582,28 +1859,30 @@ FilesResource_UpdateMethod::FilesResource_UpdateMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PUT, - StrCat(_service_->service_url(), "files/{fileId}")), + "files/{fileId}"), file_id_(file_id.as_string()), - update_viewed_date_(true), - set_modified_date_(false), - use_content_as_indexable_text_(false), convert_(false), - pinned_(false), new_revision_(true), ocr_(false), + pinned_(false), + set_modified_date_(false), + supports_team_drives_(false), + update_viewed_date_(true), + use_content_as_indexable_text_(false), _have_add_parents_(false), - _have_modified_date_behavior_(false), - _have_remove_parents_(false), - _have_update_viewed_date_(false), - _have_set_modified_date_(false), - _have_use_content_as_indexable_text_(false), _have_convert_(false), - _have_ocr_language_(false), - _have_pinned_(false), + _have_modified_date_behavior_(false), _have_new_revision_(false), _have_ocr_(false), + _have_ocr_language_(false), + _have_pinned_(false), + _have_remove_parents_(false), + _have_set_modified_date_(false), + _have_supports_team_drives_(false), _have_timed_text_language_(false), - _have_timed_text_track_name_(false) { + _have_timed_text_track_name_(false), + _have_update_viewed_date_(false), + _have_use_content_as_indexable_text_(false) { uploader_.reset(new client::MediaUploader( &SIMPLE_MEDIA_UPLOAD, _service_->url_root(), @@ -1616,28 +1895,30 @@ FilesResource_UpdateMethod::FilesResource_UpdateMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PUT, - StrCat(_service_->service_url(), "files/{fileId}")), + "files/{fileId}"), file_id_(file_id.as_string()), - update_viewed_date_(true), - set_modified_date_(false), - use_content_as_indexable_text_(false), convert_(false), - pinned_(false), new_revision_(true), ocr_(false), + pinned_(false), + set_modified_date_(false), + supports_team_drives_(false), + update_viewed_date_(true), + use_content_as_indexable_text_(false), _have_add_parents_(false), - _have_modified_date_behavior_(false), - _have_remove_parents_(false), - _have_update_viewed_date_(false), - _have_set_modified_date_(false), - _have_use_content_as_indexable_text_(false), _have_convert_(false), - _have_ocr_language_(false), - _have_pinned_(false), + _have_modified_date_behavior_(false), _have_new_revision_(false), _have_ocr_(false), + _have_ocr_language_(false), + _have_pinned_(false), + _have_remove_parents_(false), + _have_set_modified_date_(false), + _have_supports_team_drives_(false), _have_timed_text_language_(false), - _have_timed_text_track_name_(false) { + _have_timed_text_track_name_(false), + _have_update_viewed_date_(false), + _have_use_content_as_indexable_text_(false) { if (_media_content_reader_) { client::MediaUploader* uploader = new client::MediaUploader( @@ -1668,40 +1949,28 @@ util::Status FilesResource_UpdateMethod::AppendOptionalQueryParameters(string* t add_parents_)); sep = "&"; } - if (_have_modified_date_behavior_) { - StrAppend(target, sep, "modifiedDateBehavior=", - client::CppValueToEscapedUrlValue( - modified_date_behavior_)); - sep = "&"; - } - if (_have_remove_parents_) { - StrAppend(target, sep, "removeParents=", - client::CppValueToEscapedUrlValue( - remove_parents_)); - sep = "&"; - } - if (_have_update_viewed_date_) { - StrAppend(target, sep, "updateViewedDate=", + if (_have_convert_) { + StrAppend(target, sep, "convert=", client::CppValueToEscapedUrlValue( - update_viewed_date_)); + convert_)); sep = "&"; } - if (_have_set_modified_date_) { - StrAppend(target, sep, "setModifiedDate=", + if (_have_modified_date_behavior_) { + StrAppend(target, sep, "modifiedDateBehavior=", client::CppValueToEscapedUrlValue( - set_modified_date_)); + modified_date_behavior_)); sep = "&"; } - if (_have_use_content_as_indexable_text_) { - StrAppend(target, sep, "useContentAsIndexableText=", + if (_have_new_revision_) { + StrAppend(target, sep, "newRevision=", client::CppValueToEscapedUrlValue( - use_content_as_indexable_text_)); + new_revision_)); sep = "&"; } - if (_have_convert_) { - StrAppend(target, sep, "convert=", + if (_have_ocr_) { + StrAppend(target, sep, "ocr=", client::CppValueToEscapedUrlValue( - convert_)); + ocr_)); sep = "&"; } if (_have_ocr_language_) { @@ -1716,16 +1985,22 @@ util::Status FilesResource_UpdateMethod::AppendOptionalQueryParameters(string* t pinned_)); sep = "&"; } - if (_have_new_revision_) { - StrAppend(target, sep, "newRevision=", + if (_have_remove_parents_) { + StrAppend(target, sep, "removeParents=", client::CppValueToEscapedUrlValue( - new_revision_)); + remove_parents_)); sep = "&"; } - if (_have_ocr_) { - StrAppend(target, sep, "ocr=", + if (_have_set_modified_date_) { + StrAppend(target, sep, "setModifiedDate=", client::CppValueToEscapedUrlValue( - ocr_)); + set_modified_date_)); + sep = "&"; + } + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); sep = "&"; } if (_have_timed_text_language_) { @@ -1740,6 +2015,18 @@ util::Status FilesResource_UpdateMethod::AppendOptionalQueryParameters(string* t timed_text_track_name_)); sep = "&"; } + if (_have_update_viewed_date_) { + StrAppend(target, sep, "updateViewedDate=", + client::CppValueToEscapedUrlValue( + update_viewed_date_)); + sep = "&"; + } + if (_have_use_content_as_indexable_text_) { + StrAppend(target, sep, "useContentAsIndexableText=", + client::CppValueToEscapedUrlValue( + use_content_as_indexable_text_)); + sep = "&"; + } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status FilesResource_UpdateMethod::AppendVariable( @@ -1762,14 +2049,16 @@ FilesResource_WatchMethod::FilesResource_WatchMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/watch")), + "files/{fileId}/watch"), file_id_(file_id.as_string()), acknowledge_abuse_(false), + supports_team_drives_(false), update_viewed_date_(false), _have_acknowledge_abuse_(false), - _have_update_viewed_date_(false), + _have_projection_(false), _have_revision_id_(false), - _have_projection_(false) { + _have_supports_team_drives_(false), + _have_update_viewed_date_(false) { AddJsonContentToRequest(&__request_content__); } @@ -1785,10 +2074,10 @@ util::Status FilesResource_WatchMethod::AppendOptionalQueryParameters(string* ta acknowledge_abuse_)); sep = "&"; } - if (_have_update_viewed_date_) { - StrAppend(target, sep, "updateViewedDate=", + if (_have_projection_) { + StrAppend(target, sep, "projection=", client::CppValueToEscapedUrlValue( - update_viewed_date_)); + projection_)); sep = "&"; } if (_have_revision_id_) { @@ -1797,10 +2086,16 @@ util::Status FilesResource_WatchMethod::AppendOptionalQueryParameters(string* ta revision_id_)); sep = "&"; } - if (_have_projection_) { - StrAppend(target, sep, "projection=", + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + if (_have_update_viewed_date_) { + StrAppend(target, sep, "updateViewedDate=", client::CppValueToEscapedUrlValue( - projection_)); + update_viewed_date_)); sep = "&"; } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); @@ -1825,7 +2120,7 @@ ParentsResource_DeleteMethod::ParentsResource_DeleteMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::DELETE, - StrCat(_service_->service_url(), "files/{fileId}/parents/{parentId}")), + "files/{fileId}/parents/{parentId}"), file_id_(file_id.as_string()), parent_id_(parent_id.as_string()) { } @@ -1860,7 +2155,7 @@ ParentsResource_GetMethod::ParentsResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/parents/{parentId}")), + "files/{fileId}/parents/{parentId}"), file_id_(file_id.as_string()), parent_id_(parent_id.as_string()) { } @@ -1895,8 +2190,10 @@ ParentsResource_InsertMethod::ParentsResource_InsertMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/parents")), - file_id_(file_id.as_string()) { + "files/{fileId}/parents"), + file_id_(file_id.as_string()), + supports_team_drives_(false), + _have_supports_team_drives_(false) { AddJsonContentToRequest(&__request_content__); } @@ -1904,7 +2201,16 @@ ParentsResource_InsertMethod::ParentsResource_InsertMethod( ParentsResource_InsertMethod::~ParentsResource_InsertMethod() { } - +util::Status ParentsResource_InsertMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status ParentsResource_InsertMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -1925,7 +2231,7 @@ ParentsResource_ListMethod::ParentsResource_ListMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/parents")), + "files/{fileId}/parents"), file_id_(file_id.as_string()) { } @@ -1954,16 +2260,27 @@ PermissionsResource_DeleteMethod::PermissionsResource_DeleteMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::DELETE, - StrCat(_service_->service_url(), "files/{fileId}/permissions/{permissionId}")), + "files/{fileId}/permissions/{permissionId}"), file_id_(file_id.as_string()), - permission_id_(permission_id.as_string()) { + permission_id_(permission_id.as_string()), + supports_team_drives_(false), + _have_supports_team_drives_(false) { } // Standard destructor. PermissionsResource_DeleteMethod::~PermissionsResource_DeleteMethod() { } - +util::Status PermissionsResource_DeleteMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status PermissionsResource_DeleteMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -1989,16 +2306,27 @@ PermissionsResource_GetMethod::PermissionsResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/permissions/{permissionId}")), + "files/{fileId}/permissions/{permissionId}"), file_id_(file_id.as_string()), - permission_id_(permission_id.as_string()) { + permission_id_(permission_id.as_string()), + supports_team_drives_(false), + _have_supports_team_drives_(false) { } // Standard destructor. PermissionsResource_GetMethod::~PermissionsResource_GetMethod() { } - +util::Status PermissionsResource_GetMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status PermissionsResource_GetMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -2024,7 +2352,7 @@ PermissionsResource_GetIdForEmailMethod::PermissionsResource_GetIdForEmailMethod : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "permissionIds/{email}")), + "permissionIds/{email}"), email_(email.as_string()) { } @@ -2053,11 +2381,13 @@ PermissionsResource_InsertMethod::PermissionsResource_InsertMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/permissions")), + "files/{fileId}/permissions"), file_id_(file_id.as_string()), send_notification_emails_(true), + supports_team_drives_(false), _have_email_message_(false), - _have_send_notification_emails_(false) { + _have_send_notification_emails_(false), + _have_supports_team_drives_(false) { AddJsonContentToRequest(&__request_content__); } @@ -2079,6 +2409,12 @@ util::Status PermissionsResource_InsertMethod::AppendOptionalQueryParameters(str send_notification_emails_)); sep = "&"; } + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status PermissionsResource_InsertMethod::AppendVariable( @@ -2101,15 +2437,40 @@ PermissionsResource_ListMethod::PermissionsResource_ListMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/permissions")), - file_id_(file_id.as_string()) { + "files/{fileId}/permissions"), + file_id_(file_id.as_string()), + supports_team_drives_(false), + _have_max_results_(false), + _have_page_token_(false), + _have_supports_team_drives_(false) { } // Standard destructor. PermissionsResource_ListMethod::~PermissionsResource_ListMethod() { } - +util::Status PermissionsResource_ListMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_max_results_) { + StrAppend(target, sep, "maxResults=", + client::CppValueToEscapedUrlValue( + max_results_)); + sep = "&"; + } + if (_have_page_token_) { + StrAppend(target, sep, "pageToken=", + client::CppValueToEscapedUrlValue( + page_token_)); + sep = "&"; + } + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status PermissionsResource_ListMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -2130,10 +2491,14 @@ PermissionsResource_PatchMethod::PermissionsResource_PatchMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PATCH, - StrCat(_service_->service_url(), "files/{fileId}/permissions/{permissionId}")), + "files/{fileId}/permissions/{permissionId}"), file_id_(file_id.as_string()), permission_id_(permission_id.as_string()), + remove_expiration_(false), + supports_team_drives_(false), transfer_ownership_(false), + _have_remove_expiration_(false), + _have_supports_team_drives_(false), _have_transfer_ownership_(false) { AddJsonContentToRequest(&__request_content__); } @@ -2144,6 +2509,18 @@ PermissionsResource_PatchMethod::~PermissionsResource_PatchMethod() { util::Status PermissionsResource_PatchMethod::AppendOptionalQueryParameters(string* target) { const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_remove_expiration_) { + StrAppend(target, sep, "removeExpiration=", + client::CppValueToEscapedUrlValue( + remove_expiration_)); + sep = "&"; + } + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } if (_have_transfer_ownership_) { StrAppend(target, sep, "transferOwnership=", client::CppValueToEscapedUrlValue( @@ -2177,10 +2554,14 @@ PermissionsResource_UpdateMethod::PermissionsResource_UpdateMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PUT, - StrCat(_service_->service_url(), "files/{fileId}/permissions/{permissionId}")), + "files/{fileId}/permissions/{permissionId}"), file_id_(file_id.as_string()), permission_id_(permission_id.as_string()), + remove_expiration_(false), + supports_team_drives_(false), transfer_ownership_(false), + _have_remove_expiration_(false), + _have_supports_team_drives_(false), _have_transfer_ownership_(false) { AddJsonContentToRequest(&__request_content__); } @@ -2191,6 +2572,18 @@ PermissionsResource_UpdateMethod::~PermissionsResource_UpdateMethod() { util::Status PermissionsResource_UpdateMethod::AppendOptionalQueryParameters(string* target) { const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_remove_expiration_) { + StrAppend(target, sep, "removeExpiration=", + client::CppValueToEscapedUrlValue( + remove_expiration_)); + sep = "&"; + } + if (_have_supports_team_drives_) { + StrAppend(target, sep, "supportsTeamDrives=", + client::CppValueToEscapedUrlValue( + supports_team_drives_)); + sep = "&"; + } if (_have_transfer_ownership_) { StrAppend(target, sep, "transferOwnership=", client::CppValueToEscapedUrlValue( @@ -2224,7 +2617,7 @@ PropertiesResource_DeleteMethod::PropertiesResource_DeleteMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::DELETE, - StrCat(_service_->service_url(), "files/{fileId}/properties/{propertyKey}")), + "files/{fileId}/properties/{propertyKey}"), file_id_(file_id.as_string()), property_key_(property_key.as_string()), visibility_("private"), @@ -2270,7 +2663,7 @@ PropertiesResource_GetMethod::PropertiesResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/properties/{propertyKey}")), + "files/{fileId}/properties/{propertyKey}"), file_id_(file_id.as_string()), property_key_(property_key.as_string()), visibility_("private"), @@ -2316,7 +2709,7 @@ PropertiesResource_InsertMethod::PropertiesResource_InsertMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/properties")), + "files/{fileId}/properties"), file_id_(file_id.as_string()) { AddJsonContentToRequest(&__request_content__); } @@ -2346,7 +2739,7 @@ PropertiesResource_ListMethod::PropertiesResource_ListMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/properties")), + "files/{fileId}/properties"), file_id_(file_id.as_string()) { } @@ -2375,7 +2768,7 @@ PropertiesResource_PatchMethod::PropertiesResource_PatchMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PATCH, - StrCat(_service_->service_url(), "files/{fileId}/properties/{propertyKey}")), + "files/{fileId}/properties/{propertyKey}"), file_id_(file_id.as_string()), property_key_(property_key.as_string()), visibility_("private"), @@ -2422,7 +2815,7 @@ PropertiesResource_UpdateMethod::PropertiesResource_UpdateMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PUT, - StrCat(_service_->service_url(), "files/{fileId}/properties/{propertyKey}")), + "files/{fileId}/properties/{propertyKey}"), file_id_(file_id.as_string()), property_key_(property_key.as_string()), visibility_("private"), @@ -2469,7 +2862,7 @@ RealtimeResource_GetMethod::RealtimeResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/realtime")), + "files/{fileId}/realtime"), file_id_(file_id.as_string()), _have_revision_(false) { } @@ -2521,7 +2914,7 @@ RealtimeResource_UpdateMethod::RealtimeResource_UpdateMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PUT, - StrCat(_service_->service_url(), "files/{fileId}/realtime")), + "files/{fileId}/realtime"), file_id_(file_id.as_string()), _have_base_revision_(false) { if (_media_content_reader_) { @@ -2571,7 +2964,7 @@ RepliesResource_DeleteMethod::RepliesResource_DeleteMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::DELETE, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}/replies/{replyId}")), + "files/{fileId}/comments/{commentId}/replies/{replyId}"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()), reply_id_(reply_id.as_string()) { @@ -2612,7 +3005,7 @@ RepliesResource_GetMethod::RepliesResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}/replies/{replyId}")), + "files/{fileId}/comments/{commentId}/replies/{replyId}"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()), reply_id_(reply_id.as_string()), @@ -2664,7 +3057,7 @@ RepliesResource_InsertMethod::RepliesResource_InsertMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::POST, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}/replies")), + "files/{fileId}/comments/{commentId}/replies"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()) { AddJsonContentToRequest(&__request_content__); @@ -2700,14 +3093,14 @@ RepliesResource_ListMethod::RepliesResource_ListMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}/replies")), + "files/{fileId}/comments/{commentId}/replies"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()), include_deleted_(false), max_results_(20), - _have_page_token_(false), _have_include_deleted_(false), - _have_max_results_(false) { + _have_max_results_(false), + _have_page_token_(false) { } // Standard destructor. @@ -2716,12 +3109,6 @@ RepliesResource_ListMethod::~RepliesResource_ListMethod() { util::Status RepliesResource_ListMethod::AppendOptionalQueryParameters(string* target) { const char* sep = (target->find('?') == string::npos) ? "?" : "&"; - if (_have_page_token_) { - StrAppend(target, sep, "pageToken=", - client::CppValueToEscapedUrlValue( - page_token_)); - sep = "&"; - } if (_have_include_deleted_) { StrAppend(target, sep, "includeDeleted=", client::CppValueToEscapedUrlValue( @@ -2734,6 +3121,12 @@ util::Status RepliesResource_ListMethod::AppendOptionalQueryParameters(string* t max_results_)); sep = "&"; } + if (_have_page_token_) { + StrAppend(target, sep, "pageToken=", + client::CppValueToEscapedUrlValue( + page_token_)); + sep = "&"; + } return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); } util::Status RepliesResource_ListMethod::AppendVariable( @@ -2761,7 +3154,7 @@ RepliesResource_PatchMethod::RepliesResource_PatchMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PATCH, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}/replies/{replyId}")), + "files/{fileId}/comments/{commentId}/replies/{replyId}"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()), reply_id_(reply_id.as_string()) { @@ -2803,7 +3196,7 @@ RepliesResource_UpdateMethod::RepliesResource_UpdateMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PUT, - StrCat(_service_->service_url(), "files/{fileId}/comments/{commentId}/replies/{replyId}")), + "files/{fileId}/comments/{commentId}/replies/{replyId}"), file_id_(file_id.as_string()), comment_id_(comment_id.as_string()), reply_id_(reply_id.as_string()) { @@ -2845,7 +3238,7 @@ RevisionsResource_DeleteMethod::RevisionsResource_DeleteMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::DELETE, - StrCat(_service_->service_url(), "files/{fileId}/revisions/{revisionId}")), + "files/{fileId}/revisions/{revisionId}"), file_id_(file_id.as_string()), revision_id_(revision_id.as_string()) { } @@ -2880,7 +3273,7 @@ RevisionsResource_GetMethod::RevisionsResource_GetMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/revisions/{revisionId}")), + "files/{fileId}/revisions/{revisionId}"), file_id_(file_id.as_string()), revision_id_(revision_id.as_string()) { } @@ -2915,15 +3308,33 @@ RevisionsResource_ListMethod::RevisionsResource_ListMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::GET, - StrCat(_service_->service_url(), "files/{fileId}/revisions")), - file_id_(file_id.as_string()) { + "files/{fileId}/revisions"), + file_id_(file_id.as_string()), + max_results_(200), + _have_max_results_(false), + _have_page_token_(false) { } // Standard destructor. RevisionsResource_ListMethod::~RevisionsResource_ListMethod() { } - +util::Status RevisionsResource_ListMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_max_results_) { + StrAppend(target, sep, "maxResults=", + client::CppValueToEscapedUrlValue( + max_results_)); + sep = "&"; + } + if (_have_page_token_) { + StrAppend(target, sep, "pageToken=", + client::CppValueToEscapedUrlValue( + page_token_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} util::Status RevisionsResource_ListMethod::AppendVariable( const StringPiece& variable_name, const client::UriTemplateConfig& config, @@ -2944,7 +3355,7 @@ RevisionsResource_PatchMethod::RevisionsResource_PatchMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PATCH, - StrCat(_service_->service_url(), "files/{fileId}/revisions/{revisionId}")), + "files/{fileId}/revisions/{revisionId}"), file_id_(file_id.as_string()), revision_id_(revision_id.as_string()) { AddJsonContentToRequest(&__request_content__); @@ -2980,7 +3391,7 @@ RevisionsResource_UpdateMethod::RevisionsResource_UpdateMethod( : DriveServiceBaseRequest( _service_, _credential_, client::HttpRequest::PUT, - StrCat(_service_->service_url(), "files/{fileId}/revisions/{revisionId}")), + "files/{fileId}/revisions/{revisionId}"), file_id_(file_id.as_string()), revision_id_(revision_id.as_string()) { AddJsonContentToRequest(&__request_content__); @@ -3010,9 +3421,170 @@ util::Status RevisionsResource_UpdateMethod::AppendVariable( } +// Standard constructor. +TeamdrivesResource_DeleteMethod::TeamdrivesResource_DeleteMethod( + const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& team_drive_id) + : DriveServiceBaseRequest( + _service_, _credential_, + client::HttpRequest::DELETE, + "teamdrives/{teamDriveId}"), + team_drive_id_(team_drive_id.as_string()) { +} + +// Standard destructor. +TeamdrivesResource_DeleteMethod::~TeamdrivesResource_DeleteMethod() { +} + + +util::Status TeamdrivesResource_DeleteMethod::AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target) { + if (variable_name == "teamDriveId") { + client::UriTemplate::AppendValue( + team_drive_id_, config, target); + return client::StatusOk(); + } + return DriveServiceBaseRequest::AppendVariable( + variable_name, config, target); +} + + +// Standard constructor. +TeamdrivesResource_GetMethod::TeamdrivesResource_GetMethod( + const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& team_drive_id) + : DriveServiceBaseRequest( + _service_, _credential_, + client::HttpRequest::GET, + "teamdrives/{teamDriveId}"), + team_drive_id_(team_drive_id.as_string()) { +} + +// Standard destructor. +TeamdrivesResource_GetMethod::~TeamdrivesResource_GetMethod() { +} + + +util::Status TeamdrivesResource_GetMethod::AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target) { + if (variable_name == "teamDriveId") { + client::UriTemplate::AppendValue( + team_drive_id_, config, target); + return client::StatusOk(); + } + return DriveServiceBaseRequest::AppendVariable( + variable_name, config, target); +} + + +// Standard constructor. +TeamdrivesResource_InsertMethod::TeamdrivesResource_InsertMethod( + const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& request_id, const TeamDrive& __request_content__) + : DriveServiceBaseRequest( + _service_, _credential_, + client::HttpRequest::POST, + "teamdrives"), + request_id_(request_id.as_string()) { + AddJsonContentToRequest(&__request_content__); +} + +// Standard destructor. +TeamdrivesResource_InsertMethod::~TeamdrivesResource_InsertMethod() { +} + +util::Status TeamdrivesResource_InsertMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + StrAppend(target, sep, "requestId=", + client::CppValueToEscapedUrlValue( + request_id_)); + sep = "&"; + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} +util::Status TeamdrivesResource_InsertMethod::AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target) { + return DriveServiceBaseRequest::AppendVariable( + variable_name, config, target); +} + + +// Standard constructor. +TeamdrivesResource_ListMethod::TeamdrivesResource_ListMethod( + const DriveService* _service_, client::AuthorizationCredential* _credential_) + : DriveServiceBaseRequest( + _service_, _credential_, + client::HttpRequest::GET, + "teamdrives"), + max_results_(10), + _have_max_results_(false), + _have_page_token_(false) { +} + +// Standard destructor. +TeamdrivesResource_ListMethod::~TeamdrivesResource_ListMethod() { +} + +util::Status TeamdrivesResource_ListMethod::AppendOptionalQueryParameters(string* target) { + const char* sep = (target->find('?') == string::npos) ? "?" : "&"; + if (_have_max_results_) { + StrAppend(target, sep, "maxResults=", + client::CppValueToEscapedUrlValue( + max_results_)); + sep = "&"; + } + if (_have_page_token_) { + StrAppend(target, sep, "pageToken=", + client::CppValueToEscapedUrlValue( + page_token_)); + sep = "&"; + } + return DriveServiceBaseRequest::AppendOptionalQueryParameters(target); +} +util::Status TeamdrivesResource_ListMethod::AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target) { + return DriveServiceBaseRequest::AppendVariable( + variable_name, config, target); +} + + +// Standard constructor. +TeamdrivesResource_UpdateMethod::TeamdrivesResource_UpdateMethod( + const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& team_drive_id, const TeamDrive& __request_content__) + : DriveServiceBaseRequest( + _service_, _credential_, + client::HttpRequest::PUT, + "teamdrives/{teamDriveId}"), + team_drive_id_(team_drive_id.as_string()) { + AddJsonContentToRequest(&__request_content__); +} + +// Standard destructor. +TeamdrivesResource_UpdateMethod::~TeamdrivesResource_UpdateMethod() { +} + + +util::Status TeamdrivesResource_UpdateMethod::AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target) { + if (variable_name == "teamDriveId") { + client::UriTemplate::AppendValue( + team_drive_id_, config, target); + return client::StatusOk(); + } + return DriveServiceBaseRequest::AppendVariable( + variable_name, config, target); +} + + DriveService::DriveService(client::HttpTransport* transport) - : ClientService("https://www.googleapis.com/", "drive/v2/", transport), about_(this), apps_(this), changes_(this), channels_(this), children_(this), comments_(this), files_(this), parents_(this), permissions_(this), properties_(this), realtime_(this), replies_(this), revisions_(this) { + : ClientService("https://www.googleapis.com/", "drive/v2/", transport), about_(this), apps_(this), changes_(this), channels_(this), children_(this), comments_(this), files_(this), parents_(this), permissions_(this), properties_(this), realtime_(this), replies_(this), revisions_(this), teamdrives_(this) { } DriveService::~DriveService() { @@ -3055,6 +3627,11 @@ ChangesResource_GetMethod* DriveService::ChangesResource::NewGetMethod(client::A } +ChangesResource_GetStartPageTokenMethod* DriveService::ChangesResource::NewGetStartPageTokenMethod(client::AuthorizationCredential* _credential_) const { + return new ChangesResource_GetStartPageTokenMethod(service_, _credential_); +} + + ChangesResource_ListMethod* DriveService::ChangesResource::NewListMethod(client::AuthorizationCredential* _credential_) const { return new ChangesResource_ListMethod(service_, _credential_); } @@ -3170,6 +3747,11 @@ FilesResource_EmptyTrashMethod* DriveService::FilesResource::NewEmptyTrashMethod } +FilesResource_ExportMethod* DriveService::FilesResource::NewExportMethod(client::AuthorizationCredential* _credential_, const StringPiece& file_id, const StringPiece& mime_type) const { + return new FilesResource_ExportMethod(service_, _credential_, file_id, mime_type); +} + + FilesResource_GenerateIdsMethod* DriveService::FilesResource::NewGenerateIdsMethod(client::AuthorizationCredential* _credential_) const { return new FilesResource_GenerateIdsMethod(service_, _credential_); } @@ -3294,6 +3876,11 @@ PermissionsResource_ListMethod* DriveService::PermissionsResource::NewListMethod } +PermissionsResource_ListMethodPager* DriveService::PermissionsResource::NewListMethodPager(client::AuthorizationCredential* _credential_, const StringPiece& file_id) const { + return new client::EncapsulatedServiceRequestPager(new PermissionsResource_ListMethod(service_, _credential_, file_id)); +} + + PermissionsResource_PatchMethod* DriveService::PermissionsResource::NewPatchMethod(client::AuthorizationCredential* _credential_, const StringPiece& file_id, const StringPiece& permission_id, const Permission& __request_content__) const { return new PermissionsResource_PatchMethod(service_, _credential_, file_id, permission_id, __request_content__); } @@ -3414,6 +4001,11 @@ RevisionsResource_ListMethod* DriveService::RevisionsResource::NewListMethod(cli } +RevisionsResource_ListMethodPager* DriveService::RevisionsResource::NewListMethodPager(client::AuthorizationCredential* _credential_, const StringPiece& file_id) const { + return new client::EncapsulatedServiceRequestPager(new RevisionsResource_ListMethod(service_, _credential_, file_id)); +} + + RevisionsResource_PatchMethod* DriveService::RevisionsResource::NewPatchMethod(client::AuthorizationCredential* _credential_, const StringPiece& file_id, const StringPiece& revision_id, const Revision& __request_content__) const { return new RevisionsResource_PatchMethod(service_, _credential_, file_id, revision_id, __request_content__); } @@ -3422,4 +4014,39 @@ RevisionsResource_PatchMethod* DriveService::RevisionsResource::NewPatchMethod(c RevisionsResource_UpdateMethod* DriveService::RevisionsResource::NewUpdateMethod(client::AuthorizationCredential* _credential_, const StringPiece& file_id, const StringPiece& revision_id, const Revision& __request_content__) const { return new RevisionsResource_UpdateMethod(service_, _credential_, file_id, revision_id, __request_content__); } + +DriveService::TeamdrivesResource::TeamdrivesResource(DriveService* service) + : service_(service) { +} + + + +TeamdrivesResource_DeleteMethod* DriveService::TeamdrivesResource::NewDeleteMethod(client::AuthorizationCredential* _credential_, const StringPiece& team_drive_id) const { + return new TeamdrivesResource_DeleteMethod(service_, _credential_, team_drive_id); +} + + +TeamdrivesResource_GetMethod* DriveService::TeamdrivesResource::NewGetMethod(client::AuthorizationCredential* _credential_, const StringPiece& team_drive_id) const { + return new TeamdrivesResource_GetMethod(service_, _credential_, team_drive_id); +} + + +TeamdrivesResource_InsertMethod* DriveService::TeamdrivesResource::NewInsertMethod(client::AuthorizationCredential* _credential_, const StringPiece& request_id, const TeamDrive& __request_content__) const { + return new TeamdrivesResource_InsertMethod(service_, _credential_, request_id, __request_content__); +} + + +TeamdrivesResource_ListMethod* DriveService::TeamdrivesResource::NewListMethod(client::AuthorizationCredential* _credential_) const { + return new TeamdrivesResource_ListMethod(service_, _credential_); +} + + +TeamdrivesResource_ListMethodPager* DriveService::TeamdrivesResource::NewListMethodPager(client::AuthorizationCredential* _credential_) const { + return new client::EncapsulatedServiceRequestPager(new TeamdrivesResource_ListMethod(service_, _credential_)); +} + + +TeamdrivesResource_UpdateMethod* DriveService::TeamdrivesResource::NewUpdateMethod(client::AuthorizationCredential* _credential_, const StringPiece& team_drive_id, const TeamDrive& __request_content__) const { + return new TeamdrivesResource_UpdateMethod(service_, _credential_, team_drive_id, __request_content__); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/drive_service.h b/service_apis/drive/google/drive_api/drive_service.h index 53bb34b..7fa25d6 100644 --- a/service_apis/drive/google/drive_api/drive_service.h +++ b/service_apis/drive/google/drive_api/drive_service.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -14,7 +12,6 @@ // //------------------------------------------------------------------------------ // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -55,6 +52,9 @@ #include "google/drive_api/property_list.h" #include "google/drive_api/revision.h" #include "google/drive_api/revision_list.h" +#include "google/drive_api/start_page_token.h" +#include "google/drive_api/team_drive.h" +#include "google/drive_api/team_drive_list.h" namespace google_drive_api { @@ -68,16 +68,11 @@ using namespace googleapis; * API * Drive API * API Versionv2 - * API Rev198 + * API Rev20170512 * API Docs * * https://developers.google.com/drive/ * Discovery Namedrive - * Generated At2016-01-07 01:55:11 UTC - * C++ Generatorgoogle-apis-code-generator - * Generator Version - * 1.5.1 / c++=0.1.3 - * Generator Build2015-11-16 19:10:01 UTC * * * \section ForMoreInfo For More Information @@ -728,48 +723,6 @@ class AppsResource_ListMethod : public DriveServiceBaseRequest { virtual ~AppsResource_ListMethod(); - /** - * Clears the 'languageCode' attribute so it is no longer set. - */ - void clear_language_code() { - _have_language_code_ = false; - client::ClearCppValueHelper(&language_code_); - } - - - /** - * Gets the optional 'languageCode' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_language_code() const { return language_code_; } - - /** - * Gets a modifiable pointer to the optional languageCode' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_languageCode() { - _have_language_code_ = true; - return &language_code_; - } - - - /** - * Sets the 'languageCode' attribute. - * - * @param[in] value A language or locale code, as defined by BCP 47, with - * some extensions from Unicode's LDML format - * (http://www.unicode.org/reports/tr35/). - */ - void set_language_code(const string& value) { - _have_language_code_ = true; - language_code_ = value; - } - - - /** * Clears the 'appFilterExtensions' attribute so it is no * longer set. @@ -858,6 +811,48 @@ class AppsResource_ListMethod : public DriveServiceBaseRequest { app_filter_mime_types_ = value; } + + + /** + * Clears the 'languageCode' attribute so it is no longer set. + */ + void clear_language_code() { + _have_language_code_ = false; + client::ClearCppValueHelper(&language_code_); + } + + + /** + * Gets the optional 'languageCode' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_language_code() const { return language_code_; } + + /** + * Gets a modifiable pointer to the optional languageCode' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_languageCode() { + _have_language_code_ = true; + return &language_code_; + } + + + /** + * Sets the 'languageCode' attribute. + * + * @param[in] value A language or locale code, as defined by BCP 47, with + * some extensions from Unicode's LDML format + * (http://www.unicode.org/reports/tr35/). + */ + void set_language_code(const string& value) { + _have_language_code_ = true; + language_code_ = value; + } + /** * Appends variable value to the target string. * @@ -896,12 +891,12 @@ class AppsResource_ListMethod : public DriveServiceBaseRequest { } private: - string language_code_; string app_filter_extensions_; string app_filter_mime_types_; - bool _have_language_code_ : 1; + string language_code_; bool _have_app_filter_extensions_ : 1; bool _have_app_filter_mime_types_ : 1; + bool _have_language_code_ : 1; DISALLOW_COPY_AND_ASSIGN(AppsResource_ListMethod); }; @@ -947,6 +942,71 @@ class ChangesResource_GetMethod : public DriveServiceBaseRequest { virtual ~ChangesResource_GetMethod(); + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Clears the 'teamDriveId' attribute so it is no longer set. + */ + void clear_team_drive_id() { + _have_team_drive_id_ = false; + client::ClearCppValueHelper(&team_drive_id_); + } + + + /** + * Gets the optional 'teamDriveId' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_team_drive_id() const { return team_drive_id_; } + + /** + * Gets a modifiable pointer to the optional teamDriveId' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_teamDriveId() { + _have_team_drive_id_ = true; + return &team_drive_id_; + } + + + /** + * Sets the 'teamDriveId' attribute. + * + * @param[in] value The Team Drive from which the change will be returned. + */ + void set_team_drive_id(const string& value) { + _have_team_drive_id_ = true; + team_drive_id_ = value; + } + /** * Appends variable value to the target string. * @@ -961,6 +1021,13 @@ class ChangesResource_GetMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + /** * Executes the method and parses the response into a data object on success. @@ -979,11 +1046,15 @@ class ChangesResource_GetMethod : public DriveServiceBaseRequest { private: string change_id_; + bool supports_team_drives_; + string team_drive_id_; + bool _have_supports_team_drives_ : 1; + bool _have_team_drive_id_ : 1; DISALLOW_COPY_AND_ASSIGN(ChangesResource_GetMethod); }; /** - * Implements the list method. + * Implements the getStartPageToken method. * * @ingroup ServiceMethod * @@ -1001,7 +1072,7 @@ class ChangesResource_GetMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class ChangesResource_ListMethod : public DriveServiceBaseRequest { +class ChangesResource_GetStartPageTokenMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -1010,225 +1081,103 @@ class ChangesResource_ListMethod : public DriveServiceBaseRequest { * In practice this is supplied by the user code that is * creating the method instance. */ - ChangesResource_ListMethod( + ChangesResource_GetStartPageTokenMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_); /** * Standard destructor. */ - virtual ~ChangesResource_ListMethod(); - - - /** - * Clears the 'includeSubscribed' attribute so it is no longer - * set. - */ - void clear_include_subscribed() { - _have_include_subscribed_ = false; - client::ClearCppValueHelper(&include_subscribed_); - } - - - /** - * Gets the optional 'includeSubscribed' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_include_subscribed() const { return include_subscribed_; } + virtual ~ChangesResource_GetStartPageTokenMethod(); - /** - * Sets the 'includeSubscribed' attribute. - * - * @param[in] value Whether to include public files the user has opened and - * shared files. When set to false, the list only includes owned files plus - * any shared or public files the user has explicitly added to a folder they - * own. - */ - void set_include_subscribed(bool value) { - _have_include_subscribed_ = true; - include_subscribed_ = value; - } /** - * Clears the 'includeDeleted' attribute so it is no longer + * Clears the 'supportsTeamDrives' attribute so it is no longer * set. */ - void clear_include_deleted() { - _have_include_deleted_ = false; - client::ClearCppValueHelper(&include_deleted_); - } - - - /** - * Gets the optional 'includeDeleted' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_include_deleted() const { return include_deleted_; } - - /** - * Sets the 'includeDeleted' attribute. - * - * @param[in] value Whether to include deleted items. - */ - void set_include_deleted(bool value) { - _have_include_deleted_ = true; - include_deleted_ = value; - } - - /** - * Clears the 'maxResults' attribute so it is no longer set. - */ - void clear_max_results() { - _have_max_results_ = false; - client::ClearCppValueHelper(&max_results_); + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); } /** - * Gets the optional 'maxResults' attribute. + * Gets the optional 'supportsTeamDrives' attribute. * * If the value is not set then the default value will be returned. */ - int32 get_max_results() const { return max_results_; } + bool get_supports_team_drives() const { return supports_team_drives_; } /** - * Sets the 'maxResults' attribute. + * Sets the 'supportsTeamDrives' attribute. * - * @param[in] value Maximum number of changes to return. + * @param[in] value Whether the requesting application supports Team Drives. */ - void set_max_results(int32 value) { - _have_max_results_ = true; - max_results_ = value; + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; } /** - * Clears the 'pageToken' attribute so it is no longer set. + * Clears the 'teamDriveId' attribute so it is no longer set. */ - void clear_page_token() { - _have_page_token_ = false; - client::ClearCppValueHelper(&page_token_); + void clear_team_drive_id() { + _have_team_drive_id_ = false; + client::ClearCppValueHelper(&team_drive_id_); } /** - * Gets the optional 'pageToken' attribute. + * Gets the optional 'teamDriveId' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_page_token() const { return page_token_; } + const string& get_team_drive_id() const { return team_drive_id_; } /** - * Gets a modifiable pointer to the optional pageToken' + * Gets a modifiable pointer to the optional teamDriveId' * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_pageToken() { - _have_page_token_ = true; - return &page_token_; + string* mutable_teamDriveId() { + _have_team_drive_id_ = true; + return &team_drive_id_; } /** - * Sets the 'pageToken' attribute. + * Sets the 'teamDriveId' attribute. * - * @param[in] value Page token for changes. + * @param[in] value The ID of the Team Drive for which the starting + * pageToken for listing future changes from that Team Drive will be + * returned. */ - void set_page_token(const string& value) { - _have_page_token_ = true; - page_token_ = value; + void set_team_drive_id(const string& value) { + _have_team_drive_id_ = true; + team_drive_id_ = value; } + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); - - /** - * Clears the 'spaces' attribute so it is no longer set. - */ - void clear_spaces() { - _have_spaces_ = false; - client::ClearCppValueHelper(&spaces_); - } - - - /** - * Gets the optional 'spaces' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_spaces() const { return spaces_; } - - /** - * Gets a modifiable pointer to the optional spaces' attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_spaces() { - _have_spaces_ = true; - return &spaces_; - } - - - /** - * Sets the 'spaces' attribute. - * - * @param[in] value A comma-separated list of spaces to query. Supported - * values are 'drive', 'appDataFolder' and 'photos'. - */ - void set_spaces(const string& value) { - _have_spaces_ = true; - spaces_ = value; - } - - - - /** - * Clears the 'startChangeId' attribute so it is no longer set. - */ - void clear_start_change_id() { - _have_start_change_id_ = false; - client::ClearCppValueHelper(&start_change_id_); - } - - - /** - * Gets the optional 'startChangeId' attribute. - * - * If the value is not set then the default value will be returned. - */ - int64 get_start_change_id() const { return start_change_id_; } - - /** - * Sets the 'startChangeId' attribute. - * - * @param[in] value Change ID to start listing changes from. - */ - void set_start_change_id(int64 value) { - _have_start_change_id_ = true; - start_change_id_ = value; - } - - /** - * Appends variable value to the target string. - * - * This is a helper function used to resolve templated variables in the URI. - * - * @param[in] variable_name The name of the templated variable. - * @param[in] config A pass-through parameter used for lists and maps. - * @param[in, out] target The string to append the value to. - */ - virtual util::Status AppendVariable( - const StringPiece& variable_name, - const client::UriTemplateConfig& config, - string* target); - - /** - * Appends the optional query parameters to the target URL. - * - * @param[in, out] target The URL string to append to. - */ - virtual util::Status AppendOptionalQueryParameters(string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); /** @@ -1242,33 +1191,20 @@ class ChangesResource_ListMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - ChangeList* data) { + StartPageToken* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - bool include_subscribed_; - bool include_deleted_; - int32 max_results_; - string page_token_; - string spaces_; - int64 start_change_id_; - bool _have_include_subscribed_ : 1; - bool _have_include_deleted_ : 1; - bool _have_max_results_ : 1; - bool _have_page_token_ : 1; - bool _have_spaces_ : 1; - bool _have_start_change_id_ : 1; - DISALLOW_COPY_AND_ASSIGN(ChangesResource_ListMethod); + bool supports_team_drives_; + string team_drive_id_; + bool _have_supports_team_drives_ : 1; + bool _have_team_drive_id_ : 1; + DISALLOW_COPY_AND_ASSIGN(ChangesResource_GetStartPageTokenMethod); }; -typedef client::ServiceRequestPager< - ChangesResource_ListMethod, - ChangeList> - ChangesResource_ListMethodPager; - /** - * Implements the watch method. + * Implements the list method. * * @ingroup ServiceMethod * @@ -1286,7 +1222,7 @@ typedef client::ServiceRequestPager< * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class ChangesResource_WatchMethod : public DriveServiceBaseRequest { +class ChangesResource_ListMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -1294,18 +1230,75 @@ class ChangesResource_WatchMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] _content_ The data object to watch. */ - ChangesResource_WatchMethod( + ChangesResource_ListMethod( const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const Channel& _content_); + client::AuthorizationCredential* _credential_); /** * Standard destructor. */ - virtual ~ChangesResource_WatchMethod(); + virtual ~ChangesResource_ListMethod(); + + + /** + * Clears the 'includeCorpusRemovals' attribute so it is no + * longer set. + */ + void clear_include_corpus_removals() { + _have_include_corpus_removals_ = false; + client::ClearCppValueHelper(&include_corpus_removals_); + } + + + /** + * Gets the optional 'includeCorpusRemovals' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_include_corpus_removals() const { return include_corpus_removals_; } + + /** + * Sets the 'includeCorpusRemovals' attribute. + * + * @param[in] value Whether changes should include the file resource if the + * file is still accessible by the user at the time of the request, even + * when a file was removed from the list of changes and there will be no + * further change entries for this file. + */ + void set_include_corpus_removals(bool value) { + _have_include_corpus_removals_ = true; + include_corpus_removals_ = value; + } + + /** + * Clears the 'includeDeleted' attribute so it is no longer + * set. + */ + void clear_include_deleted() { + _have_include_deleted_ = false; + client::ClearCppValueHelper(&include_deleted_); + } + + + /** + * Gets the optional 'includeDeleted' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_include_deleted() const { return include_deleted_; } + /** + * Sets the 'includeDeleted' attribute. + * + * @param[in] value Whether to include changes indicating that items have + * been removed from the list of changes, for example by deletion or loss of + * access. + */ + void set_include_deleted(bool value) { + _have_include_deleted_ = true; + include_deleted_ = value; + } /** * Clears the 'includeSubscribed' attribute so it is no longer @@ -1338,30 +1331,31 @@ class ChangesResource_WatchMethod : public DriveServiceBaseRequest { } /** - * Clears the 'includeDeleted' attribute so it is no longer - * set. + * Clears the 'includeTeamDriveItems' attribute so it is no + * longer set. */ - void clear_include_deleted() { - _have_include_deleted_ = false; - client::ClearCppValueHelper(&include_deleted_); + void clear_include_team_drive_items() { + _have_include_team_drive_items_ = false; + client::ClearCppValueHelper(&include_team_drive_items_); } /** - * Gets the optional 'includeDeleted' attribute. + * Gets the optional 'includeTeamDriveItems' attribute. * * If the value is not set then the default value will be returned. */ - bool get_include_deleted() const { return include_deleted_; } + bool get_include_team_drive_items() const { return include_team_drive_items_; } /** - * Sets the 'includeDeleted' attribute. + * Sets the 'includeTeamDriveItems' attribute. * - * @param[in] value Whether to include deleted items. + * @param[in] value Whether Team Drive files or changes should be included + * in results. */ - void set_include_deleted(bool value) { - _have_include_deleted_ = true; - include_deleted_ = value; + void set_include_team_drive_items(bool value) { + _have_include_team_drive_items_ = true; + include_team_drive_items_ = value; } /** @@ -1421,7 +1415,9 @@ class ChangesResource_WatchMethod : public DriveServiceBaseRequest { /** * Sets the 'pageToken' attribute. * - * @param[in] value Page token for changes. + * @param[in] value The token for continuing a previous list request on the + * next page. This should be set to the value of 'nextPageToken' from the + * previous response or to the response from the getStartPageToken method. */ void set_page_token(const string& value) { _have_page_token_ = true; @@ -1496,6 +1492,73 @@ class ChangesResource_WatchMethod : public DriveServiceBaseRequest { start_change_id_ = value; } + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Clears the 'teamDriveId' attribute so it is no longer set. + */ + void clear_team_drive_id() { + _have_team_drive_id_ = false; + client::ClearCppValueHelper(&team_drive_id_); + } + + + /** + * Gets the optional 'teamDriveId' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_team_drive_id() const { return team_drive_id_; } + + /** + * Gets a modifiable pointer to the optional teamDriveId' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_teamDriveId() { + _have_team_drive_id_ = true; + return &team_drive_id_; + } + + + /** + * Sets the 'teamDriveId' attribute. + * + * @param[in] value The Team Drive from which changes will be returned. If + * specified the change IDs will be reflective of the Team Drive; use the + * combined Team Drive ID and change ID as an identifier. + */ + void set_team_drive_id(const string& value) { + _have_team_drive_id_ = true; + team_drive_id_ = value; + } + /** * Appends variable value to the target string. * @@ -1529,30 +1592,41 @@ class ChangesResource_WatchMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Channel* data) { + ChangeList* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - bool include_subscribed_; + bool include_corpus_removals_; bool include_deleted_; + bool include_subscribed_; + bool include_team_drive_items_; int32 max_results_; string page_token_; string spaces_; int64 start_change_id_; - bool _have_include_subscribed_ : 1; + bool supports_team_drives_; + string team_drive_id_; + bool _have_include_corpus_removals_ : 1; bool _have_include_deleted_ : 1; + bool _have_include_subscribed_ : 1; + bool _have_include_team_drive_items_ : 1; bool _have_max_results_ : 1; bool _have_page_token_ : 1; bool _have_spaces_ : 1; - bool _have_start_change_id_ : 1; string _content_; - DISALLOW_COPY_AND_ASSIGN(ChangesResource_WatchMethod); + bool _have_start_change_id_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_team_drive_id_ : 1; + DISALLOW_COPY_AND_ASSIGN(ChangesResource_ListMethod); }; - +typedef client::ServiceRequestPager< + ChangesResource_ListMethod, + ChangeList> + ChangesResource_ListMethodPager; /** - * Implements the stop method. + * Implements the watch method. * * @ingroup ServiceMethod * @@ -1570,7 +1644,7 @@ class ChangesResource_WatchMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class ChannelsResource_StopMethod : public DriveServiceBaseRequest { +class ChangesResource_WatchMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -1578,9 +1652,9 @@ class ChannelsResource_StopMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] _content_ The data object to stop. + * @param[in] _content_ The data object to watch. */ - ChannelsResource_StopMethod( + ChangesResource_WatchMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const Channel& _content_); @@ -1588,306 +1662,151 @@ class ChannelsResource_StopMethod : public DriveServiceBaseRequest { /** * Standard destructor. */ - virtual ~ChannelsResource_StopMethod(); - - private: - string _content_; - DISALLOW_COPY_AND_ASSIGN(ChannelsResource_StopMethod); -}; + virtual ~ChangesResource_WatchMethod(); + /** + * Clears the 'includeCorpusRemovals' attribute so it is no + * longer set. + */ + void clear_include_corpus_removals() { + _have_include_corpus_removals_ = false; + client::ClearCppValueHelper(&include_corpus_removals_); + } -/** - * Implements the delete method. - * - * @ingroup ServiceMethod - * - * 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 - */ -class ChildrenResource_DeleteMethod : public DriveServiceBaseRequest { - public: - /** - * The standard constructor takes all the required method parameters. - * @param[in] _service_ The service instance to send to when executed. - * @param[in] _credential_ If not NULL, the credential to authorize with. - * In practice this is supplied by the user code that is - * creating the method instance. - * @param[in] folder_id The ID of the folder. - * @param[in] child_id The ID of the child. - */ - ChildrenResource_DeleteMethod( - const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const StringPiece& folder_id, - const StringPiece& child_id); - /** - * Standard destructor. - */ - virtual ~ChildrenResource_DeleteMethod(); - - - /** - * Appends variable value to the target string. - * - * This is a helper function used to resolve templated variables in the URI. - * - * @param[in] variable_name The name of the templated variable. - * @param[in] config A pass-through parameter used for lists and maps. - * @param[in, out] target The string to append the value to. - */ - virtual util::Status AppendVariable( - const StringPiece& variable_name, - const client::UriTemplateConfig& config, - string* target); - - - private: - string folder_id_; - string child_id_; - DISALLOW_COPY_AND_ASSIGN(ChildrenResource_DeleteMethod); -}; - -/** - * Implements the get method. - * - * @ingroup ServiceMethod - * - * 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.appdata - * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly - * https://www.googleapis.com/auth/drive.readonly - */ -class ChildrenResource_GetMethod : public DriveServiceBaseRequest { - public: - /** - * The standard constructor takes all the required method parameters. - * @param[in] _service_ The service instance to send to when executed. - * @param[in] _credential_ If not NULL, the credential to authorize with. - * In practice this is supplied by the user code that is - * creating the method instance. - * @param[in] folder_id The ID of the folder. - * @param[in] child_id The ID of the child. - */ - ChildrenResource_GetMethod( - const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const StringPiece& folder_id, - const StringPiece& child_id); - - /** - * Standard destructor. - */ - virtual ~ChildrenResource_GetMethod(); - - - /** - * Appends variable value to the target string. - * - * This is a helper function used to resolve templated variables in the URI. - * - * @param[in] variable_name The name of the templated variable. - * @param[in] config A pass-through parameter used for lists and maps. - * @param[in, out] target The string to append the value to. - */ - virtual util::Status AppendVariable( - const StringPiece& variable_name, - const client::UriTemplateConfig& config, - string* target); - - - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - ChildReference* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } - - private: - string folder_id_; - string child_id_; - DISALLOW_COPY_AND_ASSIGN(ChildrenResource_GetMethod); -}; - -/** - * Implements the insert method. - * - * @ingroup ServiceMethod - * - * 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.appdata - * https://www.googleapis.com/auth/drive.file - */ -class ChildrenResource_InsertMethod : public DriveServiceBaseRequest { - public: - /** - * The standard constructor takes all the required method parameters. - * @param[in] _service_ The service instance to send to when executed. - * @param[in] _credential_ If not NULL, the credential to authorize with. - * In practice this is supplied by the user code that is - * creating the method instance. - * @param[in] folder_id The ID of the folder. - * @param[in] _content_ The data object to insert. - */ - ChildrenResource_InsertMethod( - const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const StringPiece& folder_id, - const ChildReference& _content_); - - /** - * Standard destructor. - */ - virtual ~ChildrenResource_InsertMethod(); - - - /** - * Appends variable value to the target string. - * - * This is a helper function used to resolve templated variables in the URI. - * - * @param[in] variable_name The name of the templated variable. - * @param[in] config A pass-through parameter used for lists and maps. - * @param[in, out] target The string to append the value to. - */ - virtual util::Status AppendVariable( - const StringPiece& variable_name, - const client::UriTemplateConfig& config, - string* target); - - - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - ChildReference* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } - - private: - string folder_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(ChildrenResource_InsertMethod); -}; - -/** - * Implements the list method. - * - * @ingroup ServiceMethod - * - * 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.appdata - * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly - * https://www.googleapis.com/auth/drive.readonly - */ -class ChildrenResource_ListMethod : public DriveServiceBaseRequest { - public: - /** - * The standard constructor takes all the required method parameters. - * @param[in] _service_ The service instance to send to when executed. - * @param[in] _credential_ If not NULL, the credential to authorize with. - * In practice this is supplied by the user code that is - * creating the method instance. - * @param[in] folder_id The ID of the folder. - */ - ChildrenResource_ListMethod( - const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const StringPiece& folder_id); - - /** - * Standard destructor. - */ - virtual ~ChildrenResource_ListMethod(); + /** + * Gets the optional 'includeCorpusRemovals' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_include_corpus_removals() const { return include_corpus_removals_; } + /** + * Sets the 'includeCorpusRemovals' attribute. + * + * @param[in] value Whether changes should include the file resource if the + * file is still accessible by the user at the time of the request, even + * when a file was removed from the list of changes and there will be no + * further change entries for this file. + */ + void set_include_corpus_removals(bool value) { + _have_include_corpus_removals_ = true; + include_corpus_removals_ = value; + } /** - * Clears the 'orderBy' attribute so it is no longer set. + * Clears the 'includeDeleted' attribute so it is no longer + * set. */ - void clear_order_by() { - _have_order_by_ = false; - client::ClearCppValueHelper(&order_by_); + void clear_include_deleted() { + _have_include_deleted_ = false; + client::ClearCppValueHelper(&include_deleted_); } /** - * Gets the optional 'orderBy' attribute. + * Gets the optional 'includeDeleted' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_order_by() const { return order_by_; } + bool get_include_deleted() const { return include_deleted_; } /** - * Gets a modifiable pointer to the optional orderBy' - * attribute. + * Sets the 'includeDeleted' attribute. * - * @return The value can be set by dereferencing the pointer. + * @param[in] value Whether to include changes indicating that items have + * been removed from the list of changes, for example by deletion or loss of + * access. */ - string* mutable_orderBy() { - _have_order_by_ = true; - return &order_by_; + void set_include_deleted(bool value) { + _have_include_deleted_ = true; + include_deleted_ = value; + } + + /** + * Clears the 'includeSubscribed' attribute so it is no longer + * set. + */ + void clear_include_subscribed() { + _have_include_subscribed_ = false; + client::ClearCppValueHelper(&include_subscribed_); } /** - * Sets the 'orderBy' attribute. + * Gets the optional 'includeSubscribed' attribute. * - * @param[in] value A comma-separated list of sort keys. Valid keys are - * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', - * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', - * 'starred', and 'title'. Each key sorts ascending by default, but may be - * reversed with the 'desc' modifier. Example usage: - * ?orderBy=folder,modifiedDate desc,title. Please note that there is a - * current limitation for users with approximately one million files in - * which the requested sort order is ignored. + * If the value is not set then the default value will be returned. */ - void set_order_by(const string& value) { - _have_order_by_ = true; - order_by_ = value; + bool get_include_subscribed() const { return include_subscribed_; } + + /** + * Sets the 'includeSubscribed' attribute. + * + * @param[in] value Whether to include public files the user has opened and + * shared files. When set to false, the list only includes owned files plus + * any shared or public files the user has explicitly added to a folder they + * own. + */ + void set_include_subscribed(bool value) { + _have_include_subscribed_ = true; + include_subscribed_ = value; + } + + /** + * Clears the 'includeTeamDriveItems' attribute so it is no + * longer set. + */ + void clear_include_team_drive_items() { + _have_include_team_drive_items_ = false; + client::ClearCppValueHelper(&include_team_drive_items_); + } + + + /** + * Gets the optional 'includeTeamDriveItems' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_include_team_drive_items() const { return include_team_drive_items_; } + + /** + * Sets the 'includeTeamDriveItems' attribute. + * + * @param[in] value Whether Team Drive files or changes should be included + * in results. + */ + void set_include_team_drive_items(bool value) { + _have_include_team_drive_items_ = true; + include_team_drive_items_ = value; + } + + /** + * Clears the 'maxResults' attribute so it is no longer set. + */ + void clear_max_results() { + _have_max_results_ = false; + client::ClearCppValueHelper(&max_results_); } + /** + * Gets the optional 'maxResults' attribute. + * + * If the value is not set then the default value will be returned. + */ + int32 get_max_results() const { return max_results_; } + + /** + * Sets the 'maxResults' attribute. + * + * @param[in] value Maximum number of changes to return. + */ + void set_max_results(int32 value) { + _have_max_results_ = true; + max_results_ = value; + } /** * Clears the 'pageToken' attribute so it is no longer set. @@ -1920,7 +1839,9 @@ class ChildrenResource_ListMethod : public DriveServiceBaseRequest { /** * Sets the 'pageToken' attribute. * - * @param[in] value Page token for children. + * @param[in] value The token for continuing a previous list request on the + * next page. This should be set to the value of 'nextPageToken' from the + * previous response or to the response from the getStartPageToken method. */ void set_page_token(const string& value) { _have_page_token_ = true; @@ -1930,68 +1851,136 @@ class ChildrenResource_ListMethod : public DriveServiceBaseRequest { /** - * Clears the 'q' attribute so it is no longer set. + * Clears the 'spaces' attribute so it is no longer set. */ - void clear_q() { - _have_q_ = false; - client::ClearCppValueHelper(&q_); + void clear_spaces() { + _have_spaces_ = false; + client::ClearCppValueHelper(&spaces_); } /** - * Gets the optional 'q' attribute. + * Gets the optional 'spaces' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_q() const { return q_; } + const string& get_spaces() const { return spaces_; } /** - * Gets a modifiable pointer to the optional q' attribute. + * Gets a modifiable pointer to the optional spaces' attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_q() { - _have_q_ = true; - return &q_; + string* mutable_spaces() { + _have_spaces_ = true; + return &spaces_; } /** - * Sets the 'q' attribute. + * Sets the 'spaces' attribute. * - * @param[in] value Query string for searching children. + * @param[in] value A comma-separated list of spaces to query. Supported + * values are 'drive', 'appDataFolder' and 'photos'. */ - void set_q(const string& value) { - _have_q_ = true; - q_ = value; + void set_spaces(const string& value) { + _have_spaces_ = true; + spaces_ = value; } /** - * Clears the 'maxResults' attribute so it is no longer set. + * Clears the 'startChangeId' attribute so it is no longer set. */ - void clear_max_results() { - _have_max_results_ = false; - client::ClearCppValueHelper(&max_results_); + void clear_start_change_id() { + _have_start_change_id_ = false; + client::ClearCppValueHelper(&start_change_id_); } /** - * Gets the optional 'maxResults' attribute. + * Gets the optional 'startChangeId' attribute. * * If the value is not set then the default value will be returned. */ - int32 get_max_results() const { return max_results_; } + int64 get_start_change_id() const { return start_change_id_; } /** - * Sets the 'maxResults' attribute. + * Sets the 'startChangeId' attribute. * - * @param[in] value Maximum number of children to return. + * @param[in] value Change ID to start listing changes from. */ - void set_max_results(int32 value) { - _have_max_results_ = true; - max_results_ = value; + void set_start_change_id(int64 value) { + _have_start_change_id_ = true; + start_change_id_ = value; + } + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Clears the 'teamDriveId' attribute so it is no longer set. + */ + void clear_team_drive_id() { + _have_team_drive_id_ = false; + client::ClearCppValueHelper(&team_drive_id_); + } + + + /** + * Gets the optional 'teamDriveId' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_team_drive_id() const { return team_drive_id_; } + + /** + * Gets a modifiable pointer to the optional teamDriveId' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_teamDriveId() { + _have_team_drive_id_ = true; + return &team_drive_id_; + } + + + /** + * Sets the 'teamDriveId' attribute. + * + * @param[in] value The Team Drive from which changes will be returned. If + * specified the change IDs will be reflective of the Team Drive; use the + * combined Team Drive ID and change ID as an identifier. + */ + void set_team_drive_id(const string& value) { + _have_team_drive_id_ = true; + team_drive_id_ = value; } /** @@ -2027,27 +2016,79 @@ class ChildrenResource_ListMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - ChildList* data) { + Channel* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string folder_id_; - string order_by_; - string page_token_; - string q_; + bool include_corpus_removals_; + bool include_deleted_; + bool include_subscribed_; + bool include_team_drive_items_; int32 max_results_; - bool _have_order_by_ : 1; - bool _have_page_token_ : 1; - bool _have_q_ : 1; + string page_token_; + string spaces_; + int64 start_change_id_; + bool supports_team_drives_; + string team_drive_id_; + bool _have_include_corpus_removals_ : 1; + bool _have_include_deleted_ : 1; + bool _have_include_subscribed_ : 1; + bool _have_include_team_drive_items_ : 1; bool _have_max_results_ : 1; - DISALLOW_COPY_AND_ASSIGN(ChildrenResource_ListMethod); + bool _have_page_token_ : 1; + bool _have_spaces_ : 1; + bool _have_start_change_id_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_team_drive_id_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(ChangesResource_WatchMethod); }; -typedef client::ServiceRequestPager< - ChildrenResource_ListMethod, - ChildList> - ChildrenResource_ListMethodPager; + + +/** + * Implements the stop method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.apps.readonly + * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly + */ +class ChannelsResource_StopMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] _content_ The data object to stop. + */ + ChannelsResource_StopMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const Channel& _content_); + + /** + * Standard destructor. + */ + virtual ~ChannelsResource_StopMethod(); + + private: + string _content_; + DISALLOW_COPY_AND_ASSIGN(ChannelsResource_StopMethod); +}; @@ -2064,7 +2105,7 @@ typedef client::ServiceRequestPager< * https://www.googleapis.com/auth/drive * https://www.googleapis.com/auth/drive.file */ -class CommentsResource_DeleteMethod : public DriveServiceBaseRequest { +class ChildrenResource_DeleteMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -2072,19 +2113,19 @@ class CommentsResource_DeleteMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] comment_id The ID of the comment. + * @param[in] folder_id The ID of the folder. + * @param[in] child_id The ID of the child. */ - CommentsResource_DeleteMethod( + ChildrenResource_DeleteMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& comment_id); + const StringPiece& folder_id, + const StringPiece& child_id); /** * Standard destructor. */ - virtual ~CommentsResource_DeleteMethod(); + virtual ~ChildrenResource_DeleteMethod(); /** @@ -2103,9 +2144,9 @@ class CommentsResource_DeleteMethod : public DriveServiceBaseRequest { private: - string file_id_; - string comment_id_; - DISALLOW_COPY_AND_ASSIGN(CommentsResource_DeleteMethod); + string folder_id_; + string child_id_; + DISALLOW_COPY_AND_ASSIGN(ChildrenResource_DeleteMethod); }; /** @@ -2119,10 +2160,14 @@ class CommentsResource_DeleteMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class CommentsResource_GetMethod : public DriveServiceBaseRequest { +class ChildrenResource_GetMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -2130,48 +2175,20 @@ class CommentsResource_GetMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] comment_id The ID of the comment. + * @param[in] folder_id The ID of the folder. + * @param[in] child_id The ID of the child. */ - CommentsResource_GetMethod( + ChildrenResource_GetMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& comment_id); + const StringPiece& folder_id, + const StringPiece& child_id); /** * Standard destructor. */ - virtual ~CommentsResource_GetMethod(); - - - /** - * Clears the 'includeDeleted' attribute so it is no longer - * set. - */ - void clear_include_deleted() { - _have_include_deleted_ = false; - client::ClearCppValueHelper(&include_deleted_); - } - - - /** - * Gets the optional 'includeDeleted' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_include_deleted() const { return include_deleted_; } + virtual ~ChildrenResource_GetMethod(); - /** - * Sets the 'includeDeleted' attribute. - * - * @param[in] value If set, this will succeed when retrieving a deleted - * comment, and will include any deleted replies. - */ - void set_include_deleted(bool value) { - _have_include_deleted_ = true; - include_deleted_ = value; - } /** * Appends variable value to the target string. @@ -2187,13 +2204,6 @@ class CommentsResource_GetMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); - /** - * Appends the optional query parameters to the target URL. - * - * @param[in, out] target The URL string to append to. - */ - virtual util::Status AppendOptionalQueryParameters(string* target); - /** * Executes the method and parses the response into a data object on success. @@ -2206,16 +2216,14 @@ class CommentsResource_GetMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Comment* data) { + ChildReference* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; - string comment_id_; - bool include_deleted_; - bool _have_include_deleted_ : 1; - DISALLOW_COPY_AND_ASSIGN(CommentsResource_GetMethod); + string folder_id_; + string child_id_; + DISALLOW_COPY_AND_ASSIGN(ChildrenResource_GetMethod); }; /** @@ -2229,9 +2237,10 @@ class CommentsResource_GetMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file */ -class CommentsResource_InsertMethod : public DriveServiceBaseRequest { +class ChildrenResource_InsertMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -2239,20 +2248,47 @@ class CommentsResource_InsertMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. + * @param[in] folder_id The ID of the folder. * @param[in] _content_ The data object to insert. */ - CommentsResource_InsertMethod( + ChildrenResource_InsertMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const Comment& _content_); + const StringPiece& folder_id, + const ChildReference& _content_); /** * Standard destructor. */ - virtual ~CommentsResource_InsertMethod(); + virtual ~ChildrenResource_InsertMethod(); + + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } /** * Appends variable value to the target string. @@ -2268,6 +2304,13 @@ class CommentsResource_InsertMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + /** * Executes the method and parses the response into a data object on success. @@ -2280,13 +2323,15 @@ class CommentsResource_InsertMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Comment* data) { + ChildReference* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(CommentsResource_InsertMethod); + string folder_id_; + bool supports_team_drives_; + bool _have_supports_team_drives_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(ChildrenResource_InsertMethod); }; /** @@ -2300,10 +2345,14 @@ class CommentsResource_InsertMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class CommentsResource_ListMethod : public DriveServiceBaseRequest { +class ChildrenResource_ListMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -2311,155 +2360,167 @@ class CommentsResource_ListMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. + * @param[in] folder_id The ID of the folder. */ - CommentsResource_ListMethod( + ChildrenResource_ListMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id); + const StringPiece& folder_id); /** * Standard destructor. */ - virtual ~CommentsResource_ListMethod(); + virtual ~ChildrenResource_ListMethod(); /** - * Clears the 'pageToken' attribute so it is no longer set. + * Clears the 'maxResults' attribute so it is no longer set. */ - void clear_page_token() { - _have_page_token_ = false; - client::ClearCppValueHelper(&page_token_); + void clear_max_results() { + _have_max_results_ = false; + client::ClearCppValueHelper(&max_results_); } /** - * Gets the optional 'pageToken' attribute. + * Gets the optional 'maxResults' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_page_token() const { return page_token_; } + int32 get_max_results() const { return max_results_; } /** - * Gets a modifiable pointer to the optional pageToken' + * Sets the 'maxResults' attribute. + * + * @param[in] value Maximum number of children to return. + */ + void set_max_results(int32 value) { + _have_max_results_ = true; + max_results_ = value; + } + + /** + * Clears the 'orderBy' attribute so it is no longer set. + */ + void clear_order_by() { + _have_order_by_ = false; + client::ClearCppValueHelper(&order_by_); + } + + + /** + * Gets the optional 'orderBy' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_order_by() const { return order_by_; } + + /** + * Gets a modifiable pointer to the optional orderBy' * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_pageToken() { - _have_page_token_ = true; - return &page_token_; + string* mutable_orderBy() { + _have_order_by_ = true; + return &order_by_; } /** - * Sets the 'pageToken' attribute. + * Sets the 'orderBy' attribute. * - * @param[in] value The continuation token, used to page through large - * result sets. To get the next page of results, set this parameter to the - * value of "nextPageToken" from the previous response. + * @param[in] value A comma-separated list of sort keys. Valid keys are + * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', + * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', + * 'starred', and 'title'. Each key sorts ascending by default, but may be + * reversed with the 'desc' modifier. Example usage: + * ?orderBy=folder,modifiedDate desc,title. Please note that there is a + * current limitation for users with approximately one million files in + * which the requested sort order is ignored. */ - void set_page_token(const string& value) { - _have_page_token_ = true; - page_token_ = value; + void set_order_by(const string& value) { + _have_order_by_ = true; + order_by_ = value; } /** - * Clears the 'updatedMin' attribute so it is no longer set. + * Clears the 'pageToken' attribute so it is no longer set. */ - void clear_updated_min() { - _have_updated_min_ = false; - client::ClearCppValueHelper(&updated_min_); + void clear_page_token() { + _have_page_token_ = false; + client::ClearCppValueHelper(&page_token_); } /** - * Gets the optional 'updatedMin' attribute. + * Gets the optional 'pageToken' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_updated_min() const { return updated_min_; } + const string& get_page_token() const { return page_token_; } /** - * Gets a modifiable pointer to the optional updatedMin' + * Gets a modifiable pointer to the optional pageToken' * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_updatedMin() { - _have_updated_min_ = true; - return &updated_min_; + string* mutable_pageToken() { + _have_page_token_ = true; + return &page_token_; } /** - * Sets the 'updatedMin' attribute. + * Sets the 'pageToken' attribute. * - * @param[in] value Only discussions that were updated after this timestamp - * will be returned. Formatted as an RFC 3339 timestamp. + * @param[in] value Page token for children. */ - void set_updated_min(const string& value) { - _have_updated_min_ = true; - updated_min_ = value; + void set_page_token(const string& value) { + _have_page_token_ = true; + page_token_ = value; } /** - * Clears the 'includeDeleted' attribute so it is no longer - * set. + * Clears the 'q' attribute so it is no longer set. */ - void clear_include_deleted() { - _have_include_deleted_ = false; - client::ClearCppValueHelper(&include_deleted_); + void clear_q() { + _have_q_ = false; + client::ClearCppValueHelper(&q_); } /** - * Gets the optional 'includeDeleted' attribute. + * Gets the optional 'q' attribute. * * If the value is not set then the default value will be returned. */ - bool get_include_deleted() const { return include_deleted_; } + const string& get_q() const { return q_; } /** - * Sets the 'includeDeleted' attribute. + * Gets a modifiable pointer to the optional q' attribute. * - * @param[in] value If set, all comments and replies, including deleted - * comments and replies (with content stripped) will be returned. - */ - void set_include_deleted(bool value) { - _have_include_deleted_ = true; - include_deleted_ = value; - } - - /** - * Clears the 'maxResults' attribute so it is no longer set. + * @return The value can be set by dereferencing the pointer. */ - void clear_max_results() { - _have_max_results_ = false; - client::ClearCppValueHelper(&max_results_); + string* mutable_q() { + _have_q_ = true; + return &q_; } /** - * Gets the optional 'maxResults' attribute. - * - * If the value is not set then the default value will be returned. - */ - int32 get_max_results() const { return max_results_; } - - /** - * Sets the 'maxResults' attribute. + * Sets the 'q' attribute. * - * @param[in] value The maximum number of discussions to include in the - * response, used for paging. + * @param[in] value Query string for searching children. */ - void set_max_results(int32 value) { - _have_max_results_ = true; - max_results_ = value; + void set_q(const string& value) { + _have_q_ = true; + q_ = value; } /** @@ -2495,30 +2556,32 @@ class CommentsResource_ListMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - CommentList* data) { + ChildList* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; - string page_token_; - string updated_min_; - bool include_deleted_; + string folder_id_; int32 max_results_; - bool _have_page_token_ : 1; - bool _have_updated_min_ : 1; - bool _have_include_deleted_ : 1; + string order_by_; + string page_token_; + string q_; bool _have_max_results_ : 1; - DISALLOW_COPY_AND_ASSIGN(CommentsResource_ListMethod); + bool _have_order_by_ : 1; + bool _have_page_token_ : 1; + bool _have_q_ : 1; + DISALLOW_COPY_AND_ASSIGN(ChildrenResource_ListMethod); }; typedef client::ServiceRequestPager< - CommentsResource_ListMethod, - CommentList> - CommentsResource_ListMethodPager; + ChildrenResource_ListMethod, + ChildList> + ChildrenResource_ListMethodPager; + + /** - * Implements the patch method. + * Implements the delete method. * * @ingroup ServiceMethod * @@ -2530,7 +2593,7 @@ typedef client::ServiceRequestPager< * https://www.googleapis.com/auth/drive * https://www.googleapis.com/auth/drive.file */ -class CommentsResource_PatchMethod : public DriveServiceBaseRequest { +class CommentsResource_DeleteMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -2540,20 +2603,104 @@ class CommentsResource_PatchMethod : public DriveServiceBaseRequest { * creating the method instance. * @param[in] file_id The ID of the file. * @param[in] comment_id The ID of the comment. - * @param[in] _content_ The data object to patch. */ - CommentsResource_PatchMethod( + CommentsResource_DeleteMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& comment_id, - const Comment& _content_); + const StringPiece& comment_id); /** * Standard destructor. */ - virtual ~CommentsResource_PatchMethod(); + virtual ~CommentsResource_DeleteMethod(); + + + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + + + private: + string file_id_; + string comment_id_; + DISALLOW_COPY_AND_ASSIGN(CommentsResource_DeleteMethod); +}; + +/** + * Implements the get method. + * + * @ingroup ServiceMethod + * + * 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 + */ +class CommentsResource_GetMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file. + * @param[in] comment_id The ID of the comment. + */ + CommentsResource_GetMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id, + const StringPiece& comment_id); + + /** + * Standard destructor. + */ + virtual ~CommentsResource_GetMethod(); + + + /** + * Clears the 'includeDeleted' attribute so it is no longer + * set. + */ + void clear_include_deleted() { + _have_include_deleted_ = false; + client::ClearCppValueHelper(&include_deleted_); + } + + + /** + * Gets the optional 'includeDeleted' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_include_deleted() const { return include_deleted_; } + /** + * Sets the 'includeDeleted' attribute. + * + * @param[in] value If set, this will succeed when retrieving a deleted + * comment, and will include any deleted replies. + */ + void set_include_deleted(bool value) { + _have_include_deleted_ = true; + include_deleted_ = value; + } /** * Appends variable value to the target string. @@ -2569,6 +2716,13 @@ class CommentsResource_PatchMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + /** * Executes the method and parses the response into a data object on success. @@ -2587,12 +2741,14 @@ class CommentsResource_PatchMethod : public DriveServiceBaseRequest { private: string file_id_; - string comment_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(CommentsResource_PatchMethod); + string comment_id_; + bool include_deleted_; + bool _have_include_deleted_ : 1; + DISALLOW_COPY_AND_ASSIGN(CommentsResource_GetMethod); }; /** - * Implements the update method. + * Implements the insert method. * * @ingroup ServiceMethod * @@ -2604,7 +2760,7 @@ class CommentsResource_PatchMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive * https://www.googleapis.com/auth/drive.file */ -class CommentsResource_UpdateMethod : public DriveServiceBaseRequest { +class CommentsResource_InsertMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -2613,20 +2769,18 @@ class CommentsResource_UpdateMethod : public DriveServiceBaseRequest { * In practice this is supplied by the user code that is * creating the method instance. * @param[in] file_id The ID of the file. - * @param[in] comment_id The ID of the comment. - * @param[in] _content_ The data object to update. + * @param[in] _content_ The data object to insert. */ - CommentsResource_UpdateMethod( + CommentsResource_InsertMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& comment_id, const Comment& _content_); /** * Standard destructor. */ - virtual ~CommentsResource_UpdateMethod(); + virtual ~CommentsResource_InsertMethod(); /** @@ -2660,15 +2814,12 @@ class CommentsResource_UpdateMethod : public DriveServiceBaseRequest { } private: - string file_id_; - string comment_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(CommentsResource_UpdateMethod); + string file_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(CommentsResource_InsertMethod); }; - - /** - * Implements the copy method. + * Implements the list method. * * @ingroup ServiceMethod * @@ -2678,12 +2829,10 @@ class CommentsResource_UpdateMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.apps.readonly * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly */ -class FilesResource_CopyMethod : public DriveServiceBaseRequest { +class CommentsResource_ListMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -2691,262 +2840,153 @@ class FilesResource_CopyMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file to copy. - * @param[in] _content_ The data object to copy. + * @param[in] file_id The ID of the file. */ - FilesResource_CopyMethod( + CommentsResource_ListMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const File& _content_); + const StringPiece& file_id); /** * Standard destructor. */ - virtual ~FilesResource_CopyMethod(); + virtual ~CommentsResource_ListMethod(); /** - * Clears the 'convert' attribute so it is no longer set. + * Clears the 'includeDeleted' attribute so it is no longer + * set. */ - void clear_convert() { - _have_convert_ = false; - client::ClearCppValueHelper(&convert_); + void clear_include_deleted() { + _have_include_deleted_ = false; + client::ClearCppValueHelper(&include_deleted_); } /** - * Gets the optional 'convert' attribute. + * Gets the optional 'includeDeleted' attribute. * * If the value is not set then the default value will be returned. */ - bool get_convert() const { return convert_; } + bool get_include_deleted() const { return include_deleted_; } /** - * Sets the 'convert' attribute. + * Sets the 'includeDeleted' attribute. * - * @param[in] value Whether to convert this file to the corresponding Google - * Docs format. + * @param[in] value If set, all comments and replies, including deleted + * comments and replies (with content stripped) will be returned. */ - void set_convert(bool value) { - _have_convert_ = true; - convert_ = value; + void set_include_deleted(bool value) { + _have_include_deleted_ = true; + include_deleted_ = value; } /** - * Clears the 'ocrLanguage' attribute so it is no longer set. + * Clears the 'maxResults' attribute so it is no longer set. */ - void clear_ocr_language() { - _have_ocr_language_ = false; - client::ClearCppValueHelper(&ocr_language_); + void clear_max_results() { + _have_max_results_ = false; + client::ClearCppValueHelper(&max_results_); } /** - * Gets the optional 'ocrLanguage' attribute. + * Gets the optional 'maxResults' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_ocr_language() const { return ocr_language_; } - - /** - * Gets a modifiable pointer to the optional ocrLanguage' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_ocrLanguage() { - _have_ocr_language_ = true; - return &ocr_language_; - } - + int32 get_max_results() const { return max_results_; } /** - * Sets the 'ocrLanguage' attribute. + * Sets the 'maxResults' attribute. * - * @param[in] value If ocr is true, hints at the language to use. Valid - * values are BCP 47 codes. + * @param[in] value The maximum number of discussions to include in the + * response, used for paging. */ - void set_ocr_language(const string& value) { - _have_ocr_language_ = true; - ocr_language_ = value; + void set_max_results(int32 value) { + _have_max_results_ = true; + max_results_ = value; } - - /** - * Clears the 'visibility' attribute so it is no longer set. + * Clears the 'pageToken' attribute so it is no longer set. */ - void clear_visibility() { - _have_visibility_ = false; - client::ClearCppValueHelper(&visibility_); + void clear_page_token() { + _have_page_token_ = false; + client::ClearCppValueHelper(&page_token_); } /** - * Gets the optional 'visibility' attribute. + * Gets the optional 'pageToken' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_visibility() const { return visibility_; } + const string& get_page_token() const { return page_token_; } /** - * Gets a modifiable pointer to the optional visibility' + * Gets a modifiable pointer to the optional pageToken' * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_visibility() { - _have_visibility_ = true; - return &visibility_; + string* mutable_pageToken() { + _have_page_token_ = true; + return &page_token_; } /** - * Sets the 'visibility' attribute. - * - * @param[in] value The visibility of the new file. This parameter is only - * relevant when the source is not a native Google Doc and convert=false. - */ - void set_visibility(const string& value) { - _have_visibility_ = true; - visibility_ = value; - } - - - - /** - * Clears the 'pinned' attribute so it is no longer set. - */ - void clear_pinned() { - _have_pinned_ = false; - client::ClearCppValueHelper(&pinned_); - } - - - /** - * Gets the optional 'pinned' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_pinned() const { return pinned_; } - - /** - * Sets the 'pinned' attribute. - * - * @param[in] value Whether to pin the head revision of the new copy. A file - * can have a maximum of 200 pinned revisions. - */ - void set_pinned(bool value) { - _have_pinned_ = true; - pinned_ = value; - } - - /** - * Clears the 'ocr' attribute so it is no longer set. - */ - void clear_ocr() { - _have_ocr_ = false; - client::ClearCppValueHelper(&ocr_); - } - - - /** - * Gets the optional 'ocr' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_ocr() const { return ocr_; } - - /** - * Sets the 'ocr' attribute. - * - * @param[in] value Whether to attempt OCR on .jpg, .png, .gif, or .pdf - * uploads. - */ - void set_ocr(bool value) { - _have_ocr_ = true; - ocr_ = value; - } - - /** - * Clears the 'timedTextTrackName' attribute so it is no longer - * set. - */ - void clear_timed_text_track_name() { - _have_timed_text_track_name_ = false; - client::ClearCppValueHelper(&timed_text_track_name_); - } - - - /** - * Gets the optional 'timedTextTrackName' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_timed_text_track_name() const { return timed_text_track_name_; } - - /** - * Gets a modifiable pointer to the optional - * timedTextTrackName' attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_timedTextTrackName() { - _have_timed_text_track_name_ = true; - return &timed_text_track_name_; - } - - - /** - * Sets the 'timedTextTrackName' attribute. + * Sets the 'pageToken' attribute. * - * @param[in] value The timed text track name. + * @param[in] value The continuation token, used to page through large + * result sets. To get the next page of results, set this parameter to the + * value of "nextPageToken" from the previous response. */ - void set_timed_text_track_name(const string& value) { - _have_timed_text_track_name_ = true; - timed_text_track_name_ = value; + void set_page_token(const string& value) { + _have_page_token_ = true; + page_token_ = value; } /** - * Clears the 'timedTextLanguage' attribute so it is no longer - * set. + * Clears the 'updatedMin' attribute so it is no longer set. */ - void clear_timed_text_language() { - _have_timed_text_language_ = false; - client::ClearCppValueHelper(&timed_text_language_); + void clear_updated_min() { + _have_updated_min_ = false; + client::ClearCppValueHelper(&updated_min_); } /** - * Gets the optional 'timedTextLanguage' attribute. + * Gets the optional 'updatedMin' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_timed_text_language() const { return timed_text_language_; } + const string& get_updated_min() const { return updated_min_; } /** - * Gets a modifiable pointer to the optional timedTextLanguage' + * Gets a modifiable pointer to the optional updatedMin' * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_timedTextLanguage() { - _have_timed_text_language_ = true; - return &timed_text_language_; + string* mutable_updatedMin() { + _have_updated_min_ = true; + return &updated_min_; } /** - * Sets the 'timedTextLanguage' attribute. + * Sets the 'updatedMin' attribute. * - * @param[in] value The language of the timed text. + * @param[in] value Only discussions that were updated after this timestamp + * will be returned. Formatted as an RFC 3339 timestamp. */ - void set_timed_text_language(const string& value) { - _have_timed_text_language_ = true; - timed_text_language_ = value; + void set_updated_min(const string& value) { + _have_updated_min_ = true; + updated_min_ = value; } /** @@ -2982,31 +3022,30 @@ class FilesResource_CopyMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - File* data) { + CommentList* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - bool convert_; - string ocr_language_; - string visibility_; - bool pinned_; - bool ocr_; - string timed_text_track_name_; - string timed_text_language_; - bool _have_convert_ : 1; - bool _have_ocr_language_ : 1; - bool _have_visibility_ : 1; - bool _have_pinned_ : 1; - bool _have_ocr_ : 1; - bool _have_timed_text_track_name_ : 1; - bool _have_timed_text_language_ : 1; string _content_; - DISALLOW_COPY_AND_ASSIGN(FilesResource_CopyMethod); + bool include_deleted_; + int32 max_results_; + string page_token_; + string updated_min_; + bool _have_include_deleted_ : 1; + bool _have_max_results_ : 1; + bool _have_page_token_ : 1; + bool _have_updated_min_ : 1; + DISALLOW_COPY_AND_ASSIGN(CommentsResource_ListMethod); }; +typedef client::ServiceRequestPager< + CommentsResource_ListMethod, + CommentList> + CommentsResource_ListMethodPager; + /** - * Implements the delete method. + * Implements the patch method. * * @ingroup ServiceMethod * @@ -3016,10 +3055,9 @@ class FilesResource_CopyMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file */ -class FilesResource_DeleteMethod : public DriveServiceBaseRequest { +class CommentsResource_PatchMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -3027,17 +3065,21 @@ class FilesResource_DeleteMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file to delete. + * @param[in] file_id The ID of the file. + * @param[in] comment_id The ID of the comment. + * @param[in] _content_ The data object to patch. */ - FilesResource_DeleteMethod( + CommentsResource_PatchMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id); + const StringPiece& file_id, + const StringPiece& comment_id, + const Comment& _content_); /** * Standard destructor. */ - virtual ~FilesResource_DeleteMethod(); + virtual ~CommentsResource_PatchMethod(); /** @@ -3055,47 +3097,29 @@ class FilesResource_DeleteMethod : public DriveServiceBaseRequest { string* target); - private: - string file_id_; - DISALLOW_COPY_AND_ASSIGN(FilesResource_DeleteMethod); -}; - -/** - * Implements the emptyTrash method. - * - * @ingroup ServiceMethod - * - * 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 - */ -class FilesResource_EmptyTrashMethod : public DriveServiceBaseRequest { - public: - /** - * The standard constructor takes all the required method parameters. - * @param[in] _service_ The service instance to send to when executed. - * @param[in] _credential_ If not NULL, the credential to authorize with. - * In practice this is supplied by the user code that is - * creating the method instance. - */ - FilesResource_EmptyTrashMethod( - const DriveService* _service_, - client::AuthorizationCredential* _credential_); - /** - * Standard destructor. + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. */ - virtual ~FilesResource_EmptyTrashMethod(); + util::Status ExecuteAndParseResponse( + Comment* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } private: - DISALLOW_COPY_AND_ASSIGN(FilesResource_EmptyTrashMethod); + string file_id_; + string comment_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(CommentsResource_PatchMethod); }; /** - * Implements the generateIds method. + * Implements the update method. * * @ingroup ServiceMethod * @@ -3105,10 +3129,9 @@ class FilesResource_EmptyTrashMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file */ -class FilesResource_GenerateIdsMethod : public DriveServiceBaseRequest { +class CommentsResource_UpdateMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -3116,81 +3139,23 @@ class FilesResource_GenerateIdsMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. + * @param[in] file_id The ID of the file. + * @param[in] comment_id The ID of the comment. + * @param[in] _content_ The data object to update. */ - FilesResource_GenerateIdsMethod( + CommentsResource_UpdateMethod( const DriveService* _service_, - client::AuthorizationCredential* _credential_); + client::AuthorizationCredential* _credential_, + const StringPiece& file_id, + const StringPiece& comment_id, + const Comment& _content_); /** * Standard destructor. */ - virtual ~FilesResource_GenerateIdsMethod(); + virtual ~CommentsResource_UpdateMethod(); - /** - * Clears the 'maxResults' attribute so it is no longer set. - */ - void clear_max_results() { - _have_max_results_ = false; - client::ClearCppValueHelper(&max_results_); - } - - - /** - * Gets the optional 'maxResults' attribute. - * - * If the value is not set then the default value will be returned. - */ - int32 get_max_results() const { return max_results_; } - - /** - * Sets the 'maxResults' attribute. - * - * @param[in] value Maximum number of IDs to return. - */ - void set_max_results(int32 value) { - _have_max_results_ = true; - max_results_ = value; - } - - /** - * Clears the 'space' attribute so it is no longer set. - */ - void clear_space() { - _have_space_ = false; - client::ClearCppValueHelper(&space_); - } - - - /** - * Gets the optional 'space' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_space() const { return space_; } - - /** - * Gets a modifiable pointer to the optional space' attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_space() { - _have_space_ = true; - return &space_; - } - - - /** - * Sets the 'space' attribute. - * - * @param[in] value The space in which the IDs can be used to create new - * files. Supported values are 'drive' and 'appDataFolder'. - */ - void set_space(const string& value) { - _have_space_ = true; - space_ = value; - } - /** * Appends variable value to the target string. * @@ -3205,13 +3170,6 @@ class FilesResource_GenerateIdsMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); - /** - * Appends the optional query parameters to the target URL. - * - * @param[in, out] target The URL string to append to. - */ - virtual util::Status AppendOptionalQueryParameters(string* target); - /** * Executes the method and parses the response into a data object on success. @@ -3224,20 +3182,20 @@ class FilesResource_GenerateIdsMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - GeneratedIds* data) { + Comment* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - int32 max_results_; - string space_; - bool _have_max_results_ : 1; - bool _have_space_ : 1; - DISALLOW_COPY_AND_ASSIGN(FilesResource_GenerateIdsMethod); + string file_id_; + string comment_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(CommentsResource_UpdateMethod); }; + + /** - * Implements the get method. + * Implements the copy method. * * @ingroup ServiceMethod * @@ -3250,12 +3208,9 @@ class FilesResource_GenerateIdsMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.apps.readonly * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly * https://www.googleapis.com/auth/drive.photos.readonly - * https://www.googleapis.com/auth/drive.readonly */ -class FilesResource_GetMethod : public DriveServiceBaseRequest { +class FilesResource_CopyMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -3263,373 +3218,248 @@ class FilesResource_GetMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file in question. + * @param[in] file_id The ID of the file to copy. + * @param[in] _content_ The data object to copy. */ - FilesResource_GetMethod( + FilesResource_CopyMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id); + const StringPiece& file_id, + const File& _content_); /** * Standard destructor. */ - virtual ~FilesResource_GetMethod(); + virtual ~FilesResource_CopyMethod(); /** - * Clears the 'acknowledgeAbuse' attribute so it is no longer - * set. + * Clears the 'convert' attribute so it is no longer set. */ - void clear_acknowledge_abuse() { - _have_acknowledge_abuse_ = false; - client::ClearCppValueHelper(&acknowledge_abuse_); + void clear_convert() { + _have_convert_ = false; + client::ClearCppValueHelper(&convert_); } /** - * Gets the optional 'acknowledgeAbuse' attribute. + * Gets the optional 'convert' attribute. * * If the value is not set then the default value will be returned. */ - bool get_acknowledge_abuse() const { return acknowledge_abuse_; } + bool get_convert() const { return convert_; } /** - * Sets the 'acknowledgeAbuse' attribute. + * Sets the 'convert' attribute. * - * @param[in] value Whether the user is acknowledging the risk of - * downloading known malware or other abusive files. + * @param[in] value Whether to convert this file to the corresponding Google + * Docs format. */ - void set_acknowledge_abuse(bool value) { - _have_acknowledge_abuse_ = true; - acknowledge_abuse_ = value; + void set_convert(bool value) { + _have_convert_ = true; + convert_ = value; } /** - * Clears the 'updateViewedDate' attribute so it is no longer - * set. + * Clears the 'ocr' attribute so it is no longer set. */ - void clear_update_viewed_date() { - _have_update_viewed_date_ = false; - client::ClearCppValueHelper(&update_viewed_date_); + void clear_ocr() { + _have_ocr_ = false; + client::ClearCppValueHelper(&ocr_); } /** - * Gets the optional 'updateViewedDate' attribute. + * Gets the optional 'ocr' attribute. * * If the value is not set then the default value will be returned. */ - bool get_update_viewed_date() const { return update_viewed_date_; } + bool get_ocr() const { return ocr_; } /** - * Sets the 'updateViewedDate' attribute. - * @deprecated + * Sets the 'ocr' attribute. * - * @param[in] value Deprecated: Use files.update with - * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request - * body. + * @param[in] value Whether to attempt OCR on .jpg, .png, .gif, or .pdf + * uploads. */ - void set_update_viewed_date(bool value) { - _have_update_viewed_date_ = true; - update_viewed_date_ = value; + void set_ocr(bool value) { + _have_ocr_ = true; + ocr_ = value; } /** - * Clears the 'revisionId' attribute so it is no longer set. + * Clears the 'ocrLanguage' attribute so it is no longer set. */ - void clear_revision_id() { - _have_revision_id_ = false; - client::ClearCppValueHelper(&revision_id_); + void clear_ocr_language() { + _have_ocr_language_ = false; + client::ClearCppValueHelper(&ocr_language_); } /** - * Gets the optional 'revisionId' attribute. + * Gets the optional 'ocrLanguage' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_revision_id() const { return revision_id_; } + const string& get_ocr_language() const { return ocr_language_; } /** - * Gets a modifiable pointer to the optional revisionId' + * Gets a modifiable pointer to the optional ocrLanguage' * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_revisionId() { - _have_revision_id_ = true; - return &revision_id_; + string* mutable_ocrLanguage() { + _have_ocr_language_ = true; + return &ocr_language_; } /** - * Sets the 'revisionId' attribute. + * Sets the 'ocrLanguage' attribute. * - * @param[in] value Specifies the Revision ID that should be downloaded. - * Ignored unless alt=media is specified. + * @param[in] value If ocr is true, hints at the language to use. Valid + * values are BCP 47 codes. */ - void set_revision_id(const string& value) { - _have_revision_id_ = true; - revision_id_ = value; + void set_ocr_language(const string& value) { + _have_ocr_language_ = true; + ocr_language_ = value; } /** - * Clears the 'projection' attribute so it is no longer set. + * Clears the 'pinned' attribute so it is no longer set. */ - void clear_projection() { - _have_projection_ = false; - client::ClearCppValueHelper(&projection_); + void clear_pinned() { + _have_pinned_ = false; + client::ClearCppValueHelper(&pinned_); } /** - * Gets the optional 'projection' attribute. + * Gets the optional 'pinned' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_projection() const { return projection_; } + bool get_pinned() const { return pinned_; } /** - * Gets a modifiable pointer to the optional projection' - * attribute. + * Sets the 'pinned' attribute. * - * @return The value can be set by dereferencing the pointer. + * @param[in] value Whether to pin the head revision of the new copy. A file + * can have a maximum of 200 pinned revisions. */ - string* mutable_projection() { - _have_projection_ = true; - return &projection_; + void set_pinned(bool value) { + _have_pinned_ = true; + pinned_ = value; + } + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); } /** - * Sets the 'projection' attribute. + * Gets the optional 'supportsTeamDrives' attribute. * - * @param[in] value This parameter is deprecated and has no function. + * If the value is not set then the default value will be returned. */ - void set_projection(const string& value) { - _have_projection_ = true; - projection_ = value; + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; } - /** - * Appends variable value to the target string. - * - * This is a helper function used to resolve templated variables in the URI. - * - * @param[in] variable_name The name of the templated variable. - * @param[in] config A pass-through parameter used for lists and maps. - * @param[in, out] target The string to append the value to. - */ - virtual util::Status AppendVariable( - const StringPiece& variable_name, - const client::UriTemplateConfig& config, - string* target); + /** + * Clears the 'timedTextLanguage' attribute so it is no longer + * set. + */ + void clear_timed_text_language() { + _have_timed_text_language_ = false; + client::ClearCppValueHelper(&timed_text_language_); + } - /** - * Appends the optional query parameters to the target URL. - * - * @param[in, out] target The URL string to append to. - */ - virtual util::Status AppendOptionalQueryParameters(string* target); - - - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - File* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } - - /** - * Determine if the request should use Media Download for the response. - * - * @return true for media download, false otherwise. - */ - bool get_use_media_download() const { - return DriveServiceBaseRequest::get_use_media_download(); - } - - /** - * Sets whether Media Download should be used for the response data. - * - * @param[in] use true to use media download, false otherwise. - */ - void set_use_media_download(bool use) { - DriveServiceBaseRequest::set_use_media_download(use); - } - - private: - string file_id_; - bool acknowledge_abuse_; - bool update_viewed_date_; - string revision_id_; - string projection_; - bool _have_acknowledge_abuse_ : 1; - bool _have_update_viewed_date_ : 1; - bool _have_revision_id_ : 1; - bool _have_projection_ : 1; - DISALLOW_COPY_AND_ASSIGN(FilesResource_GetMethod); -}; - -/** - * Implements the insert method. - * - * @ingroup ServiceMethod - * - * 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.appdata - * https://www.googleapis.com/auth/drive.apps.readonly - * https://www.googleapis.com/auth/drive.file - */ -class FilesResource_InsertMethod : public DriveServiceBaseRequest { - public: - /** - * The standard constructor takes all the required method parameters. - * - * @deprecated in favor constructor that includes the media upload parameters. - * - * @param[in] _service_ The service instance to send to when executed. - * @param[in] _credential_ If not NULL, the credential to authorize with. - * In practice this is supplied by the user code that is - * creating the method instance. - * @param[in] _content_ The data object to insert. - */ - FilesResource_InsertMethod( - const DriveService* _service_, - client::AuthorizationCredential* _credential_); - /** - * The standard constructor takes all the required method parameters. - * @param[in] _service_ The service instance to send to when executed. - * @param[in] _credential_ If not NULL, the credential to authorize with. - * In practice this is supplied by the user code that is - * creating the method instance. - * @param[in] _metadata_ The metadata object to insert. If this - * is NULL then do not upload any metadata. - * @param[in] _media_content_type_ The content type of the data in the - * _media_content_reader_. - * @param[in] _media_content_reader_ The media content to insert. If - * this is NULL then do not upload any media and ignore - * _media_content_type_. - */ - FilesResource_InsertMethod( - const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const File* _metadata_, - const StringPiece& _media_content_type_, - client::DataReader* _media_content_reader_); - - /** - * Standard destructor. - */ - virtual ~FilesResource_InsertMethod(); + /** + * Gets the optional 'timedTextLanguage' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_timed_text_language() const { return timed_text_language_; } /** - * Clears the 'convert' attribute so it is no longer set. + * Gets a modifiable pointer to the optional timedTextLanguage' + * attribute. + * + * @return The value can be set by dereferencing the pointer. */ - void clear_convert() { - _have_convert_ = false; - client::ClearCppValueHelper(&convert_); + string* mutable_timedTextLanguage() { + _have_timed_text_language_ = true; + return &timed_text_language_; } /** - * Gets the optional 'convert' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_convert() const { return convert_; } - - /** - * Sets the 'convert' attribute. + * Sets the 'timedTextLanguage' attribute. * - * @param[in] value Whether to convert this file to the corresponding Google - * Docs format. - */ - void set_convert(bool value) { - _have_convert_ = true; - convert_ = value; - } - - /** - * Clears the 'useContentAsIndexableText' attribute so it is no - * longer set. + * @param[in] value The language of the timed text. */ - void clear_use_content_as_indexable_text() { - _have_use_content_as_indexable_text_ = false; - client::ClearCppValueHelper(&use_content_as_indexable_text_); + void set_timed_text_language(const string& value) { + _have_timed_text_language_ = true; + timed_text_language_ = value; } - /** - * Gets the optional 'useContentAsIndexableText' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_use_content_as_indexable_text() const { return use_content_as_indexable_text_; } - - /** - * Sets the 'useContentAsIndexableText' attribute. - * - * @param[in] value Whether to use the content as indexable text. - */ - void set_use_content_as_indexable_text(bool value) { - _have_use_content_as_indexable_text_ = true; - use_content_as_indexable_text_ = value; - } /** - * Clears the 'ocrLanguage' attribute so it is no longer set. + * Clears the 'timedTextTrackName' attribute so it is no longer + * set. */ - void clear_ocr_language() { - _have_ocr_language_ = false; - client::ClearCppValueHelper(&ocr_language_); + void clear_timed_text_track_name() { + _have_timed_text_track_name_ = false; + client::ClearCppValueHelper(&timed_text_track_name_); } /** - * Gets the optional 'ocrLanguage' attribute. + * Gets the optional 'timedTextTrackName' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_ocr_language() const { return ocr_language_; } + const string& get_timed_text_track_name() const { return timed_text_track_name_; } /** - * Gets a modifiable pointer to the optional ocrLanguage' - * attribute. + * Gets a modifiable pointer to the optional + * timedTextTrackName' attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_ocrLanguage() { - _have_ocr_language_ = true; - return &ocr_language_; + string* mutable_timedTextTrackName() { + _have_timed_text_track_name_ = true; + return &timed_text_track_name_; } /** - * Sets the 'ocrLanguage' attribute. + * Sets the 'timedTextTrackName' attribute. * - * @param[in] value If ocr is true, hints at the language to use. Valid - * values are BCP 47 codes. + * @param[in] value The timed text track name. */ - void set_ocr_language(const string& value) { - _have_ocr_language_ = true; - ocr_language_ = value; + void set_timed_text_track_name(const string& value) { + _have_timed_text_track_name_ = true; + timed_text_track_name_ = value; } @@ -3666,147 +3496,131 @@ class FilesResource_InsertMethod : public DriveServiceBaseRequest { * Sets the 'visibility' attribute. * * @param[in] value The visibility of the new file. This parameter is only - * relevant when convert=false. + * relevant when the source is not a native Google Doc and convert=false. */ void set_visibility(const string& value) { _have_visibility_ = true; visibility_ = value; } + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); - /** - * Clears the 'pinned' attribute so it is no longer set. - */ - void clear_pinned() { - _have_pinned_ = false; - client::ClearCppValueHelper(&pinned_); - } + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + File* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } - /** - * Gets the optional 'pinned' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_pinned() const { return pinned_; } + private: + string file_id_; + bool convert_; + bool ocr_; + string ocr_language_; + bool pinned_; + bool supports_team_drives_; + string timed_text_language_; + string timed_text_track_name_; + string visibility_; + bool _have_convert_ : 1; + bool _have_ocr_ : 1; + bool _have_ocr_language_ : 1; + bool _have_pinned_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_timed_text_language_ : 1; + bool _have_timed_text_track_name_ : 1; + bool _have_visibility_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(FilesResource_CopyMethod); +}; - /** - * Sets the 'pinned' attribute. - * - * @param[in] value Whether to pin the head revision of the uploaded file. A - * file can have a maximum of 200 pinned revisions. - */ - void set_pinned(bool value) { - _have_pinned_ = true; - pinned_ = value; - } - - /** - * Clears the 'ocr' attribute so it is no longer set. - */ - void clear_ocr() { - _have_ocr_ = false; - client::ClearCppValueHelper(&ocr_); - } - - - /** - * Gets the optional 'ocr' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_ocr() const { return ocr_; } - - /** - * Sets the 'ocr' attribute. - * - * @param[in] value Whether to attempt OCR on .jpg, .png, .gif, or .pdf - * uploads. - */ - void set_ocr(bool value) { - _have_ocr_ = true; - ocr_ = value; - } - - /** - * Clears the 'timedTextTrackName' attribute so it is no longer - * set. - */ - void clear_timed_text_track_name() { - _have_timed_text_track_name_ = false; - client::ClearCppValueHelper(&timed_text_track_name_); - } - - - /** - * Gets the optional 'timedTextTrackName' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_timed_text_track_name() const { return timed_text_track_name_; } - - /** - * Gets a modifiable pointer to the optional - * timedTextTrackName' attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_timedTextTrackName() { - _have_timed_text_track_name_ = true; - return &timed_text_track_name_; - } - - - /** - * Sets the 'timedTextTrackName' attribute. - * - * @param[in] value The timed text track name. - */ - void set_timed_text_track_name(const string& value) { - _have_timed_text_track_name_ = true; - timed_text_track_name_ = value; - } +/** + * Implements the delete method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.file + */ +class FilesResource_DeleteMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file to delete. + */ + FilesResource_DeleteMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id); + /** + * Standard destructor. + */ + virtual ~FilesResource_DeleteMethod(); /** - * Clears the 'timedTextLanguage' attribute so it is no longer + * Clears the 'supportsTeamDrives' attribute so it is no longer * set. */ - void clear_timed_text_language() { - _have_timed_text_language_ = false; - client::ClearCppValueHelper(&timed_text_language_); + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); } /** - * Gets the optional 'timedTextLanguage' attribute. + * Gets the optional 'supportsTeamDrives' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_timed_text_language() const { return timed_text_language_; } - - /** - * Gets a modifiable pointer to the optional timedTextLanguage' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_timedTextLanguage() { - _have_timed_text_language_ = true; - return &timed_text_language_; - } - + bool get_supports_team_drives() const { return supports_team_drives_; } /** - * Sets the 'timedTextLanguage' attribute. + * Sets the 'supportsTeamDrives' attribute. * - * @param[in] value The language of the timed text. + * @param[in] value Whether the requesting application supports Team Drives. */ - void set_timed_text_language(const string& value) { - _have_timed_text_language_ = true; - timed_text_language_ = value; + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; } /** @@ -3831,57 +3645,49 @@ class FilesResource_InsertMethod : public DriveServiceBaseRequest { virtual util::Status AppendOptionalQueryParameters(string* target); - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - File* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } - + private: + string file_id_; + bool supports_team_drives_; + bool _have_supports_team_drives_ : 1; + DISALLOW_COPY_AND_ASSIGN(FilesResource_DeleteMethod); +}; +/** + * Implements the emptyTrash method. + * + * @ingroup ServiceMethod + * + * 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 + */ +class FilesResource_EmptyTrashMethod : public DriveServiceBaseRequest { + public: /** - * Returns MediaUploader for uploading the content. + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. */ + FilesResource_EmptyTrashMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_); /** - * Returns the specification for media upload using the simple protocol. - */ - static const client::MediaUploadSpec SIMPLE_MEDIA_UPLOAD; - /** - * Returns the specification for media upload using the resumable protocol. + * Standard destructor. */ - static const client::MediaUploadSpec RESUMABLE_MEDIA_UPLOAD; + virtual ~FilesResource_EmptyTrashMethod(); private: - bool convert_; - bool use_content_as_indexable_text_; - string ocr_language_; - string visibility_; - bool pinned_; - bool ocr_; - string timed_text_track_name_; - string timed_text_language_; - bool _have_convert_ : 1; - bool _have_use_content_as_indexable_text_ : 1; - bool _have_ocr_language_ : 1; - bool _have_visibility_ : 1; - bool _have_pinned_ : 1; - bool _have_ocr_ : 1; - bool _have_timed_text_track_name_ : 1; - bool _have_timed_text_language_ : 1; - DISALLOW_COPY_AND_ASSIGN(FilesResource_InsertMethod); + DISALLOW_COPY_AND_ASSIGN(FilesResource_EmptyTrashMethod); }; /** - * Implements the list method. + * Implements the export method. * * @ingroup ServiceMethod * @@ -3891,15 +3697,10 @@ class FilesResource_InsertMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.apps.readonly * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class FilesResource_ListMethod : public DriveServiceBaseRequest { +class FilesResource_ExportMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -3907,102 +3708,98 @@ class FilesResource_ListMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. + * @param[in] file_id The ID of the file. + * @param[in] mime_type The MIME type of the format requested for this export. */ - FilesResource_ListMethod( + FilesResource_ExportMethod( const DriveService* _service_, - client::AuthorizationCredential* _credential_); + client::AuthorizationCredential* _credential_, + const StringPiece& file_id, + const StringPiece& mime_type); /** * Standard destructor. */ - virtual ~FilesResource_ListMethod(); - - - /** - * Clears the 'orderBy' attribute so it is no longer set. - */ - void clear_order_by() { - _have_order_by_ = false; - client::ClearCppValueHelper(&order_by_); - } + virtual ~FilesResource_ExportMethod(); - /** - * Gets the optional 'orderBy' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_order_by() const { return order_by_; } + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); - /** - * Gets a modifiable pointer to the optional orderBy' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_orderBy() { - _have_order_by_ = true; - return &order_by_; - } + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); - /** - * Sets the 'orderBy' attribute. - * - * @param[in] value A comma-separated list of sort keys. Valid keys are - * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', - * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', - * 'starred', and 'title'. Each key sorts ascending by default, but may be - * reversed with the 'desc' modifier. Example usage: - * ?orderBy=folder,modifiedDate desc,title. Please note that there is a - * current limitation for users with approximately one million files in - * which the requested sort order is ignored. - */ - void set_order_by(const string& value) { - _have_order_by_ = true; - order_by_ = value; - } - - - - /** - * Clears the 'projection' attribute so it is no longer set. - */ - void clear_projection() { - _have_projection_ = false; - client::ClearCppValueHelper(&projection_); - } - - - /** - * Gets the optional 'projection' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_projection() const { return projection_; } + /** + * Determine if the request should use Media Download for the response. + * + * @return true for media download, false otherwise. + */ + bool get_use_media_download() const { + return DriveServiceBaseRequest::get_use_media_download(); + } - /** - * Gets a modifiable pointer to the optional projection' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_projection() { - _have_projection_ = true; - return &projection_; - } + /** + * Sets whether Media Download should be used for the response data. + * + * @param[in] use true to use media download, false otherwise. + */ + void set_use_media_download(bool use) { + DriveServiceBaseRequest::set_use_media_download(use); + } + private: + string file_id_; + string mime_type_; + DISALLOW_COPY_AND_ASSIGN(FilesResource_ExportMethod); +}; - /** - * Sets the 'projection' attribute. - * - * @param[in] value This parameter is deprecated and has no function. - */ - void set_projection(const string& value) { - _have_projection_ = true; - projection_ = value; - } +/** + * Implements the generateIds method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.file + */ +class FilesResource_GenerateIdsMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + */ + FilesResource_GenerateIdsMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_); + /** + * Standard destructor. + */ + virtual ~FilesResource_GenerateIdsMethod(); /** @@ -4024,7 +3821,7 @@ class FilesResource_ListMethod : public DriveServiceBaseRequest { /** * Sets the 'maxResults' attribute. * - * @param[in] value Maximum number of files to return. + * @param[in] value Maximum number of IDs to return. */ void set_max_results(int32 value) { _have_max_results_ = true; @@ -4032,160 +3829,41 @@ class FilesResource_ListMethod : public DriveServiceBaseRequest { } /** - * Clears the 'q' attribute so it is no longer set. - */ - void clear_q() { - _have_q_ = false; - client::ClearCppValueHelper(&q_); - } - - - /** - * Gets the optional 'q' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_q() const { return q_; } - - /** - * Gets a modifiable pointer to the optional q' attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_q() { - _have_q_ = true; - return &q_; - } - - - /** - * Sets the 'q' attribute. - * - * @param[in] value Query string for searching files. - */ - void set_q(const string& value) { - _have_q_ = true; - q_ = value; - } - - - - /** - * Clears the 'pageToken' attribute so it is no longer set. - */ - void clear_page_token() { - _have_page_token_ = false; - client::ClearCppValueHelper(&page_token_); - } - - - /** - * Gets the optional 'pageToken' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_page_token() const { return page_token_; } - - /** - * Gets a modifiable pointer to the optional pageToken' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_pageToken() { - _have_page_token_ = true; - return &page_token_; - } - - - /** - * Sets the 'pageToken' attribute. - * - * @param[in] value Page token for files. - */ - void set_page_token(const string& value) { - _have_page_token_ = true; - page_token_ = value; - } - - - - /** - * Clears the 'spaces' attribute so it is no longer set. - */ - void clear_spaces() { - _have_spaces_ = false; - client::ClearCppValueHelper(&spaces_); - } - - - /** - * Gets the optional 'spaces' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_spaces() const { return spaces_; } - - /** - * Gets a modifiable pointer to the optional spaces' attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_spaces() { - _have_spaces_ = true; - return &spaces_; - } - - - /** - * Sets the 'spaces' attribute. - * - * @param[in] value A comma-separated list of spaces to query. Supported - * values are 'drive', 'appDataFolder' and 'photos'. - */ - void set_spaces(const string& value) { - _have_spaces_ = true; - spaces_ = value; - } - - - - /** - * Clears the 'corpus' attribute so it is no longer set. + * Clears the 'space' attribute so it is no longer set. */ - void clear_corpus() { - _have_corpus_ = false; - client::ClearCppValueHelper(&corpus_); + void clear_space() { + _have_space_ = false; + client::ClearCppValueHelper(&space_); } /** - * Gets the optional 'corpus' attribute. + * Gets the optional 'space' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_corpus() const { return corpus_; } + const string& get_space() const { return space_; } /** - * Gets a modifiable pointer to the optional corpus' attribute. + * Gets a modifiable pointer to the optional space' attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_corpus() { - _have_corpus_ = true; - return &corpus_; + string* mutable_space() { + _have_space_ = true; + return &space_; } /** - * Sets the 'corpus' attribute. + * Sets the 'space' attribute. * - * @param[in] value The body of items (files/documents) to which the query - * applies. + * @param[in] value The space in which the IDs can be used to create new + * files. Supported values are 'drive' and 'appDataFolder'. */ - void set_corpus(const string& value) { - _have_corpus_ = true; - corpus_ = value; + void set_space(const string& value) { + _have_space_ = true; + space_ = value; } /** @@ -4221,35 +3899,20 @@ class FilesResource_ListMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - FileList* data) { + GeneratedIds* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string order_by_; - string projection_; int32 max_results_; - string q_; - string page_token_; - string spaces_; - string corpus_; - bool _have_order_by_ : 1; - bool _have_projection_ : 1; + string space_; bool _have_max_results_ : 1; - bool _have_q_ : 1; - bool _have_page_token_ : 1; - bool _have_spaces_ : 1; - bool _have_corpus_ : 1; - DISALLOW_COPY_AND_ASSIGN(FilesResource_ListMethod); + bool _have_space_ : 1; + DISALLOW_COPY_AND_ASSIGN(FilesResource_GenerateIdsMethod); }; -typedef client::ServiceRequestPager< - FilesResource_ListMethod, - FileList> - FilesResource_ListMethodPager; - /** - * Implements the patch method. + * Implements the get method. * * @ingroup ServiceMethod * @@ -4260,12 +3923,13 @@ typedef client::ServiceRequestPager< * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.apps.readonly * https://www.googleapis.com/auth/drive.file * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.scripts + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly */ -class FilesResource_PatchMethod : public DriveServiceBaseRequest { +class FilesResource_GetMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -4273,233 +3937,320 @@ class FilesResource_PatchMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file to update. - * @param[in] _content_ The data object to patch. + * @param[in] file_id The ID for the file in question. */ - FilesResource_PatchMethod( + FilesResource_GetMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const File& _content_); + const StringPiece& file_id); /** * Standard destructor. */ - virtual ~FilesResource_PatchMethod(); + virtual ~FilesResource_GetMethod(); /** - * Clears the 'addParents' attribute so it is no longer set. + * Clears the 'acknowledgeAbuse' attribute so it is no longer + * set. */ - void clear_add_parents() { - _have_add_parents_ = false; - client::ClearCppValueHelper(&add_parents_); + void clear_acknowledge_abuse() { + _have_acknowledge_abuse_ = false; + client::ClearCppValueHelper(&acknowledge_abuse_); } /** - * Gets the optional 'addParents' attribute. + * Gets the optional 'acknowledgeAbuse' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_add_parents() const { return add_parents_; } - - /** - * Gets a modifiable pointer to the optional addParents' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_addParents() { - _have_add_parents_ = true; - return &add_parents_; - } - + bool get_acknowledge_abuse() const { return acknowledge_abuse_; } /** - * Sets the 'addParents' attribute. + * Sets the 'acknowledgeAbuse' attribute. * - * @param[in] value Comma-separated list of parent IDs to add. + * @param[in] value Whether the user is acknowledging the risk of + * downloading known malware or other abusive files. */ - void set_add_parents(const string& value) { - _have_add_parents_ = true; - add_parents_ = value; + void set_acknowledge_abuse(bool value) { + _have_acknowledge_abuse_ = true; + acknowledge_abuse_ = value; } - - /** - * Clears the 'modifiedDateBehavior' attribute so it is no - * longer set. + * Clears the 'projection' attribute so it is no longer set. */ - void clear_modified_date_behavior() { - _have_modified_date_behavior_ = false; - client::ClearCppValueHelper(&modified_date_behavior_); + void clear_projection() { + _have_projection_ = false; + client::ClearCppValueHelper(&projection_); } /** - * Gets the optional 'modifiedDateBehavior' attribute. + * Gets the optional 'projection' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_modified_date_behavior() const { return modified_date_behavior_; } + const string& get_projection() const { return projection_; } /** - * Gets a modifiable pointer to the optional - * modifiedDateBehavior' attribute. + * Gets a modifiable pointer to the optional projection' + * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_modifiedDateBehavior() { - _have_modified_date_behavior_ = true; - return &modified_date_behavior_; + string* mutable_projection() { + _have_projection_ = true; + return &projection_; } /** - * Sets the 'modifiedDateBehavior' attribute. + * Sets the 'projection' attribute. * - * @param[in] value Determines the behavior in which modifiedDate is - * updated. This overrides setModifiedDate. + * @param[in] value This parameter is deprecated and has no function. */ - void set_modified_date_behavior(const string& value) { - _have_modified_date_behavior_ = true; - modified_date_behavior_ = value; + void set_projection(const string& value) { + _have_projection_ = true; + projection_ = value; } /** - * Clears the 'removeParents' attribute so it is no longer set. + * Clears the 'revisionId' attribute so it is no longer set. */ - void clear_remove_parents() { - _have_remove_parents_ = false; - client::ClearCppValueHelper(&remove_parents_); + void clear_revision_id() { + _have_revision_id_ = false; + client::ClearCppValueHelper(&revision_id_); } /** - * Gets the optional 'removeParents' attribute. + * Gets the optional 'revisionId' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_remove_parents() const { return remove_parents_; } + const string& get_revision_id() const { return revision_id_; } /** - * Gets a modifiable pointer to the optional removeParents' + * Gets a modifiable pointer to the optional revisionId' * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_removeParents() { - _have_remove_parents_ = true; - return &remove_parents_; + string* mutable_revisionId() { + _have_revision_id_ = true; + return &revision_id_; } /** - * Sets the 'removeParents' attribute. + * Sets the 'revisionId' attribute. * - * @param[in] value Comma-separated list of parent IDs to remove. + * @param[in] value Specifies the Revision ID that should be downloaded. + * Ignored unless alt=media is specified. */ - void set_remove_parents(const string& value) { - _have_remove_parents_ = true; - remove_parents_ = value; + void set_revision_id(const string& value) { + _have_revision_id_ = true; + revision_id_ = value; } /** - * Clears the 'updateViewedDate' attribute so it is no longer + * Clears the 'supportsTeamDrives' attribute so it is no longer * set. */ - void clear_update_viewed_date() { - _have_update_viewed_date_ = false; - client::ClearCppValueHelper(&update_viewed_date_); + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); } /** - * Gets the optional 'updateViewedDate' attribute. + * Gets the optional 'supportsTeamDrives' attribute. * * If the value is not set then the default value will be returned. */ - bool get_update_viewed_date() const { return update_viewed_date_; } + bool get_supports_team_drives() const { return supports_team_drives_; } /** - * Sets the 'updateViewedDate' attribute. + * Sets the 'supportsTeamDrives' attribute. * - * @param[in] value Whether to update the view date after successfully - * updating the file. + * @param[in] value Whether the requesting application supports Team Drives. */ - void set_update_viewed_date(bool value) { - _have_update_viewed_date_ = true; - update_viewed_date_ = value; + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; } /** - * Clears the 'setModifiedDate' attribute so it is no longer + * Clears the 'updateViewedDate' attribute so it is no longer * set. */ - void clear_set_modified_date() { - _have_set_modified_date_ = false; - client::ClearCppValueHelper(&set_modified_date_); + void clear_update_viewed_date() { + _have_update_viewed_date_ = false; + client::ClearCppValueHelper(&update_viewed_date_); } /** - * Gets the optional 'setModifiedDate' attribute. + * Gets the optional 'updateViewedDate' attribute. * * If the value is not set then the default value will be returned. */ - bool get_set_modified_date() const { return set_modified_date_; } + bool get_update_viewed_date() const { return update_viewed_date_; } /** - * Sets the 'setModifiedDate' attribute. + * Sets the 'updateViewedDate' attribute. + * @deprecated * - * @param[in] value Whether to set the modified date with the supplied - * modified date. + * @param[in] value Deprecated: Use files.update with + * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request + * body. */ - void set_set_modified_date(bool value) { - _have_set_modified_date_ = true; - set_modified_date_ = value; + void set_update_viewed_date(bool value) { + _have_update_viewed_date_ = true; + update_viewed_date_ = value; } - /** - * Clears the 'useContentAsIndexableText' attribute so it is no - * longer set. - */ - void clear_use_content_as_indexable_text() { - _have_use_content_as_indexable_text_ = false; - client::ClearCppValueHelper(&use_content_as_indexable_text_); - } + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); - /** - * Gets the optional 'useContentAsIndexableText' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_use_content_as_indexable_text() const { return use_content_as_indexable_text_; } - /** - * Sets the 'useContentAsIndexableText' attribute. - * - * @param[in] value Whether to use the content as indexable text. - */ - void set_use_content_as_indexable_text(bool value) { - _have_use_content_as_indexable_text_ = true; - use_content_as_indexable_text_ = value; - } + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + File* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } - /** - * Clears the 'convert' attribute so it is no longer set. - */ - void clear_convert() { - _have_convert_ = false; - client::ClearCppValueHelper(&convert_); - } + /** + * Determine if the request should use Media Download for the response. + * + * @return true for media download, false otherwise. + */ + bool get_use_media_download() const { + return DriveServiceBaseRequest::get_use_media_download(); + } + + /** + * Sets whether Media Download should be used for the response data. + * + * @param[in] use true to use media download, false otherwise. + */ + void set_use_media_download(bool use) { + DriveServiceBaseRequest::set_use_media_download(use); + } + + private: + string file_id_; + bool acknowledge_abuse_; + string projection_; + string revision_id_; + bool supports_team_drives_; + bool update_viewed_date_; + bool _have_acknowledge_abuse_ : 1; + bool _have_projection_ : 1; + bool _have_revision_id_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_update_viewed_date_ : 1; + DISALLOW_COPY_AND_ASSIGN(FilesResource_GetMethod); +}; + +/** + * Implements the insert method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.apps.readonly + * https://www.googleapis.com/auth/drive.file + */ +class FilesResource_InsertMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * + * @deprecated in favor constructor that includes the media upload parameters. + * + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] _content_ The data object to insert. + */ + FilesResource_InsertMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_); + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] _metadata_ The metadata object to insert. If this + * is NULL then do not upload any metadata. + * @param[in] _media_content_type_ The content type of the data in the + * _media_content_reader_. + * @param[in] _media_content_reader_ The media content to insert. If + * this is NULL then do not upload any media and ignore + * _media_content_type_. + */ + FilesResource_InsertMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const File* _metadata_, + const StringPiece& _media_content_type_, + client::DataReader* _media_content_reader_); + + /** + * Standard destructor. + */ + virtual ~FilesResource_InsertMethod(); + + + /** + * Clears the 'convert' attribute so it is no longer set. + */ + void clear_convert() { + _have_convert_ = false; + client::ClearCppValueHelper(&convert_); + } /** @@ -4512,13 +4263,41 @@ class FilesResource_PatchMethod : public DriveServiceBaseRequest { /** * Sets the 'convert' attribute. * - * @param[in] value This parameter is deprecated and has no function. + * @param[in] value Whether to convert this file to the corresponding Google + * Docs format. */ void set_convert(bool value) { _have_convert_ = true; convert_ = value; } + /** + * Clears the 'ocr' attribute so it is no longer set. + */ + void clear_ocr() { + _have_ocr_ = false; + client::ClearCppValueHelper(&ocr_); + } + + + /** + * Gets the optional 'ocr' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_ocr() const { return ocr_; } + + /** + * Sets the 'ocr' attribute. + * + * @param[in] value Whether to attempt OCR on .jpg, .png, .gif, or .pdf + * uploads. + */ + void set_ocr(bool value) { + _have_ocr_ = true; + ocr_ = value; + } + /** * Clears the 'ocrLanguage' attribute so it is no longer set. */ @@ -4579,8 +4358,8 @@ class FilesResource_PatchMethod : public DriveServiceBaseRequest { /** * Sets the 'pinned' attribute. * - * @param[in] value Whether to pin the new revision. A file can have a - * maximum of 200 pinned revisions. + * @param[in] value Whether to pin the head revision of the uploaded file. A + * file can have a maximum of 200 pinned revisions. */ void set_pinned(bool value) { _have_pinned_ = true; @@ -4588,62 +4367,30 @@ class FilesResource_PatchMethod : public DriveServiceBaseRequest { } /** - * Clears the 'newRevision' attribute so it is no longer set. - */ - void clear_new_revision() { - _have_new_revision_ = false; - client::ClearCppValueHelper(&new_revision_); - } - - - /** - * Gets the optional 'newRevision' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_new_revision() const { return new_revision_; } - - /** - * Sets the 'newRevision' attribute. - * - * @param[in] value Whether a blob upload should create a new revision. If - * false, the blob data in the current head revision is replaced. If true or - * not set, a new blob is created as head revision, and previous unpinned - * revisions are preserved for a short period of time. Pinned revisions are - * stored indefinitely, using additional storage quota, up to a maximum of - * 200 revisions. For details on how revisions are retained, see the Drive - * Help Center. - */ - void set_new_revision(bool value) { - _have_new_revision_ = true; - new_revision_ = value; - } - - /** - * Clears the 'ocr' attribute so it is no longer set. + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. */ - void clear_ocr() { - _have_ocr_ = false; - client::ClearCppValueHelper(&ocr_); + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); } /** - * Gets the optional 'ocr' attribute. + * Gets the optional 'supportsTeamDrives' attribute. * * If the value is not set then the default value will be returned. */ - bool get_ocr() const { return ocr_; } + bool get_supports_team_drives() const { return supports_team_drives_; } /** - * Sets the 'ocr' attribute. + * Sets the 'supportsTeamDrives' attribute. * - * @param[in] value Whether to attempt OCR on .jpg, .png, .gif, or .pdf - * uploads. + * @param[in] value Whether the requesting application supports Team Drives. */ - void set_ocr(bool value) { - _have_ocr_ = true; - ocr_ = value; + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; } /** @@ -4726,6 +4473,74 @@ class FilesResource_PatchMethod : public DriveServiceBaseRequest { timed_text_track_name_ = value; } + + + /** + * Clears the 'useContentAsIndexableText' attribute so it is no + * longer set. + */ + void clear_use_content_as_indexable_text() { + _have_use_content_as_indexable_text_ = false; + client::ClearCppValueHelper(&use_content_as_indexable_text_); + } + + + /** + * Gets the optional 'useContentAsIndexableText' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_use_content_as_indexable_text() const { return use_content_as_indexable_text_; } + + /** + * Sets the 'useContentAsIndexableText' attribute. + * + * @param[in] value Whether to use the content as indexable text. + */ + void set_use_content_as_indexable_text(bool value) { + _have_use_content_as_indexable_text_ = true; + use_content_as_indexable_text_ = value; + } + + /** + * Clears the 'visibility' attribute so it is no longer set. + */ + void clear_visibility() { + _have_visibility_ = false; + client::ClearCppValueHelper(&visibility_); + } + + + /** + * Gets the optional 'visibility' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_visibility() const { return visibility_; } + + /** + * Gets a modifiable pointer to the optional visibility' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_visibility() { + _have_visibility_ = true; + return &visibility_; + } + + + /** + * Sets the 'visibility' attribute. + * + * @param[in] value The visibility of the new file. This parameter is only + * relevant when convert=false. + */ + void set_visibility(const string& value) { + _have_visibility_ = true; + visibility_ = value; + } + /** * Appends variable value to the target string. * @@ -4763,39 +4578,44 @@ class FilesResource_PatchMethod : public DriveServiceBaseRequest { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } + + /** + * Returns MediaUploader for uploading the content. + */ + + /** + * Returns the specification for media upload using the simple protocol. + */ + static const client::MediaUploadSpec SIMPLE_MEDIA_UPLOAD; + /** + * Returns the specification for media upload using the resumable protocol. + */ + static const client::MediaUploadSpec RESUMABLE_MEDIA_UPLOAD; + private: - string file_id_; - string add_parents_; - string modified_date_behavior_; - string remove_parents_; - bool update_viewed_date_; - bool set_modified_date_; - bool use_content_as_indexable_text_; bool convert_; + bool ocr_; string ocr_language_; bool pinned_; - bool new_revision_; - bool ocr_; + bool supports_team_drives_; string timed_text_language_; string timed_text_track_name_; - bool _have_add_parents_ : 1; - bool _have_modified_date_behavior_ : 1; - bool _have_remove_parents_ : 1; - bool _have_update_viewed_date_ : 1; - bool _have_set_modified_date_ : 1; - bool _have_use_content_as_indexable_text_ : 1; + bool use_content_as_indexable_text_; + string visibility_; bool _have_convert_ : 1; + bool _have_ocr_ : 1; bool _have_ocr_language_ : 1; bool _have_pinned_ : 1; - bool _have_new_revision_ : 1; - bool _have_ocr_ : 1; + bool _have_supports_team_drives_ : 1; bool _have_timed_text_language_ : 1; - bool _have_timed_text_track_name_ : 1; string _content_; - DISALLOW_COPY_AND_ASSIGN(FilesResource_PatchMethod); + bool _have_timed_text_track_name_ : 1; + bool _have_use_content_as_indexable_text_ : 1; + bool _have_visibility_ : 1; + DISALLOW_COPY_AND_ASSIGN(FilesResource_InsertMethod); }; /** - * Implements the touch method. + * Implements the list method. * * @ingroup ServiceMethod * @@ -4809,8 +4629,11 @@ class FilesResource_PatchMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive.apps.readonly * https://www.googleapis.com/auth/drive.file * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly */ -class FilesResource_TouchMethod : public DriveServiceBaseRequest { +class FilesResource_ListMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -4818,215 +4641,1414 @@ class FilesResource_TouchMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file to update. */ - FilesResource_TouchMethod( + FilesResource_ListMethod( const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const StringPiece& file_id); + client::AuthorizationCredential* _credential_); /** * Standard destructor. */ - virtual ~FilesResource_TouchMethod(); + virtual ~FilesResource_ListMethod(); - /** - * Appends variable value to the target string. - * - * This is a helper function used to resolve templated variables in the URI. - * - * @param[in] variable_name The name of the templated variable. - * @param[in] config A pass-through parameter used for lists and maps. - * @param[in, out] target The string to append the value to. - */ - virtual util::Status AppendVariable( - const StringPiece& variable_name, - const client::UriTemplateConfig& config, - string* target); + /** + * Clears the 'corpora' attribute so it is no longer set. + */ + void clear_corpora() { + _have_corpora_ = false; + client::ClearCppValueHelper(&corpora_); + } - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - File* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } + /** + * Gets the optional 'corpora' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_corpora() const { return corpora_; } - private: - string file_id_; - DISALLOW_COPY_AND_ASSIGN(FilesResource_TouchMethod); -}; + /** + * Gets a modifiable pointer to the optional corpora' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_corpora() { + _have_corpora_ = true; + return &corpora_; + } -/** - * Implements the trash method. - * - * @ingroup ServiceMethod - * - * 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.appdata - * https://www.googleapis.com/auth/drive.apps.readonly - * https://www.googleapis.com/auth/drive.file - */ -class FilesResource_TrashMethod : public DriveServiceBaseRequest { - public: - /** - * The standard constructor takes all the required method parameters. - * @param[in] _service_ The service instance to send to when executed. - * @param[in] _credential_ If not NULL, the credential to authorize with. - * In practice this is supplied by the user code that is - * creating the method instance. - * @param[in] file_id The ID of the file to trash. - */ - FilesResource_TrashMethod( - const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const StringPiece& file_id); - /** - * Standard destructor. - */ - virtual ~FilesResource_TrashMethod(); + /** + * Sets the 'corpora' attribute. + * + * @param[in] value Comma-separated list of bodies of items + * (files/documents) to which the query applies. Supported bodies are + * 'default', 'domain', 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' + * must be combined with 'default'; all other values must be used in + * isolation. Prefer 'default' or 'teamDrive' to 'allTeamDrives' for + * efficiency. + */ + void set_corpora(const string& value) { + _have_corpora_ = true; + corpora_ = value; + } - /** - * Appends variable value to the target string. - * - * This is a helper function used to resolve templated variables in the URI. - * - * @param[in] variable_name The name of the templated variable. - * @param[in] config A pass-through parameter used for lists and maps. - * @param[in, out] target The string to append the value to. - */ - virtual util::Status AppendVariable( - const StringPiece& variable_name, - const client::UriTemplateConfig& config, - string* target); + /** + * Clears the 'corpus' attribute so it is no longer set. + */ + void clear_corpus() { + _have_corpus_ = false; + client::ClearCppValueHelper(&corpus_); + } - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - File* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } - private: - string file_id_; - DISALLOW_COPY_AND_ASSIGN(FilesResource_TrashMethod); -}; + /** + * Gets the optional 'corpus' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_corpus() const { return corpus_; } -/** - * Implements the untrash method. - * - * @ingroup ServiceMethod - * - * 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.appdata - * https://www.googleapis.com/auth/drive.apps.readonly - * https://www.googleapis.com/auth/drive.file - */ -class FilesResource_UntrashMethod : public DriveServiceBaseRequest { - public: - /** - * The standard constructor takes all the required method parameters. - * @param[in] _service_ The service instance to send to when executed. - * @param[in] _credential_ If not NULL, the credential to authorize with. - * In practice this is supplied by the user code that is - * creating the method instance. - * @param[in] file_id The ID of the file to untrash. - */ - FilesResource_UntrashMethod( - const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const StringPiece& file_id); + /** + * Gets a modifiable pointer to the optional corpus' attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_corpus() { + _have_corpus_ = true; + return &corpus_; + } - /** - * Standard destructor. - */ - virtual ~FilesResource_UntrashMethod(); + /** + * Sets the 'corpus' attribute. + * + * @param[in] value The body of items (files/documents) to which the query + * applies. Deprecated: use 'corpora' instead. + */ + void set_corpus(const string& value) { + _have_corpus_ = true; + corpus_ = value; + } - /** - * Appends variable value to the target string. - * - * This is a helper function used to resolve templated variables in the URI. - * - * @param[in] variable_name The name of the templated variable. - * @param[in] config A pass-through parameter used for lists and maps. - * @param[in, out] target The string to append the value to. - */ - virtual util::Status AppendVariable( - const StringPiece& variable_name, - const client::UriTemplateConfig& config, - string* target); - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - File* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } + /** + * Clears the 'includeTeamDriveItems' attribute so it is no + * longer set. + */ + void clear_include_team_drive_items() { + _have_include_team_drive_items_ = false; + client::ClearCppValueHelper(&include_team_drive_items_); + } - private: - string file_id_; - DISALLOW_COPY_AND_ASSIGN(FilesResource_UntrashMethod); -}; -/** - * Implements the update method. - * - * @ingroup ServiceMethod - * - * 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.appdata - * https://www.googleapis.com/auth/drive.apps.readonly - * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.scripts - */ -class FilesResource_UpdateMethod : public DriveServiceBaseRequest { - public: + /** + * Gets the optional 'includeTeamDriveItems' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_include_team_drive_items() const { return include_team_drive_items_; } + + /** + * Sets the 'includeTeamDriveItems' attribute. + * + * @param[in] value Whether Team Drive items should be included in results. + */ + void set_include_team_drive_items(bool value) { + _have_include_team_drive_items_ = true; + include_team_drive_items_ = value; + } + + /** + * Clears the 'maxResults' attribute so it is no longer set. + */ + void clear_max_results() { + _have_max_results_ = false; + client::ClearCppValueHelper(&max_results_); + } + + + /** + * Gets the optional 'maxResults' attribute. + * + * If the value is not set then the default value will be returned. + */ + int32 get_max_results() const { return max_results_; } + + /** + * Sets the 'maxResults' attribute. + * + * @param[in] value The maximum number of files to return per page. Partial + * or empty result pages are possible even before the end of the files list + * has been reached. + */ + void set_max_results(int32 value) { + _have_max_results_ = true; + max_results_ = value; + } + + /** + * Clears the 'orderBy' attribute so it is no longer set. + */ + void clear_order_by() { + _have_order_by_ = false; + client::ClearCppValueHelper(&order_by_); + } + + + /** + * Gets the optional 'orderBy' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_order_by() const { return order_by_; } + + /** + * Gets a modifiable pointer to the optional orderBy' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_orderBy() { + _have_order_by_ = true; + return &order_by_; + } + + + /** + * Sets the 'orderBy' attribute. + * + * @param[in] value A comma-separated list of sort keys. Valid keys are + * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', + * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', + * 'starred', and 'title'. Each key sorts ascending by default, but may be + * reversed with the 'desc' modifier. Example usage: + * ?orderBy=folder,modifiedDate desc,title. Please note that there is a + * current limitation for users with approximately one million files in + * which the requested sort order is ignored. + */ + void set_order_by(const string& value) { + _have_order_by_ = true; + order_by_ = value; + } + + + + /** + * Clears the 'pageToken' attribute so it is no longer set. + */ + void clear_page_token() { + _have_page_token_ = false; + client::ClearCppValueHelper(&page_token_); + } + + + /** + * Gets the optional 'pageToken' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_page_token() const { return page_token_; } + + /** + * Gets a modifiable pointer to the optional pageToken' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_pageToken() { + _have_page_token_ = true; + return &page_token_; + } + + + /** + * Sets the 'pageToken' attribute. + * + * @param[in] value Page token for files. + */ + void set_page_token(const string& value) { + _have_page_token_ = true; + page_token_ = value; + } + + + + /** + * Clears the 'projection' attribute so it is no longer set. + */ + void clear_projection() { + _have_projection_ = false; + client::ClearCppValueHelper(&projection_); + } + + + /** + * Gets the optional 'projection' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_projection() const { return projection_; } + + /** + * Gets a modifiable pointer to the optional projection' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_projection() { + _have_projection_ = true; + return &projection_; + } + + + /** + * Sets the 'projection' attribute. + * + * @param[in] value This parameter is deprecated and has no function. + */ + void set_projection(const string& value) { + _have_projection_ = true; + projection_ = value; + } + + + + /** + * Clears the 'q' attribute so it is no longer set. + */ + void clear_q() { + _have_q_ = false; + client::ClearCppValueHelper(&q_); + } + + + /** + * Gets the optional 'q' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_q() const { return q_; } + + /** + * Gets a modifiable pointer to the optional q' attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_q() { + _have_q_ = true; + return &q_; + } + + + /** + * Sets the 'q' attribute. + * + * @param[in] value Query string for searching files. + */ + void set_q(const string& value) { + _have_q_ = true; + q_ = value; + } + + + + /** + * Clears the 'spaces' attribute so it is no longer set. + */ + void clear_spaces() { + _have_spaces_ = false; + client::ClearCppValueHelper(&spaces_); + } + + + /** + * Gets the optional 'spaces' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_spaces() const { return spaces_; } + + /** + * Gets a modifiable pointer to the optional spaces' attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_spaces() { + _have_spaces_ = true; + return &spaces_; + } + + + /** + * Sets the 'spaces' attribute. + * + * @param[in] value A comma-separated list of spaces to query. Supported + * values are 'drive', 'appDataFolder' and 'photos'. + */ + void set_spaces(const string& value) { + _have_spaces_ = true; + spaces_ = value; + } + + + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Clears the 'teamDriveId' attribute so it is no longer set. + */ + void clear_team_drive_id() { + _have_team_drive_id_ = false; + client::ClearCppValueHelper(&team_drive_id_); + } + + + /** + * Gets the optional 'teamDriveId' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_team_drive_id() const { return team_drive_id_; } + + /** + * Gets a modifiable pointer to the optional teamDriveId' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_teamDriveId() { + _have_team_drive_id_ = true; + return &team_drive_id_; + } + + + /** + * Sets the 'teamDriveId' attribute. + * + * @param[in] value ID of Team Drive to search. + */ + void set_team_drive_id(const string& value) { + _have_team_drive_id_ = true; + team_drive_id_ = value; + } + + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + FileList* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + + private: + string corpora_; + string corpus_; + bool include_team_drive_items_; + int32 max_results_; + string order_by_; + string page_token_; + string projection_; + string q_; + string spaces_; + bool supports_team_drives_; + string team_drive_id_; + bool _have_corpora_ : 1; + bool _have_corpus_ : 1; + bool _have_include_team_drive_items_ : 1; + bool _have_max_results_ : 1; + bool _have_order_by_ : 1; + bool _have_page_token_ : 1; + bool _have_projection_ : 1; + bool _have_q_ : 1; + bool _have_spaces_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_team_drive_id_ : 1; + DISALLOW_COPY_AND_ASSIGN(FilesResource_ListMethod); +}; + +typedef client::ServiceRequestPager< + FilesResource_ListMethod, + FileList> + FilesResource_ListMethodPager; + +/** + * Implements the patch method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.apps.readonly + * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.scripts + */ +class FilesResource_PatchMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file to update. + * @param[in] _content_ The data object to patch. + */ + FilesResource_PatchMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id, + const File& _content_); + + /** + * Standard destructor. + */ + virtual ~FilesResource_PatchMethod(); + + + /** + * Clears the 'addParents' attribute so it is no longer set. + */ + void clear_add_parents() { + _have_add_parents_ = false; + client::ClearCppValueHelper(&add_parents_); + } + + + /** + * Gets the optional 'addParents' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_add_parents() const { return add_parents_; } + + /** + * Gets a modifiable pointer to the optional addParents' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_addParents() { + _have_add_parents_ = true; + return &add_parents_; + } + + + /** + * Sets the 'addParents' attribute. + * + * @param[in] value Comma-separated list of parent IDs to add. + */ + void set_add_parents(const string& value) { + _have_add_parents_ = true; + add_parents_ = value; + } + + + + /** + * Clears the 'convert' attribute so it is no longer set. + */ + void clear_convert() { + _have_convert_ = false; + client::ClearCppValueHelper(&convert_); + } + + + /** + * Gets the optional 'convert' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_convert() const { return convert_; } + + /** + * Sets the 'convert' attribute. + * + * @param[in] value This parameter is deprecated and has no function. + */ + void set_convert(bool value) { + _have_convert_ = true; + convert_ = value; + } + + /** + * Clears the 'modifiedDateBehavior' attribute so it is no + * longer set. + */ + void clear_modified_date_behavior() { + _have_modified_date_behavior_ = false; + client::ClearCppValueHelper(&modified_date_behavior_); + } + + + /** + * Gets the optional 'modifiedDateBehavior' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_modified_date_behavior() const { return modified_date_behavior_; } + + /** + * Gets a modifiable pointer to the optional + * modifiedDateBehavior' attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_modifiedDateBehavior() { + _have_modified_date_behavior_ = true; + return &modified_date_behavior_; + } + + + /** + * Sets the 'modifiedDateBehavior' attribute. + * + * @param[in] value Determines the behavior in which modifiedDate is + * updated. This overrides setModifiedDate. + */ + void set_modified_date_behavior(const string& value) { + _have_modified_date_behavior_ = true; + modified_date_behavior_ = value; + } + + + + /** + * Clears the 'newRevision' attribute so it is no longer set. + */ + void clear_new_revision() { + _have_new_revision_ = false; + client::ClearCppValueHelper(&new_revision_); + } + + + /** + * Gets the optional 'newRevision' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_new_revision() const { return new_revision_; } + + /** + * Sets the 'newRevision' attribute. + * + * @param[in] value Whether a blob upload should create a new revision. If + * false, the blob data in the current head revision is replaced. If true or + * not set, a new blob is created as head revision, and previous unpinned + * revisions are preserved for a short period of time. Pinned revisions are + * stored indefinitely, using additional storage quota, up to a maximum of + * 200 revisions. For details on how revisions are retained, see the Drive + * Help Center. + */ + void set_new_revision(bool value) { + _have_new_revision_ = true; + new_revision_ = value; + } + + /** + * Clears the 'ocr' attribute so it is no longer set. + */ + void clear_ocr() { + _have_ocr_ = false; + client::ClearCppValueHelper(&ocr_); + } + + + /** + * Gets the optional 'ocr' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_ocr() const { return ocr_; } + + /** + * Sets the 'ocr' attribute. + * + * @param[in] value Whether to attempt OCR on .jpg, .png, .gif, or .pdf + * uploads. + */ + void set_ocr(bool value) { + _have_ocr_ = true; + ocr_ = value; + } + + /** + * Clears the 'ocrLanguage' attribute so it is no longer set. + */ + void clear_ocr_language() { + _have_ocr_language_ = false; + client::ClearCppValueHelper(&ocr_language_); + } + + + /** + * Gets the optional 'ocrLanguage' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_ocr_language() const { return ocr_language_; } + + /** + * Gets a modifiable pointer to the optional ocrLanguage' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_ocrLanguage() { + _have_ocr_language_ = true; + return &ocr_language_; + } + + + /** + * Sets the 'ocrLanguage' attribute. + * + * @param[in] value If ocr is true, hints at the language to use. Valid + * values are BCP 47 codes. + */ + void set_ocr_language(const string& value) { + _have_ocr_language_ = true; + ocr_language_ = value; + } + + + + /** + * Clears the 'pinned' attribute so it is no longer set. + */ + void clear_pinned() { + _have_pinned_ = false; + client::ClearCppValueHelper(&pinned_); + } + + + /** + * Gets the optional 'pinned' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_pinned() const { return pinned_; } + + /** + * Sets the 'pinned' attribute. + * + * @param[in] value Whether to pin the new revision. A file can have a + * maximum of 200 pinned revisions. + */ + void set_pinned(bool value) { + _have_pinned_ = true; + pinned_ = value; + } + + /** + * Clears the 'removeParents' attribute so it is no longer set. + */ + void clear_remove_parents() { + _have_remove_parents_ = false; + client::ClearCppValueHelper(&remove_parents_); + } + + + /** + * Gets the optional 'removeParents' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_remove_parents() const { return remove_parents_; } + + /** + * Gets a modifiable pointer to the optional removeParents' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_removeParents() { + _have_remove_parents_ = true; + return &remove_parents_; + } + + + /** + * Sets the 'removeParents' attribute. + * + * @param[in] value Comma-separated list of parent IDs to remove. + */ + void set_remove_parents(const string& value) { + _have_remove_parents_ = true; + remove_parents_ = value; + } + + + + /** + * Clears the 'setModifiedDate' attribute so it is no longer + * set. + */ + void clear_set_modified_date() { + _have_set_modified_date_ = false; + client::ClearCppValueHelper(&set_modified_date_); + } + + + /** + * Gets the optional 'setModifiedDate' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_set_modified_date() const { return set_modified_date_; } + + /** + * Sets the 'setModifiedDate' attribute. + * + * @param[in] value Whether to set the modified date with the supplied + * modified date. + */ + void set_set_modified_date(bool value) { + _have_set_modified_date_ = true; + set_modified_date_ = value; + } + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Clears the 'timedTextLanguage' attribute so it is no longer + * set. + */ + void clear_timed_text_language() { + _have_timed_text_language_ = false; + client::ClearCppValueHelper(&timed_text_language_); + } + + + /** + * Gets the optional 'timedTextLanguage' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_timed_text_language() const { return timed_text_language_; } + + /** + * Gets a modifiable pointer to the optional timedTextLanguage' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_timedTextLanguage() { + _have_timed_text_language_ = true; + return &timed_text_language_; + } + + + /** + * Sets the 'timedTextLanguage' attribute. + * + * @param[in] value The language of the timed text. + */ + void set_timed_text_language(const string& value) { + _have_timed_text_language_ = true; + timed_text_language_ = value; + } + + + + /** + * Clears the 'timedTextTrackName' attribute so it is no longer + * set. + */ + void clear_timed_text_track_name() { + _have_timed_text_track_name_ = false; + client::ClearCppValueHelper(&timed_text_track_name_); + } + + + /** + * Gets the optional 'timedTextTrackName' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_timed_text_track_name() const { return timed_text_track_name_; } + + /** + * Gets a modifiable pointer to the optional + * timedTextTrackName' attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_timedTextTrackName() { + _have_timed_text_track_name_ = true; + return &timed_text_track_name_; + } + + + /** + * Sets the 'timedTextTrackName' attribute. + * + * @param[in] value The timed text track name. + */ + void set_timed_text_track_name(const string& value) { + _have_timed_text_track_name_ = true; + timed_text_track_name_ = value; + } + + + + /** + * Clears the 'updateViewedDate' attribute so it is no longer + * set. + */ + void clear_update_viewed_date() { + _have_update_viewed_date_ = false; + client::ClearCppValueHelper(&update_viewed_date_); + } + + + /** + * Gets the optional 'updateViewedDate' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_update_viewed_date() const { return update_viewed_date_; } + + /** + * Sets the 'updateViewedDate' attribute. + * + * @param[in] value Whether to update the view date after successfully + * updating the file. + */ + void set_update_viewed_date(bool value) { + _have_update_viewed_date_ = true; + update_viewed_date_ = value; + } + + /** + * Clears the 'useContentAsIndexableText' attribute so it is no + * longer set. + */ + void clear_use_content_as_indexable_text() { + _have_use_content_as_indexable_text_ = false; + client::ClearCppValueHelper(&use_content_as_indexable_text_); + } + + + /** + * Gets the optional 'useContentAsIndexableText' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_use_content_as_indexable_text() const { return use_content_as_indexable_text_; } + + /** + * Sets the 'useContentAsIndexableText' attribute. + * + * @param[in] value Whether to use the content as indexable text. + */ + void set_use_content_as_indexable_text(bool value) { + _have_use_content_as_indexable_text_ = true; + use_content_as_indexable_text_ = value; + } + + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + File* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + + private: + string file_id_; + string add_parents_; + bool convert_; + string modified_date_behavior_; + bool new_revision_; + bool ocr_; + string ocr_language_; + bool pinned_; + string remove_parents_; + bool set_modified_date_; + bool supports_team_drives_; + string timed_text_language_; + string timed_text_track_name_; + bool update_viewed_date_; + bool use_content_as_indexable_text_; + bool _have_add_parents_ : 1; + bool _have_convert_ : 1; + bool _have_modified_date_behavior_ : 1; + bool _have_new_revision_ : 1; + bool _have_ocr_ : 1; + bool _have_ocr_language_ : 1; + bool _have_pinned_ : 1; + bool _have_remove_parents_ : 1; + bool _have_set_modified_date_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_timed_text_language_ : 1; + bool _have_timed_text_track_name_ : 1; + bool _have_update_viewed_date_ : 1; + bool _have_use_content_as_indexable_text_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(FilesResource_PatchMethod); +}; + +/** + * Implements the touch method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.apps.readonly + * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + */ +class FilesResource_TouchMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file to update. + */ + FilesResource_TouchMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id); + + /** + * Standard destructor. + */ + virtual ~FilesResource_TouchMethod(); + + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + File* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + + private: + string file_id_; + bool supports_team_drives_; + bool _have_supports_team_drives_ : 1; + DISALLOW_COPY_AND_ASSIGN(FilesResource_TouchMethod); +}; + +/** + * Implements the trash method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.apps.readonly + * https://www.googleapis.com/auth/drive.file + */ +class FilesResource_TrashMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file to trash. + */ + FilesResource_TrashMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id); + + /** + * Standard destructor. + */ + virtual ~FilesResource_TrashMethod(); + + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + File* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + + private: + string file_id_; + bool supports_team_drives_; + bool _have_supports_team_drives_ : 1; + DISALLOW_COPY_AND_ASSIGN(FilesResource_TrashMethod); +}; + +/** + * Implements the untrash method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.apps.readonly + * https://www.googleapis.com/auth/drive.file + */ +class FilesResource_UntrashMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file to untrash. + */ + FilesResource_UntrashMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id); + + /** + * Standard destructor. + */ + virtual ~FilesResource_UntrashMethod(); + + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + File* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + + private: + string file_id_; + bool supports_team_drives_; + bool _have_supports_team_drives_ : 1; + DISALLOW_COPY_AND_ASSIGN(FilesResource_UntrashMethod); +}; + +/** + * Implements the update method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.apps.readonly + * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.scripts + */ +class FilesResource_UpdateMethod : public DriveServiceBaseRequest { + public: /** * The standard constructor takes all the required method parameters. * @@ -5067,130 +6089,420 @@ class FilesResource_UpdateMethod : public DriveServiceBaseRequest { const StringPiece& _media_content_type_, client::DataReader* _media_content_reader_); - /** - * Standard destructor. - */ - virtual ~FilesResource_UpdateMethod(); + /** + * Standard destructor. + */ + virtual ~FilesResource_UpdateMethod(); + + + /** + * Clears the 'addParents' attribute so it is no longer set. + */ + void clear_add_parents() { + _have_add_parents_ = false; + client::ClearCppValueHelper(&add_parents_); + } + + + /** + * Gets the optional 'addParents' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_add_parents() const { return add_parents_; } + + /** + * Gets a modifiable pointer to the optional addParents' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_addParents() { + _have_add_parents_ = true; + return &add_parents_; + } + + + /** + * Sets the 'addParents' attribute. + * + * @param[in] value Comma-separated list of parent IDs to add. + */ + void set_add_parents(const string& value) { + _have_add_parents_ = true; + add_parents_ = value; + } + /** - * Clears the 'addParents' attribute so it is no longer set. + * Clears the 'convert' attribute so it is no longer set. */ - void clear_add_parents() { - _have_add_parents_ = false; - client::ClearCppValueHelper(&add_parents_); + void clear_convert() { + _have_convert_ = false; + client::ClearCppValueHelper(&convert_); + } + + + /** + * Gets the optional 'convert' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_convert() const { return convert_; } + + /** + * Sets the 'convert' attribute. + * + * @param[in] value This parameter is deprecated and has no function. + */ + void set_convert(bool value) { + _have_convert_ = true; + convert_ = value; + } + + /** + * Clears the 'modifiedDateBehavior' attribute so it is no + * longer set. + */ + void clear_modified_date_behavior() { + _have_modified_date_behavior_ = false; + client::ClearCppValueHelper(&modified_date_behavior_); + } + + + /** + * Gets the optional 'modifiedDateBehavior' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_modified_date_behavior() const { return modified_date_behavior_; } + + /** + * Gets a modifiable pointer to the optional + * modifiedDateBehavior' attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_modifiedDateBehavior() { + _have_modified_date_behavior_ = true; + return &modified_date_behavior_; + } + + + /** + * Sets the 'modifiedDateBehavior' attribute. + * + * @param[in] value Determines the behavior in which modifiedDate is + * updated. This overrides setModifiedDate. + */ + void set_modified_date_behavior(const string& value) { + _have_modified_date_behavior_ = true; + modified_date_behavior_ = value; + } + + + + /** + * Clears the 'newRevision' attribute so it is no longer set. + */ + void clear_new_revision() { + _have_new_revision_ = false; + client::ClearCppValueHelper(&new_revision_); + } + + + /** + * Gets the optional 'newRevision' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_new_revision() const { return new_revision_; } + + /** + * Sets the 'newRevision' attribute. + * + * @param[in] value Whether a blob upload should create a new revision. If + * false, the blob data in the current head revision is replaced. If true or + * not set, a new blob is created as head revision, and previous unpinned + * revisions are preserved for a short period of time. Pinned revisions are + * stored indefinitely, using additional storage quota, up to a maximum of + * 200 revisions. For details on how revisions are retained, see the Drive + * Help Center. + */ + void set_new_revision(bool value) { + _have_new_revision_ = true; + new_revision_ = value; + } + + /** + * Clears the 'ocr' attribute so it is no longer set. + */ + void clear_ocr() { + _have_ocr_ = false; + client::ClearCppValueHelper(&ocr_); + } + + + /** + * Gets the optional 'ocr' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_ocr() const { return ocr_; } + + /** + * Sets the 'ocr' attribute. + * + * @param[in] value Whether to attempt OCR on .jpg, .png, .gif, or .pdf + * uploads. + */ + void set_ocr(bool value) { + _have_ocr_ = true; + ocr_ = value; + } + + /** + * Clears the 'ocrLanguage' attribute so it is no longer set. + */ + void clear_ocr_language() { + _have_ocr_language_ = false; + client::ClearCppValueHelper(&ocr_language_); + } + + + /** + * Gets the optional 'ocrLanguage' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_ocr_language() const { return ocr_language_; } + + /** + * Gets a modifiable pointer to the optional ocrLanguage' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_ocrLanguage() { + _have_ocr_language_ = true; + return &ocr_language_; + } + + + /** + * Sets the 'ocrLanguage' attribute. + * + * @param[in] value If ocr is true, hints at the language to use. Valid + * values are BCP 47 codes. + */ + void set_ocr_language(const string& value) { + _have_ocr_language_ = true; + ocr_language_ = value; + } + + + + /** + * Clears the 'pinned' attribute so it is no longer set. + */ + void clear_pinned() { + _have_pinned_ = false; + client::ClearCppValueHelper(&pinned_); + } + + + /** + * Gets the optional 'pinned' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_pinned() const { return pinned_; } + + /** + * Sets the 'pinned' attribute. + * + * @param[in] value Whether to pin the new revision. A file can have a + * maximum of 200 pinned revisions. + */ + void set_pinned(bool value) { + _have_pinned_ = true; + pinned_ = value; + } + + /** + * Clears the 'removeParents' attribute so it is no longer set. + */ + void clear_remove_parents() { + _have_remove_parents_ = false; + client::ClearCppValueHelper(&remove_parents_); + } + + + /** + * Gets the optional 'removeParents' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_remove_parents() const { return remove_parents_; } + + /** + * Gets a modifiable pointer to the optional removeParents' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_removeParents() { + _have_remove_parents_ = true; + return &remove_parents_; + } + + + /** + * Sets the 'removeParents' attribute. + * + * @param[in] value Comma-separated list of parent IDs to remove. + */ + void set_remove_parents(const string& value) { + _have_remove_parents_ = true; + remove_parents_ = value; + } + + + + /** + * Clears the 'setModifiedDate' attribute so it is no longer + * set. + */ + void clear_set_modified_date() { + _have_set_modified_date_ = false; + client::ClearCppValueHelper(&set_modified_date_); } /** - * Gets the optional 'addParents' attribute. + * Gets the optional 'setModifiedDate' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_add_parents() const { return add_parents_; } + bool get_set_modified_date() const { return set_modified_date_; } /** - * Gets a modifiable pointer to the optional addParents' - * attribute. + * Sets the 'setModifiedDate' attribute. * - * @return The value can be set by dereferencing the pointer. + * @param[in] value Whether to set the modified date with the supplied + * modified date. */ - string* mutable_addParents() { - _have_add_parents_ = true; - return &add_parents_; + void set_set_modified_date(bool value) { + _have_set_modified_date_ = true; + set_modified_date_ = value; } - /** - * Sets the 'addParents' attribute. - * - * @param[in] value Comma-separated list of parent IDs to add. + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. */ - void set_add_parents(const string& value) { - _have_add_parents_ = true; - add_parents_ = value; + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); } + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } /** - * Clears the 'modifiedDateBehavior' attribute so it is no - * longer set. + * Clears the 'timedTextLanguage' attribute so it is no longer + * set. */ - void clear_modified_date_behavior() { - _have_modified_date_behavior_ = false; - client::ClearCppValueHelper(&modified_date_behavior_); + void clear_timed_text_language() { + _have_timed_text_language_ = false; + client::ClearCppValueHelper(&timed_text_language_); } /** - * Gets the optional 'modifiedDateBehavior' attribute. + * Gets the optional 'timedTextLanguage' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_modified_date_behavior() const { return modified_date_behavior_; } + const string& get_timed_text_language() const { return timed_text_language_; } /** - * Gets a modifiable pointer to the optional - * modifiedDateBehavior' attribute. + * Gets a modifiable pointer to the optional timedTextLanguage' + * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_modifiedDateBehavior() { - _have_modified_date_behavior_ = true; - return &modified_date_behavior_; + string* mutable_timedTextLanguage() { + _have_timed_text_language_ = true; + return &timed_text_language_; } /** - * Sets the 'modifiedDateBehavior' attribute. + * Sets the 'timedTextLanguage' attribute. * - * @param[in] value Determines the behavior in which modifiedDate is - * updated. This overrides setModifiedDate. + * @param[in] value The language of the timed text. */ - void set_modified_date_behavior(const string& value) { - _have_modified_date_behavior_ = true; - modified_date_behavior_ = value; + void set_timed_text_language(const string& value) { + _have_timed_text_language_ = true; + timed_text_language_ = value; } /** - * Clears the 'removeParents' attribute so it is no longer set. + * Clears the 'timedTextTrackName' attribute so it is no longer + * set. */ - void clear_remove_parents() { - _have_remove_parents_ = false; - client::ClearCppValueHelper(&remove_parents_); + void clear_timed_text_track_name() { + _have_timed_text_track_name_ = false; + client::ClearCppValueHelper(&timed_text_track_name_); } /** - * Gets the optional 'removeParents' attribute. + * Gets the optional 'timedTextTrackName' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_remove_parents() const { return remove_parents_; } + const string& get_timed_text_track_name() const { return timed_text_track_name_; } /** - * Gets a modifiable pointer to the optional removeParents' - * attribute. + * Gets a modifiable pointer to the optional + * timedTextTrackName' attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_removeParents() { - _have_remove_parents_ = true; - return &remove_parents_; + string* mutable_timedTextTrackName() { + _have_timed_text_track_name_ = true; + return &timed_text_track_name_; } /** - * Sets the 'removeParents' attribute. + * Sets the 'timedTextTrackName' attribute. * - * @param[in] value Comma-separated list of parent IDs to remove. + * @param[in] value The timed text track name. */ - void set_remove_parents(const string& value) { - _have_remove_parents_ = true; - remove_parents_ = value; + void set_timed_text_track_name(const string& value) { + _have_timed_text_track_name_ = true; + timed_text_track_name_ = value; } @@ -5224,291 +6536,591 @@ class FilesResource_UpdateMethod : public DriveServiceBaseRequest { } /** - * Clears the 'setModifiedDate' attribute so it is no longer - * set. + * Clears the 'useContentAsIndexableText' attribute so it is no + * longer set. */ - void clear_set_modified_date() { - _have_set_modified_date_ = false; - client::ClearCppValueHelper(&set_modified_date_); + void clear_use_content_as_indexable_text() { + _have_use_content_as_indexable_text_ = false; + client::ClearCppValueHelper(&use_content_as_indexable_text_); } /** - * Gets the optional 'setModifiedDate' attribute. + * Gets the optional 'useContentAsIndexableText' attribute. * * If the value is not set then the default value will be returned. */ - bool get_set_modified_date() const { return set_modified_date_; } + bool get_use_content_as_indexable_text() const { return use_content_as_indexable_text_; } /** - * Sets the 'setModifiedDate' attribute. + * Sets the 'useContentAsIndexableText' attribute. * - * @param[in] value Whether to set the modified date with the supplied - * modified date. + * @param[in] value Whether to use the content as indexable text. */ - void set_set_modified_date(bool value) { - _have_set_modified_date_ = true; - set_modified_date_ = value; + void set_use_content_as_indexable_text(bool value) { + _have_use_content_as_indexable_text_ = true; + use_content_as_indexable_text_ = value; } + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + File* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + + + /** + * Returns MediaUploader for uploading the content. + */ + + /** + * Returns the specification for media upload using the simple protocol. + */ + static const client::MediaUploadSpec SIMPLE_MEDIA_UPLOAD; + /** + * Returns the specification for media upload using the resumable protocol. + */ + static const client::MediaUploadSpec RESUMABLE_MEDIA_UPLOAD; + + private: + string file_id_; + string add_parents_; + bool convert_; + string modified_date_behavior_; + bool new_revision_; + bool ocr_; + string ocr_language_; + bool pinned_; + string remove_parents_; + bool set_modified_date_; + bool supports_team_drives_; + string timed_text_language_; + string timed_text_track_name_; + bool update_viewed_date_; + bool use_content_as_indexable_text_; + bool _have_add_parents_ : 1; + bool _have_convert_ : 1; + bool _have_modified_date_behavior_ : 1; + bool _have_new_revision_ : 1; + bool _have_ocr_ : 1; + bool _have_ocr_language_ : 1; + bool _have_pinned_ : 1; + bool _have_remove_parents_ : 1; + bool _have_set_modified_date_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_timed_text_language_ : 1; + bool _have_timed_text_track_name_ : 1; + bool _have_update_viewed_date_ : 1; + bool _have_use_content_as_indexable_text_ : 1; + DISALLOW_COPY_AND_ASSIGN(FilesResource_UpdateMethod); +}; + +/** + * Implements the watch method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly + */ +class FilesResource_WatchMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID for the file in question. + * @param[in] _content_ The data object to watch. + */ + FilesResource_WatchMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id, + const Channel& _content_); + + /** + * Standard destructor. + */ + virtual ~FilesResource_WatchMethod(); + + /** - * Clears the 'useContentAsIndexableText' attribute so it is no - * longer set. + * Clears the 'acknowledgeAbuse' attribute so it is no longer + * set. */ - void clear_use_content_as_indexable_text() { - _have_use_content_as_indexable_text_ = false; - client::ClearCppValueHelper(&use_content_as_indexable_text_); + void clear_acknowledge_abuse() { + _have_acknowledge_abuse_ = false; + client::ClearCppValueHelper(&acknowledge_abuse_); } /** - * Gets the optional 'useContentAsIndexableText' attribute. + * Gets the optional 'acknowledgeAbuse' attribute. * * If the value is not set then the default value will be returned. */ - bool get_use_content_as_indexable_text() const { return use_content_as_indexable_text_; } + bool get_acknowledge_abuse() const { return acknowledge_abuse_; } /** - * Sets the 'useContentAsIndexableText' attribute. + * Sets the 'acknowledgeAbuse' attribute. * - * @param[in] value Whether to use the content as indexable text. + * @param[in] value Whether the user is acknowledging the risk of + * downloading known malware or other abusive files. */ - void set_use_content_as_indexable_text(bool value) { - _have_use_content_as_indexable_text_ = true; - use_content_as_indexable_text_ = value; + void set_acknowledge_abuse(bool value) { + _have_acknowledge_abuse_ = true; + acknowledge_abuse_ = value; } /** - * Clears the 'convert' attribute so it is no longer set. + * Clears the 'projection' attribute so it is no longer set. */ - void clear_convert() { - _have_convert_ = false; - client::ClearCppValueHelper(&convert_); + void clear_projection() { + _have_projection_ = false; + client::ClearCppValueHelper(&projection_); } /** - * Gets the optional 'convert' attribute. + * Gets the optional 'projection' attribute. * * If the value is not set then the default value will be returned. */ - bool get_convert() const { return convert_; } + const string& get_projection() const { return projection_; } /** - * Sets the 'convert' attribute. + * Gets a modifiable pointer to the optional projection' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_projection() { + _have_projection_ = true; + return &projection_; + } + + + /** + * Sets the 'projection' attribute. * * @param[in] value This parameter is deprecated and has no function. */ - void set_convert(bool value) { - _have_convert_ = true; - convert_ = value; + void set_projection(const string& value) { + _have_projection_ = true; + projection_ = value; } + + /** - * Clears the 'ocrLanguage' attribute so it is no longer set. + * Clears the 'revisionId' attribute so it is no longer set. */ - void clear_ocr_language() { - _have_ocr_language_ = false; - client::ClearCppValueHelper(&ocr_language_); + void clear_revision_id() { + _have_revision_id_ = false; + client::ClearCppValueHelper(&revision_id_); } /** - * Gets the optional 'ocrLanguage' attribute. + * Gets the optional 'revisionId' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_ocr_language() const { return ocr_language_; } + const string& get_revision_id() const { return revision_id_; } /** - * Gets a modifiable pointer to the optional ocrLanguage' + * Gets a modifiable pointer to the optional revisionId' * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_ocrLanguage() { - _have_ocr_language_ = true; - return &ocr_language_; + string* mutable_revisionId() { + _have_revision_id_ = true; + return &revision_id_; } /** - * Sets the 'ocrLanguage' attribute. + * Sets the 'revisionId' attribute. * - * @param[in] value If ocr is true, hints at the language to use. Valid - * values are BCP 47 codes. + * @param[in] value Specifies the Revision ID that should be downloaded. + * Ignored unless alt=media is specified. */ - void set_ocr_language(const string& value) { - _have_ocr_language_ = true; - ocr_language_ = value; + void set_revision_id(const string& value) { + _have_revision_id_ = true; + revision_id_ = value; } /** - * Clears the 'pinned' attribute so it is no longer set. + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. */ - void clear_pinned() { - _have_pinned_ = false; - client::ClearCppValueHelper(&pinned_); + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); } /** - * Gets the optional 'pinned' attribute. + * Gets the optional 'supportsTeamDrives' attribute. * * If the value is not set then the default value will be returned. */ - bool get_pinned() const { return pinned_; } + bool get_supports_team_drives() const { return supports_team_drives_; } /** - * Sets the 'pinned' attribute. + * Sets the 'supportsTeamDrives' attribute. * - * @param[in] value Whether to pin the new revision. A file can have a - * maximum of 200 pinned revisions. + * @param[in] value Whether the requesting application supports Team Drives. */ - void set_pinned(bool value) { - _have_pinned_ = true; - pinned_ = value; + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; } /** - * Clears the 'newRevision' attribute so it is no longer set. + * Clears the 'updateViewedDate' attribute so it is no longer + * set. */ - void clear_new_revision() { - _have_new_revision_ = false; - client::ClearCppValueHelper(&new_revision_); + void clear_update_viewed_date() { + _have_update_viewed_date_ = false; + client::ClearCppValueHelper(&update_viewed_date_); } /** - * Gets the optional 'newRevision' attribute. + * Gets the optional 'updateViewedDate' attribute. * * If the value is not set then the default value will be returned. */ - bool get_new_revision() const { return new_revision_; } + bool get_update_viewed_date() const { return update_viewed_date_; } /** - * Sets the 'newRevision' attribute. + * Sets the 'updateViewedDate' attribute. + * @deprecated * - * @param[in] value Whether a blob upload should create a new revision. If - * false, the blob data in the current head revision is replaced. If true or - * not set, a new blob is created as head revision, and previous unpinned - * revisions are preserved for a short period of time. Pinned revisions are - * stored indefinitely, using additional storage quota, up to a maximum of - * 200 revisions. For details on how revisions are retained, see the Drive - * Help Center. + * @param[in] value Deprecated: Use files.update with + * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request + * body. */ - void set_new_revision(bool value) { - _have_new_revision_ = true; - new_revision_ = value; + void set_update_viewed_date(bool value) { + _have_update_viewed_date_ = true; + update_viewed_date_ = value; } - /** - * Clears the 'ocr' attribute so it is no longer set. - */ - void clear_ocr() { - _have_ocr_ = false; - client::ClearCppValueHelper(&ocr_); - } + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + Channel* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + + /** + * Determine if the request should use Media Download for the response. + * + * @return true for media download, false otherwise. + */ + bool get_use_media_download() const { + return DriveServiceBaseRequest::get_use_media_download(); + } + + /** + * Sets whether Media Download should be used for the response data. + * + * @param[in] use true to use media download, false otherwise. + */ + void set_use_media_download(bool use) { + DriveServiceBaseRequest::set_use_media_download(use); + } + + private: + string file_id_; + bool acknowledge_abuse_; + string projection_; + string revision_id_; + bool supports_team_drives_; + bool update_viewed_date_; + bool _have_acknowledge_abuse_ : 1; + bool _have_projection_ : 1; + bool _have_revision_id_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_update_viewed_date_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(FilesResource_WatchMethod); +}; + + + +/** + * Implements the delete method. + * + * @ingroup ServiceMethod + * + * 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 + */ +class ParentsResource_DeleteMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file. + * @param[in] parent_id The ID of the parent. + */ + ParentsResource_DeleteMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id, + const StringPiece& parent_id); + + /** + * Standard destructor. + */ + virtual ~ParentsResource_DeleteMethod(); + + + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); - /** - * Gets the optional 'ocr' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_ocr() const { return ocr_; } + private: + string file_id_; + string parent_id_; + DISALLOW_COPY_AND_ASSIGN(ParentsResource_DeleteMethod); +}; - /** - * Sets the 'ocr' attribute. - * - * @param[in] value Whether to attempt OCR on .jpg, .png, .gif, or .pdf - * uploads. - */ - void set_ocr(bool value) { - _have_ocr_ = true; - ocr_ = value; - } +/** + * Implements the get method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly + */ +class ParentsResource_GetMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file. + * @param[in] parent_id The ID of the parent. + */ + ParentsResource_GetMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id, + const StringPiece& parent_id); - /** - * Clears the 'timedTextLanguage' attribute so it is no longer - * set. - */ - void clear_timed_text_language() { - _have_timed_text_language_ = false; - client::ClearCppValueHelper(&timed_text_language_); - } + /** + * Standard destructor. + */ + virtual ~ParentsResource_GetMethod(); - /** - * Gets the optional 'timedTextLanguage' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_timed_text_language() const { return timed_text_language_; } + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); - /** - * Gets a modifiable pointer to the optional timedTextLanguage' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_timedTextLanguage() { - _have_timed_text_language_ = true; - return &timed_text_language_; - } + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + ParentReference* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + + private: + string file_id_; + string parent_id_; + DISALLOW_COPY_AND_ASSIGN(ParentsResource_GetMethod); +}; - /** - * Sets the 'timedTextLanguage' attribute. - * - * @param[in] value The language of the timed text. - */ - void set_timed_text_language(const string& value) { - _have_timed_text_language_ = true; - timed_text_language_ = value; - } +/** + * Implements the insert method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.file + */ +class ParentsResource_InsertMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file. + * @param[in] _content_ The data object to insert. + */ + ParentsResource_InsertMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id, + const ParentReference& _content_); + /** + * Standard destructor. + */ + virtual ~ParentsResource_InsertMethod(); /** - * Clears the 'timedTextTrackName' attribute so it is no longer + * Clears the 'supportsTeamDrives' attribute so it is no longer * set. */ - void clear_timed_text_track_name() { - _have_timed_text_track_name_ = false; - client::ClearCppValueHelper(&timed_text_track_name_); + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); } /** - * Gets the optional 'timedTextTrackName' attribute. + * Gets the optional 'supportsTeamDrives' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_timed_text_track_name() const { return timed_text_track_name_; } - - /** - * Gets a modifiable pointer to the optional - * timedTextTrackName' attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_timedTextTrackName() { - _have_timed_text_track_name_ = true; - return &timed_text_track_name_; - } - + bool get_supports_team_drives() const { return supports_team_drives_; } /** - * Sets the 'timedTextTrackName' attribute. + * Sets the 'supportsTeamDrives' attribute. * - * @param[in] value The timed text track name. + * @param[in] value Whether the requesting application supports Team Drives. */ - void set_timed_text_track_name(const string& value) { - _have_timed_text_track_name_ = true; - timed_text_track_name_ = value; + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; } /** @@ -5544,57 +7156,95 @@ class FilesResource_UpdateMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - File* data) { + ParentReference* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + + private: + string file_id_; + bool supports_team_drives_; + bool _have_supports_team_drives_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(ParentsResource_InsertMethod); +}; + +/** + * Implements the list method. + * + * @ingroup ServiceMethod + * + * 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.appdata + * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly + */ +class ParentsResource_ListMethod : public DriveServiceBaseRequest { + public: + /** + * The standard constructor takes all the required method parameters. + * @param[in] _service_ The service instance to send to when executed. + * @param[in] _credential_ If not NULL, the credential to authorize with. + * In practice this is supplied by the user code that is + * creating the method instance. + * @param[in] file_id The ID of the file. + */ + ParentsResource_ListMethod( + const DriveService* _service_, + client::AuthorizationCredential* _credential_, + const StringPiece& file_id); + + /** + * Standard destructor. + */ + virtual ~ParentsResource_ListMethod(); + + + /** + * Appends variable value to the target string. + * + * This is a helper function used to resolve templated variables in the URI. + * + * @param[in] variable_name The name of the templated variable. + * @param[in] config A pass-through parameter used for lists and maps. + * @param[in, out] target The string to append the value to. + */ + virtual util::Status AppendVariable( + const StringPiece& variable_name, + const client::UriTemplateConfig& config, + string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + ParentList* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } - - /** - * Returns MediaUploader for uploading the content. - */ - - /** - * Returns the specification for media upload using the simple protocol. - */ - static const client::MediaUploadSpec SIMPLE_MEDIA_UPLOAD; - /** - * Returns the specification for media upload using the resumable protocol. - */ - static const client::MediaUploadSpec RESUMABLE_MEDIA_UPLOAD; - private: string file_id_; - string add_parents_; - string modified_date_behavior_; - string remove_parents_; - bool update_viewed_date_; - bool set_modified_date_; - bool use_content_as_indexable_text_; - bool convert_; - string ocr_language_; - bool pinned_; - bool new_revision_; - bool ocr_; - string timed_text_language_; - string timed_text_track_name_; - bool _have_add_parents_ : 1; - bool _have_modified_date_behavior_ : 1; - bool _have_remove_parents_ : 1; - bool _have_update_viewed_date_ : 1; - bool _have_set_modified_date_ : 1; - bool _have_use_content_as_indexable_text_ : 1; - bool _have_convert_ : 1; - bool _have_ocr_language_ : 1; - bool _have_pinned_ : 1; - bool _have_new_revision_ : 1; - bool _have_ocr_ : 1; - bool _have_timed_text_language_ : 1; - bool _have_timed_text_track_name_ : 1; - DISALLOW_COPY_AND_ASSIGN(FilesResource_UpdateMethod); + DISALLOW_COPY_AND_ASSIGN(ParentsResource_ListMethod); }; + + /** - * Implements the watch method. + * Implements the delete method. * * @ingroup ServiceMethod * @@ -5604,15 +7254,9 @@ class FilesResource_UpdateMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.apps.readonly * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly - * https://www.googleapis.com/auth/drive.readonly */ -class FilesResource_WatchMethod : public DriveServiceBaseRequest { +class PermissionsResource_DeleteMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -5620,156 +7264,46 @@ class FilesResource_WatchMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file in question. - * @param[in] _content_ The data object to watch. + * @param[in] file_id The ID for the file or Team Drive. + * @param[in] permission_id The ID for the permission. */ - FilesResource_WatchMethod( + PermissionsResource_DeleteMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const Channel& _content_); + const StringPiece& permission_id); /** * Standard destructor. */ - virtual ~FilesResource_WatchMethod(); - - - /** - * Clears the 'acknowledgeAbuse' attribute so it is no longer - * set. - */ - void clear_acknowledge_abuse() { - _have_acknowledge_abuse_ = false; - client::ClearCppValueHelper(&acknowledge_abuse_); - } - - - /** - * Gets the optional 'acknowledgeAbuse' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_acknowledge_abuse() const { return acknowledge_abuse_; } + virtual ~PermissionsResource_DeleteMethod(); - /** - * Sets the 'acknowledgeAbuse' attribute. - * - * @param[in] value Whether the user is acknowledging the risk of - * downloading known malware or other abusive files. - */ - void set_acknowledge_abuse(bool value) { - _have_acknowledge_abuse_ = true; - acknowledge_abuse_ = value; - } /** - * Clears the 'updateViewedDate' attribute so it is no longer + * Clears the 'supportsTeamDrives' attribute so it is no longer * set. */ - void clear_update_viewed_date() { - _have_update_viewed_date_ = false; - client::ClearCppValueHelper(&update_viewed_date_); - } - - - /** - * Gets the optional 'updateViewedDate' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_update_viewed_date() const { return update_viewed_date_; } - - /** - * Sets the 'updateViewedDate' attribute. - * @deprecated - * - * @param[in] value Deprecated: Use files.update with - * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request - * body. - */ - void set_update_viewed_date(bool value) { - _have_update_viewed_date_ = true; - update_viewed_date_ = value; - } - - /** - * Clears the 'revisionId' attribute so it is no longer set. - */ - void clear_revision_id() { - _have_revision_id_ = false; - client::ClearCppValueHelper(&revision_id_); - } - - - /** - * Gets the optional 'revisionId' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_revision_id() const { return revision_id_; } - - /** - * Gets a modifiable pointer to the optional revisionId' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_revisionId() { - _have_revision_id_ = true; - return &revision_id_; - } - - - /** - * Sets the 'revisionId' attribute. - * - * @param[in] value Specifies the Revision ID that should be downloaded. - * Ignored unless alt=media is specified. - */ - void set_revision_id(const string& value) { - _have_revision_id_ = true; - revision_id_ = value; - } - - - - /** - * Clears the 'projection' attribute so it is no longer set. - */ - void clear_projection() { - _have_projection_ = false; - client::ClearCppValueHelper(&projection_); + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); } /** - * Gets the optional 'projection' attribute. + * Gets the optional 'supportsTeamDrives' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_projection() const { return projection_; } - - /** - * Gets a modifiable pointer to the optional projection' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_projection() { - _have_projection_ = true; - return &projection_; - } - + bool get_supports_team_drives() const { return supports_team_drives_; } /** - * Sets the 'projection' attribute. + * Sets the 'supportsTeamDrives' attribute. * - * @param[in] value This parameter is deprecated and has no function. + * @param[in] value Whether the requesting application supports Team Drives. */ - void set_projection(const string& value) { - _have_projection_ = true; - projection_ = value; + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; } /** @@ -5794,56 +7328,16 @@ class FilesResource_WatchMethod : public DriveServiceBaseRequest { virtual util::Status AppendOptionalQueryParameters(string* target); - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - Channel* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } - - /** - * Determine if the request should use Media Download for the response. - * - * @return true for media download, false otherwise. - */ - bool get_use_media_download() const { - return DriveServiceBaseRequest::get_use_media_download(); - } - - /** - * Sets whether Media Download should be used for the response data. - * - * @param[in] use true to use media download, false otherwise. - */ - void set_use_media_download(bool use) { - DriveServiceBaseRequest::set_use_media_download(use); - } - private: string file_id_; - bool acknowledge_abuse_; - bool update_viewed_date_; - string revision_id_; - string projection_; - bool _have_acknowledge_abuse_ : 1; - bool _have_update_viewed_date_ : 1; - bool _have_revision_id_ : 1; - bool _have_projection_ : 1; string _content_; - DISALLOW_COPY_AND_ASSIGN(FilesResource_WatchMethod); + string permission_id_; + bool supports_team_drives_; + bool _have_supports_team_drives_ : 1; + DISALLOW_COPY_AND_ASSIGN(PermissionsResource_DeleteMethod); }; - - /** - * Implements the delete method. + * Implements the get method. * * @ingroup ServiceMethod * @@ -5854,8 +7348,12 @@ class FilesResource_WatchMethod : public DriveServiceBaseRequest { * 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.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly */ -class ParentsResource_DeleteMethod : public DriveServiceBaseRequest { +class PermissionsResource_GetMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -5863,20 +7361,47 @@ class ParentsResource_DeleteMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] parent_id The ID of the parent. + * @param[in] file_id The ID for the file or Team Drive. + * @param[in] permission_id The ID for the permission. */ - ParentsResource_DeleteMethod( + PermissionsResource_GetMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& parent_id); + const StringPiece& permission_id); + + /** + * Standard destructor. + */ + virtual ~PermissionsResource_GetMethod(); + + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } - /** - * Standard destructor. - */ - virtual ~ParentsResource_DeleteMethod(); + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } /** * Appends variable value to the target string. @@ -5892,15 +7417,39 @@ class ParentsResource_DeleteMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + Permission* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } private: string file_id_; - string parent_id_; - DISALLOW_COPY_AND_ASSIGN(ParentsResource_DeleteMethod); + string permission_id_; + bool supports_team_drives_; + bool _have_supports_team_drives_ : 1; + DISALLOW_COPY_AND_ASSIGN(PermissionsResource_GetMethod); }; /** - * Implements the get method. + * Implements the getIdForEmail method. * * @ingroup ServiceMethod * @@ -5911,13 +7460,14 @@ class ParentsResource_DeleteMethod : public DriveServiceBaseRequest { * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive * https://www.googleapis.com/auth/drive.appdata + * https://www.googleapis.com/auth/drive.apps.readonly * https://www.googleapis.com/auth/drive.file * https://www.googleapis.com/auth/drive.metadata * https://www.googleapis.com/auth/drive.metadata.readonly * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class ParentsResource_GetMethod : public DriveServiceBaseRequest { +class PermissionsResource_GetIdForEmailMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -5925,19 +7475,17 @@ class ParentsResource_GetMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] parent_id The ID of the parent. + * @param[in] email The email address for which to return a permission ID. */ - ParentsResource_GetMethod( + PermissionsResource_GetIdForEmailMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& parent_id); + const StringPiece& email); /** * Standard destructor. */ - virtual ~ParentsResource_GetMethod(); + virtual ~PermissionsResource_GetIdForEmailMethod(); /** @@ -5966,14 +7514,13 @@ class ParentsResource_GetMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - ParentReference* data) { + PermissionId* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; - string parent_id_; - DISALLOW_COPY_AND_ASSIGN(ParentsResource_GetMethod); + string email_; + DISALLOW_COPY_AND_ASSIGN(PermissionsResource_GetIdForEmailMethod); }; /** @@ -5987,10 +7534,9 @@ class ParentsResource_GetMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file */ -class ParentsResource_InsertMethod : public DriveServiceBaseRequest { +class PermissionsResource_InsertMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -5998,20 +7544,116 @@ class ParentsResource_InsertMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. + * @param[in] file_id The ID for the file or Team Drive. * @param[in] _content_ The data object to insert. */ - ParentsResource_InsertMethod( + PermissionsResource_InsertMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const ParentReference& _content_); + const Permission& _content_); /** * Standard destructor. */ - virtual ~ParentsResource_InsertMethod(); + virtual ~PermissionsResource_InsertMethod(); + + + /** + * Clears the 'emailMessage' attribute so it is no longer set. + */ + void clear_email_message() { + _have_email_message_ = false; + client::ClearCppValueHelper(&email_message_); + } + + + /** + * Gets the optional 'emailMessage' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_email_message() const { return email_message_; } + + /** + * Gets a modifiable pointer to the optional emailMessage' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_emailMessage() { + _have_email_message_ = true; + return &email_message_; + } + + + /** + * Sets the 'emailMessage' attribute. + * + * @param[in] value A custom message to include in notification emails. + */ + void set_email_message(const string& value) { + _have_email_message_ = true; + email_message_ = value; + } + + + + /** + * Clears the 'sendNotificationEmails' attribute so it is no + * longer set. + */ + void clear_send_notification_emails() { + _have_send_notification_emails_ = false; + client::ClearCppValueHelper(&send_notification_emails_); + } + + + /** + * Gets the optional 'sendNotificationEmails' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_send_notification_emails() const { return send_notification_emails_; } + + /** + * Sets the 'sendNotificationEmails' attribute. + * + * @param[in] value Whether to send notification emails when sharing to + * users or groups. This parameter is ignored and an email is sent if the + * role is owner. + */ + void set_send_notification_emails(bool value) { + _have_send_notification_emails_ = true; + send_notification_emails_ = value; + } + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } /** * Appends variable value to the target string. @@ -6027,6 +7669,13 @@ class ParentsResource_InsertMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + /** * Executes the method and parses the response into a data object on success. @@ -6039,13 +7688,19 @@ class ParentsResource_InsertMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - ParentReference* data) { + Permission* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(ParentsResource_InsertMethod); + string file_id_; + string email_message_; + bool send_notification_emails_; + bool supports_team_drives_; + bool _have_email_message_ : 1; + bool _have_send_notification_emails_ : 1; + bool _have_supports_team_drives_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(PermissionsResource_InsertMethod); }; /** @@ -6059,14 +7714,13 @@ class ParentsResource_InsertMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file * https://www.googleapis.com/auth/drive.metadata * https://www.googleapis.com/auth/drive.metadata.readonly * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class ParentsResource_ListMethod : public DriveServiceBaseRequest { +class PermissionsResource_ListMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6074,18 +7728,116 @@ class ParentsResource_ListMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. + * @param[in] file_id The ID for the file or Team Drive. */ - ParentsResource_ListMethod( + PermissionsResource_ListMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id); - /** - * Standard destructor. - */ - virtual ~ParentsResource_ListMethod(); + /** + * Standard destructor. + */ + virtual ~PermissionsResource_ListMethod(); + + + /** + * Clears the 'maxResults' attribute so it is no longer set. + */ + void clear_max_results() { + _have_max_results_ = false; + client::ClearCppValueHelper(&max_results_); + } + + + /** + * Gets the optional 'maxResults' attribute. + * + * If the value is not set then the default value will be returned. + */ + int32 get_max_results() const { return max_results_; } + + /** + * Sets the 'maxResults' attribute. + * + * @param[in] value The maximum number of permissions to return per page. + * When not set for files in a Team Drive, at most 100 results will be + * returned. When not set for files that are not in a Team Drive, the entire + * list will be returned. + */ + void set_max_results(int32 value) { + _have_max_results_ = true; + max_results_ = value; + } + + /** + * Clears the 'pageToken' attribute so it is no longer set. + */ + void clear_page_token() { + _have_page_token_ = false; + client::ClearCppValueHelper(&page_token_); + } + + + /** + * Gets the optional 'pageToken' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_page_token() const { return page_token_; } + + /** + * Gets a modifiable pointer to the optional pageToken' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_pageToken() { + _have_page_token_ = true; + return &page_token_; + } + + + /** + * Sets the 'pageToken' attribute. + * + * @param[in] value The token for continuing a previous list request on the + * next page. This should be set to the value of 'nextPageToken' from the + * previous response. + */ + void set_page_token(const string& value) { + _have_page_token_ = true; + page_token_ = value; + } + + + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } /** * Appends variable value to the target string. @@ -6101,6 +7853,13 @@ class ParentsResource_ListMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + /** * Executes the method and parses the response into a data object on success. @@ -6113,19 +7872,28 @@ class ParentsResource_ListMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - ParentList* data) { + PermissionList* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - DISALLOW_COPY_AND_ASSIGN(ParentsResource_ListMethod); + int32 max_results_; + string page_token_; + bool supports_team_drives_; + bool _have_max_results_ : 1; + bool _have_page_token_ : 1; + bool _have_supports_team_drives_ : 1; + DISALLOW_COPY_AND_ASSIGN(PermissionsResource_ListMethod); }; - +typedef client::ServiceRequestPager< + PermissionsResource_ListMethod, + PermissionList> + PermissionsResource_ListMethodPager; /** - * Implements the delete method. + * Implements the patch method. * * @ingroup ServiceMethod * @@ -6137,7 +7905,7 @@ class ParentsResource_ListMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive * https://www.googleapis.com/auth/drive.file */ -class PermissionsResource_DeleteMethod : public DriveServiceBaseRequest { +class PermissionsResource_PatchMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6145,20 +7913,105 @@ class PermissionsResource_DeleteMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file. + * @param[in] file_id The ID for the file or Team Drive. * @param[in] permission_id The ID for the permission. + * @param[in] _content_ The data object to patch. */ - PermissionsResource_DeleteMethod( + PermissionsResource_PatchMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& permission_id); + const StringPiece& permission_id, + const Permission& _content_); /** * Standard destructor. */ - virtual ~PermissionsResource_DeleteMethod(); + virtual ~PermissionsResource_PatchMethod(); + + + /** + * Clears the 'removeExpiration' attribute so it is no longer + * set. + */ + void clear_remove_expiration() { + _have_remove_expiration_ = false; + client::ClearCppValueHelper(&remove_expiration_); + } + + + /** + * Gets the optional 'removeExpiration' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_remove_expiration() const { return remove_expiration_; } + + /** + * Sets the 'removeExpiration' attribute. + * + * @param[in] value Whether to remove the expiration date. + */ + void set_remove_expiration(bool value) { + _have_remove_expiration_ = true; + remove_expiration_ = value; + } + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Clears the 'transferOwnership' attribute so it is no longer + * set. + */ + void clear_transfer_ownership() { + _have_transfer_ownership_ = false; + client::ClearCppValueHelper(&transfer_ownership_); + } + + + /** + * Gets the optional 'transferOwnership' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_transfer_ownership() const { return transfer_ownership_; } + /** + * Sets the 'transferOwnership' attribute. + * + * @param[in] value Whether changing a role to 'owner' downgrades the + * current owners to writers. Does nothing if the specified role is not + * 'owner'. + */ + void set_transfer_ownership(bool value) { + _have_transfer_ownership_ = true; + transfer_ownership_ = value; + } /** * Appends variable value to the target string. @@ -6174,15 +8027,43 @@ class PermissionsResource_DeleteMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + + + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + Permission* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } private: string file_id_; string permission_id_; - DISALLOW_COPY_AND_ASSIGN(PermissionsResource_DeleteMethod); + bool remove_expiration_; + bool supports_team_drives_; + bool transfer_ownership_; + bool _have_remove_expiration_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_transfer_ownership_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(PermissionsResource_PatchMethod); }; /** - * Implements the get method. + * Implements the update method. * * @ingroup ServiceMethod * @@ -6193,12 +8074,8 @@ class PermissionsResource_DeleteMethod : public DriveServiceBaseRequest { * 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.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly - * https://www.googleapis.com/auth/drive.readonly */ -class PermissionsResource_GetMethod : public DriveServiceBaseRequest { +class PermissionsResource_UpdateMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6206,20 +8083,105 @@ class PermissionsResource_GetMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file. + * @param[in] file_id The ID for the file or Team Drive. * @param[in] permission_id The ID for the permission. + * @param[in] _content_ The data object to update. */ - PermissionsResource_GetMethod( + PermissionsResource_UpdateMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& permission_id); + const StringPiece& permission_id, + const Permission& _content_); /** * Standard destructor. */ - virtual ~PermissionsResource_GetMethod(); + virtual ~PermissionsResource_UpdateMethod(); + + + /** + * Clears the 'removeExpiration' attribute so it is no longer + * set. + */ + void clear_remove_expiration() { + _have_remove_expiration_ = false; + client::ClearCppValueHelper(&remove_expiration_); + } + + + /** + * Gets the optional 'removeExpiration' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_remove_expiration() const { return remove_expiration_; } + + /** + * Sets the 'removeExpiration' attribute. + * + * @param[in] value Whether to remove the expiration date. + */ + void set_remove_expiration(bool value) { + _have_remove_expiration_ = true; + remove_expiration_ = value; + } + + /** + * Clears the 'supportsTeamDrives' attribute so it is no longer + * set. + */ + void clear_supports_team_drives() { + _have_supports_team_drives_ = false; + client::ClearCppValueHelper(&supports_team_drives_); + } + + + /** + * Gets the optional 'supportsTeamDrives' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_supports_team_drives() const { return supports_team_drives_; } + + /** + * Sets the 'supportsTeamDrives' attribute. + * + * @param[in] value Whether the requesting application supports Team Drives. + */ + void set_supports_team_drives(bool value) { + _have_supports_team_drives_ = true; + supports_team_drives_ = value; + } + + /** + * Clears the 'transferOwnership' attribute so it is no longer + * set. + */ + void clear_transfer_ownership() { + _have_transfer_ownership_ = false; + client::ClearCppValueHelper(&transfer_ownership_); + } + + + /** + * Gets the optional 'transferOwnership' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_transfer_ownership() const { return transfer_ownership_; } + /** + * Sets the 'transferOwnership' attribute. + * + * @param[in] value Whether changing a role to 'owner' downgrades the + * current owners to writers. Does nothing if the specified role is not + * 'owner'. + */ + void set_transfer_ownership(bool value) { + _have_transfer_ownership_ = true; + transfer_ownership_ = value; + } /** * Appends variable value to the target string. @@ -6235,6 +8197,13 @@ class PermissionsResource_GetMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + /** * Executes the method and parses the response into a data object on success. @@ -6254,11 +8223,19 @@ class PermissionsResource_GetMethod : public DriveServiceBaseRequest { private: string file_id_; string permission_id_; - DISALLOW_COPY_AND_ASSIGN(PermissionsResource_GetMethod); + bool remove_expiration_; + bool supports_team_drives_; + bool transfer_ownership_; + bool _have_remove_expiration_ : 1; + bool _have_supports_team_drives_ : 1; + bool _have_transfer_ownership_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(PermissionsResource_UpdateMethod); }; + + /** - * Implements the getIdForEmail method. + * Implements the delete method. * * @ingroup ServiceMethod * @@ -6269,14 +8246,10 @@ class PermissionsResource_GetMethod : public DriveServiceBaseRequest { * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.apps.readonly * https://www.googleapis.com/auth/drive.file * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly - * https://www.googleapis.com/auth/drive.readonly */ -class PermissionsResource_GetIdForEmailMethod : public DriveServiceBaseRequest { +class PropertiesResource_DeleteMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6284,19 +8257,59 @@ class PermissionsResource_GetIdForEmailMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] email The email address for which to return a permission ID. + * @param[in] file_id The ID of the file. + * @param[in] property_key The key of the property. */ - PermissionsResource_GetIdForEmailMethod( + PropertiesResource_DeleteMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& email); + const StringPiece& file_id, + const StringPiece& property_key); + + /** + * Standard destructor. + */ + virtual ~PropertiesResource_DeleteMethod(); + + + /** + * Clears the 'visibility' attribute so it is no longer set. + */ + void clear_visibility() { + _have_visibility_ = false; + client::ClearCppValueHelper(&visibility_); + } + + + /** + * Gets the optional 'visibility' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_visibility() const { return visibility_; } - /** - * Standard destructor. - */ - virtual ~PermissionsResource_GetIdForEmailMethod(); + /** + * Gets a modifiable pointer to the optional visibility' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_visibility() { + _have_visibility_ = true; + return &visibility_; + } + /** + * Sets the 'visibility' attribute. + * + * @param[in] value The visibility of the property. + */ + void set_visibility(const string& value) { + _have_visibility_ = true; + visibility_ = value; + } + /** * Appends variable value to the target string. * @@ -6311,29 +8324,24 @@ class PermissionsResource_GetIdForEmailMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. + * Appends the optional query parameters to the target URL. * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. + * @param[in, out] target The URL string to append to. */ - util::Status ExecuteAndParseResponse( - PermissionId* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } + virtual util::Status AppendOptionalQueryParameters(string* target); + private: - string email_; - DISALLOW_COPY_AND_ASSIGN(PermissionsResource_GetIdForEmailMethod); + string file_id_; + string property_key_; + string visibility_; + bool _have_visibility_ : 1; + DISALLOW_COPY_AND_ASSIGN(PropertiesResource_DeleteMethod); }; /** - * Implements the insert method. + * Implements the get method. * * @ingroup ServiceMethod * @@ -6343,9 +8351,14 @@ class PermissionsResource_GetIdForEmailMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly */ -class PermissionsResource_InsertMethod : public DriveServiceBaseRequest { +class PropertiesResource_GetMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6353,88 +8366,57 @@ class PermissionsResource_InsertMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file. - * @param[in] _content_ The data object to insert. + * @param[in] file_id The ID of the file. + * @param[in] property_key The key of the property. */ - PermissionsResource_InsertMethod( + PropertiesResource_GetMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const Permission& _content_); + const StringPiece& property_key); /** * Standard destructor. */ - virtual ~PermissionsResource_InsertMethod(); + virtual ~PropertiesResource_GetMethod(); /** - * Clears the 'emailMessage' attribute so it is no longer set. + * Clears the 'visibility' attribute so it is no longer set. */ - void clear_email_message() { - _have_email_message_ = false; - client::ClearCppValueHelper(&email_message_); + void clear_visibility() { + _have_visibility_ = false; + client::ClearCppValueHelper(&visibility_); } /** - * Gets the optional 'emailMessage' attribute. + * Gets the optional 'visibility' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_email_message() const { return email_message_; } + const string& get_visibility() const { return visibility_; } /** - * Gets a modifiable pointer to the optional emailMessage' + * Gets a modifiable pointer to the optional visibility' * attribute. * * @return The value can be set by dereferencing the pointer. */ - string* mutable_emailMessage() { - _have_email_message_ = true; - return &email_message_; - } - - - /** - * Sets the 'emailMessage' attribute. - * - * @param[in] value A custom message to include in notification emails. - */ - void set_email_message(const string& value) { - _have_email_message_ = true; - email_message_ = value; - } - - - - /** - * Clears the 'sendNotificationEmails' attribute so it is no - * longer set. - */ - void clear_send_notification_emails() { - _have_send_notification_emails_ = false; - client::ClearCppValueHelper(&send_notification_emails_); + string* mutable_visibility() { + _have_visibility_ = true; + return &visibility_; } /** - * Gets the optional 'sendNotificationEmails' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_send_notification_emails() const { return send_notification_emails_; } - - /** - * Sets the 'sendNotificationEmails' attribute. + * Sets the 'visibility' attribute. * - * @param[in] value Whether to send notification emails when sharing to - * users or groups. This parameter is ignored and an email is sent if the - * role is owner. + * @param[in] value The visibility of the property. */ - void set_send_notification_emails(bool value) { - _have_send_notification_emails_ = true; - send_notification_emails_ = value; + void set_visibility(const string& value) { + _have_visibility_ = true; + visibility_ = value; } /** @@ -6470,21 +8452,20 @@ class PermissionsResource_InsertMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Permission* data) { + Property* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - string email_message_; - bool send_notification_emails_; - bool _have_email_message_ : 1; - bool _have_send_notification_emails_ : 1; string _content_; - DISALLOW_COPY_AND_ASSIGN(PermissionsResource_InsertMethod); + string property_key_; + string visibility_; + bool _have_visibility_ : 1; + DISALLOW_COPY_AND_ASSIGN(PropertiesResource_GetMethod); }; /** - * Implements the list method. + * Implements the insert method. * * @ingroup ServiceMethod * @@ -6494,13 +8475,11 @@ class PermissionsResource_InsertMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly - * https://www.googleapis.com/auth/drive.readonly */ -class PermissionsResource_ListMethod : public DriveServiceBaseRequest { +class PropertiesResource_InsertMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6508,17 +8487,19 @@ class PermissionsResource_ListMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file. + * @param[in] file_id The ID of the file. + * @param[in] _content_ The data object to insert. */ - PermissionsResource_ListMethod( + PropertiesResource_InsertMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id); + const StringPiece& file_id, + const Property& _content_); /** * Standard destructor. */ - virtual ~PermissionsResource_ListMethod(); + virtual ~PropertiesResource_InsertMethod(); /** @@ -6547,17 +8528,17 @@ class PermissionsResource_ListMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - PermissionList* data) { + Property* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; - DISALLOW_COPY_AND_ASSIGN(PermissionsResource_ListMethod); + string file_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(PropertiesResource_InsertMethod); }; /** - * Implements the patch method. + * Implements the list method. * * @ingroup ServiceMethod * @@ -6567,9 +8548,14 @@ class PermissionsResource_ListMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly */ -class PermissionsResource_PatchMethod : public DriveServiceBaseRequest { +class PropertiesResource_ListMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6577,51 +8563,18 @@ class PermissionsResource_PatchMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file. - * @param[in] permission_id The ID for the permission. - * @param[in] _content_ The data object to patch. + * @param[in] file_id The ID of the file. */ - PermissionsResource_PatchMethod( + PropertiesResource_ListMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& permission_id, - const Permission& _content_); + const StringPiece& file_id); /** * Standard destructor. */ - virtual ~PermissionsResource_PatchMethod(); - - - /** - * Clears the 'transferOwnership' attribute so it is no longer - * set. - */ - void clear_transfer_ownership() { - _have_transfer_ownership_ = false; - client::ClearCppValueHelper(&transfer_ownership_); - } - - - /** - * Gets the optional 'transferOwnership' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_transfer_ownership() const { return transfer_ownership_; } + virtual ~PropertiesResource_ListMethod(); - /** - * Sets the 'transferOwnership' attribute. - * - * @param[in] value Whether changing a role to 'owner' downgrades the - * current owners to writers. Does nothing if the specified role is not - * 'owner'. - */ - void set_transfer_ownership(bool value) { - _have_transfer_ownership_ = true; - transfer_ownership_ = value; - } /** * Appends variable value to the target string. @@ -6637,13 +8590,6 @@ class PermissionsResource_PatchMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); - /** - * Appends the optional query parameters to the target URL. - * - * @param[in, out] target The URL string to append to. - */ - virtual util::Status AppendOptionalQueryParameters(string* target); - /** * Executes the method and parses the response into a data object on success. @@ -6656,20 +8602,17 @@ class PermissionsResource_PatchMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Permission* data) { + PropertyList* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - string permission_id_; - bool transfer_ownership_; - bool _have_transfer_ownership_ : 1; string _content_; - DISALLOW_COPY_AND_ASSIGN(PermissionsResource_PatchMethod); + DISALLOW_COPY_AND_ASSIGN(PropertiesResource_ListMethod); }; /** - * Implements the update method. + * Implements the patch method. * * @ingroup ServiceMethod * @@ -6679,9 +8622,11 @@ class PermissionsResource_PatchMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata */ -class PermissionsResource_UpdateMethod : public DriveServiceBaseRequest { +class PropertiesResource_PatchMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6689,50 +8634,59 @@ class PermissionsResource_UpdateMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file. - * @param[in] permission_id The ID for the permission. - * @param[in] _content_ The data object to update. + * @param[in] file_id The ID of the file. + * @param[in] property_key The key of the property. + * @param[in] _content_ The data object to patch. */ - PermissionsResource_UpdateMethod( + PropertiesResource_PatchMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& permission_id, - const Permission& _content_); + const StringPiece& property_key, + const Property& _content_); /** * Standard destructor. */ - virtual ~PermissionsResource_UpdateMethod(); + virtual ~PropertiesResource_PatchMethod(); /** - * Clears the 'transferOwnership' attribute so it is no longer - * set. - */ - void clear_transfer_ownership() { - _have_transfer_ownership_ = false; - client::ClearCppValueHelper(&transfer_ownership_); + * Clears the 'visibility' attribute so it is no longer set. + */ + void clear_visibility() { + _have_visibility_ = false; + client::ClearCppValueHelper(&visibility_); } /** - * Gets the optional 'transferOwnership' attribute. + * Gets the optional 'visibility' attribute. * * If the value is not set then the default value will be returned. */ - bool get_transfer_ownership() const { return transfer_ownership_; } + const string& get_visibility() const { return visibility_; } /** - * Sets the 'transferOwnership' attribute. + * Gets a modifiable pointer to the optional visibility' + * attribute. * - * @param[in] value Whether changing a role to 'owner' downgrades the - * current owners to writers. Does nothing if the specified role is not - * 'owner'. + * @return The value can be set by dereferencing the pointer. */ - void set_transfer_ownership(bool value) { - _have_transfer_ownership_ = true; - transfer_ownership_ = value; + string* mutable_visibility() { + _have_visibility_ = true; + return &visibility_; + } + + + /** + * Sets the 'visibility' attribute. + * + * @param[in] value The visibility of the property. + */ + void set_visibility(const string& value) { + _have_visibility_ = true; + visibility_ = value; } /** @@ -6768,22 +8722,20 @@ class PermissionsResource_UpdateMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Permission* data) { + Property* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - string permission_id_; - bool transfer_ownership_; - bool _have_transfer_ownership_ : 1; string _content_; - DISALLOW_COPY_AND_ASSIGN(PermissionsResource_UpdateMethod); + string property_key_; + string visibility_; + bool _have_visibility_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(PropertiesResource_PatchMethod); }; - - /** - * Implements the delete method. + * Implements the update method. * * @ingroup ServiceMethod * @@ -6797,7 +8749,7 @@ class PermissionsResource_UpdateMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive.file * https://www.googleapis.com/auth/drive.metadata */ -class PropertiesResource_DeleteMethod : public DriveServiceBaseRequest { +class PropertiesResource_UpdateMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6807,17 +8759,19 @@ class PropertiesResource_DeleteMethod : public DriveServiceBaseRequest { * creating the method instance. * @param[in] file_id The ID of the file. * @param[in] property_key The key of the property. + * @param[in] _content_ The data object to update. */ - PropertiesResource_DeleteMethod( + PropertiesResource_UpdateMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& property_key); + const StringPiece& property_key, + const Property& _content_); /** * Standard destructor. */ - virtual ~PropertiesResource_DeleteMethod(); + virtual ~PropertiesResource_UpdateMethod(); /** @@ -6880,14 +8834,31 @@ class PropertiesResource_DeleteMethod : public DriveServiceBaseRequest { virtual util::Status AppendOptionalQueryParameters(string* target); + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + Property* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + private: string file_id_; string property_key_; string visibility_; - bool _have_visibility_ : 1; - DISALLOW_COPY_AND_ASSIGN(PropertiesResource_DeleteMethod); + bool _have_visibility_ : 1; string _content_; + DISALLOW_COPY_AND_ASSIGN(PropertiesResource_UpdateMethod); }; + + /** * Implements the get method. * @@ -6899,14 +8870,10 @@ class PropertiesResource_DeleteMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class PropertiesResource_GetMethod : public DriveServiceBaseRequest { +class RealtimeResource_GetMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -6914,57 +8881,47 @@ class PropertiesResource_GetMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] property_key The key of the property. + * @param[in] file_id The ID of the file that the Realtime API data model is + * associated with. */ - PropertiesResource_GetMethod( + RealtimeResource_GetMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& property_key); + const StringPiece& file_id); /** * Standard destructor. */ - virtual ~PropertiesResource_GetMethod(); + virtual ~RealtimeResource_GetMethod(); /** - * Clears the 'visibility' attribute so it is no longer set. + * Clears the 'revision' attribute so it is no longer set. */ - void clear_visibility() { - _have_visibility_ = false; - client::ClearCppValueHelper(&visibility_); + void clear_revision() { + _have_revision_ = false; + client::ClearCppValueHelper(&revision_); } /** - * Gets the optional 'visibility' attribute. + * Gets the optional 'revision' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_visibility() const { return visibility_; } - - /** - * Gets a modifiable pointer to the optional visibility' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_visibility() { - _have_visibility_ = true; - return &visibility_; - } - + int32 get_revision() const { return revision_; } /** - * Sets the 'visibility' attribute. + * Sets the 'revision' attribute. * - * @param[in] value The visibility of the property. + * @param[in] value The revision of the Realtime API data model to export. + * Revisions start at 1 (the initial empty data model) and are incremented + * with each change. If this parameter is excluded, the most recent data + * model will be returned. */ - void set_visibility(const string& value) { - _have_visibility_ = true; - visibility_ = value; + void set_revision(int32 value) { + _have_revision_ = true; + revision_ = value; } /** @@ -6990,30 +8947,32 @@ class PropertiesResource_GetMethod : public DriveServiceBaseRequest { /** - * Executes the method and parses the response into a data object on success. + * Determine if the request should use Media Download for the response. * - * @param[out] data Loads from the response payload JSON data on success. + * @return true for media download, false otherwise. + */ + bool get_use_media_download() const { + return DriveServiceBaseRequest::get_use_media_download(); + } + + /** + * Sets whether Media Download should be used for the response data. * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. + * @param[in] use true to use media download, false otherwise. */ - util::Status ExecuteAndParseResponse( - Property* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + void set_use_media_download(bool use) { + DriveServiceBaseRequest::set_use_media_download(use); } private: string file_id_; - string property_key_; - string visibility_; - bool _have_visibility_ : 1; - DISALLOW_COPY_AND_ASSIGN(PropertiesResource_GetMethod); + int32 revision_; + bool _have_revision_ : 1; + DISALLOW_COPY_AND_ASSIGN(RealtimeResource_GetMethod); }; /** - * Implements the insert method. + * Implements the update method. * * @ingroup ServiceMethod * @@ -7023,11 +8982,9 @@ class PropertiesResource_GetMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata */ -class PropertiesResource_InsertMethod : public DriveServiceBaseRequest { +class RealtimeResource_UpdateMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7035,20 +8992,68 @@ class PropertiesResource_InsertMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] _content_ The data object to insert. + * @param[in] file_id The ID of the file that the Realtime API data model is + * associated with. + * @param[in] _media_content_type_ The content type of the data in the + * _media_content_reader_. + * @param[in] _media_content_reader_ The media content to update. If + * this is NULL then do not upload any media and ignore + * _media_content_type_. */ - PropertiesResource_InsertMethod( + RealtimeResource_UpdateMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const Property& _content_); + const StringPiece& _media_content_type_, + client::DataReader* _media_content_reader_); /** * Standard destructor. */ - virtual ~PropertiesResource_InsertMethod(); + virtual ~RealtimeResource_UpdateMethod(); + + + /** + * Clears the 'baseRevision' attribute so it is no longer set. + */ + void clear_base_revision() { + _have_base_revision_ = false; + client::ClearCppValueHelper(&base_revision_); + } + + + /** + * Gets the optional 'baseRevision' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_base_revision() const { return base_revision_; } + + /** + * Gets a modifiable pointer to the optional baseRevision' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_baseRevision() { + _have_base_revision_ = true; + return &base_revision_; + } + + /** + * Sets the 'baseRevision' attribute. + * + * @param[in] value The revision of the model to diff the uploaded model + * against. If set, the uploaded model is diffed against the provided + * revision and those differences are merged with any changes made to the + * model after the provided revision. If not set, the uploaded model + * replaces the current model on the server. + */ + void set_base_revision(const string& value) { + _have_base_revision_ = true; + base_revision_ = value; + } /** * Appends variable value to the target string. @@ -7064,29 +9069,39 @@ class PropertiesResource_InsertMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. + * Appends the optional query parameters to the target URL. * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. + * @param[in, out] target The URL string to append to. */ - util::Status ExecuteAndParseResponse( - Property* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } + virtual util::Status AppendOptionalQueryParameters(string* target); - private: - string file_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(PropertiesResource_InsertMethod); + + + /** + * Returns MediaUploader for uploading the content. + */ + + /** + * Returns the specification for media upload using the simple protocol. + */ + static const client::MediaUploadSpec SIMPLE_MEDIA_UPLOAD; + /** + * Returns the specification for media upload using the resumable protocol. + */ + static const client::MediaUploadSpec RESUMABLE_MEDIA_UPLOAD; + + private: + string file_id_; + string base_revision_; + bool _have_base_revision_ : 1; + DISALLOW_COPY_AND_ASSIGN(RealtimeResource_UpdateMethod); }; + + /** - * Implements the list method. + * Implements the delete method. * * @ingroup ServiceMethod * @@ -7096,14 +9111,9 @@ class PropertiesResource_InsertMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly - * https://www.googleapis.com/auth/drive.readonly */ -class PropertiesResource_ListMethod : public DriveServiceBaseRequest { +class RepliesResource_DeleteMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7112,16 +9122,20 @@ class PropertiesResource_ListMethod : public DriveServiceBaseRequest { * In practice this is supplied by the user code that is * creating the method instance. * @param[in] file_id The ID of the file. + * @param[in] comment_id The ID of the comment. + * @param[in] reply_id The ID of the reply. */ - PropertiesResource_ListMethod( + RepliesResource_DeleteMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id); + const StringPiece& file_id, + const StringPiece& comment_id, + const StringPiece& reply_id); /** * Standard destructor. */ - virtual ~PropertiesResource_ListMethod(); + virtual ~RepliesResource_DeleteMethod(); /** @@ -7139,28 +9153,15 @@ class PropertiesResource_ListMethod : public DriveServiceBaseRequest { string* target); - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - PropertyList* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } - private: string file_id_; - DISALLOW_COPY_AND_ASSIGN(PropertiesResource_ListMethod); + string comment_id_; + string reply_id_; + DISALLOW_COPY_AND_ASSIGN(RepliesResource_DeleteMethod); }; /** - * Implements the patch method. + * Implements the get method. * * @ingroup ServiceMethod * @@ -7170,11 +9171,10 @@ class PropertiesResource_ListMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.readonly */ -class PropertiesResource_PatchMethod : public DriveServiceBaseRequest { +class RepliesResource_GetMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7183,58 +9183,48 @@ class PropertiesResource_PatchMethod : public DriveServiceBaseRequest { * In practice this is supplied by the user code that is * creating the method instance. * @param[in] file_id The ID of the file. - * @param[in] property_key The key of the property. - * @param[in] _content_ The data object to patch. + * @param[in] comment_id The ID of the comment. + * @param[in] reply_id The ID of the reply. */ - PropertiesResource_PatchMethod( + RepliesResource_GetMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& property_key, - const Property& _content_); + const StringPiece& comment_id, + const StringPiece& reply_id); /** * Standard destructor. */ - virtual ~PropertiesResource_PatchMethod(); + virtual ~RepliesResource_GetMethod(); /** - * Clears the 'visibility' attribute so it is no longer set. + * Clears the 'includeDeleted' attribute so it is no longer + * set. */ - void clear_visibility() { - _have_visibility_ = false; - client::ClearCppValueHelper(&visibility_); + void clear_include_deleted() { + _have_include_deleted_ = false; + client::ClearCppValueHelper(&include_deleted_); } /** - * Gets the optional 'visibility' attribute. + * Gets the optional 'includeDeleted' attribute. * * If the value is not set then the default value will be returned. */ - const string& get_visibility() const { return visibility_; } - - /** - * Gets a modifiable pointer to the optional visibility' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_visibility() { - _have_visibility_ = true; - return &visibility_; - } - + bool get_include_deleted() const { return include_deleted_; } /** - * Sets the 'visibility' attribute. + * Sets the 'includeDeleted' attribute. * - * @param[in] value The visibility of the property. + * @param[in] value If set, this will succeed when retrieving a deleted + * reply. */ - void set_visibility(const string& value) { - _have_visibility_ = true; - visibility_ = value; + void set_include_deleted(bool value) { + _have_include_deleted_ = true; + include_deleted_ = value; } /** @@ -7270,20 +9260,21 @@ class PropertiesResource_PatchMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Property* data) { + CommentReply* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - string property_key_; - string visibility_; - bool _have_visibility_ : 1; string _content_; - DISALLOW_COPY_AND_ASSIGN(PropertiesResource_PatchMethod); + string comment_id_; + string reply_id_; + bool include_deleted_; + bool _have_include_deleted_ : 1; + DISALLOW_COPY_AND_ASSIGN(RepliesResource_GetMethod); }; /** - * Implements the update method. + * Implements the insert method. * * @ingroup ServiceMethod * @@ -7293,11 +9284,9 @@ class PropertiesResource_PatchMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata */ -class PropertiesResource_UpdateMethod : public DriveServiceBaseRequest { +class RepliesResource_InsertMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7306,59 +9295,21 @@ class PropertiesResource_UpdateMethod : public DriveServiceBaseRequest { * In practice this is supplied by the user code that is * creating the method instance. * @param[in] file_id The ID of the file. - * @param[in] property_key The key of the property. - * @param[in] _content_ The data object to update. + * @param[in] comment_id The ID of the comment. + * @param[in] _content_ The data object to insert. */ - PropertiesResource_UpdateMethod( + RepliesResource_InsertMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& property_key, - const Property& _content_); + const StringPiece& comment_id, + const CommentReply& _content_); /** * Standard destructor. */ - virtual ~PropertiesResource_UpdateMethod(); - - - /** - * Clears the 'visibility' attribute so it is no longer set. - */ - void clear_visibility() { - _have_visibility_ = false; - client::ClearCppValueHelper(&visibility_); - } - - - /** - * Gets the optional 'visibility' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_visibility() const { return visibility_; } - - /** - * Gets a modifiable pointer to the optional visibility' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_visibility() { - _have_visibility_ = true; - return &visibility_; - } - + virtual ~RepliesResource_InsertMethod(); - /** - * Sets the 'visibility' attribute. - * - * @param[in] value The visibility of the property. - */ - void set_visibility(const string& value) { - _have_visibility_ = true; - visibility_ = value; - } /** * Appends variable value to the target string. @@ -7374,13 +9325,6 @@ class PropertiesResource_UpdateMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); - /** - * Appends the optional query parameters to the target URL. - * - * @param[in, out] target The URL string to append to. - */ - virtual util::Status AppendOptionalQueryParameters(string* target); - /** * Executes the method and parses the response into a data object on success. @@ -7393,22 +9337,18 @@ class PropertiesResource_UpdateMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Property* data) { + CommentReply* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - string property_key_; - string visibility_; - bool _have_visibility_ : 1; string _content_; - DISALLOW_COPY_AND_ASSIGN(PropertiesResource_UpdateMethod); + string comment_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(RepliesResource_InsertMethod); }; - - /** - * Implements the get method. + * Implements the list method. * * @ingroup ServiceMethod * @@ -7421,7 +9361,7 @@ class PropertiesResource_UpdateMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive.file * https://www.googleapis.com/auth/drive.readonly */ -class RealtimeResource_GetMethod : public DriveServiceBaseRequest { +class RepliesResource_ListMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7429,47 +9369,114 @@ class RealtimeResource_GetMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file that the Realtime API data model is - * associated with. + * @param[in] file_id The ID of the file. + * @param[in] comment_id The ID of the comment. */ - RealtimeResource_GetMethod( + RepliesResource_ListMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id); + const StringPiece& file_id, + const StringPiece& comment_id); /** * Standard destructor. */ - virtual ~RealtimeResource_GetMethod(); + virtual ~RepliesResource_ListMethod(); /** - * Clears the 'revision' attribute so it is no longer set. + * Clears the 'includeDeleted' attribute so it is no longer + * set. + */ + void clear_include_deleted() { + _have_include_deleted_ = false; + client::ClearCppValueHelper(&include_deleted_); + } + + + /** + * Gets the optional 'includeDeleted' attribute. + * + * If the value is not set then the default value will be returned. + */ + bool get_include_deleted() const { return include_deleted_; } + + /** + * Sets the 'includeDeleted' attribute. + * + * @param[in] value If set, all replies, including deleted replies (with + * content stripped) will be returned. + */ + void set_include_deleted(bool value) { + _have_include_deleted_ = true; + include_deleted_ = value; + } + + /** + * Clears the 'maxResults' attribute so it is no longer set. + */ + void clear_max_results() { + _have_max_results_ = false; + client::ClearCppValueHelper(&max_results_); + } + + + /** + * Gets the optional 'maxResults' attribute. + * + * If the value is not set then the default value will be returned. + */ + int32 get_max_results() const { return max_results_; } + + /** + * Sets the 'maxResults' attribute. + * + * @param[in] value The maximum number of replies to include in the + * response, used for paging. + */ + void set_max_results(int32 value) { + _have_max_results_ = true; + max_results_ = value; + } + + /** + * Clears the 'pageToken' attribute so it is no longer set. */ - void clear_revision() { - _have_revision_ = false; - client::ClearCppValueHelper(&revision_); + void clear_page_token() { + _have_page_token_ = false; + client::ClearCppValueHelper(&page_token_); } /** - * Gets the optional 'revision' attribute. + * Gets the optional 'pageToken' attribute. * * If the value is not set then the default value will be returned. */ - int32 get_revision() const { return revision_; } + const string& get_page_token() const { return page_token_; } /** - * Sets the 'revision' attribute. + * Gets a modifiable pointer to the optional pageToken' + * attribute. * - * @param[in] value The revision of the Realtime API data model to export. - * Revisions start at 1 (the initial empty data model) and are incremented - * with each change. If this parameter is excluded, the most recent data - * model will be returned. + * @return The value can be set by dereferencing the pointer. */ - void set_revision(int32 value) { - _have_revision_ = true; - revision_ = value; + string* mutable_pageToken() { + _have_page_token_ = true; + return &page_token_; + } + + + /** + * Sets the 'pageToken' attribute. + * + * @param[in] value The continuation token, used to page through large + * result sets. To get the next page of results, set this parameter to the + * value of "nextPageToken" from the previous response. + */ + void set_page_token(const string& value) { + _have_page_token_ = true; + page_token_ = value; } /** @@ -7495,32 +9502,39 @@ class RealtimeResource_GetMethod : public DriveServiceBaseRequest { /** - * Determine if the request should use Media Download for the response. + * Executes the method and parses the response into a data object on success. * - * @return true for media download, false otherwise. - */ - bool get_use_media_download() const { - return DriveServiceBaseRequest::get_use_media_download(); - } - - /** - * Sets whether Media Download should be used for the response data. + * @param[out] data Loads from the response payload JSON data on success. * - * @param[in] use true to use media download, false otherwise. + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. */ - void set_use_media_download(bool use) { - DriveServiceBaseRequest::set_use_media_download(use); + util::Status ExecuteAndParseResponse( + CommentReplyList* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - int32 revision_; - bool _have_revision_ : 1; - DISALLOW_COPY_AND_ASSIGN(RealtimeResource_GetMethod); + string comment_id_; + bool include_deleted_; + int32 max_results_; + string page_token_; + bool _have_include_deleted_ : 1; + bool _have_max_results_ : 1; + bool _have_page_token_ : 1; + DISALLOW_COPY_AND_ASSIGN(RepliesResource_ListMethod); }; +typedef client::ServiceRequestPager< + RepliesResource_ListMethod, + CommentReplyList> + RepliesResource_ListMethodPager; + /** - * Implements the update method. + * Implements the patch method. * * @ingroup ServiceMethod * @@ -7532,7 +9546,7 @@ class RealtimeResource_GetMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive * https://www.googleapis.com/auth/drive.file */ -class RealtimeResource_UpdateMethod : public DriveServiceBaseRequest { +class RepliesResource_PatchMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7540,68 +9554,24 @@ class RealtimeResource_UpdateMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file that the Realtime API data model is - * associated with. - * @param[in] _media_content_type_ The content type of the data in the - * _media_content_reader_. - * @param[in] _media_content_reader_ The media content to update. If - * this is NULL then do not upload any media and ignore - * _media_content_type_. + * @param[in] file_id The ID of the file. + * @param[in] comment_id The ID of the comment. + * @param[in] reply_id The ID of the reply. + * @param[in] _content_ The data object to patch. */ - RealtimeResource_UpdateMethod( + RepliesResource_PatchMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& _media_content_type_, - client::DataReader* _media_content_reader_); + const StringPiece& comment_id, + const StringPiece& reply_id, + const CommentReply& _content_); /** * Standard destructor. */ - virtual ~RealtimeResource_UpdateMethod(); - - - /** - * Clears the 'baseRevision' attribute so it is no longer set. - */ - void clear_base_revision() { - _have_base_revision_ = false; - client::ClearCppValueHelper(&base_revision_); - } - - - /** - * Gets the optional 'baseRevision' attribute. - * - * If the value is not set then the default value will be returned. - */ - const string& get_base_revision() const { return base_revision_; } - - /** - * Gets a modifiable pointer to the optional baseRevision' - * attribute. - * - * @return The value can be set by dereferencing the pointer. - */ - string* mutable_baseRevision() { - _have_base_revision_ = true; - return &base_revision_; - } - + virtual ~RepliesResource_PatchMethod(); - /** - * Sets the 'baseRevision' attribute. - * - * @param[in] value The revision of the model to diff the uploaded model - * against. If set, the uploaded model is diffed against the provided - * revision and those differences are merged with any changes made to the - * model after the provided revision. If not set, the uploaded model - * replaces the current model on the server. - */ - void set_base_revision(const string& value) { - _have_base_revision_ = true; - base_revision_ = value; - } /** * Appends variable value to the target string. @@ -7617,39 +9587,31 @@ class RealtimeResource_UpdateMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); - /** - * Appends the optional query parameters to the target URL. - * - * @param[in, out] target The URL string to append to. - */ - virtual util::Status AppendOptionalQueryParameters(string* target); - - - - /** - * Returns MediaUploader for uploading the content. - */ /** - * Returns the specification for media upload using the simple protocol. - */ - static const client::MediaUploadSpec SIMPLE_MEDIA_UPLOAD; - /** - * Returns the specification for media upload using the resumable protocol. + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. */ - static const client::MediaUploadSpec RESUMABLE_MEDIA_UPLOAD; + util::Status ExecuteAndParseResponse( + CommentReply* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } private: string file_id_; - string base_revision_; - bool _have_base_revision_ : 1; - DISALLOW_COPY_AND_ASSIGN(RealtimeResource_UpdateMethod); + string comment_id_; + string reply_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(RepliesResource_PatchMethod); }; - - /** - * Implements the delete method. + * Implements the update method. * * @ingroup ServiceMethod * @@ -7661,7 +9623,7 @@ class RealtimeResource_UpdateMethod : public DriveServiceBaseRequest { * https://www.googleapis.com/auth/drive * https://www.googleapis.com/auth/drive.file */ -class RepliesResource_DeleteMethod : public DriveServiceBaseRequest { +class RepliesResource_UpdateMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7672,18 +9634,20 @@ class RepliesResource_DeleteMethod : public DriveServiceBaseRequest { * @param[in] file_id The ID of the file. * @param[in] comment_id The ID of the comment. * @param[in] reply_id The ID of the reply. + * @param[in] _content_ The data object to update. */ - RepliesResource_DeleteMethod( + RepliesResource_UpdateMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, const StringPiece& comment_id, - const StringPiece& reply_id); + const StringPiece& reply_id, + const CommentReply& _content_); /** * Standard destructor. */ - virtual ~RepliesResource_DeleteMethod(); + virtual ~RepliesResource_UpdateMethod(); /** @@ -7701,15 +9665,32 @@ class RepliesResource_DeleteMethod : public DriveServiceBaseRequest { string* target); + /** + * Executes the method and parses the response into a data object on success. + * + * @param[out] data Loads from the response payload JSON data on success. + * + * @return Success if an HTTP 2xx response was received. Otherwise the + * status indicates the reason for failure. Finer detail may be + * available from the underlying http_request to distinguish the + * transport_status from the overal HTTP request status. + */ + util::Status ExecuteAndParseResponse( + CommentReply* data) { + return DriveServiceBaseRequest::ExecuteAndParseResponse(data); + } + private: string file_id_; string comment_id_; - string reply_id_; - DISALLOW_COPY_AND_ASSIGN(RepliesResource_DeleteMethod); + string reply_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(RepliesResource_UpdateMethod); }; + + /** - * Implements the get method. + * Implements the delete method. * * @ingroup ServiceMethod * @@ -7719,10 +9700,10 @@ class RepliesResource_DeleteMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.readonly */ -class RepliesResource_GetMethod : public DriveServiceBaseRequest { +class RevisionsResource_DeleteMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7731,49 +9712,19 @@ class RepliesResource_GetMethod : public DriveServiceBaseRequest { * In practice this is supplied by the user code that is * creating the method instance. * @param[in] file_id The ID of the file. - * @param[in] comment_id The ID of the comment. - * @param[in] reply_id The ID of the reply. + * @param[in] revision_id The ID of the revision. */ - RepliesResource_GetMethod( + RevisionsResource_DeleteMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& comment_id, - const StringPiece& reply_id); + const StringPiece& revision_id); /** * Standard destructor. - */ - virtual ~RepliesResource_GetMethod(); - - - /** - * Clears the 'includeDeleted' attribute so it is no longer - * set. - */ - void clear_include_deleted() { - _have_include_deleted_ = false; - client::ClearCppValueHelper(&include_deleted_); - } - - - /** - * Gets the optional 'includeDeleted' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_include_deleted() const { return include_deleted_; } - - /** - * Sets the 'includeDeleted' attribute. - * - * @param[in] value If set, this will succeed when retrieving a deleted - * reply. - */ - void set_include_deleted(bool value) { - _have_include_deleted_ = true; - include_deleted_ = value; - } + */ + virtual ~RevisionsResource_DeleteMethod(); + /** * Appends variable value to the target string. @@ -7789,40 +9740,15 @@ class RepliesResource_GetMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); - /** - * Appends the optional query parameters to the target URL. - * - * @param[in, out] target The URL string to append to. - */ - virtual util::Status AppendOptionalQueryParameters(string* target); - - - /** - * Executes the method and parses the response into a data object on success. - * - * @param[out] data Loads from the response payload JSON data on success. - * - * @return Success if an HTTP 2xx response was received. Otherwise the - * status indicates the reason for failure. Finer detail may be - * available from the underlying http_request to distinguish the - * transport_status from the overal HTTP request status. - */ - util::Status ExecuteAndParseResponse( - CommentReply* data) { - return DriveServiceBaseRequest::ExecuteAndParseResponse(data); - } private: string file_id_; - string comment_id_; - string reply_id_; - bool include_deleted_; - bool _have_include_deleted_ : 1; - DISALLOW_COPY_AND_ASSIGN(RepliesResource_GetMethod); + string revision_id_; + DISALLOW_COPY_AND_ASSIGN(RevisionsResource_DeleteMethod); }; /** - * Implements the insert method. + * Implements the get method. * * @ingroup ServiceMethod * @@ -7832,9 +9758,14 @@ class RepliesResource_GetMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly + * https://www.googleapis.com/auth/drive.readonly */ -class RepliesResource_InsertMethod : public DriveServiceBaseRequest { +class RevisionsResource_GetMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7843,20 +9774,18 @@ class RepliesResource_InsertMethod : public DriveServiceBaseRequest { * In practice this is supplied by the user code that is * creating the method instance. * @param[in] file_id The ID of the file. - * @param[in] comment_id The ID of the comment. - * @param[in] _content_ The data object to insert. + * @param[in] revision_id The ID of the revision. */ - RepliesResource_InsertMethod( + RevisionsResource_GetMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& comment_id, - const CommentReply& _content_); + const StringPiece& revision_id); /** * Standard destructor. */ - virtual ~RepliesResource_InsertMethod(); + virtual ~RevisionsResource_GetMethod(); /** @@ -7885,14 +9814,14 @@ class RepliesResource_InsertMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - CommentReply* data) { + Revision* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - string comment_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(RepliesResource_InsertMethod); + string revision_id_; + DISALLOW_COPY_AND_ASSIGN(RevisionsResource_GetMethod); }; /** @@ -7906,10 +9835,14 @@ class RepliesResource_InsertMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.metadata + * https://www.googleapis.com/auth/drive.metadata.readonly + * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class RepliesResource_ListMethod : public DriveServiceBaseRequest { +class RevisionsResource_ListMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -7918,20 +9851,44 @@ class RepliesResource_ListMethod : public DriveServiceBaseRequest { * In practice this is supplied by the user code that is * creating the method instance. * @param[in] file_id The ID of the file. - * @param[in] comment_id The ID of the comment. */ - RepliesResource_ListMethod( + RevisionsResource_ListMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& comment_id); + const StringPiece& file_id); /** * Standard destructor. */ - virtual ~RepliesResource_ListMethod(); + virtual ~RevisionsResource_ListMethod(); + + + /** + * Clears the 'maxResults' attribute so it is no longer set. + */ + void clear_max_results() { + _have_max_results_ = false; + client::ClearCppValueHelper(&max_results_); + } + /** + * Gets the optional 'maxResults' attribute. + * + * If the value is not set then the default value will be returned. + */ + int32 get_max_results() const { return max_results_; } + + /** + * Sets the 'maxResults' attribute. + * + * @param[in] value Maximum number of revisions to return. + */ + void set_max_results(int32 value) { + _have_max_results_ = true; + max_results_ = value; + } + /** * Clears the 'pageToken' attribute so it is no longer set. */ @@ -7963,72 +9920,15 @@ class RepliesResource_ListMethod : public DriveServiceBaseRequest { /** * Sets the 'pageToken' attribute. * - * @param[in] value The continuation token, used to page through large - * result sets. To get the next page of results, set this parameter to the - * value of "nextPageToken" from the previous response. + * @param[in] value Page token for revisions. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the + * previous response. */ void set_page_token(const string& value) { _have_page_token_ = true; page_token_ = value; } - - - /** - * Clears the 'includeDeleted' attribute so it is no longer - * set. - */ - void clear_include_deleted() { - _have_include_deleted_ = false; - client::ClearCppValueHelper(&include_deleted_); - } - - - /** - * Gets the optional 'includeDeleted' attribute. - * - * If the value is not set then the default value will be returned. - */ - bool get_include_deleted() const { return include_deleted_; } - - /** - * Sets the 'includeDeleted' attribute. - * - * @param[in] value If set, all replies, including deleted replies (with - * content stripped) will be returned. - */ - void set_include_deleted(bool value) { - _have_include_deleted_ = true; - include_deleted_ = value; - } - - /** - * Clears the 'maxResults' attribute so it is no longer set. - */ - void clear_max_results() { - _have_max_results_ = false; - client::ClearCppValueHelper(&max_results_); - } - - - /** - * Gets the optional 'maxResults' attribute. - * - * If the value is not set then the default value will be returned. - */ - int32 get_max_results() const { return max_results_; } - - /** - * Sets the 'maxResults' attribute. - * - * @param[in] value The maximum number of replies to include in the - * response, used for paging. - */ - void set_max_results(int32 value) { - _have_max_results_ = true; - max_results_ = value; - } - /** * Appends variable value to the target string. * @@ -8062,26 +9962,23 @@ class RepliesResource_ListMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - CommentReplyList* data) { + RevisionList* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - string comment_id_; - string page_token_; - bool include_deleted_; int32 max_results_; - bool _have_page_token_ : 1; - bool _have_include_deleted_ : 1; + string page_token_; bool _have_max_results_ : 1; - DISALLOW_COPY_AND_ASSIGN(RepliesResource_ListMethod); + bool _have_page_token_ : 1; + DISALLOW_COPY_AND_ASSIGN(RevisionsResource_ListMethod); }; typedef client::ServiceRequestPager< - RepliesResource_ListMethod, - CommentReplyList> - RepliesResource_ListMethodPager; + RevisionsResource_ListMethod, + RevisionList> + RevisionsResource_ListMethodPager; /** * Implements the patch method. @@ -8094,9 +9991,10 @@ typedef client::ServiceRequestPager< * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file */ -class RepliesResource_PatchMethod : public DriveServiceBaseRequest { +class RevisionsResource_PatchMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -8104,23 +10002,21 @@ class RepliesResource_PatchMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] comment_id The ID of the comment. - * @param[in] reply_id The ID of the reply. + * @param[in] file_id The ID for the file. + * @param[in] revision_id The ID for the revision. * @param[in] _content_ The data object to patch. */ - RepliesResource_PatchMethod( + RevisionsResource_PatchMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& comment_id, - const StringPiece& reply_id, - const CommentReply& _content_); + const StringPiece& revision_id, + const Revision& _content_); /** * Standard destructor. */ - virtual ~RepliesResource_PatchMethod(); + virtual ~RevisionsResource_PatchMethod(); /** @@ -8149,15 +10045,14 @@ class RepliesResource_PatchMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - CommentReply* data) { + Revision* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - string comment_id_; - string reply_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(RepliesResource_PatchMethod); + string revision_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(RevisionsResource_PatchMethod); }; /** @@ -8171,9 +10066,10 @@ class RepliesResource_PatchMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive + * https://www.googleapis.com/auth/drive.appdata * https://www.googleapis.com/auth/drive.file */ -class RepliesResource_UpdateMethod : public DriveServiceBaseRequest { +class RevisionsResource_UpdateMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -8181,23 +10077,21 @@ class RepliesResource_UpdateMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] comment_id The ID of the comment. - * @param[in] reply_id The ID of the reply. + * @param[in] file_id The ID for the file. + * @param[in] revision_id The ID for the revision. * @param[in] _content_ The data object to update. */ - RepliesResource_UpdateMethod( + RevisionsResource_UpdateMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, const StringPiece& file_id, - const StringPiece& comment_id, - const StringPiece& reply_id, - const CommentReply& _content_); + const StringPiece& revision_id, + const Revision& _content_); /** * Standard destructor. */ - virtual ~RepliesResource_UpdateMethod(); + virtual ~RevisionsResource_UpdateMethod(); /** @@ -8226,15 +10120,14 @@ class RepliesResource_UpdateMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - CommentReply* data) { + Revision* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: string file_id_; - string comment_id_; - string reply_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(RepliesResource_UpdateMethod); + string revision_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(RevisionsResource_UpdateMethod); }; @@ -8250,10 +10143,8 @@ class RepliesResource_UpdateMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.file */ -class RevisionsResource_DeleteMethod : public DriveServiceBaseRequest { +class TeamdrivesResource_DeleteMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -8261,19 +10152,17 @@ class RevisionsResource_DeleteMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] revision_id The ID of the revision. + * @param[in] team_drive_id The ID of the Team Drive. */ - RevisionsResource_DeleteMethod( + TeamdrivesResource_DeleteMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& revision_id); + const StringPiece& team_drive_id); /** * Standard destructor. */ - virtual ~RevisionsResource_DeleteMethod(); + virtual ~TeamdrivesResource_DeleteMethod(); /** @@ -8292,9 +10181,8 @@ class RevisionsResource_DeleteMethod : public DriveServiceBaseRequest { private: - string file_id_; - string revision_id_; - DISALLOW_COPY_AND_ASSIGN(RevisionsResource_DeleteMethod); + string team_drive_id_; + DISALLOW_COPY_AND_ASSIGN(TeamdrivesResource_DeleteMethod); }; /** @@ -8308,14 +10196,9 @@ class RevisionsResource_DeleteMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly * https://www.googleapis.com/auth/drive.readonly */ -class RevisionsResource_GetMethod : public DriveServiceBaseRequest { +class TeamdrivesResource_GetMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -8323,19 +10206,17 @@ class RevisionsResource_GetMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. - * @param[in] revision_id The ID of the revision. + * @param[in] team_drive_id The ID of the Team Drive. */ - RevisionsResource_GetMethod( + TeamdrivesResource_GetMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& revision_id); + const StringPiece& team_drive_id); /** * Standard destructor. */ - virtual ~RevisionsResource_GetMethod(); + virtual ~TeamdrivesResource_GetMethod(); /** @@ -8364,18 +10245,17 @@ class RevisionsResource_GetMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Revision* data) { + TeamDrive* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; - string revision_id_; - DISALLOW_COPY_AND_ASSIGN(RevisionsResource_GetMethod); + string team_drive_id_; + DISALLOW_COPY_AND_ASSIGN(TeamdrivesResource_GetMethod); }; /** - * Implements the list method. + * Implements the insert method. * * @ingroup ServiceMethod * @@ -8385,14 +10265,8 @@ class RevisionsResource_GetMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.file - * https://www.googleapis.com/auth/drive.metadata - * https://www.googleapis.com/auth/drive.metadata.readonly - * https://www.googleapis.com/auth/drive.photos.readonly - * https://www.googleapis.com/auth/drive.readonly */ -class RevisionsResource_ListMethod : public DriveServiceBaseRequest { +class TeamdrivesResource_InsertMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -8400,17 +10274,23 @@ class RevisionsResource_ListMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID of the file. + * @param[in] request_id An ID, such as a random UUID, which uniquely + * identifies this user's request for idempotent creation of a Team Drive. A + * repeated request by the same user and with the same request ID will avoid + * creating duplicates by attempting to create the same Team Drive. If the + * Team Drive already exists a 409 error will be returned. + * @param[in] _content_ The data object to insert. */ - RevisionsResource_ListMethod( + TeamdrivesResource_InsertMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id); + const StringPiece& request_id, + const TeamDrive& _content_); /** * Standard destructor. */ - virtual ~RevisionsResource_ListMethod(); + virtual ~TeamdrivesResource_InsertMethod(); /** @@ -8427,6 +10307,13 @@ class RevisionsResource_ListMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + /** * Executes the method and parses the response into a data object on success. @@ -8439,17 +10326,17 @@ class RevisionsResource_ListMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - RevisionList* data) { + TeamDrive* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; - DISALLOW_COPY_AND_ASSIGN(RevisionsResource_ListMethod); + string request_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(TeamdrivesResource_InsertMethod); }; /** - * Implements the patch method. + * Implements the list method. * * @ingroup ServiceMethod * @@ -8459,10 +10346,9 @@ class RevisionsResource_ListMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.file + * https://www.googleapis.com/auth/drive.readonly */ -class RevisionsResource_PatchMethod : public DriveServiceBaseRequest { +class TeamdrivesResource_ListMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -8470,23 +10356,81 @@ class RevisionsResource_PatchMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file. - * @param[in] revision_id The ID for the revision. - * @param[in] _content_ The data object to patch. */ - RevisionsResource_PatchMethod( + TeamdrivesResource_ListMethod( const DriveService* _service_, - client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& revision_id, - const Revision& _content_); + client::AuthorizationCredential* _credential_); /** * Standard destructor. */ - virtual ~RevisionsResource_PatchMethod(); + virtual ~TeamdrivesResource_ListMethod(); + + + /** + * Clears the 'maxResults' attribute so it is no longer set. + */ + void clear_max_results() { + _have_max_results_ = false; + client::ClearCppValueHelper(&max_results_); + } + + + /** + * Gets the optional 'maxResults' attribute. + * + * If the value is not set then the default value will be returned. + */ + int32 get_max_results() const { return max_results_; } + + /** + * Sets the 'maxResults' attribute. + * + * @param[in] value Maximum number of Team Drives to return. + */ + void set_max_results(int32 value) { + _have_max_results_ = true; + max_results_ = value; + } + + /** + * Clears the 'pageToken' attribute so it is no longer set. + */ + void clear_page_token() { + _have_page_token_ = false; + client::ClearCppValueHelper(&page_token_); + } + /** + * Gets the optional 'pageToken' attribute. + * + * If the value is not set then the default value will be returned. + */ + const string& get_page_token() const { return page_token_; } + + /** + * Gets a modifiable pointer to the optional pageToken' + * attribute. + * + * @return The value can be set by dereferencing the pointer. + */ + string* mutable_pageToken() { + _have_page_token_ = true; + return &page_token_; + } + + + /** + * Sets the 'pageToken' attribute. + * + * @param[in] value Page token for Team Drives. + */ + void set_page_token(const string& value) { + _have_page_token_ = true; + page_token_ = value; + } + /** * Appends variable value to the target string. * @@ -8501,6 +10445,13 @@ class RevisionsResource_PatchMethod : public DriveServiceBaseRequest { const client::UriTemplateConfig& config, string* target); + /** + * Appends the optional query parameters to the target URL. + * + * @param[in, out] target The URL string to append to. + */ + virtual util::Status AppendOptionalQueryParameters(string* target); + /** * Executes the method and parses the response into a data object on success. @@ -8513,16 +10464,23 @@ class RevisionsResource_PatchMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Revision* data) { + TeamDriveList* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; - string revision_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(RevisionsResource_PatchMethod); + int32 max_results_; + string page_token_; + bool _have_max_results_ : 1; + bool _have_page_token_ : 1; + DISALLOW_COPY_AND_ASSIGN(TeamdrivesResource_ListMethod); }; +typedef client::ServiceRequestPager< + TeamdrivesResource_ListMethod, + TeamDriveList> + TeamdrivesResource_ListMethodPager; + /** * Implements the update method. * @@ -8534,10 +10492,8 @@ class RevisionsResource_PatchMethod : public DriveServiceBaseRequest { * * One or more of these authorization scopes are required for this method: * https://www.googleapis.com/auth/drive - * https://www.googleapis.com/auth/drive.appdata - * https://www.googleapis.com/auth/drive.file */ -class RevisionsResource_UpdateMethod : public DriveServiceBaseRequest { +class TeamdrivesResource_UpdateMethod : public DriveServiceBaseRequest { public: /** * The standard constructor takes all the required method parameters. @@ -8545,21 +10501,19 @@ class RevisionsResource_UpdateMethod : public DriveServiceBaseRequest { * @param[in] _credential_ If not NULL, the credential to authorize with. * In practice this is supplied by the user code that is * creating the method instance. - * @param[in] file_id The ID for the file. - * @param[in] revision_id The ID for the revision. + * @param[in] team_drive_id The ID of the Team Drive. * @param[in] _content_ The data object to update. */ - RevisionsResource_UpdateMethod( + TeamdrivesResource_UpdateMethod( const DriveService* _service_, client::AuthorizationCredential* _credential_, - const StringPiece& file_id, - const StringPiece& revision_id, - const Revision& _content_); + const StringPiece& team_drive_id, + const TeamDrive& _content_); /** * Standard destructor. */ - virtual ~RevisionsResource_UpdateMethod(); + virtual ~TeamdrivesResource_UpdateMethod(); /** @@ -8588,14 +10542,13 @@ class RevisionsResource_UpdateMethod : public DriveServiceBaseRequest { * transport_status from the overal HTTP request status. */ util::Status ExecuteAndParseResponse( - Revision* data) { + TeamDrive* data) { return DriveServiceBaseRequest::ExecuteAndParseResponse(data); } private: - string file_id_; - string revision_id_; string _content_; - DISALLOW_COPY_AND_ASSIGN(RevisionsResource_UpdateMethod); + string team_drive_id_; string _content_; + DISALLOW_COPY_AND_ASSIGN(TeamdrivesResource_UpdateMethod); }; @@ -8613,17 +10566,17 @@ class DriveService : public client::ClientService { /** * The name of the API that this was generated from. */ - static const StringPiece googleapis_API_NAME; + static const char googleapis_API_NAME[]; /** * The version of the API that this interface was generated from. */ - static const StringPiece googleapis_API_VERSION; + static const char googleapis_API_VERSION[]; /** * The code generator used to generate this API. */ - static const StringPiece googleapis_API_GENERATOR; + static const char googleapis_API_GENERATOR[]; /** @@ -8752,6 +10705,17 @@ class DriveService : public client::ClientService { client::AuthorizationCredential* _credential_, const StringPiece& change_id) const; + /** + * Creates a new ChangesResource_GetStartPageTokenMethod instance. + * + * @param[in] _credential_ 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. + */ + ChangesResource_GetStartPageTokenMethod* NewGetStartPageTokenMethod( + client::AuthorizationCredential* _credential_) const; + /** * Creates a new ChangesResource_ListMethod instance. * @@ -9123,6 +11087,22 @@ class DriveService : public client::ClientService { FilesResource_EmptyTrashMethod* NewEmptyTrashMethod( client::AuthorizationCredential* _credential_) const; + /** + * Creates a new FilesResource_ExportMethod instance. + * + * @param[in] _credential_ Can be NULL. + * NULL credentials will not authorize the request. + * @param[in] file_id The ID of the file. + * @param[in] mime_type The MIME type of the format requested for this + * export. + * @returns The caller should Execute the method instance, + * then destroy it when they are finished. + */ + FilesResource_ExportMethod* NewExportMethod( + client::AuthorizationCredential* _credential_, + const StringPiece& file_id, + const StringPiece& mime_type) const; + /** * Creates a new FilesResource_GenerateIdsMethod instance. * @@ -9429,7 +11409,7 @@ class DriveService : public client::ClientService { * * @param[in] _credential_ Can be NULL. * NULL credentials will not authorize the request. - * @param[in] file_id The ID for the file. + * @param[in] file_id The ID for the file or Team Drive. * @param[in] permission_id The ID for the permission. * @returns The caller should Execute the method instance, * then destroy it when they are finished. @@ -9444,7 +11424,7 @@ class DriveService : public client::ClientService { * * @param[in] _credential_ Can be NULL. * NULL credentials will not authorize the request. - * @param[in] file_id The ID for the file. + * @param[in] file_id The ID for the file or Team Drive. * @param[in] permission_id The ID for the permission. * @returns The caller should Execute the method instance, * then destroy it when they are finished. @@ -9472,7 +11452,7 @@ class DriveService : public client::ClientService { * * @param[in] _credential_ Can be NULL. * NULL credentials will not authorize the request. - * @param[in] file_id The ID for the file. + * @param[in] file_id The ID for the file or Team Drive. * @param[in] _content_ The data object to insert. * @returns The caller should Execute the method instance, * then destroy it when they are finished. @@ -9487,7 +11467,7 @@ class DriveService : public client::ClientService { * * @param[in] _credential_ Can be NULL. * NULL credentials will not authorize the request. - * @param[in] file_id The ID for the file. + * @param[in] file_id The ID for the file or Team Drive. * @returns The caller should Execute the method instance, * then destroy it when they are finished. */ @@ -9495,12 +11475,24 @@ class DriveService : public client::ClientService { client::AuthorizationCredential* _credential_, const StringPiece& file_id) const; + /** + * Creates a pager for iterating over incremental result pages. + * @param[in] _credential_ NULL credentials will not authorize the request. + * @param[in] file_id The ID for the file or Team Drive. + * + * + * @see googleapis::googleapis::ServiceRequestPager + */ + PermissionsResource_ListMethodPager* NewListMethodPager( + client::AuthorizationCredential* _credential_, + const StringPiece& file_id) const; + /** * Creates a new PermissionsResource_PatchMethod instance. * * @param[in] _credential_ Can be NULL. * NULL credentials will not authorize the request. - * @param[in] file_id The ID for the file. + * @param[in] file_id The ID for the file or Team Drive. * @param[in] permission_id The ID for the permission. * @param[in] _content_ The data object to patch. * @returns The caller should Execute the method instance, @@ -9517,7 +11509,7 @@ class DriveService : public client::ClientService { * * @param[in] _credential_ Can be NULL. * NULL credentials will not authorize the request. - * @param[in] file_id The ID for the file. + * @param[in] file_id The ID for the file or Team Drive. * @param[in] permission_id The ID for the permission. * @param[in] _content_ The data object to update. * @returns The caller should Execute the method instance, @@ -9930,6 +11922,18 @@ class DriveService : public client::ClientService { client::AuthorizationCredential* _credential_, const StringPiece& file_id) const; + /** + * Creates a pager for iterating over incremental result pages. + * @param[in] _credential_ NULL credentials will not authorize the request. + * @param[in] file_id The ID of the file. + * + * + * @see googleapis::googleapis::ServiceRequestPager + */ + RevisionsResource_ListMethodPager* NewListMethodPager( + client::AuthorizationCredential* _credential_, + const StringPiece& file_id) const; + /** * Creates a new RevisionsResource_PatchMethod instance. * @@ -9970,6 +11974,114 @@ class DriveService : public client::ClientService { DISALLOW_COPY_AND_ASSIGN(RevisionsResource); }; + /** + * Acts as message factory for accessing data. + * + * @ingroup ServiceClass + */ + class TeamdrivesResource { + public: + /** + * Standard constructor. + * + * @param[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. + */ + explicit TeamdrivesResource(DriveService* service); + + /** + * Standard destructor. + */ + ~TeamdrivesResource() {} + + + /** + * Creates a new TeamdrivesResource_DeleteMethod instance. + * + * @param[in] _credential_ Can be NULL. + * NULL credentials will not authorize the request. + * @param[in] team_drive_id The ID of the Team Drive. + * @returns The caller should Execute the method instance, + * then destroy it when they are finished. + */ + TeamdrivesResource_DeleteMethod* NewDeleteMethod( + client::AuthorizationCredential* _credential_, + const StringPiece& team_drive_id) const; + + /** + * Creates a new TeamdrivesResource_GetMethod instance. + * + * @param[in] _credential_ Can be NULL. + * NULL credentials will not authorize the request. + * @param[in] team_drive_id The ID of the Team Drive. + * @returns The caller should Execute the method instance, + * then destroy it when they are finished. + */ + TeamdrivesResource_GetMethod* NewGetMethod( + client::AuthorizationCredential* _credential_, + const StringPiece& team_drive_id) const; + + /** + * Creates a new TeamdrivesResource_InsertMethod instance. + * + * @param[in] _credential_ Can be NULL. + * NULL credentials will not authorize the request. + * @param[in] request_id An ID, such as a random UUID, which uniquely + * identifies this user's request for idempotent creation of a Team Drive. A + * repeated request by the same user and with the same request ID will avoid + * creating duplicates by attempting to create the same Team Drive. If the + * Team Drive already exists a 409 error will be returned. + * @param[in] _content_ The data object to insert. + * @returns The caller should Execute the method instance, + * then destroy it when they are finished. + */ + TeamdrivesResource_InsertMethod* NewInsertMethod( + client::AuthorizationCredential* _credential_, + const StringPiece& request_id, + const TeamDrive& _content_) const; + + /** + * Creates a new TeamdrivesResource_ListMethod instance. + * + * @param[in] _credential_ 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. + */ + TeamdrivesResource_ListMethod* NewListMethod( + client::AuthorizationCredential* _credential_) const; + + /** + * Creates a pager for iterating over incremental result pages. + * @param[in] _credential_ NULL credentials will not authorize the request. + * + * @see googleapis::googleapis::ServiceRequestPager + */ + TeamdrivesResource_ListMethodPager* NewListMethodPager( + client::AuthorizationCredential* _credential_) const; + + /** + * Creates a new TeamdrivesResource_UpdateMethod instance. + * + * @param[in] _credential_ Can be NULL. + * NULL credentials will not authorize the request. + * @param[in] team_drive_id The ID of the Team Drive. + * @param[in] _content_ The data object to update. + * @returns The caller should Execute the method instance, + * then destroy it when they are finished. + */ + TeamdrivesResource_UpdateMethod* NewUpdateMethod( + client::AuthorizationCredential* _credential_, + const StringPiece& team_drive_id, + const TeamDrive& _content_) const; + + private: + DriveService* service_; + + DISALLOW_COPY_AND_ASSIGN(TeamdrivesResource); + }; + /** @@ -10114,6 +12226,16 @@ class DriveService : public client::ClientService { return revisions_; } + + /** + * Gets the resource method factory. + * + * @return TeamdrivesResource for creating methods. + */ + const TeamdrivesResource& get_teamdrives() const { + return teamdrives_; + } + /** * Declares the OAuth2.0 scopes used within Drive API * @@ -10125,48 +12247,48 @@ class DriveService : public client::ClientService { /** * View and manage the files in your Google Drive. */ - static const string DRIVE; + static const char DRIVE[]; /** * View and manage its own configuration data in your Google Drive. */ - static const string DRIVE_APPDATA; + static const char DRIVE_APPDATA[]; /** * View your Google Drive apps. */ - static const string DRIVE_APPS_READONLY; + static const char DRIVE_APPS_READONLY[]; /** * View and manage Google Drive files and folders that you have opened or * created with this app. */ - static const string DRIVE_FILE; + static const char DRIVE_FILE[]; /** * View and manage metadata of files in your Google Drive. */ - static const string DRIVE_METADATA; + static const char DRIVE_METADATA[]; /** * View metadata for files in your Google Drive. */ - static const string DRIVE_METADATA_READONLY; + static const char DRIVE_METADATA_READONLY[]; /** * View the photos, videos and albums in your Google Photos. */ - static const string DRIVE_PHOTOS_READONLY; + static const char DRIVE_PHOTOS_READONLY[]; /** * View the files in your Google Drive. */ - static const string DRIVE_READONLY; + static const char DRIVE_READONLY[]; /** * Modify your Google Apps Script scripts' behavior. */ - static const string DRIVE_SCRIPTS; + static const char DRIVE_SCRIPTS[]; private: SCOPES(); // Never instantiated. @@ -10187,6 +12309,7 @@ class DriveService : public client::ClientService { RealtimeResource realtime_; RepliesResource replies_; RevisionsResource revisions_; + TeamdrivesResource teamdrives_; DISALLOW_COPY_AND_ASSIGN(DriveService); }; diff --git a/service_apis/drive/google/drive_api/file.cc b/service_apis/drive/google/drive_api/file.cc index d38b31b..2ba876f 100644 --- a/service_apis/drive/google/drive_api/file.cc +++ b/service_apis/drive/google/drive_api/file.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // File // Documentation: @@ -47,6 +44,27 @@ using namespace googleapis; +// Object factory method (static). +File::FileCapabilities* File::FileCapabilities::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +File::FileCapabilities::FileCapabilities(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +File::FileCapabilities::FileCapabilities(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +File::FileCapabilities::~FileCapabilities() { +} + +// Properties. + // Object factory method (static). File::FileImageMediaMetadata::FileImageMediaMetadataLocation* File::FileImageMediaMetadata::FileImageMediaMetadataLocation::New() { @@ -66,6 +84,8 @@ File::FileImageMediaMetadata::FileImageMediaMetadataLocation::FileImageMediaMeta // Standard destructor. File::FileImageMediaMetadata::FileImageMediaMetadataLocation::~FileImageMediaMetadataLocation() { } + +// Properties. // Object factory method (static). File::FileImageMediaMetadata* File::FileImageMediaMetadata::New() { return new client::JsonCppCapsule; @@ -85,6 +105,8 @@ File::FileImageMediaMetadata::FileImageMediaMetadata(Json::Value* storage) File::FileImageMediaMetadata::~FileImageMediaMetadata() { } +// Properties. + // Object factory method (static). File::FileIndexableText* File::FileIndexableText::New() { return new client::JsonCppCapsule; @@ -104,6 +126,8 @@ File::FileIndexableText::FileIndexableText(Json::Value* storage) File::FileIndexableText::~FileIndexableText() { } +// Properties. + // Object factory method (static). File::FileLabels* File::FileLabels::New() { return new client::JsonCppCapsule; @@ -123,6 +147,8 @@ File::FileLabels::FileLabels(Json::Value* storage) File::FileLabels::~FileLabels() { } +// Properties. + // Object factory method (static). File::FileThumbnail* File::FileThumbnail::New() { return new client::JsonCppCapsule; @@ -142,6 +168,8 @@ File::FileThumbnail::FileThumbnail(Json::Value* storage) File::FileThumbnail::~FileThumbnail() { } +// Properties. + // Object factory method (static). File::FileVideoMediaMetadata* File::FileVideoMediaMetadata::New() { return new client::JsonCppCapsule; @@ -160,6 +188,8 @@ File::FileVideoMediaMetadata::FileVideoMediaMetadata(Json::Value* storage) // Standard destructor. File::FileVideoMediaMetadata::~FileVideoMediaMetadata() { } + +// Properties. // Object factory method (static). File* File::New() { return new client::JsonCppCapsule; @@ -178,4 +208,86 @@ File::File(Json::Value* storage) // Standard destructor. File::~File() { } + +// Properties. + +const User File::get_last_modifying_user() const { + const Json::Value& storage = Storage("lastModifyingUser"); + return client::JsonValueToCppValueHelper(storage); +} + +User File::mutable_lastModifyingUser() { + Json::Value* storage = MutableStorage("lastModifyingUser"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const client::JsonCppArray File::get_owners() const { + const Json::Value& storage = Storage("owners"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray File::mutable_owners() { + Json::Value* storage = MutableStorage("owners"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const client::JsonCppArray File::get_parents() const { + const Json::Value& storage = Storage("parents"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray File::mutable_parents() { + Json::Value* storage = MutableStorage("parents"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const client::JsonCppArray File::get_permissions() const { + const Json::Value& storage = Storage("permissions"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray File::mutable_permissions() { + Json::Value* storage = MutableStorage("permissions"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const client::JsonCppArray File::get_properties() const { + const Json::Value& storage = Storage("properties"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray File::mutable_properties() { + Json::Value* storage = MutableStorage("properties"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const User File::get_sharing_user() const { + const Json::Value& storage = Storage("sharingUser"); + return client::JsonValueToCppValueHelper(storage); +} + +User File::mutable_sharingUser() { + Json::Value* storage = MutableStorage("sharingUser"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const User File::get_trashing_user() const { + const Json::Value& storage = Storage("trashingUser"); + return client::JsonValueToCppValueHelper(storage); +} + +User File::mutable_trashingUser() { + Json::Value* storage = MutableStorage("trashingUser"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const Permission File::get_user_permission() const { + const Json::Value& storage = Storage("userPermission"); + return client::JsonValueToCppValueHelper(storage); +} + +Permission File::mutable_userPermission() { + Json::Value* storage = MutableStorage("userPermission"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/file.h b/service_apis/drive/google/drive_api/file.h index 43d458d..5ce6f4d 100644 --- a/service_apis/drive/google/drive_api/file.h +++ b/service_apis/drive/google/drive_api/file.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_FILE_H_ #define GOOGLE_DRIVE_API_FILE_H_ @@ -43,16 +41,711 @@ namespace Json { class Value; } // namespace Json -namespace google_drive_api { -using namespace googleapis; +namespace google_drive_api { +using namespace googleapis; + +/** + * The metadata for a file. + * + * @ingroup DataObject + */ +class File : public client::JsonCppData { + public: + /** + * Capabilities the current user has on this file. Each capability corresponds + * to a fine-grained action that a user may take. + * + * @ingroup DataObject + */ + class FileCapabilities : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static FileCapabilities* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit FileCapabilities(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit FileCapabilities(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~FileCapabilities(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_drive_api::FileCapabilities + */ + const StringPiece GetTypeName() const { + return StringPiece("google_drive_api::FileCapabilities"); + } + + /** + * Determine if the 'canAddChildren' attribute was set. + * + * @return true if the 'canAddChildren' attribute was set. + */ + bool has_can_add_children() const { + return Storage().isMember("canAddChildren"); + } + + /** + * Clears the 'canAddChildren' attribute. + */ + void clear_can_add_children() { + MutableStorage()->removeMember("canAddChildren"); + } + + + /** + * Get the value of the 'canAddChildren' attribute. + */ + bool get_can_add_children() const { + const Json::Value& storage = Storage("canAddChildren"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canAddChildren' attribute. + * + * Whether the current user can add children to this folder. This is always + * false when the item is not a folder. + * + * @param[in] value The new value. + */ + void set_can_add_children(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canAddChildren")); + } + + /** + * Determine if the 'canChangeRestrictedDownload' attribute was + * set. + * + * @return true if the 'canChangeRestrictedDownload' attribute + * was set. + */ + bool has_can_change_restricted_download() const { + return Storage().isMember("canChangeRestrictedDownload"); + } + + /** + * Clears the 'canChangeRestrictedDownload' attribute. + */ + void clear_can_change_restricted_download() { + MutableStorage()->removeMember("canChangeRestrictedDownload"); + } + + + /** + * Get the value of the 'canChangeRestrictedDownload' + * attribute. + */ + bool get_can_change_restricted_download() const { + const Json::Value& storage = Storage("canChangeRestrictedDownload"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canChangeRestrictedDownload' attribute. + * + * Whether the current user can change the restricted download label of this + * file. + * + * @param[in] value The new value. + */ + void set_can_change_restricted_download(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canChangeRestrictedDownload")); + } + + /** + * Determine if the 'canComment' attribute was set. + * + * @return true if the 'canComment' attribute was set. + */ + bool has_can_comment() const { + return Storage().isMember("canComment"); + } + + /** + * Clears the 'canComment' attribute. + */ + void clear_can_comment() { + MutableStorage()->removeMember("canComment"); + } + + + /** + * Get the value of the 'canComment' attribute. + */ + bool get_can_comment() const { + const Json::Value& storage = Storage("canComment"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canComment' attribute. + * + * Whether the current user can comment on this file. + * + * @param[in] value The new value. + */ + void set_can_comment(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canComment")); + } + + /** + * Determine if the 'canCopy' attribute was set. + * + * @return true if the 'canCopy' attribute was set. + */ + bool has_can_copy() const { + return Storage().isMember("canCopy"); + } + + /** + * Clears the 'canCopy' attribute. + */ + void clear_can_copy() { + MutableStorage()->removeMember("canCopy"); + } + + + /** + * Get the value of the 'canCopy' attribute. + */ + bool get_can_copy() const { + const Json::Value& storage = Storage("canCopy"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canCopy' attribute. + * + * Whether the current user can copy this file. For a Team Drive item, + * whether the current user can copy non-folder descendants of this item, or + * this item itself if it is not a folder. + * + * @param[in] value The new value. + */ + void set_can_copy(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canCopy")); + } + + /** + * Determine if the 'canDelete' attribute was set. + * + * @return true if the 'canDelete' attribute was set. + */ + bool has_can_delete() const { + return Storage().isMember("canDelete"); + } + + /** + * Clears the 'canDelete' attribute. + */ + void clear_can_delete() { + MutableStorage()->removeMember("canDelete"); + } + + + /** + * Get the value of the 'canDelete' attribute. + */ + bool get_can_delete() const { + const Json::Value& storage = Storage("canDelete"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canDelete' attribute. + * + * Whether the current user can delete this file. + * + * @param[in] value The new value. + */ + void set_can_delete(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canDelete")); + } + + /** + * Determine if the 'canDownload' attribute was set. + * + * @return true if the 'canDownload' attribute was set. + */ + bool has_can_download() const { + return Storage().isMember("canDownload"); + } + + /** + * Clears the 'canDownload' attribute. + */ + void clear_can_download() { + MutableStorage()->removeMember("canDownload"); + } + + + /** + * Get the value of the 'canDownload' attribute. + */ + bool get_can_download() const { + const Json::Value& storage = Storage("canDownload"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canDownload' attribute. + * + * Whether the current user can download this file. + * + * @param[in] value The new value. + */ + void set_can_download(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canDownload")); + } + + /** + * Determine if the 'canEdit' attribute was set. + * + * @return true if the 'canEdit' attribute was set. + */ + bool has_can_edit() const { + return Storage().isMember("canEdit"); + } + + /** + * Clears the 'canEdit' attribute. + */ + void clear_can_edit() { + MutableStorage()->removeMember("canEdit"); + } + + + /** + * Get the value of the 'canEdit' attribute. + */ + bool get_can_edit() const { + const Json::Value& storage = Storage("canEdit"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canEdit' attribute. + * + * Whether the current user can edit this file. + * + * @param[in] value The new value. + */ + void set_can_edit(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canEdit")); + } + + /** + * Determine if the 'canListChildren' attribute was set. + * + * @return true if the 'canListChildren' attribute was set. + */ + bool has_can_list_children() const { + return Storage().isMember("canListChildren"); + } + + /** + * Clears the 'canListChildren' attribute. + */ + void clear_can_list_children() { + MutableStorage()->removeMember("canListChildren"); + } + + + /** + * Get the value of the 'canListChildren' attribute. + */ + bool get_can_list_children() const { + const Json::Value& storage = Storage("canListChildren"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canListChildren' attribute. + * + * Whether the current user can list the children of this folder. This is + * always false when the item is not a folder. + * + * @param[in] value The new value. + */ + void set_can_list_children(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canListChildren")); + } + + /** + * Determine if the 'canMoveItemIntoTeamDrive' attribute was + * set. + * + * @return true if the 'canMoveItemIntoTeamDrive' attribute was + * set. + */ + bool has_can_move_item_into_team_drive() const { + return Storage().isMember("canMoveItemIntoTeamDrive"); + } + + /** + * Clears the 'canMoveItemIntoTeamDrive' attribute. + */ + void clear_can_move_item_into_team_drive() { + MutableStorage()->removeMember("canMoveItemIntoTeamDrive"); + } + + + /** + * Get the value of the 'canMoveItemIntoTeamDrive' attribute. + */ + bool get_can_move_item_into_team_drive() const { + const Json::Value& storage = Storage("canMoveItemIntoTeamDrive"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canMoveItemIntoTeamDrive' attribute. + * + * Whether the current user can move this item into a Team Drive. If the + * item is in a Team Drive, this field is equivalent to + * canMoveTeamDriveItem. + * + * @param[in] value The new value. + */ + void set_can_move_item_into_team_drive(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canMoveItemIntoTeamDrive")); + } + + /** + * Determine if the 'canMoveTeamDriveItem' attribute was set. + * + * @return true if the 'canMoveTeamDriveItem' attribute was + * set. + */ + bool has_can_move_team_drive_item() const { + return Storage().isMember("canMoveTeamDriveItem"); + } + + /** + * Clears the 'canMoveTeamDriveItem' attribute. + */ + void clear_can_move_team_drive_item() { + MutableStorage()->removeMember("canMoveTeamDriveItem"); + } + + + /** + * Get the value of the 'canMoveTeamDriveItem' attribute. + */ + bool get_can_move_team_drive_item() const { + const Json::Value& storage = Storage("canMoveTeamDriveItem"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canMoveTeamDriveItem' attribute. + * + * Whether the current user can move this Team Drive item by changing its + * parent. Note that a request to change the parent for this item may still + * fail depending on the new parent that is being added. Only populated for + * Team Drive files. + * + * @param[in] value The new value. + */ + void set_can_move_team_drive_item(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canMoveTeamDriveItem")); + } + + /** + * Determine if the 'canReadRevisions' attribute was set. + * + * @return true if the 'canReadRevisions' attribute was set. + */ + bool has_can_read_revisions() const { + return Storage().isMember("canReadRevisions"); + } + + /** + * Clears the 'canReadRevisions' attribute. + */ + void clear_can_read_revisions() { + MutableStorage()->removeMember("canReadRevisions"); + } + + + /** + * Get the value of the 'canReadRevisions' attribute. + */ + bool get_can_read_revisions() const { + const Json::Value& storage = Storage("canReadRevisions"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canReadRevisions' attribute. + * + * Whether the current user can read the revisions resource of this file. + * For a Team Drive item, whether revisions of non-folder descendants of + * this item, or this item itself if it is not a folder, can be read. + * + * @param[in] value The new value. + */ + void set_can_read_revisions(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canReadRevisions")); + } + + /** + * Determine if the 'canReadTeamDrive' attribute was set. + * + * @return true if the 'canReadTeamDrive' attribute was set. + */ + bool has_can_read_team_drive() const { + return Storage().isMember("canReadTeamDrive"); + } + + /** + * Clears the 'canReadTeamDrive' attribute. + */ + void clear_can_read_team_drive() { + MutableStorage()->removeMember("canReadTeamDrive"); + } + + + /** + * Get the value of the 'canReadTeamDrive' attribute. + */ + bool get_can_read_team_drive() const { + const Json::Value& storage = Storage("canReadTeamDrive"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canReadTeamDrive' attribute. + * + * Whether the current user can read the Team Drive to which this file + * belongs. Only populated for Team Drive files. + * + * @param[in] value The new value. + */ + void set_can_read_team_drive(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canReadTeamDrive")); + } + + /** + * Determine if the 'canRemoveChildren' attribute was set. + * + * @return true if the 'canRemoveChildren' attribute was set. + */ + bool has_can_remove_children() const { + return Storage().isMember("canRemoveChildren"); + } + + /** + * Clears the 'canRemoveChildren' attribute. + */ + void clear_can_remove_children() { + MutableStorage()->removeMember("canRemoveChildren"); + } + + + /** + * Get the value of the 'canRemoveChildren' attribute. + */ + bool get_can_remove_children() const { + const Json::Value& storage = Storage("canRemoveChildren"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canRemoveChildren' attribute. + * + * Whether the current user can remove children from this folder. This is + * always false when the item is not a folder. + * + * @param[in] value The new value. + */ + void set_can_remove_children(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canRemoveChildren")); + } + + /** + * Determine if the 'canRename' attribute was set. + * + * @return true if the 'canRename' attribute was set. + */ + bool has_can_rename() const { + return Storage().isMember("canRename"); + } + + /** + * Clears the 'canRename' attribute. + */ + void clear_can_rename() { + MutableStorage()->removeMember("canRename"); + } + + + /** + * Get the value of the 'canRename' attribute. + */ + bool get_can_rename() const { + const Json::Value& storage = Storage("canRename"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canRename' attribute. + * + * Whether the current user can rename this file. + * + * @param[in] value The new value. + */ + void set_can_rename(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canRename")); + } + + /** + * Determine if the 'canShare' attribute was set. + * + * @return true if the 'canShare' attribute was set. + */ + bool has_can_share() const { + return Storage().isMember("canShare"); + } + + /** + * Clears the 'canShare' attribute. + */ + void clear_can_share() { + MutableStorage()->removeMember("canShare"); + } + + + /** + * Get the value of the 'canShare' attribute. + */ + bool get_can_share() const { + const Json::Value& storage = Storage("canShare"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canShare' attribute. + * + * Whether the current user can modify the sharing settings for this file. + * + * @param[in] value The new value. + */ + void set_can_share(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canShare")); + } + + /** + * Determine if the 'canTrash' attribute was set. + * + * @return true if the 'canTrash' attribute was set. + */ + bool has_can_trash() const { + return Storage().isMember("canTrash"); + } + + /** + * Clears the 'canTrash' attribute. + */ + void clear_can_trash() { + MutableStorage()->removeMember("canTrash"); + } + + + /** + * Get the value of the 'canTrash' attribute. + */ + bool get_can_trash() const { + const Json::Value& storage = Storage("canTrash"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canTrash' attribute. + * + * Whether the current user can move this file to trash. + * + * @param[in] value The new value. + */ + void set_can_trash(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canTrash")); + } + + /** + * Determine if the 'canUntrash' attribute was set. + * + * @return true if the 'canUntrash' attribute was set. + */ + bool has_can_untrash() const { + return Storage().isMember("canUntrash"); + } + + /** + * Clears the 'canUntrash' attribute. + */ + void clear_can_untrash() { + MutableStorage()->removeMember("canUntrash"); + } + + + /** + * Get the value of the 'canUntrash' attribute. + */ + bool get_can_untrash() const { + const Json::Value& storage = Storage("canUntrash"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canUntrash' attribute. + * + * Whether the current user can restore this file from trash. + * + * @param[in] value The new value. + */ + void set_can_untrash(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canUntrash")); + } -/** - * The metadata for a file. - * - * @ingroup DataObject - */ -class File : public client::JsonCppData { - public: + private: + void operator=(const FileCapabilities&); + }; // FileCapabilities /** * Metadata about image media. This will only be present for image types, and * its contents will depend on what can be parsed from the image content. @@ -1197,6 +1890,43 @@ class File : public client::JsonCppData { value, MutableStorage("hidden")); } + /** + * Determine if the 'modified' attribute was set. + * + * @return true if the 'modified' attribute was set. + */ + bool has_modified() const { + return Storage().isMember("modified"); + } + + /** + * Clears the 'modified' attribute. + */ + void clear_modified() { + MutableStorage()->removeMember("modified"); + } + + + /** + * Get the value of the 'modified' attribute. + */ + bool get_modified() const { + const Json::Value& storage = Storage("modified"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'modified' attribute. + * + * Whether the file has been modified by this user. + * + * @param[in] value The new value. + */ + void set_modified(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("modified")); + } + /** * Determine if the 'restricted' attribute was set. * @@ -1352,8 +2082,8 @@ class File : public client::JsonCppData { void operator=(const FileLabels&); }; // FileLabels /** - * Thumbnail for the file. Only accepted on upload and for files that are not - * already thumbnailed by Google. + * A thumbnail for the file. This will only be used if Drive cannot generate a + * standard thumbnail. * * @ingroup DataObject */ @@ -1764,8 +2494,10 @@ class File : public client::JsonCppData { /** * Change the 'canComment' attribute. + * @deprecated + * * - * Whether the current user can comment on the file. + * Deprecated: use capabilities/canComment. * * @param[in] value The new value. */ @@ -1774,6 +2506,84 @@ class File : public client::JsonCppData { value, MutableStorage("canComment")); } + /** + * Determine if the 'canReadRevisions' attribute was set. + * + * @return true if the 'canReadRevisions' attribute was set. + */ + bool has_can_read_revisions() const { + return Storage().isMember("canReadRevisions"); + } + + /** + * Clears the 'canReadRevisions' attribute. + */ + void clear_can_read_revisions() { + MutableStorage()->removeMember("canReadRevisions"); + } + + + /** + * Get the value of the 'canReadRevisions' attribute. + */ + bool get_can_read_revisions() const { + const Json::Value& storage = Storage("canReadRevisions"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canReadRevisions' attribute. + * @deprecated + * + * + * Deprecated: use capabilities/canReadRevisions. + * + * @param[in] value The new value. + */ + void set_can_read_revisions(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canReadRevisions")); + } + + /** + * Determine if the 'capabilities' attribute was set. + * + * @return true if the 'capabilities' attribute was set. + */ + bool has_capabilities() const { + return Storage().isMember("capabilities"); + } + + /** + * Clears the 'capabilities' attribute. + */ + void clear_capabilities() { + MutableStorage()->removeMember("capabilities"); + } + + + /** + * Get a reference to the value of the 'capabilities' attribute. + */ + const FileCapabilities get_capabilities() const { + const Json::Value& storage = Storage("capabilities"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Gets a reference to a mutable value of the 'capabilities' + * property. + * + * Capabilities the current user has on this file. Each capability corresponds + * to a fine-grained action that a user may take. + * + * @return The result can be modified to change the attribute value. + */ + FileCapabilities mutable_capabilities() { + Json::Value* storage = MutableStorage("capabilities"); + return client::JsonValueToMutableCppValueHelper(storage); + } + /** * Determine if the 'copyable' attribute was set. * @@ -1801,8 +2611,10 @@ class File : public client::JsonCppData { /** * Change the 'copyable' attribute. + * @deprecated * - * Whether the file can be copied by the current user. + * + * Deprecated: use capabilities/canCopy. * * @param[in] value The new value. */ @@ -1984,8 +2796,10 @@ class File : public client::JsonCppData { /** * Change the 'editable' attribute. + * @deprecated * - * Whether the file can be edited by the current user. + * + * Deprecated: use capabilities/canEdit. * * @param[in] value The new value. */ @@ -2255,7 +3069,7 @@ class File : public client::JsonCppData { * Folder color as an RGB hex string if the file is a folder. The list of * supported colors is available in the folderColorPalette field of the About * resource. If an unsupported color is specified, it will be changed to the - * closest color in the palette. + * closest color in the palette. Not populated for Team Drive files. * * @param[in] value The new value. */ @@ -2305,6 +3119,84 @@ class File : public client::JsonCppData { *MutableStorage("fullFileExtension") = value.data(); } + /** + * Determine if the 'hasAugmentedPermissions' attribute was set. + * + * @return true if the 'hasAugmentedPermissions' attribute was + * set. + */ + bool has_has_augmented_permissions() const { + return Storage().isMember("hasAugmentedPermissions"); + } + + /** + * Clears the 'hasAugmentedPermissions' attribute. + */ + void clear_has_augmented_permissions() { + MutableStorage()->removeMember("hasAugmentedPermissions"); + } + + + /** + * Get the value of the 'hasAugmentedPermissions' attribute. + */ + bool get_has_augmented_permissions() const { + const Json::Value& storage = Storage("hasAugmentedPermissions"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'hasAugmentedPermissions' attribute. + * + * Whether any users are granted file access directly on this file. This field + * is only populated for Team Drive files. + * + * @param[in] value The new value. + */ + void set_has_augmented_permissions(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("hasAugmentedPermissions")); + } + + /** + * Determine if the 'hasThumbnail' attribute was set. + * + * @return true if the 'hasThumbnail' attribute was set. + */ + bool has_has_thumbnail() const { + return Storage().isMember("hasThumbnail"); + } + + /** + * Clears the 'hasThumbnail' attribute. + */ + void clear_has_thumbnail() { + MutableStorage()->removeMember("hasThumbnail"); + } + + + /** + * Get the value of the 'hasThumbnail' attribute. + */ + bool get_has_thumbnail() const { + const Json::Value& storage = Storage("hasThumbnail"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'hasThumbnail' attribute. + * + * Whether this file has a thumbnail. This does not indicate whether the + * requesting app has access to the thumbnail. To check access, look for the + * presence of the thumbnailLink field. + * + * @param[in] value The new value. + */ + void set_has_thumbnail(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("hasThumbnail")); + } + /** * Determine if the 'headRevisionId' attribute was set. * @@ -2496,6 +3388,43 @@ class File : public client::JsonCppData { return client::JsonValueToMutableCppValueHelper(storage); } + /** + * Determine if the 'isAppAuthorized' attribute was set. + * + * @return true if the 'isAppAuthorized' attribute was set. + */ + bool has_is_app_authorized() const { + return Storage().isMember("isAppAuthorized"); + } + + /** + * Clears the 'isAppAuthorized' attribute. + */ + void clear_is_app_authorized() { + MutableStorage()->removeMember("isAppAuthorized"); + } + + + /** + * Get the value of the 'isAppAuthorized' attribute. + */ + bool get_is_app_authorized() const { + const Json::Value& storage = Storage("isAppAuthorized"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'isAppAuthorized' attribute. + * + * Whether the file was created or opened by the requesting app. + * + * @param[in] value The new value. + */ + void set_is_app_authorized(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("isAppAuthorized")); + } + /** * Determine if the 'kind' attribute was set. * @@ -2939,11 +3868,9 @@ class File : public client::JsonCppData { /** * Change the 'originalFilename' attribute. * - * The original filename if the file was uploaded manually, or the original - * title if the file was inserted through the API. Note that renames of the - * title will not change the original filename. This field is only populated - * for files with content stored in Drive; it is not populated for Google Docs - * or shortcut files. + * The original filename of the uploaded content if available, or else the + * original value of the title field. This is only available for files with + * binary content in Drive. * * @param[in] value The new value. */ @@ -2979,7 +3906,8 @@ class File : public client::JsonCppData { /** * Change the 'ownedByMe' attribute. * - * Whether the file is owned by the current user. + * Whether the file is owned by the current user. Not populated for Team Drive + * files. * * @param[in] value The new value. */ @@ -3017,7 +3945,7 @@ class File : public client::JsonCppData { * Gets a reference to a mutable value of the 'ownerNames' * property. * - * Name(s) of the owner(s) of this file. + * Name(s) of the owner(s) of this file. Not populated for Team Drive files. * * @return The result can be modified to change the attribute value. */ @@ -3051,7 +3979,7 @@ class File : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'owners' property. * - * The owner(s) of this file. + * The owner(s) of this file. Not populated for Team Drive files. * * @return The result can be modified to change the attribute value. */ @@ -3117,7 +4045,8 @@ class File : public client::JsonCppData { * Gets a reference to a mutable value of the 'permissions' * property. * - * The list of permissions for users with access to this file. + * The list of permissions for users with access to this file. Not populated + * for Team Drive files. * * @return The result can be modified to change the attribute value. */ @@ -3256,8 +4185,10 @@ class File : public client::JsonCppData { /** * Change the 'shareable' attribute. + * @deprecated * - * Whether the file's sharing settings can be modified by the current user. + * + * Deprecated: use capabilities/canShare. * * @param[in] value The new value. */ @@ -3294,7 +4225,7 @@ class File : public client::JsonCppData { /** * Change the 'shared' attribute. * - * Whether the file has been shared. + * Whether the file has been shared. Not populated for Team Drive files. * * @param[in] value The new value. */ @@ -3411,6 +4342,43 @@ class File : public client::JsonCppData { return client::JsonValueToMutableCppValueHelper >(storage); } + /** + * Determine if the 'teamDriveId' attribute was set. + * + * @return true if the 'teamDriveId' attribute was set. + */ + bool has_team_drive_id() const { + return Storage().isMember("teamDriveId"); + } + + /** + * Clears the 'teamDriveId' attribute. + */ + void clear_team_drive_id() { + MutableStorage()->removeMember("teamDriveId"); + } + + + /** + * Get the value of the 'teamDriveId' attribute. + */ + const StringPiece get_team_drive_id() const { + const Json::Value& v = Storage("teamDriveId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'teamDriveId' attribute. + * + * ID of the Team Drive the file resides in. + * + * @param[in] value The new value. + */ + void set_team_drive_id(const StringPiece& value) { + *MutableStorage("teamDriveId") = value.data(); + } + /** * Determine if the 'thumbnail' attribute was set. * @@ -3440,8 +4408,8 @@ class File : public client::JsonCppData { * Gets a reference to a mutable value of the 'thumbnail' * property. * - * Thumbnail for the file. Only accepted on upload and for files that are not - * already thumbnailed by Google. + * A thumbnail for the file. This will only be used if Drive cannot generate a + * standard thumbnail. * * @return The result can be modified to change the attribute value. */ @@ -3480,7 +4448,8 @@ class File : public client::JsonCppData { * Change the 'thumbnailLink' attribute. * * A short-lived link to the file's thumbnail. Typically lasts on the order of - * hours. + * hours. Only populated when the requesting app can access the file's + * content. * * @param[in] value The new value. */ @@ -3488,6 +4457,43 @@ class File : public client::JsonCppData { *MutableStorage("thumbnailLink") = value.data(); } + /** + * Determine if the 'thumbnailVersion' attribute was set. + * + * @return true if the 'thumbnailVersion' attribute was set. + */ + bool has_thumbnail_version() const { + return Storage().isMember("thumbnailVersion"); + } + + /** + * Clears the 'thumbnailVersion' attribute. + */ + void clear_thumbnail_version() { + MutableStorage()->removeMember("thumbnailVersion"); + } + + + /** + * Get the value of the 'thumbnailVersion' attribute. + */ + int64 get_thumbnail_version() const { + const Json::Value& storage = Storage("thumbnailVersion"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'thumbnailVersion' attribute. + * + * The thumbnail version for use in thumbnail cache invalidation. + * + * @param[in] value The new value. + */ + void set_thumbnail_version(int64 value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("thumbnailVersion")); + } + /** * Determine if the 'title' attribute was set. * @@ -3517,7 +4523,9 @@ class File : public client::JsonCppData { /** * Change the 'title' attribute. * - * The title of this file. + * The title of this file. Note that for immutable items such as the top level + * folders of Team Drives, My Drive root folder, and Application Data folder + * the title is constant. * * @param[in] value The new value. */ @@ -3525,6 +4533,77 @@ class File : public client::JsonCppData { *MutableStorage("title") = value.data(); } + /** + * Determine if the 'trashedDate' attribute was set. + * + * @return true if the 'trashedDate' attribute was set. + */ + bool has_trashed_date() const { + return Storage().isMember("trashedDate"); + } + + /** + * Clears the 'trashedDate' attribute. + */ + void clear_trashed_date() { + MutableStorage()->removeMember("trashedDate"); + } + + + /** + * Get the value of the 'trashedDate' attribute. + */ + client::DateTime get_trashed_date() const { + const Json::Value& storage = Storage("trashedDate"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'trashedDate' attribute. + * + * The time that the item was trashed (formatted RFC 3339 timestamp). Only + * populated for Team Drive files. + * + * @param[in] value The new value. + */ + void set_trashed_date(client::DateTime value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("trashedDate")); + } + + /** + * Determine if the 'trashingUser' attribute was set. + * + * @return true if the 'trashingUser' attribute was set. + */ + bool has_trashing_user() const { + return Storage().isMember("trashingUser"); + } + + /** + * Clears the 'trashingUser' attribute. + */ + void clear_trashing_user() { + MutableStorage()->removeMember("trashingUser"); + } + + + /** + * Get a reference to the value of the 'trashingUser' attribute. + */ + const User get_trashing_user() const; + + /** + * Gets a reference to a mutable value of the 'trashingUser' + * property. + * + * If the file has been explicitly trashed, the user who trashed it. Only + * populated for Team Drive files. + * + * @return The result can be modified to change the attribute value. + */ + User mutable_trashingUser(); + /** * Determine if the 'userPermission' attribute was set. * @@ -3741,7 +4820,8 @@ class File : public client::JsonCppData { /** * Change the 'writersCanShare' attribute. * - * Whether writers can share the document with other users. + * Whether writers can share the document with other users. Not populated for + * Team Drive files. * * @param[in] value The new value. */ diff --git a/service_apis/drive/google/drive_api/file_list.cc b/service_apis/drive/google/drive_api/file_list.cc index 5a2be53..7eb3398 100644 --- a/service_apis/drive/google/drive_api/file_list.cc +++ b/service_apis/drive/google/drive_api/file_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // FileList // Documentation: @@ -59,4 +56,16 @@ FileList::FileList(Json::Value* storage) // Standard destructor. FileList::~FileList() { } + +// Properties. + +const client::JsonCppArray FileList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray FileList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/file_list.h b/service_apis/drive/google/drive_api/file_list.h index bd3c20e..e75fdf8 100644 --- a/service_apis/drive/google/drive_api/file_list.h +++ b/service_apis/drive/google/drive_api/file_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_FILE_LIST_H_ #define GOOGLE_DRIVE_API_FILE_LIST_H_ @@ -120,6 +118,48 @@ class FileList : public client::JsonCppData { *MutableStorage("etag") = value.data(); } + /** + * Determine if the 'incompleteSearch' attribute was set. + * + * @return true if the 'incompleteSearch' attribute was set. + */ + bool has_incomplete_search() const { + return Storage().isMember("incompleteSearch"); + } + + /** + * Clears the 'incompleteSearch' attribute. + */ + void clear_incomplete_search() { + MutableStorage()->removeMember("incompleteSearch"); + } + + + /** + * Get the value of the 'incompleteSearch' attribute. + */ + bool get_incomplete_search() const { + const Json::Value& storage = Storage("incompleteSearch"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'incompleteSearch' attribute. + * + * Whether the search process was incomplete. If true, then some search + * results may be missing, since all documents were not searched. This may + * occur when searching multiple Team Drives with the "default,allTeamDrives" + * corpora, but all corpora could not be searched. When this happens, it is + * suggested that clients narrow their query by choosing a different corpus + * such as "default" or "teamDrive". + * + * @param[in] value The new value. + */ + void set_incomplete_search(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("incompleteSearch")); + } + /** * Determine if the 'items' attribute was set. * @@ -145,7 +185,8 @@ class FileList : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'items' property. * - * The actual list of files. + * The list of files. If nextPageToken is populated, then this list may be + * incomplete and an additional page of results should be fetched. * * @return The result can be modified to change the attribute value. */ @@ -254,7 +295,10 @@ class FileList : public client::JsonCppData { /** * Change the 'nextPageToken' attribute. * - * The page token for the next page of files. + * The page token for the next page of files. This will be absent if the end + * of the files list has been reached. If the token is rejected for any + * reason, it should be discarded, and pagination should be restarted from the + * first page of results. * * @param[in] value The new value. */ diff --git a/service_apis/drive/google/drive_api/generated_ids.cc b/service_apis/drive/google/drive_api/generated_ids.cc index 1d2eeb3..b796186 100644 --- a/service_apis/drive/google/drive_api/generated_ids.cc +++ b/service_apis/drive/google/drive_api/generated_ids.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // GeneratedIds // Documentation: @@ -57,4 +54,6 @@ GeneratedIds::GeneratedIds(Json::Value* storage) // Standard destructor. GeneratedIds::~GeneratedIds() { } + +// Properties. } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/generated_ids.h b/service_apis/drive/google/drive_api/generated_ids.h index e7c224d..cbdf01c 100644 --- a/service_apis/drive/google/drive_api/generated_ids.h +++ b/service_apis/drive/google/drive_api/generated_ids.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_GENERATED_IDS_H_ #define GOOGLE_DRIVE_API_GENERATED_IDS_H_ diff --git a/service_apis/drive/google/drive_api/parent_list.cc b/service_apis/drive/google/drive_api/parent_list.cc index 3cb829c..7a39ea6 100644 --- a/service_apis/drive/google/drive_api/parent_list.cc +++ b/service_apis/drive/google/drive_api/parent_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // ParentList // Documentation: @@ -59,4 +56,16 @@ ParentList::ParentList(Json::Value* storage) // Standard destructor. ParentList::~ParentList() { } + +// Properties. + +const client::JsonCppArray ParentList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray ParentList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/parent_list.h b/service_apis/drive/google/drive_api/parent_list.h index 5f8bae8..e24fb87 100644 --- a/service_apis/drive/google/drive_api/parent_list.h +++ b/service_apis/drive/google/drive_api/parent_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_PARENT_LIST_H_ #define GOOGLE_DRIVE_API_PARENT_LIST_H_ @@ -145,7 +143,7 @@ class ParentList : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'items' property. * - * The actual list of parents. + * The list of parents. * * @return The result can be modified to change the attribute value. */ diff --git a/service_apis/drive/google/drive_api/parent_reference.cc b/service_apis/drive/google/drive_api/parent_reference.cc index db311b7..1390c92 100644 --- a/service_apis/drive/google/drive_api/parent_reference.cc +++ b/service_apis/drive/google/drive_api/parent_reference.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // ParentReference // Documentation: @@ -57,4 +54,6 @@ ParentReference::ParentReference(Json::Value* storage) // Standard destructor. ParentReference::~ParentReference() { } + +// Properties. } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/parent_reference.h b/service_apis/drive/google/drive_api/parent_reference.h index d0d8478..6bc961f 100644 --- a/service_apis/drive/google/drive_api/parent_reference.h +++ b/service_apis/drive/google/drive_api/parent_reference.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_PARENT_REFERENCE_H_ #define GOOGLE_DRIVE_API_PARENT_REFERENCE_H_ diff --git a/service_apis/drive/google/drive_api/permission.cc b/service_apis/drive/google/drive_api/permission.cc index b35f771..9852f82 100644 --- a/service_apis/drive/google/drive_api/permission.cc +++ b/service_apis/drive/google/drive_api/permission.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // Permission // Documentation: @@ -29,6 +26,7 @@ #include "google/drive_api/permission.h" #include #include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/client/util/date_time.h" #include "googleapis/strings/stringpiece.h" @@ -39,6 +37,27 @@ namespace google_drive_api { using namespace googleapis; + +// Object factory method (static). +Permission::PermissionTeamDrivePermissionDetails* Permission::PermissionTeamDrivePermissionDetails::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +Permission::PermissionTeamDrivePermissionDetails::PermissionTeamDrivePermissionDetails(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +Permission::PermissionTeamDrivePermissionDetails::PermissionTeamDrivePermissionDetails(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +Permission::PermissionTeamDrivePermissionDetails::~PermissionTeamDrivePermissionDetails() { +} + +// Properties. // Object factory method (static). Permission* Permission::New() { return new client::JsonCppCapsule; @@ -57,4 +76,6 @@ Permission::Permission(Json::Value* storage) // Standard destructor. Permission::~Permission() { } + +// Properties. } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/permission.h b/service_apis/drive/google/drive_api/permission.h index 3ae22f0..88b17c2 100644 --- a/service_apis/drive/google/drive_api/permission.h +++ b/service_apis/drive/google/drive_api/permission.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,15 +18,17 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_PERMISSION_H_ #define GOOGLE_DRIVE_API_PERMISSION_H_ #include #include "googleapis/base/macros.h" #include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/client/util/date_time.h" #include "googleapis/strings/stringpiece.h" namespace Json { @@ -46,6 +45,251 @@ using namespace googleapis; */ class Permission : public client::JsonCppData { public: + /** + * No description provided. + * + * @ingroup DataObject + */ + class PermissionTeamDrivePermissionDetails : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static PermissionTeamDrivePermissionDetails* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit PermissionTeamDrivePermissionDetails(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit PermissionTeamDrivePermissionDetails(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~PermissionTeamDrivePermissionDetails(); + + /** + * Returns a string denoting the type of this data object. + * + * @return + * google_drive_api::PermissionTeamDrivePermissionDetails + */ + const StringPiece GetTypeName() const { + return StringPiece("google_drive_api::PermissionTeamDrivePermissionDetails"); + } + + /** + * Determine if the 'additionalRoles' attribute was set. + * + * @return true if the 'additionalRoles' attribute was set. + */ + bool has_additional_roles() const { + return Storage().isMember("additionalRoles"); + } + + /** + * Clears the 'additionalRoles' attribute. + */ + void clear_additional_roles() { + MutableStorage()->removeMember("additionalRoles"); + } + + + /** + * Get a reference to the value of the 'additionalRoles' + * attribute. + */ + const client::JsonCppArray get_additional_roles() const { + const Json::Value& storage = Storage("additionalRoles"); + return client::JsonValueToCppValueHelper >(storage); + } + + /** + * Gets a reference to a mutable value of the 'additionalRoles' + * property. + * + * Additional roles for this user. Only commenter is currently possible, + * though more may be supported in the future. + * + * @return The result can be modified to change the attribute value. + */ + client::JsonCppArray mutable_additionalRoles() { + Json::Value* storage = MutableStorage("additionalRoles"); + return client::JsonValueToMutableCppValueHelper >(storage); + } + + /** + * Determine if the 'inherited' attribute was set. + * + * @return true if the 'inherited' attribute was set. + */ + bool has_inherited() const { + return Storage().isMember("inherited"); + } + + /** + * Clears the 'inherited' attribute. + */ + void clear_inherited() { + MutableStorage()->removeMember("inherited"); + } + + + /** + * Get the value of the 'inherited' attribute. + */ + bool get_inherited() const { + const Json::Value& storage = Storage("inherited"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'inherited' attribute. + * + * Whether this permission is inherited. This field is always populated. + * This is an output-only field. + * + * @param[in] value The new value. + */ + void set_inherited(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("inherited")); + } + + /** + * Determine if the 'inheritedFrom' attribute was set. + * + * @return true if the 'inheritedFrom' attribute was set. + */ + bool has_inherited_from() const { + return Storage().isMember("inheritedFrom"); + } + + /** + * Clears the 'inheritedFrom' attribute. + */ + void clear_inherited_from() { + MutableStorage()->removeMember("inheritedFrom"); + } + + + /** + * Get the value of the 'inheritedFrom' attribute. + */ + const StringPiece get_inherited_from() const { + const Json::Value& v = Storage("inheritedFrom"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'inheritedFrom' attribute. + * + * The ID of the item from which this permission is inherited. This is an + * output-only field and is only populated for members of the Team Drive. + * + * @param[in] value The new value. + */ + void set_inherited_from(const StringPiece& value) { + *MutableStorage("inheritedFrom") = value.data(); + } + + /** + * Determine if the 'role' attribute was set. + * + * @return true if the 'role' attribute was set. + */ + bool has_role() const { + return Storage().isMember("role"); + } + + /** + * Clears the 'role' attribute. + */ + void clear_role() { + MutableStorage()->removeMember("role"); + } + + + /** + * Get the value of the 'role' attribute. + */ + const StringPiece get_role() const { + const Json::Value& v = Storage("role"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'role' attribute. + * + * The primary role for this user. While new values may be added in the + * future, the following are currently possible: + * - organizer + * - reader + * - writer. + * + * @param[in] value The new value. + */ + void set_role(const StringPiece& value) { + *MutableStorage("role") = value.data(); + } + + /** + * Determine if the 'teamDrivePermissionType' attribute was + * set. + * + * @return true if the 'teamDrivePermissionType' attribute was + * set. + */ + bool has_team_drive_permission_type() const { + return Storage().isMember("teamDrivePermissionType"); + } + + /** + * Clears the 'teamDrivePermissionType' attribute. + */ + void clear_team_drive_permission_type() { + MutableStorage()->removeMember("teamDrivePermissionType"); + } + + + /** + * Get the value of the 'teamDrivePermissionType' attribute. + */ + const StringPiece get_team_drive_permission_type() const { + const Json::Value& v = Storage("teamDrivePermissionType"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'teamDrivePermissionType' attribute. + * + * The Team Drive permission type for this user. While new values may be + * added in future, the following are currently possible: + * - file + * - member. + * + * @param[in] value The new value. + */ + void set_team_drive_permission_type(const StringPiece& value) { + *MutableStorage("teamDrivePermissionType") = value.data(); + } + + private: + void operator=(const PermissionTeamDrivePermissionDetails&); + }; // PermissionTeamDrivePermissionDetails /** * Creates a new default instance. * @@ -111,7 +355,8 @@ class Permission : public client::JsonCppData { * Gets a reference to a mutable value of the 'additionalRoles' * property. * - * Additional roles for this user. Only commenter is currently allowed. + * Additional roles for this user. Only commenter is currently allowed, though + * more may be supported in the future. * * @return The result can be modified to change the attribute value. */ @@ -157,6 +402,44 @@ class Permission : public client::JsonCppData { *MutableStorage("authKey") = value.data(); } + /** + * Determine if the 'deleted' attribute was set. + * + * @return true if the 'deleted' attribute was set. + */ + bool has_deleted() const { + return Storage().isMember("deleted"); + } + + /** + * Clears the 'deleted' attribute. + */ + void clear_deleted() { + MutableStorage()->removeMember("deleted"); + } + + + /** + * Get the value of the 'deleted' attribute. + */ + bool get_deleted() const { + const Json::Value& storage = Storage("deleted"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'deleted' attribute. + * + * Whether the account associated with this permission has been deleted. This + * field only pertains to user and group permissions. + * + * @param[in] value The new value. + */ + void set_deleted(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("deleted")); + } + /** * Determine if the 'domain' attribute was set. * @@ -272,6 +555,48 @@ class Permission : public client::JsonCppData { *MutableStorage("etag") = value.data(); } + /** + * Determine if the 'expirationDate' attribute was set. + * + * @return true if the 'expirationDate' attribute was set. + */ + bool has_expiration_date() const { + return Storage().isMember("expirationDate"); + } + + /** + * Clears the 'expirationDate' attribute. + */ + void clear_expiration_date() { + MutableStorage()->removeMember("expirationDate"); + } + + + /** + * Get the value of the 'expirationDate' attribute. + */ + client::DateTime get_expiration_date() const { + const Json::Value& storage = Storage("expirationDate"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'expirationDate' attribute. + * + * The time at which this permission will expire (RFC 3339 date-time). + * Expiration dates have the following restrictions: + * - They can only be set on user and group permissions + * - The date must be in the future + * - The date cannot be more than a year in the future + * - The date can only be set on drive.permissions.update requests. + * + * @param[in] value The new value. + */ + void set_expiration_date(client::DateTime value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("expirationDate")); + } + /** * Determine if the 'id' attribute was set. * @@ -304,7 +629,8 @@ class Permission : public client::JsonCppData { * The ID of the user this permission refers to, and identical to the * permissionId in the About and Files resources. When making a * drive.permissions.insert request, exactly one of the id or value fields - * must be specified. + * must be specified unless the permission type is anyone, in which case both + * id and value are ignored. * * @param[in] value The new value. */ @@ -452,7 +778,9 @@ class Permission : public client::JsonCppData { /** * Change the 'role' attribute. * - * The primary role for this user. Allowed values are: + * The primary role for this user. While new values may be supported in the + * future, the following are currently allowed: + * - organizer * - owner * - reader * - writer. @@ -500,6 +828,49 @@ class Permission : public client::JsonCppData { *MutableStorage("selfLink") = value.data(); } + /** + * Determine if the 'teamDrivePermissionDetails' attribute was + * set. + * + * @return true if the 'teamDrivePermissionDetails' attribute was + * set. + */ + bool has_team_drive_permission_details() const { + return Storage().isMember("teamDrivePermissionDetails"); + } + + /** + * Clears the 'teamDrivePermissionDetails' attribute. + */ + void clear_team_drive_permission_details() { + MutableStorage()->removeMember("teamDrivePermissionDetails"); + } + + + /** + * Get a reference to the value of the + * 'teamDrivePermissionDetails' attribute. + */ + const client::JsonCppArray get_team_drive_permission_details() const { + const Json::Value& storage = Storage("teamDrivePermissionDetails"); + return client::JsonValueToCppValueHelper >(storage); + } + + /** + * Gets a reference to a mutable value of the + * 'teamDrivePermissionDetails' property. + * + * Details of whether the permissions on this Team Drive item are inherited or + * directly on this item. This is an output-only field which is present only + * for Team Drive items. + * + * @return The result can be modified to change the attribute value. + */ + client::JsonCppArray mutable_teamDrivePermissionDetails() { + Json::Value* storage = MutableStorage("teamDrivePermissionDetails"); + return client::JsonValueToMutableCppValueHelper >(storage); + } + /** * Determine if the 'type' attribute was set. * @@ -573,7 +944,8 @@ class Permission : public client::JsonCppData { * The email address or domain name for the entity. This is used during * inserts and is not populated in responses. When making a * drive.permissions.insert request, exactly one of the id or value fields - * must be specified. + * must be specified unless the permission type is anyone, in which case both + * id and value are ignored. * * @param[in] value The new value. */ diff --git a/service_apis/drive/google/drive_api/permission_id.cc b/service_apis/drive/google/drive_api/permission_id.cc index 3cfb13b..adcf9cc 100644 --- a/service_apis/drive/google/drive_api/permission_id.cc +++ b/service_apis/drive/google/drive_api/permission_id.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // PermissionId // Documentation: @@ -57,4 +54,6 @@ PermissionId::PermissionId(Json::Value* storage) // Standard destructor. PermissionId::~PermissionId() { } + +// Properties. } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/permission_id.h b/service_apis/drive/google/drive_api/permission_id.h index e822d93..1b16748 100644 --- a/service_apis/drive/google/drive_api/permission_id.h +++ b/service_apis/drive/google/drive_api/permission_id.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_PERMISSION_ID_H_ #define GOOGLE_DRIVE_API_PERMISSION_ID_H_ diff --git a/service_apis/drive/google/drive_api/permission_list.cc b/service_apis/drive/google/drive_api/permission_list.cc index 84e665a..93b8142 100644 --- a/service_apis/drive/google/drive_api/permission_list.cc +++ b/service_apis/drive/google/drive_api/permission_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // PermissionList // Documentation: @@ -59,4 +56,16 @@ PermissionList::PermissionList(Json::Value* storage) // Standard destructor. PermissionList::~PermissionList() { } + +// Properties. + +const client::JsonCppArray PermissionList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray PermissionList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/permission_list.h b/service_apis/drive/google/drive_api/permission_list.h index 0b73e0e..aea4f81 100644 --- a/service_apis/drive/google/drive_api/permission_list.h +++ b/service_apis/drive/google/drive_api/permission_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_PERMISSION_LIST_H_ #define GOOGLE_DRIVE_API_PERMISSION_LIST_H_ @@ -145,7 +143,7 @@ class PermissionList : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'items' property. * - * The actual list of permissions. + * The list of permissions. * * @return The result can be modified to change the attribute value. */ @@ -188,6 +186,46 @@ class PermissionList : public client::JsonCppData { *MutableStorage("kind") = value.data(); } + /** + * Determine if the 'nextPageToken' attribute was set. + * + * @return true if the 'nextPageToken' attribute was set. + */ + bool has_next_page_token() const { + return Storage().isMember("nextPageToken"); + } + + /** + * Clears the 'nextPageToken' attribute. + */ + void clear_next_page_token() { + MutableStorage()->removeMember("nextPageToken"); + } + + + /** + * Get the value of the 'nextPageToken' attribute. + */ + const StringPiece get_next_page_token() const { + const Json::Value& v = Storage("nextPageToken"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'nextPageToken' attribute. + * + * The page token for the next page of permissions. This field will be absent + * if the end of the permissions list has been reached. If the token is + * rejected for any reason, it should be discarded, and pagination should be + * restarted from the first page of results. + * + * @param[in] value The new value. + */ + void set_next_page_token(const StringPiece& value) { + *MutableStorage("nextPageToken") = value.data(); + } + /** * Determine if the 'selfLink' attribute was set. * diff --git a/service_apis/drive/google/drive_api/property.cc b/service_apis/drive/google/drive_api/property.cc index fd8bbe5..64b5669 100644 --- a/service_apis/drive/google/drive_api/property.cc +++ b/service_apis/drive/google/drive_api/property.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // Property // Documentation: @@ -57,4 +54,6 @@ Property::Property(Json::Value* storage) // Standard destructor. Property::~Property() { } + +// Properties. } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/property.h b/service_apis/drive/google/drive_api/property.h index 085bfc7..c059187 100644 --- a/service_apis/drive/google/drive_api/property.h +++ b/service_apis/drive/google/drive_api/property.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_PROPERTY_H_ #define GOOGLE_DRIVE_API_PROPERTY_H_ diff --git a/service_apis/drive/google/drive_api/property_list.cc b/service_apis/drive/google/drive_api/property_list.cc index 6b1cd4d..05821c2 100644 --- a/service_apis/drive/google/drive_api/property_list.cc +++ b/service_apis/drive/google/drive_api/property_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // PropertyList // Documentation: @@ -59,4 +56,16 @@ PropertyList::PropertyList(Json::Value* storage) // Standard destructor. PropertyList::~PropertyList() { } + +// Properties. + +const client::JsonCppArray PropertyList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray PropertyList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/property_list.h b/service_apis/drive/google/drive_api/property_list.h index 6caf19b..e5a9536 100644 --- a/service_apis/drive/google/drive_api/property_list.h +++ b/service_apis/drive/google/drive_api/property_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_PROPERTY_LIST_H_ #define GOOGLE_DRIVE_API_PROPERTY_LIST_H_ diff --git a/service_apis/drive/google/drive_api/revision.cc b/service_apis/drive/google/drive_api/revision.cc index 4235961..653b5d3 100644 --- a/service_apis/drive/google/drive_api/revision.cc +++ b/service_apis/drive/google/drive_api/revision.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // Revision // Documentation: @@ -61,4 +58,16 @@ Revision::Revision(Json::Value* storage) // Standard destructor. Revision::~Revision() { } + +// Properties. + +const User Revision::get_last_modifying_user() const { + const Json::Value& storage = Storage("lastModifyingUser"); + return client::JsonValueToCppValueHelper(storage); +} + +User Revision::mutable_lastModifyingUser() { + Json::Value* storage = MutableStorage("lastModifyingUser"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/revision.h b/service_apis/drive/google/drive_api/revision.h index d7bc0b3..af6b93c 100644 --- a/service_apis/drive/google/drive_api/revision.h +++ b/service_apis/drive/google/drive_api/revision.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_REVISION_H_ #define GOOGLE_DRIVE_API_REVISION_H_ diff --git a/service_apis/drive/google/drive_api/revision_list.cc b/service_apis/drive/google/drive_api/revision_list.cc index 1d25521..75f9983 100644 --- a/service_apis/drive/google/drive_api/revision_list.cc +++ b/service_apis/drive/google/drive_api/revision_list.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // RevisionList // Documentation: @@ -59,4 +56,16 @@ RevisionList::RevisionList(Json::Value* storage) // Standard destructor. RevisionList::~RevisionList() { } + +// Properties. + +const client::JsonCppArray RevisionList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray RevisionList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/revision_list.h b/service_apis/drive/google/drive_api/revision_list.h index 3c5fb81..679c7a6 100644 --- a/service_apis/drive/google/drive_api/revision_list.h +++ b/service_apis/drive/google/drive_api/revision_list.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_REVISION_LIST_H_ #define GOOGLE_DRIVE_API_REVISION_LIST_H_ @@ -145,7 +143,8 @@ class RevisionList : public client::JsonCppData { /** * Gets a reference to a mutable value of the 'items' property. * - * The actual list of revisions. + * The list of revisions. If nextPageToken is populated, then this list may be + * incomplete and an additional page of results should be fetched. * * @return The result can be modified to change the attribute value. */ @@ -188,6 +187,46 @@ class RevisionList : public client::JsonCppData { *MutableStorage("kind") = value.data(); } + /** + * Determine if the 'nextPageToken' attribute was set. + * + * @return true if the 'nextPageToken' attribute was set. + */ + bool has_next_page_token() const { + return Storage().isMember("nextPageToken"); + } + + /** + * Clears the 'nextPageToken' attribute. + */ + void clear_next_page_token() { + MutableStorage()->removeMember("nextPageToken"); + } + + + /** + * Get the value of the 'nextPageToken' attribute. + */ + const StringPiece get_next_page_token() const { + const Json::Value& v = Storage("nextPageToken"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'nextPageToken' attribute. + * + * The page token for the next page of revisions. This field will be absent if + * the end of the revisions list has been reached. If the token is rejected + * for any reason, it should be discarded and pagination should be restarted + * from the first page of results. + * + * @param[in] value The new value. + */ + void set_next_page_token(const StringPiece& value) { + *MutableStorage("nextPageToken") = value.data(); + } + /** * Determine if the 'selfLink' attribute was set. * diff --git a/service_apis/drive/google/drive_api/start_page_token.cc b/service_apis/drive/google/drive_api/start_page_token.cc new file mode 100644 index 0000000..a1e0a21 --- /dev/null +++ b/service_apis/drive/google/drive_api/start_page_token.cc @@ -0,0 +1,59 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// Drive API (drive/v2) +// Description: +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. +// Classes: +// StartPageToken +// Documentation: +// https://developers.google.com/drive/ + +#include "google/drive_api/start_page_token.h" +#include +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_drive_api { +using namespace googleapis; + + +// Object factory method (static). +StartPageToken* StartPageToken::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +StartPageToken::StartPageToken(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +StartPageToken::StartPageToken(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +StartPageToken::~StartPageToken() { +} + +// Properties. +} // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/start_page_token.h b/service_apis/drive/google/drive_api/start_page_token.h new file mode 100644 index 0000000..37eac96 --- /dev/null +++ b/service_apis/drive/google/drive_api/start_page_token.h @@ -0,0 +1,161 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// Drive API (drive/v2) +// Generated from: +// Version: v2 +// Revision: 20170512 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_DRIVE_API_START_PAGE_TOKEN_H_ +#define GOOGLE_DRIVE_API_START_PAGE_TOKEN_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_drive_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class StartPageToken : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static StartPageToken* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit StartPageToken(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit StartPageToken(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~StartPageToken(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_drive_api::StartPageToken + */ + const StringPiece GetTypeName() const { + return StringPiece("google_drive_api::StartPageToken"); + } + + /** + * Determine if the 'kind' attribute was set. + * + * @return true if the 'kind' attribute was set. + */ + bool has_kind() const { + return Storage().isMember("kind"); + } + + /** + * Clears the 'kind' attribute. + */ + void clear_kind() { + MutableStorage()->removeMember("kind"); + } + + + /** + * Get the value of the 'kind' attribute. + */ + const StringPiece get_kind() const { + const Json::Value& v = Storage("kind"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'kind' attribute. + * + * Identifies what kind of resource this is. Value: the fixed string + * "drive#startPageToken". + * + * @param[in] value The new value. + */ + void set_kind(const StringPiece& value) { + *MutableStorage("kind") = value.data(); + } + + /** + * Determine if the 'startPageToken' attribute was set. + * + * @return true if the 'startPageToken' attribute was set. + */ + bool has_start_page_token() const { + return Storage().isMember("startPageToken"); + } + + /** + * Clears the 'startPageToken' attribute. + */ + void clear_start_page_token() { + MutableStorage()->removeMember("startPageToken"); + } + + + /** + * Get the value of the 'startPageToken' attribute. + */ + const StringPiece get_start_page_token() const { + const Json::Value& v = Storage("startPageToken"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'startPageToken' attribute. + * + * The starting page token for listing changes. + * + * @param[in] value The new value. + */ + void set_start_page_token(const StringPiece& value) { + *MutableStorage("startPageToken") = value.data(); + } + + private: + void operator=(const StartPageToken&); +}; // StartPageToken +} // namespace google_drive_api +#endif // GOOGLE_DRIVE_API_START_PAGE_TOKEN_H_ diff --git a/service_apis/drive/google/drive_api/team_drive.cc b/service_apis/drive/google/drive_api/team_drive.cc new file mode 100644 index 0000000..8621215 --- /dev/null +++ b/service_apis/drive/google/drive_api/team_drive.cc @@ -0,0 +1,101 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// Drive API (drive/v2) +// Description: +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. +// Classes: +// TeamDrive +// Documentation: +// https://developers.google.com/drive/ + +#include "google/drive_api/team_drive.h" +#include +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_drive_api { +using namespace googleapis; + + + +// Object factory method (static). +TeamDrive::TeamDriveBackgroundImageFile* TeamDrive::TeamDriveBackgroundImageFile::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +TeamDrive::TeamDriveBackgroundImageFile::TeamDriveBackgroundImageFile(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +TeamDrive::TeamDriveBackgroundImageFile::TeamDriveBackgroundImageFile(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +TeamDrive::TeamDriveBackgroundImageFile::~TeamDriveBackgroundImageFile() { +} + +// Properties. + +// Object factory method (static). +TeamDrive::TeamDriveCapabilities* TeamDrive::TeamDriveCapabilities::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +TeamDrive::TeamDriveCapabilities::TeamDriveCapabilities(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +TeamDrive::TeamDriveCapabilities::TeamDriveCapabilities(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +TeamDrive::TeamDriveCapabilities::~TeamDriveCapabilities() { +} + +// Properties. +// Object factory method (static). +TeamDrive* TeamDrive::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +TeamDrive::TeamDrive(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +TeamDrive::TeamDrive(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +TeamDrive::~TeamDrive() { +} + +// Properties. +} // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/team_drive.h b/service_apis/drive/google/drive_api/team_drive.h new file mode 100644 index 0000000..2911937 --- /dev/null +++ b/service_apis/drive/google/drive_api/team_drive.h @@ -0,0 +1,1175 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// Drive API (drive/v2) +// Generated from: +// Version: v2 +// Revision: 20170512 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_DRIVE_API_TEAM_DRIVE_H_ +#define GOOGLE_DRIVE_API_TEAM_DRIVE_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_drive_api { +using namespace googleapis; + +/** + * Representation of a Team Drive. + * + * @ingroup DataObject + */ +class TeamDrive : public client::JsonCppData { + public: + /** + * An image file and cropping parameters from which a background image for + * this Team Drive is set. This is a write only field; it can only be set on + * drive.teamdrives.update requests that don't set themeId. When specified, + * all fields of the backgroundImageFile must be set. + * + * @ingroup DataObject + */ + class TeamDriveBackgroundImageFile : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static TeamDriveBackgroundImageFile* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit TeamDriveBackgroundImageFile(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit TeamDriveBackgroundImageFile(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~TeamDriveBackgroundImageFile(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_drive_api::TeamDriveBackgroundImageFile + */ + const StringPiece GetTypeName() const { + return StringPiece("google_drive_api::TeamDriveBackgroundImageFile"); + } + + /** + * Determine if the 'id' attribute was set. + * + * @return true if the 'id' attribute was set. + */ + bool has_id() const { + return Storage().isMember("id"); + } + + /** + * Clears the 'id' attribute. + */ + void clear_id() { + MutableStorage()->removeMember("id"); + } + + + /** + * Get the value of the 'id' attribute. + */ + const StringPiece get_id() const { + const Json::Value& v = Storage("id"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'id' attribute. + * + * The ID of an image file in Drive to use for the background image. + * + * @param[in] value The new value. + */ + void set_id(const StringPiece& value) { + *MutableStorage("id") = value.data(); + } + + /** + * Determine if the 'width' attribute was set. + * + * @return true if the 'width' attribute was set. + */ + bool has_width() const { + return Storage().isMember("width"); + } + + /** + * Clears the 'width' attribute. + */ + void clear_width() { + MutableStorage()->removeMember("width"); + } + + + /** + * Get the value of the 'width' attribute. + */ + float get_width() const { + const Json::Value& storage = Storage("width"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'width' attribute. + * + * The width of the cropped image in the closed range of 0 to 1. This value + * represents the width of the cropped image divided by the width of the + * entire image. The height is computed by applying a width to height aspect + * ratio of 80 to 9. The resulting image must be at least 1280 pixels wide + * and 144 pixels high. + * + * @param[in] value The new value. + */ + void set_width(float value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("width")); + } + + /** + * Determine if the 'xCoordinate' attribute was set. + * + * @return true if the 'xCoordinate' attribute was set. + */ + bool has_x_coordinate() const { + return Storage().isMember("xCoordinate"); + } + + /** + * Clears the 'xCoordinate' attribute. + */ + void clear_x_coordinate() { + MutableStorage()->removeMember("xCoordinate"); + } + + + /** + * Get the value of the 'xCoordinate' attribute. + */ + float get_x_coordinate() const { + const Json::Value& storage = Storage("xCoordinate"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'xCoordinate' attribute. + * + * The X coordinate of the upper left corner of the cropping area in the + * background image. This is a value in the closed range of 0 to 1. This + * value represents the horizontal distance from the left side of the entire + * image to the left side of the cropping area divided by the width of the + * entire image. + * + * @param[in] value The new value. + */ + void set_x_coordinate(float value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("xCoordinate")); + } + + /** + * Determine if the 'yCoordinate' attribute was set. + * + * @return true if the 'yCoordinate' attribute was set. + */ + bool has_y_coordinate() const { + return Storage().isMember("yCoordinate"); + } + + /** + * Clears the 'yCoordinate' attribute. + */ + void clear_y_coordinate() { + MutableStorage()->removeMember("yCoordinate"); + } + + + /** + * Get the value of the 'yCoordinate' attribute. + */ + float get_y_coordinate() const { + const Json::Value& storage = Storage("yCoordinate"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'yCoordinate' attribute. + * + * The Y coordinate of the upper left corner of the cropping area in the + * background image. This is a value in the closed range of 0 to 1. This + * value represents the vertical distance from the top side of the entire + * image to the top side of the cropping area divided by the height of the + * entire image. + * + * @param[in] value The new value. + */ + void set_y_coordinate(float value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("yCoordinate")); + } + + private: + void operator=(const TeamDriveBackgroundImageFile&); + }; // TeamDriveBackgroundImageFile + /** + * Capabilities the current user has on this Team Drive. + * + * @ingroup DataObject + */ + class TeamDriveCapabilities : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static TeamDriveCapabilities* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit TeamDriveCapabilities(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit TeamDriveCapabilities(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~TeamDriveCapabilities(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_drive_api::TeamDriveCapabilities + */ + const StringPiece GetTypeName() const { + return StringPiece("google_drive_api::TeamDriveCapabilities"); + } + + /** + * Determine if the 'canAddChildren' attribute was set. + * + * @return true if the 'canAddChildren' attribute was set. + */ + bool has_can_add_children() const { + return Storage().isMember("canAddChildren"); + } + + /** + * Clears the 'canAddChildren' attribute. + */ + void clear_can_add_children() { + MutableStorage()->removeMember("canAddChildren"); + } + + + /** + * Get the value of the 'canAddChildren' attribute. + */ + bool get_can_add_children() const { + const Json::Value& storage = Storage("canAddChildren"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canAddChildren' attribute. + * + * Whether the current user can add children to folders in this Team Drive. + * + * @param[in] value The new value. + */ + void set_can_add_children(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canAddChildren")); + } + + /** + * Determine if the 'canChangeTeamDriveBackground' attribute + * was set. + * + * @return true if the 'canChangeTeamDriveBackground' attribute + * was set. + */ + bool has_can_change_team_drive_background() const { + return Storage().isMember("canChangeTeamDriveBackground"); + } + + /** + * Clears the 'canChangeTeamDriveBackground' attribute. + */ + void clear_can_change_team_drive_background() { + MutableStorage()->removeMember("canChangeTeamDriveBackground"); + } + + + /** + * Get the value of the 'canChangeTeamDriveBackground' + * attribute. + */ + bool get_can_change_team_drive_background() const { + const Json::Value& storage = Storage("canChangeTeamDriveBackground"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canChangeTeamDriveBackground' attribute. + * + * Whether the current user can change the background of this Team Drive. + * + * @param[in] value The new value. + */ + void set_can_change_team_drive_background(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canChangeTeamDriveBackground")); + } + + /** + * Determine if the 'canComment' attribute was set. + * + * @return true if the 'canComment' attribute was set. + */ + bool has_can_comment() const { + return Storage().isMember("canComment"); + } + + /** + * Clears the 'canComment' attribute. + */ + void clear_can_comment() { + MutableStorage()->removeMember("canComment"); + } + + + /** + * Get the value of the 'canComment' attribute. + */ + bool get_can_comment() const { + const Json::Value& storage = Storage("canComment"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canComment' attribute. + * + * Whether the current user can comment on files in this Team Drive. + * + * @param[in] value The new value. + */ + void set_can_comment(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canComment")); + } + + /** + * Determine if the 'canCopy' attribute was set. + * + * @return true if the 'canCopy' attribute was set. + */ + bool has_can_copy() const { + return Storage().isMember("canCopy"); + } + + /** + * Clears the 'canCopy' attribute. + */ + void clear_can_copy() { + MutableStorage()->removeMember("canCopy"); + } + + + /** + * Get the value of the 'canCopy' attribute. + */ + bool get_can_copy() const { + const Json::Value& storage = Storage("canCopy"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canCopy' attribute. + * + * Whether the current user can copy files in this Team Drive. + * + * @param[in] value The new value. + */ + void set_can_copy(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canCopy")); + } + + /** + * Determine if the 'canDeleteTeamDrive' attribute was set. + * + * @return true if the 'canDeleteTeamDrive' attribute was set. + */ + bool has_can_delete_team_drive() const { + return Storage().isMember("canDeleteTeamDrive"); + } + + /** + * Clears the 'canDeleteTeamDrive' attribute. + */ + void clear_can_delete_team_drive() { + MutableStorage()->removeMember("canDeleteTeamDrive"); + } + + + /** + * Get the value of the 'canDeleteTeamDrive' attribute. + */ + bool get_can_delete_team_drive() const { + const Json::Value& storage = Storage("canDeleteTeamDrive"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canDeleteTeamDrive' attribute. + * + * Whether the current user can delete this Team Drive. Attempting to delete + * the Team Drive may still fail if there are untrashed items inside the + * Team Drive. + * + * @param[in] value The new value. + */ + void set_can_delete_team_drive(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canDeleteTeamDrive")); + } + + /** + * Determine if the 'canDownload' attribute was set. + * + * @return true if the 'canDownload' attribute was set. + */ + bool has_can_download() const { + return Storage().isMember("canDownload"); + } + + /** + * Clears the 'canDownload' attribute. + */ + void clear_can_download() { + MutableStorage()->removeMember("canDownload"); + } + + + /** + * Get the value of the 'canDownload' attribute. + */ + bool get_can_download() const { + const Json::Value& storage = Storage("canDownload"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canDownload' attribute. + * + * Whether the current user can download files in this Team Drive. + * + * @param[in] value The new value. + */ + void set_can_download(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canDownload")); + } + + /** + * Determine if the 'canEdit' attribute was set. + * + * @return true if the 'canEdit' attribute was set. + */ + bool has_can_edit() const { + return Storage().isMember("canEdit"); + } + + /** + * Clears the 'canEdit' attribute. + */ + void clear_can_edit() { + MutableStorage()->removeMember("canEdit"); + } + + + /** + * Get the value of the 'canEdit' attribute. + */ + bool get_can_edit() const { + const Json::Value& storage = Storage("canEdit"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canEdit' attribute. + * + * Whether the current user can edit files in this Team Drive. + * + * @param[in] value The new value. + */ + void set_can_edit(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canEdit")); + } + + /** + * Determine if the 'canListChildren' attribute was set. + * + * @return true if the 'canListChildren' attribute was set. + */ + bool has_can_list_children() const { + return Storage().isMember("canListChildren"); + } + + /** + * Clears the 'canListChildren' attribute. + */ + void clear_can_list_children() { + MutableStorage()->removeMember("canListChildren"); + } + + + /** + * Get the value of the 'canListChildren' attribute. + */ + bool get_can_list_children() const { + const Json::Value& storage = Storage("canListChildren"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canListChildren' attribute. + * + * Whether the current user can list the children of folders in this Team + * Drive. + * + * @param[in] value The new value. + */ + void set_can_list_children(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canListChildren")); + } + + /** + * Determine if the 'canManageMembers' attribute was set. + * + * @return true if the 'canManageMembers' attribute was set. + */ + bool has_can_manage_members() const { + return Storage().isMember("canManageMembers"); + } + + /** + * Clears the 'canManageMembers' attribute. + */ + void clear_can_manage_members() { + MutableStorage()->removeMember("canManageMembers"); + } + + + /** + * Get the value of the 'canManageMembers' attribute. + */ + bool get_can_manage_members() const { + const Json::Value& storage = Storage("canManageMembers"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canManageMembers' attribute. + * + * Whether the current user can add members to this Team Drive or remove + * them or change their role. + * + * @param[in] value The new value. + */ + void set_can_manage_members(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canManageMembers")); + } + + /** + * Determine if the 'canReadRevisions' attribute was set. + * + * @return true if the 'canReadRevisions' attribute was set. + */ + bool has_can_read_revisions() const { + return Storage().isMember("canReadRevisions"); + } + + /** + * Clears the 'canReadRevisions' attribute. + */ + void clear_can_read_revisions() { + MutableStorage()->removeMember("canReadRevisions"); + } + + + /** + * Get the value of the 'canReadRevisions' attribute. + */ + bool get_can_read_revisions() const { + const Json::Value& storage = Storage("canReadRevisions"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canReadRevisions' attribute. + * + * Whether the current user can read the revisions resource of files in this + * Team Drive. + * + * @param[in] value The new value. + */ + void set_can_read_revisions(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canReadRevisions")); + } + + /** + * Determine if the 'canRemoveChildren' attribute was set. + * + * @return true if the 'canRemoveChildren' attribute was set. + */ + bool has_can_remove_children() const { + return Storage().isMember("canRemoveChildren"); + } + + /** + * Clears the 'canRemoveChildren' attribute. + */ + void clear_can_remove_children() { + MutableStorage()->removeMember("canRemoveChildren"); + } + + + /** + * Get the value of the 'canRemoveChildren' attribute. + */ + bool get_can_remove_children() const { + const Json::Value& storage = Storage("canRemoveChildren"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canRemoveChildren' attribute. + * + * Whether the current user can remove children from folders in this Team + * Drive. + * + * @param[in] value The new value. + */ + void set_can_remove_children(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canRemoveChildren")); + } + + /** + * Determine if the 'canRename' attribute was set. + * + * @return true if the 'canRename' attribute was set. + */ + bool has_can_rename() const { + return Storage().isMember("canRename"); + } + + /** + * Clears the 'canRename' attribute. + */ + void clear_can_rename() { + MutableStorage()->removeMember("canRename"); + } + + + /** + * Get the value of the 'canRename' attribute. + */ + bool get_can_rename() const { + const Json::Value& storage = Storage("canRename"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canRename' attribute. + * + * Whether the current user can rename files or folders in this Team Drive. + * + * @param[in] value The new value. + */ + void set_can_rename(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canRename")); + } + + /** + * Determine if the 'canRenameTeamDrive' attribute was set. + * + * @return true if the 'canRenameTeamDrive' attribute was set. + */ + bool has_can_rename_team_drive() const { + return Storage().isMember("canRenameTeamDrive"); + } + + /** + * Clears the 'canRenameTeamDrive' attribute. + */ + void clear_can_rename_team_drive() { + MutableStorage()->removeMember("canRenameTeamDrive"); + } + + + /** + * Get the value of the 'canRenameTeamDrive' attribute. + */ + bool get_can_rename_team_drive() const { + const Json::Value& storage = Storage("canRenameTeamDrive"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canRenameTeamDrive' attribute. + * + * Whether the current user can rename this Team Drive. + * + * @param[in] value The new value. + */ + void set_can_rename_team_drive(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canRenameTeamDrive")); + } + + /** + * Determine if the 'canShare' attribute was set. + * + * @return true if the 'canShare' attribute was set. + */ + bool has_can_share() const { + return Storage().isMember("canShare"); + } + + /** + * Clears the 'canShare' attribute. + */ + void clear_can_share() { + MutableStorage()->removeMember("canShare"); + } + + + /** + * Get the value of the 'canShare' attribute. + */ + bool get_can_share() const { + const Json::Value& storage = Storage("canShare"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'canShare' attribute. + * + * Whether the current user can share files or folders in this Team Drive. + * + * @param[in] value The new value. + */ + void set_can_share(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("canShare")); + } + + private: + void operator=(const TeamDriveCapabilities&); + }; // TeamDriveCapabilities + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static TeamDrive* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit TeamDrive(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit TeamDrive(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~TeamDrive(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_drive_api::TeamDrive + */ + const StringPiece GetTypeName() const { + return StringPiece("google_drive_api::TeamDrive"); + } + + /** + * Determine if the 'backgroundImageFile' attribute was set. + * + * @return true if the 'backgroundImageFile' attribute was set. + */ + bool has_background_image_file() const { + return Storage().isMember("backgroundImageFile"); + } + + /** + * Clears the 'backgroundImageFile' attribute. + */ + void clear_background_image_file() { + MutableStorage()->removeMember("backgroundImageFile"); + } + + + /** + * Get a reference to the value of the 'backgroundImageFile' + * attribute. + */ + const TeamDriveBackgroundImageFile get_background_image_file() const { + const Json::Value& storage = Storage("backgroundImageFile"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Gets a reference to a mutable value of the + * 'backgroundImageFile' property. + * + * An image file and cropping parameters from which a background image for + * this Team Drive is set. This is a write only field; it can only be set on + * drive.teamdrives.update requests that don't set themeId. When specified, + * all fields of the backgroundImageFile must be set. + * + * @return The result can be modified to change the attribute value. + */ + TeamDriveBackgroundImageFile mutable_backgroundImageFile() { + Json::Value* storage = MutableStorage("backgroundImageFile"); + return client::JsonValueToMutableCppValueHelper(storage); + } + + /** + * Determine if the 'backgroundImageLink' attribute was set. + * + * @return true if the 'backgroundImageLink' attribute was set. + */ + bool has_background_image_link() const { + return Storage().isMember("backgroundImageLink"); + } + + /** + * Clears the 'backgroundImageLink' attribute. + */ + void clear_background_image_link() { + MutableStorage()->removeMember("backgroundImageLink"); + } + + + /** + * Get the value of the 'backgroundImageLink' attribute. + */ + const StringPiece get_background_image_link() const { + const Json::Value& v = Storage("backgroundImageLink"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'backgroundImageLink' attribute. + * + * A short-lived link to this Team Drive's background image. + * + * @param[in] value The new value. + */ + void set_background_image_link(const StringPiece& value) { + *MutableStorage("backgroundImageLink") = value.data(); + } + + /** + * Determine if the 'capabilities' attribute was set. + * + * @return true if the 'capabilities' attribute was set. + */ + bool has_capabilities() const { + return Storage().isMember("capabilities"); + } + + /** + * Clears the 'capabilities' attribute. + */ + void clear_capabilities() { + MutableStorage()->removeMember("capabilities"); + } + + + /** + * Get a reference to the value of the 'capabilities' attribute. + */ + const TeamDriveCapabilities get_capabilities() const { + const Json::Value& storage = Storage("capabilities"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Gets a reference to a mutable value of the 'capabilities' + * property. + * + * Capabilities the current user has on this Team Drive. + * + * @return The result can be modified to change the attribute value. + */ + TeamDriveCapabilities mutable_capabilities() { + Json::Value* storage = MutableStorage("capabilities"); + return client::JsonValueToMutableCppValueHelper(storage); + } + + /** + * Determine if the 'colorRgb' attribute was set. + * + * @return true if the 'colorRgb' attribute was set. + */ + bool has_color_rgb() const { + return Storage().isMember("colorRgb"); + } + + /** + * Clears the 'colorRgb' attribute. + */ + void clear_color_rgb() { + MutableStorage()->removeMember("colorRgb"); + } + + + /** + * Get the value of the 'colorRgb' attribute. + */ + const StringPiece get_color_rgb() const { + const Json::Value& v = Storage("colorRgb"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'colorRgb' attribute. + * + * The color of this Team Drive as an RGB hex string. It can only be set on a + * drive.teamdrives.update request that does not set themeId. + * + * @param[in] value The new value. + */ + void set_color_rgb(const StringPiece& value) { + *MutableStorage("colorRgb") = value.data(); + } + + /** + * Determine if the 'id' attribute was set. + * + * @return true if the 'id' attribute was set. + */ + bool has_id() const { + return Storage().isMember("id"); + } + + /** + * Clears the 'id' attribute. + */ + void clear_id() { + MutableStorage()->removeMember("id"); + } + + + /** + * Get the value of the 'id' attribute. + */ + const StringPiece get_id() const { + const Json::Value& v = Storage("id"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'id' attribute. + * + * The ID of this Team Drive which is also the ID of the top level folder for + * this Team Drive. + * + * @param[in] value The new value. + */ + void set_id(const StringPiece& value) { + *MutableStorage("id") = value.data(); + } + + /** + * Determine if the 'kind' attribute was set. + * + * @return true if the 'kind' attribute was set. + */ + bool has_kind() const { + return Storage().isMember("kind"); + } + + /** + * Clears the 'kind' attribute. + */ + void clear_kind() { + MutableStorage()->removeMember("kind"); + } + + + /** + * Get the value of the 'kind' attribute. + */ + const StringPiece get_kind() const { + const Json::Value& v = Storage("kind"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'kind' attribute. + * + * This is always drive#teamDrive. + * + * @param[in] value The new value. + */ + void set_kind(const StringPiece& value) { + *MutableStorage("kind") = value.data(); + } + + /** + * Determine if the 'name' attribute was set. + * + * @return true if the 'name' attribute was set. + */ + bool has_name() const { + return Storage().isMember("name"); + } + + /** + * Clears the 'name' attribute. + */ + void clear_name() { + MutableStorage()->removeMember("name"); + } + + + /** + * Get the value of the 'name' attribute. + */ + const StringPiece get_name() const { + const Json::Value& v = Storage("name"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'name' attribute. + * + * The name of this Team Drive. + * + * @param[in] value The new value. + */ + void set_name(const StringPiece& value) { + *MutableStorage("name") = value.data(); + } + + /** + * Determine if the 'themeId' attribute was set. + * + * @return true if the 'themeId' attribute was set. + */ + bool has_theme_id() const { + return Storage().isMember("themeId"); + } + + /** + * Clears the 'themeId' attribute. + */ + void clear_theme_id() { + MutableStorage()->removeMember("themeId"); + } + + + /** + * Get the value of the 'themeId' attribute. + */ + const StringPiece get_theme_id() const { + const Json::Value& v = Storage("themeId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'themeId' attribute. + * + * The ID of the theme from which the background image and color will be set. + * The set of possible teamDriveThemes can be retrieved from a drive.about.get + * response. When not specified on a drive.teamdrives.insert request, a random + * theme is chosen from which the background image and color are set. This is + * a write-only field; it can only be set on requests that don't set colorRgb + * or backgroundImageFile. + * + * @param[in] value The new value. + */ + void set_theme_id(const StringPiece& value) { + *MutableStorage("themeId") = value.data(); + } + + private: + void operator=(const TeamDrive&); +}; // TeamDrive +} // namespace google_drive_api +#endif // GOOGLE_DRIVE_API_TEAM_DRIVE_H_ diff --git a/service_apis/drive/google/drive_api/team_drive_list.cc b/service_apis/drive/google/drive_api/team_drive_list.cc new file mode 100644 index 0000000..3e93927 --- /dev/null +++ b/service_apis/drive/google/drive_api/team_drive_list.cc @@ -0,0 +1,71 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// Drive API (drive/v2) +// Description: +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. +// Classes: +// TeamDriveList +// Documentation: +// https://developers.google.com/drive/ + +#include "google/drive_api/team_drive_list.h" +#include +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/drive_api/team_drive.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_drive_api { +using namespace googleapis; + + +// Object factory method (static). +TeamDriveList* TeamDriveList::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +TeamDriveList::TeamDriveList(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +TeamDriveList::TeamDriveList(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +TeamDriveList::~TeamDriveList() { +} + +// Properties. + +const client::JsonCppArray TeamDriveList::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray TeamDriveList::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} +} // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/team_drive_list.h b/service_apis/drive/google/drive_api/team_drive_list.h new file mode 100644 index 0000000..dc36c11 --- /dev/null +++ b/service_apis/drive/google/drive_api/team_drive_list.h @@ -0,0 +1,193 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// Drive API (drive/v2) +// Generated from: +// Version: v2 +// Revision: 20170512 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_DRIVE_API_TEAM_DRIVE_LIST_H_ +#define GOOGLE_DRIVE_API_TEAM_DRIVE_LIST_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/drive_api/team_drive.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_drive_api { +using namespace googleapis; + +/** + * A list of Team Drives. + * + * @ingroup DataObject + */ +class TeamDriveList : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static TeamDriveList* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit TeamDriveList(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit TeamDriveList(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~TeamDriveList(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_drive_api::TeamDriveList + */ + const StringPiece GetTypeName() const { + return StringPiece("google_drive_api::TeamDriveList"); + } + + /** + * Determine if the 'items' attribute was set. + * + * @return true if the 'items' attribute was set. + */ + bool has_items() const { + return Storage().isMember("items"); + } + + /** + * Clears the 'items' attribute. + */ + void clear_items() { + MutableStorage()->removeMember("items"); + } + + + /** + * Get a reference to the value of the 'items' attribute. + */ + const client::JsonCppArray get_items() const; + + /** + * Gets a reference to a mutable value of the 'items' property. + * + * The list of Team Drives. + * + * @return The result can be modified to change the attribute value. + */ + client::JsonCppArray mutable_items(); + + /** + * Determine if the 'kind' attribute was set. + * + * @return true if the 'kind' attribute was set. + */ + bool has_kind() const { + return Storage().isMember("kind"); + } + + /** + * Clears the 'kind' attribute. + */ + void clear_kind() { + MutableStorage()->removeMember("kind"); + } + + + /** + * Get the value of the 'kind' attribute. + */ + const StringPiece get_kind() const { + const Json::Value& v = Storage("kind"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'kind' attribute. + * + * This is always drive#teamDriveList. + * + * @param[in] value The new value. + */ + void set_kind(const StringPiece& value) { + *MutableStorage("kind") = value.data(); + } + + /** + * Determine if the 'nextPageToken' attribute was set. + * + * @return true if the 'nextPageToken' attribute was set. + */ + bool has_next_page_token() const { + return Storage().isMember("nextPageToken"); + } + + /** + * Clears the 'nextPageToken' attribute. + */ + void clear_next_page_token() { + MutableStorage()->removeMember("nextPageToken"); + } + + + /** + * Get the value of the 'nextPageToken' attribute. + */ + const StringPiece get_next_page_token() const { + const Json::Value& v = Storage("nextPageToken"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'nextPageToken' attribute. + * + * The page token for the next page of Team Drives. + * + * @param[in] value The new value. + */ + void set_next_page_token(const StringPiece& value) { + *MutableStorage("nextPageToken") = value.data(); + } + + private: + void operator=(const TeamDriveList&); +}; // TeamDriveList +} // namespace google_drive_api +#endif // GOOGLE_DRIVE_API_TEAM_DRIVE_LIST_H_ diff --git a/service_apis/drive/google/drive_api/user.cc b/service_apis/drive/google/drive_api/user.cc index 02b8787..b2f6752 100644 --- a/service_apis/drive/google/drive_api/user.cc +++ b/service_apis/drive/google/drive_api/user.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: -// The API to interact with Drive. +// Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. // Classes: // User // Documentation: @@ -58,6 +55,8 @@ User::UserPicture::UserPicture(Json::Value* storage) // Standard destructor. User::UserPicture::~UserPicture() { } + +// Properties. // Object factory method (static). User* User::New() { return new client::JsonCppCapsule; @@ -76,4 +75,6 @@ User::User(Json::Value* storage) // Standard destructor. User::~User() { } + +// Properties. } // namespace google_drive_api diff --git a/service_apis/drive/google/drive_api/user.h b/service_apis/drive/google/drive_api/user.h index 28f3f2d..3f2817b 100644 --- a/service_apis/drive/google/drive_api/user.h +++ b/service_apis/drive/google/drive_api/user.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // Drive API (drive/v2) // Generated from: // Version: v2 +// Revision: 20170512 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_DRIVE_API_USER_H_ #define GOOGLE_DRIVE_API_USER_H_ diff --git a/service_apis/youtube/descriptor.json b/service_apis/youtube/descriptor.json deleted file mode 100644 index 2efa8d7..0000000 --- a/service_apis/youtube/descriptor.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "discoveryLink": "./apis/youtube/v3/rest", - "kind": "discovery#directoryItem", - "description": "Programmatic access to YouTube features.", - "title": "YouTube Data API", - "discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest", - "preferred": true, - "version": "v3", - "icons": { - "x32": "https://www.google.com/images/icons/product/youtube-32.png", - "x16": "https://www.google.com/images/icons/product/youtube-16.png" - }, - "documentationLink": "https://developers.google.com/youtube/v3", - "id": "youtube:v3", - "name": "youtube", - "packagePath": null, - "canonicalName": "YouTube", - "files": [ - { - "downloadUrl": "/downloads/youtube/v3/158/cpp/0.1.3/google-youtube-v3-rev158-cpp-0.1.3-doc.zip", - "path": "google-youtube-v3-rev158-cpp-0.1.3-doc.zip", - "type": "documentation", - "timestamp": "2016-01-07 03:26" - }, - { - "downloadUrl": "/downloads/youtube/v3/158/cpp/0.1.3/google-youtube-v3-rev158-cpp-0.1.3-src.zip", - "path": "", - "type": "source", - "timestamp": "2016-01-08 00:11" - } - ], - "revision": 158, - "language": "cpp", - "language_version": "0.1.3" -} \ No newline at end of file diff --git a/service_apis/youtube/google/youtube_api/CMakeLists.txt b/service_apis/youtube/google/youtube_api/CMakeLists.txt index 2da764d..fee8bb4 100644 --- a/service_apis/youtube/google/youtube_api/CMakeLists.txt +++ b/service_apis/youtube/google/youtube_api/CMakeLists.txt @@ -38,7 +38,6 @@ add_library(google_youtube_api STATIC channel_content_owner_details.cc channel_conversion_ping.cc channel_conversion_pings.cc - channel_id.cc channel_list_response.cc channel_localization.cc channel_profile_details.cc @@ -95,12 +94,21 @@ add_library(google_youtube_api STATIC live_chat_fan_funding_event_details.cc live_chat_message.cc live_chat_message_author_details.cc + live_chat_message_deleted_details.cc live_chat_message_list_response.cc + live_chat_message_retracted_details.cc live_chat_message_snippet.cc live_chat_moderator.cc live_chat_moderator_list_response.cc live_chat_moderator_snippet.cc + live_chat_poll_closed_details.cc + live_chat_poll_edited_details.cc + live_chat_poll_item.cc + live_chat_poll_opened_details.cc + live_chat_poll_voted_details.cc + live_chat_super_chat_details.cc live_chat_text_message_details.cc + live_chat_user_banned_message_details.cc live_stream.cc live_stream_configuration_issue.cc live_stream_content_details.cc @@ -139,6 +147,9 @@ add_library(google_youtube_api STATIC subscription_list_response.cc subscription_snippet.cc subscription_subscriber_snippet.cc + super_chat_event.cc + super_chat_event_list_response.cc + super_chat_event_snippet.cc thumbnail.cc thumbnail_details.cc thumbnail_set_response.cc @@ -155,8 +166,6 @@ add_library(google_youtube_api STATIC video_category_snippet.cc video_content_details.cc video_content_details_region_restriction.cc - video_conversion_ping.cc - video_conversion_pings.cc video_file_details.cc video_file_details_audio_stream.cc video_file_details_video_stream.cc diff --git a/service_apis/youtube/google/youtube_api/access_policy.cc b/service_apis/youtube/google/youtube_api/access_policy.cc index 8457173..b51ce1f 100644 --- a/service_apis/youtube/google/youtube_api/access_policy.cc +++ b/service_apis/youtube/google/youtube_api/access_policy.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // AccessPolicy // Documentation: @@ -57,4 +54,6 @@ AccessPolicy::AccessPolicy(Json::Value* storage) // Standard destructor. AccessPolicy::~AccessPolicy() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/access_policy.h b/service_apis/youtube/google/youtube_api/access_policy.h index 993eea9..3322070 100644 --- a/service_apis/youtube/google/youtube_api/access_policy.h +++ b/service_apis/youtube/google/youtube_api/access_policy.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACCESS_POLICY_H_ #define GOOGLE_YOUTUBE_API_ACCESS_POLICY_H_ diff --git a/service_apis/youtube/google/youtube_api/activity.cc b/service_apis/youtube/google/youtube_api/activity.cc index d13e313..5daa80a 100644 --- a/service_apis/youtube/google/youtube_api/activity.cc +++ b/service_apis/youtube/google/youtube_api/activity.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // Activity // Documentation: @@ -60,4 +57,26 @@ Activity::Activity(Json::Value* storage) // Standard destructor. Activity::~Activity() { } + +// Properties. + +const ActivityContentDetails Activity::get_content_details() const { + const Json::Value& storage = Storage("contentDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetails Activity::mutable_contentDetails() { + Json::Value* storage = MutableStorage("contentDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivitySnippet Activity::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivitySnippet Activity::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity.h b/service_apis/youtube/google/youtube_api/activity.h index 8831a94..0b921e3 100644 --- a/service_apis/youtube/google/youtube_api/activity.h +++ b/service_apis/youtube/google/youtube_api/activity.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details.cc b/service_apis/youtube/google/youtube_api/activity_content_details.cc index 6a6591d..da869ac 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetails // Documentation: @@ -68,4 +65,116 @@ ActivityContentDetails::ActivityContentDetails(Json::Value* storage) // Standard destructor. ActivityContentDetails::~ActivityContentDetails() { } + +// Properties. + +const ActivityContentDetailsBulletin ActivityContentDetails::get_bulletin() const { + const Json::Value& storage = Storage("bulletin"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsBulletin ActivityContentDetails::mutable_bulletin() { + Json::Value* storage = MutableStorage("bulletin"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsChannelItem ActivityContentDetails::get_channel_item() const { + const Json::Value& storage = Storage("channelItem"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsChannelItem ActivityContentDetails::mutable_channelItem() { + Json::Value* storage = MutableStorage("channelItem"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsComment ActivityContentDetails::get_comment() const { + const Json::Value& storage = Storage("comment"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsComment ActivityContentDetails::mutable_comment() { + Json::Value* storage = MutableStorage("comment"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsFavorite ActivityContentDetails::get_favorite() const { + const Json::Value& storage = Storage("favorite"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsFavorite ActivityContentDetails::mutable_favorite() { + Json::Value* storage = MutableStorage("favorite"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsLike ActivityContentDetails::get_like() const { + const Json::Value& storage = Storage("like"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsLike ActivityContentDetails::mutable_like() { + Json::Value* storage = MutableStorage("like"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsPlaylistItem ActivityContentDetails::get_playlist_item() const { + const Json::Value& storage = Storage("playlistItem"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsPlaylistItem ActivityContentDetails::mutable_playlistItem() { + Json::Value* storage = MutableStorage("playlistItem"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsPromotedItem ActivityContentDetails::get_promoted_item() const { + const Json::Value& storage = Storage("promotedItem"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsPromotedItem ActivityContentDetails::mutable_promotedItem() { + Json::Value* storage = MutableStorage("promotedItem"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsRecommendation ActivityContentDetails::get_recommendation() const { + const Json::Value& storage = Storage("recommendation"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsRecommendation ActivityContentDetails::mutable_recommendation() { + Json::Value* storage = MutableStorage("recommendation"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsSocial ActivityContentDetails::get_social() const { + const Json::Value& storage = Storage("social"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsSocial ActivityContentDetails::mutable_social() { + Json::Value* storage = MutableStorage("social"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsSubscription ActivityContentDetails::get_subscription() const { + const Json::Value& storage = Storage("subscription"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsSubscription ActivityContentDetails::mutable_subscription() { + Json::Value* storage = MutableStorage("subscription"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ActivityContentDetailsUpload ActivityContentDetails::get_upload() const { + const Json::Value& storage = Storage("upload"); + return client::JsonValueToCppValueHelper(storage); +} + +ActivityContentDetailsUpload ActivityContentDetails::mutable_upload() { + Json::Value* storage = MutableStorage("upload"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details.h b/service_apis/youtube/google/youtube_api/activity_content_details.h index 79c49a4..61e3cba 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_bulletin.cc b/service_apis/youtube/google/youtube_api/activity_content_details_bulletin.cc index 84ddbb2..5b7efb0 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_bulletin.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_bulletin.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsBulletin // Documentation: @@ -58,4 +55,16 @@ ActivityContentDetailsBulletin::ActivityContentDetailsBulletin(Json::Value* stor // Standard destructor. ActivityContentDetailsBulletin::~ActivityContentDetailsBulletin() { } + +// Properties. + +const ResourceId ActivityContentDetailsBulletin::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsBulletin::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_bulletin.h b/service_apis/youtube/google/youtube_api/activity_content_details_bulletin.h index 5902cd5..cbe6c86 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_bulletin.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_bulletin.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_BULLETIN_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_BULLETIN_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_channel_item.cc b/service_apis/youtube/google/youtube_api/activity_content_details_channel_item.cc index e0d5768..61ee7ae 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_channel_item.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_channel_item.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsChannelItem // Documentation: @@ -58,4 +55,16 @@ ActivityContentDetailsChannelItem::ActivityContentDetailsChannelItem(Json::Value // Standard destructor. ActivityContentDetailsChannelItem::~ActivityContentDetailsChannelItem() { } + +// Properties. + +const ResourceId ActivityContentDetailsChannelItem::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsChannelItem::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_channel_item.h b/service_apis/youtube/google/youtube_api/activity_content_details_channel_item.h index 471f9de..c84b3dc 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_channel_item.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_channel_item.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_CHANNEL_ITEM_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_CHANNEL_ITEM_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_comment.cc b/service_apis/youtube/google/youtube_api/activity_content_details_comment.cc index 676cdf0..13b5754 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_comment.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_comment.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsComment // Documentation: @@ -58,4 +55,16 @@ ActivityContentDetailsComment::ActivityContentDetailsComment(Json::Value* storag // Standard destructor. ActivityContentDetailsComment::~ActivityContentDetailsComment() { } + +// Properties. + +const ResourceId ActivityContentDetailsComment::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsComment::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_comment.h b/service_apis/youtube/google/youtube_api/activity_content_details_comment.h index 05458e5..5129422 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_comment.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_comment.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_COMMENT_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_COMMENT_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_favorite.cc b/service_apis/youtube/google/youtube_api/activity_content_details_favorite.cc index bd938c2..fa43809 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_favorite.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_favorite.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsFavorite // Documentation: @@ -58,4 +55,16 @@ ActivityContentDetailsFavorite::ActivityContentDetailsFavorite(Json::Value* stor // Standard destructor. ActivityContentDetailsFavorite::~ActivityContentDetailsFavorite() { } + +// Properties. + +const ResourceId ActivityContentDetailsFavorite::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsFavorite::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_favorite.h b/service_apis/youtube/google/youtube_api/activity_content_details_favorite.h index 55b2604..e992ff6 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_favorite.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_favorite.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_FAVORITE_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_FAVORITE_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_like.cc b/service_apis/youtube/google/youtube_api/activity_content_details_like.cc index d330aaa..034c64b 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_like.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_like.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsLike // Documentation: @@ -58,4 +55,16 @@ ActivityContentDetailsLike::ActivityContentDetailsLike(Json::Value* storage) // Standard destructor. ActivityContentDetailsLike::~ActivityContentDetailsLike() { } + +// Properties. + +const ResourceId ActivityContentDetailsLike::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsLike::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_like.h b/service_apis/youtube/google/youtube_api/activity_content_details_like.h index fb2ba2d..9ffda11 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_like.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_like.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_LIKE_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_LIKE_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_playlist_item.cc b/service_apis/youtube/google/youtube_api/activity_content_details_playlist_item.cc index 6c7310a..a3627ff 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_playlist_item.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_playlist_item.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsPlaylistItem // Documentation: @@ -59,4 +56,16 @@ ActivityContentDetailsPlaylistItem::ActivityContentDetailsPlaylistItem(Json::Val // Standard destructor. ActivityContentDetailsPlaylistItem::~ActivityContentDetailsPlaylistItem() { } + +// Properties. + +const ResourceId ActivityContentDetailsPlaylistItem::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsPlaylistItem::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_playlist_item.h b/service_apis/youtube/google/youtube_api/activity_content_details_playlist_item.h index 7b65d88..be9c80e 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_playlist_item.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_playlist_item.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_PLAYLIST_ITEM_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_PLAYLIST_ITEM_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_promoted_item.cc b/service_apis/youtube/google/youtube_api/activity_content_details_promoted_item.cc index 9e229aa..0750777 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_promoted_item.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_promoted_item.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsPromotedItem // Documentation: @@ -57,4 +54,6 @@ ActivityContentDetailsPromotedItem::ActivityContentDetailsPromotedItem(Json::Val // Standard destructor. ActivityContentDetailsPromotedItem::~ActivityContentDetailsPromotedItem() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_promoted_item.h b/service_apis/youtube/google/youtube_api/activity_content_details_promoted_item.h index 90065b9..c145065 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_promoted_item.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_promoted_item.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_PROMOTED_ITEM_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_PROMOTED_ITEM_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_recommendation.cc b/service_apis/youtube/google/youtube_api/activity_content_details_recommendation.cc index 67a1448..104417e 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_recommendation.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_recommendation.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsRecommendation // Documentation: @@ -59,4 +56,26 @@ ActivityContentDetailsRecommendation::ActivityContentDetailsRecommendation(Json: // Standard destructor. ActivityContentDetailsRecommendation::~ActivityContentDetailsRecommendation() { } + +// Properties. + +const ResourceId ActivityContentDetailsRecommendation::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsRecommendation::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ResourceId ActivityContentDetailsRecommendation::get_seed_resource_id() const { + const Json::Value& storage = Storage("seedResourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsRecommendation::mutable_seedResourceId() { + Json::Value* storage = MutableStorage("seedResourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_recommendation.h b/service_apis/youtube/google/youtube_api/activity_content_details_recommendation.h index 7219a5a..9eefece 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_recommendation.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_recommendation.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_RECOMMENDATION_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_RECOMMENDATION_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_social.cc b/service_apis/youtube/google/youtube_api/activity_content_details_social.cc index 0593176..5d59912 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_social.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_social.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsSocial // Documentation: @@ -59,4 +56,16 @@ ActivityContentDetailsSocial::ActivityContentDetailsSocial(Json::Value* storage) // Standard destructor. ActivityContentDetailsSocial::~ActivityContentDetailsSocial() { } + +// Properties. + +const ResourceId ActivityContentDetailsSocial::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsSocial::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_social.h b/service_apis/youtube/google/youtube_api/activity_content_details_social.h index f2f9422..978d205b 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_social.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_social.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_SOCIAL_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_SOCIAL_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_subscription.cc b/service_apis/youtube/google/youtube_api/activity_content_details_subscription.cc index 5b2ac29..7a52560 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_subscription.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_subscription.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsSubscription // Documentation: @@ -58,4 +55,16 @@ ActivityContentDetailsSubscription::ActivityContentDetailsSubscription(Json::Val // Standard destructor. ActivityContentDetailsSubscription::~ActivityContentDetailsSubscription() { } + +// Properties. + +const ResourceId ActivityContentDetailsSubscription::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId ActivityContentDetailsSubscription::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_subscription.h b/service_apis/youtube/google/youtube_api/activity_content_details_subscription.h index 8d08f78..d13e061 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_subscription.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_subscription.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_SUBSCRIPTION_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_SUBSCRIPTION_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_upload.cc b/service_apis/youtube/google/youtube_api/activity_content_details_upload.cc index a82e900..c0e9ebb 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_upload.cc +++ b/service_apis/youtube/google/youtube_api/activity_content_details_upload.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityContentDetailsUpload // Documentation: @@ -57,4 +54,6 @@ ActivityContentDetailsUpload::ActivityContentDetailsUpload(Json::Value* storage) // Standard destructor. ActivityContentDetailsUpload::~ActivityContentDetailsUpload() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_content_details_upload.h b/service_apis/youtube/google/youtube_api/activity_content_details_upload.h index 8cffbc3..0ab7753 100644 --- a/service_apis/youtube/google/youtube_api/activity_content_details_upload.h +++ b/service_apis/youtube/google/youtube_api/activity_content_details_upload.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_UPLOAD_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_UPLOAD_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_list_response.cc b/service_apis/youtube/google/youtube_api/activity_list_response.cc index 5337ae9..c0c0ea5 100644 --- a/service_apis/youtube/google/youtube_api/activity_list_response.cc +++ b/service_apis/youtube/google/youtube_api/activity_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivityListResponse // Documentation: @@ -61,4 +58,36 @@ ActivityListResponse::ActivityListResponse(Json::Value* storage) // Standard destructor. ActivityListResponse::~ActivityListResponse() { } + +// Properties. + +const client::JsonCppArray ActivityListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray ActivityListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo ActivityListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo ActivityListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination ActivityListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination ActivityListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_list_response.h b/service_apis/youtube/google/youtube_api/activity_list_response.h index e28e40d..4c18e87 100644 --- a/service_apis/youtube/google/youtube_api/activity_list_response.h +++ b/service_apis/youtube/google/youtube_api/activity_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/activity_snippet.cc b/service_apis/youtube/google/youtube_api/activity_snippet.cc index 71b0162..09cc4a2 100644 --- a/service_apis/youtube/google/youtube_api/activity_snippet.cc +++ b/service_apis/youtube/google/youtube_api/activity_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ActivitySnippet // Documentation: @@ -60,4 +57,16 @@ ActivitySnippet::ActivitySnippet(Json::Value* storage) // Standard destructor. ActivitySnippet::~ActivitySnippet() { } + +// Properties. + +const ThumbnailDetails ActivitySnippet::get_thumbnails() const { + const Json::Value& storage = Storage("thumbnails"); + return client::JsonValueToCppValueHelper(storage); +} + +ThumbnailDetails ActivitySnippet::mutable_thumbnails() { + Json::Value* storage = MutableStorage("thumbnails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/activity_snippet.h b/service_apis/youtube/google/youtube_api/activity_snippet.h index c82242b..a771ded 100644 --- a/service_apis/youtube/google/youtube_api/activity_snippet.h +++ b/service_apis/youtube/google/youtube_api/activity_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_ACTIVITY_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/caption.cc b/service_apis/youtube/google/youtube_api/caption.cc index 8993815..d314131 100644 --- a/service_apis/youtube/google/youtube_api/caption.cc +++ b/service_apis/youtube/google/youtube_api/caption.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // Caption // Documentation: @@ -59,4 +56,16 @@ Caption::Caption(Json::Value* storage) // Standard destructor. Caption::~Caption() { } + +// Properties. + +const CaptionSnippet Caption::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +CaptionSnippet Caption::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/caption.h b/service_apis/youtube/google/youtube_api/caption.h index ad812b8..909fbce 100644 --- a/service_apis/youtube/google/youtube_api/caption.h +++ b/service_apis/youtube/google/youtube_api/caption.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CAPTION_H_ #define GOOGLE_YOUTUBE_API_CAPTION_H_ diff --git a/service_apis/youtube/google/youtube_api/caption_list_response.cc b/service_apis/youtube/google/youtube_api/caption_list_response.cc index 9c039c6..b487b7e 100644 --- a/service_apis/youtube/google/youtube_api/caption_list_response.cc +++ b/service_apis/youtube/google/youtube_api/caption_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // CaptionListResponse // Documentation: @@ -59,4 +56,16 @@ CaptionListResponse::CaptionListResponse(Json::Value* storage) // Standard destructor. CaptionListResponse::~CaptionListResponse() { } + +// Properties. + +const client::JsonCppArray CaptionListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray CaptionListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/caption_list_response.h b/service_apis/youtube/google/youtube_api/caption_list_response.h index e3cc610..4ba1625 100644 --- a/service_apis/youtube/google/youtube_api/caption_list_response.h +++ b/service_apis/youtube/google/youtube_api/caption_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CAPTION_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_CAPTION_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/caption_snippet.cc b/service_apis/youtube/google/youtube_api/caption_snippet.cc index ed24d3a..d2554f0 100644 --- a/service_apis/youtube/google/youtube_api/caption_snippet.cc +++ b/service_apis/youtube/google/youtube_api/caption_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // CaptionSnippet // Documentation: @@ -58,4 +55,6 @@ CaptionSnippet::CaptionSnippet(Json::Value* storage) // Standard destructor. CaptionSnippet::~CaptionSnippet() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/caption_snippet.h b/service_apis/youtube/google/youtube_api/caption_snippet.h index fcb2c90..d43405f 100644 --- a/service_apis/youtube/google/youtube_api/caption_snippet.h +++ b/service_apis/youtube/google/youtube_api/caption_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CAPTION_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_CAPTION_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/cdn_settings.cc b/service_apis/youtube/google/youtube_api/cdn_settings.cc index b7195bc..378b8a1 100644 --- a/service_apis/youtube/google/youtube_api/cdn_settings.cc +++ b/service_apis/youtube/google/youtube_api/cdn_settings.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // CdnSettings // Documentation: @@ -59,4 +56,16 @@ CdnSettings::CdnSettings(Json::Value* storage) // Standard destructor. CdnSettings::~CdnSettings() { } + +// Properties. + +const IngestionInfo CdnSettings::get_ingestion_info() const { + const Json::Value& storage = Storage("ingestionInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +IngestionInfo CdnSettings::mutable_ingestionInfo() { + Json::Value* storage = MutableStorage("ingestionInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/cdn_settings.h b/service_apis/youtube/google/youtube_api/cdn_settings.h index f802e94..01e4f32 100644 --- a/service_apis/youtube/google/youtube_api/cdn_settings.h +++ b/service_apis/youtube/google/youtube_api/cdn_settings.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CDN_SETTINGS_H_ #define GOOGLE_YOUTUBE_API_CDN_SETTINGS_H_ @@ -120,6 +118,43 @@ class CdnSettings : public client::JsonCppData { *MutableStorage("format") = value.data(); } + /** + * Determine if the 'frameRate' attribute was set. + * + * @return true if the 'frameRate' attribute was set. + */ + bool has_frame_rate() const { + return Storage().isMember("frameRate"); + } + + /** + * Clears the 'frameRate' attribute. + */ + void clear_frame_rate() { + MutableStorage()->removeMember("frameRate"); + } + + + /** + * Get the value of the 'frameRate' attribute. + */ + const StringPiece get_frame_rate() const { + const Json::Value& v = Storage("frameRate"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'frameRate' attribute. + * + * The frame rate of the inbound video data. + * + * @param[in] value The new value. + */ + void set_frame_rate(const StringPiece& value) { + *MutableStorage("frameRate") = value.data(); + } + /** * Determine if the 'ingestionInfo' attribute was set. * @@ -190,6 +225,43 @@ class CdnSettings : public client::JsonCppData { *MutableStorage("ingestionType") = value.data(); } + /** + * Determine if the 'resolution' attribute was set. + * + * @return true if the 'resolution' attribute was set. + */ + bool has_resolution() const { + return Storage().isMember("resolution"); + } + + /** + * Clears the 'resolution' attribute. + */ + void clear_resolution() { + MutableStorage()->removeMember("resolution"); + } + + + /** + * Get the value of the 'resolution' attribute. + */ + const StringPiece get_resolution() const { + const Json::Value& v = Storage("resolution"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'resolution' attribute. + * + * The resolution of the inbound video data. + * + * @param[in] value The new value. + */ + void set_resolution(const StringPiece& value) { + *MutableStorage("resolution") = value.data(); + } + private: void operator=(const CdnSettings&); }; // CdnSettings diff --git a/service_apis/youtube/google/youtube_api/channel.cc b/service_apis/youtube/google/youtube_api/channel.cc index 2433c5c..317b7b2 100644 --- a/service_apis/youtube/google/youtube_api/channel.cc +++ b/service_apis/youtube/google/youtube_api/channel.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // Channel // Documentation: @@ -69,4 +66,116 @@ Channel::Channel(Json::Value* storage) // Standard destructor. Channel::~Channel() { } + +// Properties. + +const ChannelAuditDetails Channel::get_audit_details() const { + const Json::Value& storage = Storage("auditDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelAuditDetails Channel::mutable_auditDetails() { + Json::Value* storage = MutableStorage("auditDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ChannelBrandingSettings Channel::get_branding_settings() const { + const Json::Value& storage = Storage("brandingSettings"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelBrandingSettings Channel::mutable_brandingSettings() { + Json::Value* storage = MutableStorage("brandingSettings"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ChannelContentDetails Channel::get_content_details() const { + const Json::Value& storage = Storage("contentDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelContentDetails Channel::mutable_contentDetails() { + Json::Value* storage = MutableStorage("contentDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ChannelContentOwnerDetails Channel::get_content_owner_details() const { + const Json::Value& storage = Storage("contentOwnerDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelContentOwnerDetails Channel::mutable_contentOwnerDetails() { + Json::Value* storage = MutableStorage("contentOwnerDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ChannelConversionPings Channel::get_conversion_pings() const { + const Json::Value& storage = Storage("conversionPings"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelConversionPings Channel::mutable_conversionPings() { + Json::Value* storage = MutableStorage("conversionPings"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const InvideoPromotion Channel::get_invideo_promotion() const { + const Json::Value& storage = Storage("invideoPromotion"); + return client::JsonValueToCppValueHelper(storage); +} + +InvideoPromotion Channel::mutable_invideoPromotion() { + Json::Value* storage = MutableStorage("invideoPromotion"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const client::JsonCppAssociativeArray Channel::get_localizations() const { + const Json::Value& storage = Storage("localizations"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppAssociativeArray Channel::mutable_localizations() { + Json::Value* storage = MutableStorage("localizations"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const ChannelSnippet Channel::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelSnippet Channel::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ChannelStatistics Channel::get_statistics() const { + const Json::Value& storage = Storage("statistics"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelStatistics Channel::mutable_statistics() { + Json::Value* storage = MutableStorage("statistics"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ChannelStatus Channel::get_status() const { + const Json::Value& storage = Storage("status"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelStatus Channel::mutable_status() { + Json::Value* storage = MutableStorage("status"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ChannelTopicDetails Channel::get_topic_details() const { + const Json::Value& storage = Storage("topicDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelTopicDetails Channel::mutable_topicDetails() { + Json::Value* storage = MutableStorage("topicDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel.h b/service_apis/youtube/google/youtube_api/channel.h index 860666d..a396a5e 100644 --- a/service_apis/youtube/google/youtube_api/channel.h +++ b/service_apis/youtube/google/youtube_api/channel.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_audit_details.cc b/service_apis/youtube/google/youtube_api/channel_audit_details.cc index 98acf64..2d23288 100644 --- a/service_apis/youtube/google/youtube_api/channel_audit_details.cc +++ b/service_apis/youtube/google/youtube_api/channel_audit_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelAuditDetails // Documentation: @@ -56,4 +53,6 @@ ChannelAuditDetails::ChannelAuditDetails(Json::Value* storage) // Standard destructor. ChannelAuditDetails::~ChannelAuditDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_audit_details.h b/service_apis/youtube/google/youtube_api/channel_audit_details.h index b9d8990..283912e 100644 --- a/service_apis/youtube/google/youtube_api/channel_audit_details.h +++ b/service_apis/youtube/google/youtube_api/channel_audit_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_AUDIT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_AUDIT_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_banner_resource.cc b/service_apis/youtube/google/youtube_api/channel_banner_resource.cc index e4cac8b..562fe4e 100644 --- a/service_apis/youtube/google/youtube_api/channel_banner_resource.cc +++ b/service_apis/youtube/google/youtube_api/channel_banner_resource.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelBannerResource // Documentation: @@ -57,4 +54,6 @@ ChannelBannerResource::ChannelBannerResource(Json::Value* storage) // Standard destructor. ChannelBannerResource::~ChannelBannerResource() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_banner_resource.h b/service_apis/youtube/google/youtube_api/channel_banner_resource.h index 4c4ff9c..5e09c39 100644 --- a/service_apis/youtube/google/youtube_api/channel_banner_resource.h +++ b/service_apis/youtube/google/youtube_api/channel_banner_resource.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_BANNER_RESOURCE_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_BANNER_RESOURCE_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_branding_settings.cc b/service_apis/youtube/google/youtube_api/channel_branding_settings.cc index 7af2c92..b07401d 100644 --- a/service_apis/youtube/google/youtube_api/channel_branding_settings.cc +++ b/service_apis/youtube/google/youtube_api/channel_branding_settings.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelBrandingSettings // Documentation: @@ -61,4 +58,46 @@ ChannelBrandingSettings::ChannelBrandingSettings(Json::Value* storage) // Standard destructor. ChannelBrandingSettings::~ChannelBrandingSettings() { } + +// Properties. + +const ChannelSettings ChannelBrandingSettings::get_channel() const { + const Json::Value& storage = Storage("channel"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelSettings ChannelBrandingSettings::mutable_channel() { + Json::Value* storage = MutableStorage("channel"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const client::JsonCppArray ChannelBrandingSettings::get_hints() const { + const Json::Value& storage = Storage("hints"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray ChannelBrandingSettings::mutable_hints() { + Json::Value* storage = MutableStorage("hints"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const ImageSettings ChannelBrandingSettings::get_image() const { + const Json::Value& storage = Storage("image"); + return client::JsonValueToCppValueHelper(storage); +} + +ImageSettings ChannelBrandingSettings::mutable_image() { + Json::Value* storage = MutableStorage("image"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const WatchSettings ChannelBrandingSettings::get_watch() const { + const Json::Value& storage = Storage("watch"); + return client::JsonValueToCppValueHelper(storage); +} + +WatchSettings ChannelBrandingSettings::mutable_watch() { + Json::Value* storage = MutableStorage("watch"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_branding_settings.h b/service_apis/youtube/google/youtube_api/channel_branding_settings.h index faf7ce5..d469f55 100644 --- a/service_apis/youtube/google/youtube_api/channel_branding_settings.h +++ b/service_apis/youtube/google/youtube_api/channel_branding_settings.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_BRANDING_SETTINGS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_BRANDING_SETTINGS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_content_details.cc b/service_apis/youtube/google/youtube_api/channel_content_details.cc index a7ddf6c..ddf8be2 100644 --- a/service_apis/youtube/google/youtube_api/channel_content_details.cc +++ b/service_apis/youtube/google/youtube_api/channel_content_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelContentDetails // Documentation: @@ -58,6 +55,8 @@ ChannelContentDetails::ChannelContentDetailsRelatedPlaylists::ChannelContentDeta // Standard destructor. ChannelContentDetails::ChannelContentDetailsRelatedPlaylists::~ChannelContentDetailsRelatedPlaylists() { } + +// Properties. // Object factory method (static). ChannelContentDetails* ChannelContentDetails::New() { return new client::JsonCppCapsule; @@ -76,4 +75,6 @@ ChannelContentDetails::ChannelContentDetails(Json::Value* storage) // Standard destructor. ChannelContentDetails::~ChannelContentDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_content_details.h b/service_apis/youtube/google/youtube_api/channel_content_details.h index 1b99c34..2d44d0f 100644 --- a/service_apis/youtube/google/youtube_api/channel_content_details.h +++ b/service_apis/youtube/google/youtube_api/channel_content_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_CONTENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_CONTENT_DETAILS_H_ @@ -322,44 +320,6 @@ class ChannelContentDetails : public client::JsonCppData { return StringPiece("google_youtube_api::ChannelContentDetails"); } - /** - * Determine if the 'googlePlusUserId' attribute was set. - * - * @return true if the 'googlePlusUserId' attribute was set. - */ - bool has_google_plus_user_id() const { - return Storage().isMember("googlePlusUserId"); - } - - /** - * Clears the 'googlePlusUserId' attribute. - */ - void clear_google_plus_user_id() { - MutableStorage()->removeMember("googlePlusUserId"); - } - - - /** - * Get the value of the 'googlePlusUserId' attribute. - */ - const StringPiece get_google_plus_user_id() const { - const Json::Value& v = Storage("googlePlusUserId"); - if (v == Json::Value::null) return StringPiece(""); - return StringPiece(v.asCString()); - } - - /** - * Change the 'googlePlusUserId' attribute. - * - * The googlePlusUserId object identifies the Google+ profile ID associated - * with this channel. - * - * @param[in] value The new value. - */ - void set_google_plus_user_id(const StringPiece& value) { - *MutableStorage("googlePlusUserId") = value.data(); - } - /** * Determine if the 'relatedPlaylists' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/channel_content_owner_details.cc b/service_apis/youtube/google/youtube_api/channel_content_owner_details.cc index 8647d69..cda5e2c 100644 --- a/service_apis/youtube/google/youtube_api/channel_content_owner_details.cc +++ b/service_apis/youtube/google/youtube_api/channel_content_owner_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelContentOwnerDetails // Documentation: @@ -58,4 +55,6 @@ ChannelContentOwnerDetails::ChannelContentOwnerDetails(Json::Value* storage) // Standard destructor. ChannelContentOwnerDetails::~ChannelContentOwnerDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_content_owner_details.h b/service_apis/youtube/google/youtube_api/channel_content_owner_details.h index 26e1fec..d8d643f 100644 --- a/service_apis/youtube/google/youtube_api/channel_content_owner_details.h +++ b/service_apis/youtube/google/youtube_api/channel_content_owner_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_CONTENT_OWNER_DETAILS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_CONTENT_OWNER_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_conversion_ping.cc b/service_apis/youtube/google/youtube_api/channel_conversion_ping.cc index 33fe2b2..94f12b8 100644 --- a/service_apis/youtube/google/youtube_api/channel_conversion_ping.cc +++ b/service_apis/youtube/google/youtube_api/channel_conversion_ping.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelConversionPing // Documentation: @@ -57,4 +54,6 @@ ChannelConversionPing::ChannelConversionPing(Json::Value* storage) // Standard destructor. ChannelConversionPing::~ChannelConversionPing() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_conversion_ping.h b/service_apis/youtube/google/youtube_api/channel_conversion_ping.h index 3fd4614..1a16b1e 100644 --- a/service_apis/youtube/google/youtube_api/channel_conversion_ping.h +++ b/service_apis/youtube/google/youtube_api/channel_conversion_ping.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_CONVERSION_PING_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_CONVERSION_PING_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_conversion_pings.cc b/service_apis/youtube/google/youtube_api/channel_conversion_pings.cc index ab265f4..a48da71 100644 --- a/service_apis/youtube/google/youtube_api/channel_conversion_pings.cc +++ b/service_apis/youtube/google/youtube_api/channel_conversion_pings.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelConversionPings // Documentation: @@ -58,4 +55,16 @@ ChannelConversionPings::ChannelConversionPings(Json::Value* storage) // Standard destructor. ChannelConversionPings::~ChannelConversionPings() { } + +// Properties. + +const client::JsonCppArray ChannelConversionPings::get_pings() const { + const Json::Value& storage = Storage("pings"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray ChannelConversionPings::mutable_pings() { + Json::Value* storage = MutableStorage("pings"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_conversion_pings.h b/service_apis/youtube/google/youtube_api/channel_conversion_pings.h index 273cb92..15be3ec 100644 --- a/service_apis/youtube/google/youtube_api/channel_conversion_pings.h +++ b/service_apis/youtube/google/youtube_api/channel_conversion_pings.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_CONVERSION_PINGS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_CONVERSION_PINGS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_list_response.cc b/service_apis/youtube/google/youtube_api/channel_list_response.cc index 83a0bea..81c6199 100644 --- a/service_apis/youtube/google/youtube_api/channel_list_response.cc +++ b/service_apis/youtube/google/youtube_api/channel_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelListResponse // Documentation: @@ -61,4 +58,36 @@ ChannelListResponse::ChannelListResponse(Json::Value* storage) // Standard destructor. ChannelListResponse::~ChannelListResponse() { } + +// Properties. + +const client::JsonCppArray ChannelListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray ChannelListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo ChannelListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo ChannelListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination ChannelListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination ChannelListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_list_response.h b/service_apis/youtube/google/youtube_api/channel_list_response.h index 1206d13..17ec496 100644 --- a/service_apis/youtube/google/youtube_api/channel_list_response.h +++ b/service_apis/youtube/google/youtube_api/channel_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_localization.cc b/service_apis/youtube/google/youtube_api/channel_localization.cc index 95586be..dfd5b43 100644 --- a/service_apis/youtube/google/youtube_api/channel_localization.cc +++ b/service_apis/youtube/google/youtube_api/channel_localization.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelLocalization // Documentation: @@ -57,4 +54,6 @@ ChannelLocalization::ChannelLocalization(Json::Value* storage) // Standard destructor. ChannelLocalization::~ChannelLocalization() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_localization.h b/service_apis/youtube/google/youtube_api/channel_localization.h index fff759c..947694f 100644 --- a/service_apis/youtube/google/youtube_api/channel_localization.h +++ b/service_apis/youtube/google/youtube_api/channel_localization.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_LOCALIZATION_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_LOCALIZATION_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_profile_details.cc b/service_apis/youtube/google/youtube_api/channel_profile_details.cc index 91780fd..7b4bdb4 100644 --- a/service_apis/youtube/google/youtube_api/channel_profile_details.cc +++ b/service_apis/youtube/google/youtube_api/channel_profile_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelProfileDetails // Documentation: @@ -57,4 +54,6 @@ ChannelProfileDetails::ChannelProfileDetails(Json::Value* storage) // Standard destructor. ChannelProfileDetails::~ChannelProfileDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_profile_details.h b/service_apis/youtube/google/youtube_api/channel_profile_details.h index 3e5aa6c..fef9bd0 100644 --- a/service_apis/youtube/google/youtube_api/channel_profile_details.h +++ b/service_apis/youtube/google/youtube_api/channel_profile_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_PROFILE_DETAILS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_PROFILE_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_section.cc b/service_apis/youtube/google/youtube_api/channel_section.cc index c243f73..5f43a8c 100644 --- a/service_apis/youtube/google/youtube_api/channel_section.cc +++ b/service_apis/youtube/google/youtube_api/channel_section.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelSection // Documentation: @@ -62,4 +59,46 @@ ChannelSection::ChannelSection(Json::Value* storage) // Standard destructor. ChannelSection::~ChannelSection() { } + +// Properties. + +const ChannelSectionContentDetails ChannelSection::get_content_details() const { + const Json::Value& storage = Storage("contentDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelSectionContentDetails ChannelSection::mutable_contentDetails() { + Json::Value* storage = MutableStorage("contentDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const client::JsonCppAssociativeArray ChannelSection::get_localizations() const { + const Json::Value& storage = Storage("localizations"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppAssociativeArray ChannelSection::mutable_localizations() { + Json::Value* storage = MutableStorage("localizations"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const ChannelSectionSnippet ChannelSection::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelSectionSnippet ChannelSection::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ChannelSectionTargeting ChannelSection::get_targeting() const { + const Json::Value& storage = Storage("targeting"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelSectionTargeting ChannelSection::mutable_targeting() { + Json::Value* storage = MutableStorage("targeting"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_section.h b/service_apis/youtube/google/youtube_api/channel_section.h index e4b7dd1..2d51f0f 100644 --- a/service_apis/youtube/google/youtube_api/channel_section.h +++ b/service_apis/youtube/google/youtube_api/channel_section.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SECTION_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_SECTION_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_section_content_details.cc b/service_apis/youtube/google/youtube_api/channel_section_content_details.cc index aff5c42..6004ad4 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_content_details.cc +++ b/service_apis/youtube/google/youtube_api/channel_section_content_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelSectionContentDetails // Documentation: @@ -57,4 +54,6 @@ ChannelSectionContentDetails::ChannelSectionContentDetails(Json::Value* storage) // Standard destructor. ChannelSectionContentDetails::~ChannelSectionContentDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_section_content_details.h b/service_apis/youtube/google/youtube_api/channel_section_content_details.h index 1e7790a..bd53cc4 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_content_details.h +++ b/service_apis/youtube/google/youtube_api/channel_section_content_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SECTION_CONTENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_SECTION_CONTENT_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_section_list_response.cc b/service_apis/youtube/google/youtube_api/channel_section_list_response.cc index bfad576..a7cae3e 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_list_response.cc +++ b/service_apis/youtube/google/youtube_api/channel_section_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelSectionListResponse // Documentation: @@ -59,4 +56,16 @@ ChannelSectionListResponse::ChannelSectionListResponse(Json::Value* storage) // Standard destructor. ChannelSectionListResponse::~ChannelSectionListResponse() { } + +// Properties. + +const client::JsonCppArray ChannelSectionListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray ChannelSectionListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_section_list_response.h b/service_apis/youtube/google/youtube_api/channel_section_list_response.h index b46f224..ea377f2 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_list_response.h +++ b/service_apis/youtube/google/youtube_api/channel_section_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SECTION_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_SECTION_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_section_localization.cc b/service_apis/youtube/google/youtube_api/channel_section_localization.cc index 4a0f54e..e0f6cef 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_localization.cc +++ b/service_apis/youtube/google/youtube_api/channel_section_localization.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelSectionLocalization // Documentation: @@ -57,4 +54,6 @@ ChannelSectionLocalization::ChannelSectionLocalization(Json::Value* storage) // Standard destructor. ChannelSectionLocalization::~ChannelSectionLocalization() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_section_localization.h b/service_apis/youtube/google/youtube_api/channel_section_localization.h index 018e111..42eb39f 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_localization.h +++ b/service_apis/youtube/google/youtube_api/channel_section_localization.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SECTION_LOCALIZATION_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_SECTION_LOCALIZATION_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_section_snippet.cc b/service_apis/youtube/google/youtube_api/channel_section_snippet.cc index cbe7440..c213372 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_snippet.cc +++ b/service_apis/youtube/google/youtube_api/channel_section_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelSectionSnippet // Documentation: @@ -60,4 +57,16 @@ ChannelSectionSnippet::ChannelSectionSnippet(Json::Value* storage) // Standard destructor. ChannelSectionSnippet::~ChannelSectionSnippet() { } + +// Properties. + +const ChannelSectionLocalization ChannelSectionSnippet::get_localized() const { + const Json::Value& storage = Storage("localized"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelSectionLocalization ChannelSectionSnippet::mutable_localized() { + Json::Value* storage = MutableStorage("localized"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_section_snippet.h b/service_apis/youtube/google/youtube_api/channel_section_snippet.h index ccd0e55..a9b2e1c 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_snippet.h +++ b/service_apis/youtube/google/youtube_api/channel_section_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SECTION_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_SECTION_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_section_targeting.cc b/service_apis/youtube/google/youtube_api/channel_section_targeting.cc index 6f2ab8f..0d37dab 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_targeting.cc +++ b/service_apis/youtube/google/youtube_api/channel_section_targeting.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelSectionTargeting // Documentation: @@ -57,4 +54,6 @@ ChannelSectionTargeting::ChannelSectionTargeting(Json::Value* storage) // Standard destructor. ChannelSectionTargeting::~ChannelSectionTargeting() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_section_targeting.h b/service_apis/youtube/google/youtube_api/channel_section_targeting.h index 09dd6b6..42bfe4e 100644 --- a/service_apis/youtube/google/youtube_api/channel_section_targeting.h +++ b/service_apis/youtube/google/youtube_api/channel_section_targeting.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SECTION_TARGETING_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_SECTION_TARGETING_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_settings.cc b/service_apis/youtube/google/youtube_api/channel_settings.cc index d3dba97..6470a69 100644 --- a/service_apis/youtube/google/youtube_api/channel_settings.cc +++ b/service_apis/youtube/google/youtube_api/channel_settings.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelSettings // Documentation: @@ -57,4 +54,6 @@ ChannelSettings::ChannelSettings(Json::Value* storage) // Standard destructor. ChannelSettings::~ChannelSettings() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_settings.h b/service_apis/youtube/google/youtube_api/channel_settings.h index f4003db..95aadcc 100644 --- a/service_apis/youtube/google/youtube_api/channel_settings.h +++ b/service_apis/youtube/google/youtube_api/channel_settings.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SETTINGS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_SETTINGS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_snippet.cc b/service_apis/youtube/google/youtube_api/channel_snippet.cc index b6d7cc5..7e45fc6 100644 --- a/service_apis/youtube/google/youtube_api/channel_snippet.cc +++ b/service_apis/youtube/google/youtube_api/channel_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelSnippet // Documentation: @@ -61,4 +58,26 @@ ChannelSnippet::ChannelSnippet(Json::Value* storage) // Standard destructor. ChannelSnippet::~ChannelSnippet() { } + +// Properties. + +const ChannelLocalization ChannelSnippet::get_localized() const { + const Json::Value& storage = Storage("localized"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelLocalization ChannelSnippet::mutable_localized() { + Json::Value* storage = MutableStorage("localized"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ThumbnailDetails ChannelSnippet::get_thumbnails() const { + const Json::Value& storage = Storage("thumbnails"); + return client::JsonValueToCppValueHelper(storage); +} + +ThumbnailDetails ChannelSnippet::mutable_thumbnails() { + Json::Value* storage = MutableStorage("thumbnails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_snippet.h b/service_apis/youtube/google/youtube_api/channel_snippet.h index af7dc03..f0ccbe9 100644 --- a/service_apis/youtube/google/youtube_api/channel_snippet.h +++ b/service_apis/youtube/google/youtube_api/channel_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_SNIPPET_H_ @@ -45,6 +43,7 @@ using namespace googleapis; /** * Basic details about a channel, including title, description and thumbnails. + * Next available id: 15. * * @ingroup DataObject */ @@ -122,6 +121,43 @@ class ChannelSnippet : public client::JsonCppData { *MutableStorage("country") = value.data(); } + /** + * Determine if the 'customUrl' attribute was set. + * + * @return true if the 'customUrl' attribute was set. + */ + bool has_custom_url() const { + return Storage().isMember("customUrl"); + } + + /** + * Clears the 'customUrl' attribute. + */ + void clear_custom_url() { + MutableStorage()->removeMember("customUrl"); + } + + + /** + * Get the value of the 'customUrl' attribute. + */ + const StringPiece get_custom_url() const { + const Json::Value& v = Storage("customUrl"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'customUrl' attribute. + * + * The custom url of the channel. + * + * @param[in] value The new value. + */ + void set_custom_url(const StringPiece& value) { + *MutableStorage("customUrl") = value.data(); + } + /** * Determine if the 'defaultLanguage' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/channel_statistics.cc b/service_apis/youtube/google/youtube_api/channel_statistics.cc index f4fc635..dad8ff4 100644 --- a/service_apis/youtube/google/youtube_api/channel_statistics.cc +++ b/service_apis/youtube/google/youtube_api/channel_statistics.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelStatistics // Documentation: @@ -57,4 +54,6 @@ ChannelStatistics::ChannelStatistics(Json::Value* storage) // Standard destructor. ChannelStatistics::~ChannelStatistics() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_statistics.h b/service_apis/youtube/google/youtube_api/channel_statistics.h index 1d6c0f3..f0aab2c 100644 --- a/service_apis/youtube/google/youtube_api/channel_statistics.h +++ b/service_apis/youtube/google/youtube_api/channel_statistics.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_STATISTICS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_STATISTICS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_status.cc b/service_apis/youtube/google/youtube_api/channel_status.cc index 2c2ed1c..7002beb 100644 --- a/service_apis/youtube/google/youtube_api/channel_status.cc +++ b/service_apis/youtube/google/youtube_api/channel_status.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelStatus // Documentation: @@ -57,4 +54,6 @@ ChannelStatus::ChannelStatus(Json::Value* storage) // Standard destructor. ChannelStatus::~ChannelStatus() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_status.h b/service_apis/youtube/google/youtube_api/channel_status.h index 4dfbeca..0d35352 100644 --- a/service_apis/youtube/google/youtube_api/channel_status.h +++ b/service_apis/youtube/google/youtube_api/channel_status.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_STATUS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_STATUS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_topic_details.cc b/service_apis/youtube/google/youtube_api/channel_topic_details.cc index d88770c..f0a71ee 100644 --- a/service_apis/youtube/google/youtube_api/channel_topic_details.cc +++ b/service_apis/youtube/google/youtube_api/channel_topic_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ChannelTopicDetails // Documentation: @@ -57,4 +54,6 @@ ChannelTopicDetails::ChannelTopicDetails(Json::Value* storage) // Standard destructor. ChannelTopicDetails::~ChannelTopicDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_topic_details.h b/service_apis/youtube/google/youtube_api/channel_topic_details.h index e84322f..fb18857 100644 --- a/service_apis/youtube/google/youtube_api/channel_topic_details.h +++ b/service_apis/youtube/google/youtube_api/channel_topic_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_TOPIC_DETAILS_H_ #define GOOGLE_YOUTUBE_API_CHANNEL_TOPIC_DETAILS_H_ @@ -81,6 +79,45 @@ class ChannelTopicDetails : public client::JsonCppData { return StringPiece("google_youtube_api::ChannelTopicDetails"); } + /** + * Determine if the 'topicCategories' attribute was set. + * + * @return true if the 'topicCategories' attribute was set. + */ + bool has_topic_categories() const { + return Storage().isMember("topicCategories"); + } + + /** + * Clears the 'topicCategories' attribute. + */ + void clear_topic_categories() { + MutableStorage()->removeMember("topicCategories"); + } + + + /** + * Get a reference to the value of the 'topicCategories' + * attribute. + */ + const client::JsonCppArray get_topic_categories() const { + const Json::Value& storage = Storage("topicCategories"); + return client::JsonValueToCppValueHelper >(storage); + } + + /** + * Gets a reference to a mutable value of the 'topicCategories' + * property. + * + * A list of Wikipedia URLs that describe the channel's content. + * + * @return The result can be modified to change the attribute value. + */ + client::JsonCppArray mutable_topicCategories() { + Json::Value* storage = MutableStorage("topicCategories"); + return client::JsonValueToMutableCppValueHelper >(storage); + } + /** * Determine if the 'topicIds' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/comment.cc b/service_apis/youtube/google/youtube_api/comment.cc index 3160154..04f98d9 100644 --- a/service_apis/youtube/google/youtube_api/comment.cc +++ b/service_apis/youtube/google/youtube_api/comment.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // Comment // Documentation: @@ -59,4 +56,16 @@ Comment::Comment(Json::Value* storage) // Standard destructor. Comment::~Comment() { } + +// Properties. + +const CommentSnippet Comment::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +CommentSnippet Comment::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/comment.h b/service_apis/youtube/google/youtube_api/comment.h index c708e46..f368696 100644 --- a/service_apis/youtube/google/youtube_api/comment.h +++ b/service_apis/youtube/google/youtube_api/comment.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_COMMENT_H_ #define GOOGLE_YOUTUBE_API_COMMENT_H_ diff --git a/service_apis/youtube/google/youtube_api/comment_list_response.cc b/service_apis/youtube/google/youtube_api/comment_list_response.cc index 01b4224..2686dd7 100644 --- a/service_apis/youtube/google/youtube_api/comment_list_response.cc +++ b/service_apis/youtube/google/youtube_api/comment_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // CommentListResponse // Documentation: @@ -61,4 +58,36 @@ CommentListResponse::CommentListResponse(Json::Value* storage) // Standard destructor. CommentListResponse::~CommentListResponse() { } + +// Properties. + +const client::JsonCppArray CommentListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray CommentListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo CommentListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo CommentListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination CommentListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination CommentListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/comment_list_response.h b/service_apis/youtube/google/youtube_api/comment_list_response.h index 9aab4bc..fcba0a1 100644 --- a/service_apis/youtube/google/youtube_api/comment_list_response.h +++ b/service_apis/youtube/google/youtube_api/comment_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_COMMENT_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_COMMENT_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/comment_snippet.cc b/service_apis/youtube/google/youtube_api/comment_snippet.cc index 4c0f47f..fe15459 100644 --- a/service_apis/youtube/google/youtube_api/comment_snippet.cc +++ b/service_apis/youtube/google/youtube_api/comment_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // CommentSnippet // Documentation: @@ -33,8 +30,6 @@ #include "googleapis/client/util/date_time.h" #include "googleapis/strings/stringpiece.h" -#include "google/youtube_api/channel_id.h" - #include #include "googleapis/strings/strcat.h" @@ -61,4 +56,6 @@ CommentSnippet::CommentSnippet(Json::Value* storage) // Standard destructor. CommentSnippet::~CommentSnippet() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/comment_snippet.h b/service_apis/youtube/google/youtube_api/comment_snippet.h index f0f012b..a9c6ee2 100644 --- a/service_apis/youtube/google/youtube_api/comment_snippet.h +++ b/service_apis/youtube/google/youtube_api/comment_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_COMMENT_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_COMMENT_SNIPPET_H_ @@ -34,8 +32,6 @@ #include "googleapis/client/util/date_time.h" #include "googleapis/strings/stringpiece.h" -#include "google/youtube_api/channel_id.h" - namespace Json { class Value; } // namespace Json @@ -106,7 +102,10 @@ class CommentSnippet : public client::JsonCppData { * Get a reference to the value of the 'authorChannelId' * attribute. */ - const ChannelId get_author_channel_id() const; + const client::JsonCppData get_author_channel_id() const { + const Json::Value& storage = Storage("authorChannelId"); + return client::JsonValueToCppValueHelper(storage); + } /** * Gets a reference to a mutable value of the 'authorChannelId' @@ -116,7 +115,10 @@ class CommentSnippet : public client::JsonCppData { * * @return The result can be modified to change the attribute value. */ - ChannelId mutable_authorChannelId(); + client::JsonCppData mutable_authorChannelId() { + Json::Value* storage = MutableStorage("authorChannelId"); + return client::JsonValueToMutableCppValueHelper(storage); + } /** * Determine if the 'authorChannelUrl' attribute was set. @@ -192,45 +194,6 @@ class CommentSnippet : public client::JsonCppData { *MutableStorage("authorDisplayName") = value.data(); } - /** - * Determine if the 'authorGoogleplusProfileUrl' attribute was - * set. - * - * @return true if the 'authorGoogleplusProfileUrl' attribute was - * set. - */ - bool has_author_googleplus_profile_url() const { - return Storage().isMember("authorGoogleplusProfileUrl"); - } - - /** - * Clears the 'authorGoogleplusProfileUrl' attribute. - */ - void clear_author_googleplus_profile_url() { - MutableStorage()->removeMember("authorGoogleplusProfileUrl"); - } - - - /** - * Get the value of the 'authorGoogleplusProfileUrl' attribute. - */ - const StringPiece get_author_googleplus_profile_url() const { - const Json::Value& v = Storage("authorGoogleplusProfileUrl"); - if (v == Json::Value::null) return StringPiece(""); - return StringPiece(v.asCString()); - } - - /** - * Change the 'authorGoogleplusProfileUrl' attribute. - * - * Link to the author's Google+ profile, if any. - * - * @param[in] value The new value. - */ - void set_author_googleplus_profile_url(const StringPiece& value) { - *MutableStorage("authorGoogleplusProfileUrl") = value.data(); - } - /** * Determine if the 'authorProfileImageUrl' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/comment_thread.cc b/service_apis/youtube/google/youtube_api/comment_thread.cc index 112a130..b83e8af 100644 --- a/service_apis/youtube/google/youtube_api/comment_thread.cc +++ b/service_apis/youtube/google/youtube_api/comment_thread.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // CommentThread // Documentation: @@ -60,4 +57,26 @@ CommentThread::CommentThread(Json::Value* storage) // Standard destructor. CommentThread::~CommentThread() { } + +// Properties. + +const CommentThreadReplies CommentThread::get_replies() const { + const Json::Value& storage = Storage("replies"); + return client::JsonValueToCppValueHelper(storage); +} + +CommentThreadReplies CommentThread::mutable_replies() { + Json::Value* storage = MutableStorage("replies"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const CommentThreadSnippet CommentThread::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +CommentThreadSnippet CommentThread::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/comment_thread.h b/service_apis/youtube/google/youtube_api/comment_thread.h index 80fb9e9..1745bb6 100644 --- a/service_apis/youtube/google/youtube_api/comment_thread.h +++ b/service_apis/youtube/google/youtube_api/comment_thread.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_COMMENT_THREAD_H_ #define GOOGLE_YOUTUBE_API_COMMENT_THREAD_H_ diff --git a/service_apis/youtube/google/youtube_api/comment_thread_list_response.cc b/service_apis/youtube/google/youtube_api/comment_thread_list_response.cc index 77947ad..f0ba06f 100644 --- a/service_apis/youtube/google/youtube_api/comment_thread_list_response.cc +++ b/service_apis/youtube/google/youtube_api/comment_thread_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // CommentThreadListResponse // Documentation: @@ -61,4 +58,36 @@ CommentThreadListResponse::CommentThreadListResponse(Json::Value* storage) // Standard destructor. CommentThreadListResponse::~CommentThreadListResponse() { } + +// Properties. + +const client::JsonCppArray CommentThreadListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray CommentThreadListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo CommentThreadListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo CommentThreadListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination CommentThreadListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination CommentThreadListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/comment_thread_list_response.h b/service_apis/youtube/google/youtube_api/comment_thread_list_response.h index 7367433..c3af10b 100644 --- a/service_apis/youtube/google/youtube_api/comment_thread_list_response.h +++ b/service_apis/youtube/google/youtube_api/comment_thread_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_COMMENT_THREAD_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_COMMENT_THREAD_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/comment_thread_replies.cc b/service_apis/youtube/google/youtube_api/comment_thread_replies.cc index 6964c47..8b9a38a 100644 --- a/service_apis/youtube/google/youtube_api/comment_thread_replies.cc +++ b/service_apis/youtube/google/youtube_api/comment_thread_replies.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // CommentThreadReplies // Documentation: @@ -58,4 +55,16 @@ CommentThreadReplies::CommentThreadReplies(Json::Value* storage) // Standard destructor. CommentThreadReplies::~CommentThreadReplies() { } + +// Properties. + +const client::JsonCppArray CommentThreadReplies::get_comments() const { + const Json::Value& storage = Storage("comments"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray CommentThreadReplies::mutable_comments() { + Json::Value* storage = MutableStorage("comments"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/comment_thread_replies.h b/service_apis/youtube/google/youtube_api/comment_thread_replies.h index 092ae36..05e9477 100644 --- a/service_apis/youtube/google/youtube_api/comment_thread_replies.h +++ b/service_apis/youtube/google/youtube_api/comment_thread_replies.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_COMMENT_THREAD_REPLIES_H_ #define GOOGLE_YOUTUBE_API_COMMENT_THREAD_REPLIES_H_ diff --git a/service_apis/youtube/google/youtube_api/comment_thread_snippet.cc b/service_apis/youtube/google/youtube_api/comment_thread_snippet.cc index 1a1db28..d877e28 100644 --- a/service_apis/youtube/google/youtube_api/comment_thread_snippet.cc +++ b/service_apis/youtube/google/youtube_api/comment_thread_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // CommentThreadSnippet // Documentation: @@ -60,4 +57,16 @@ CommentThreadSnippet::CommentThreadSnippet(Json::Value* storage) // Standard destructor. CommentThreadSnippet::~CommentThreadSnippet() { } + +// Properties. + +const Comment CommentThreadSnippet::get_top_level_comment() const { + const Json::Value& storage = Storage("topLevelComment"); + return client::JsonValueToCppValueHelper(storage); +} + +Comment CommentThreadSnippet::mutable_topLevelComment() { + Json::Value* storage = MutableStorage("topLevelComment"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/comment_thread_snippet.h b/service_apis/youtube/google/youtube_api/comment_thread_snippet.h index c6c3122..44ebc54 100644 --- a/service_apis/youtube/google/youtube_api/comment_thread_snippet.h +++ b/service_apis/youtube/google/youtube_api/comment_thread_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_COMMENT_THREAD_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_COMMENT_THREAD_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/content_rating.cc b/service_apis/youtube/google/youtube_api/content_rating.cc index 996c9a9..a60f477 100644 --- a/service_apis/youtube/google/youtube_api/content_rating.cc +++ b/service_apis/youtube/google/youtube_api/content_rating.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ContentRating // Documentation: @@ -57,4 +54,6 @@ ContentRating::ContentRating(Json::Value* storage) // Standard destructor. ContentRating::~ContentRating() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/content_rating.h b/service_apis/youtube/google/youtube_api/content_rating.h index 6733e27..b6b9833 100644 --- a/service_apis/youtube/google/youtube_api/content_rating.h +++ b/service_apis/youtube/google/youtube_api/content_rating.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_CONTENT_RATING_H_ #define GOOGLE_YOUTUBE_API_CONTENT_RATING_H_ @@ -41,7 +39,7 @@ using namespace googleapis; /** * Ratings schemes. The country-specific ratings are mostly for movies and - * shows. NEXT_ID: 66. + * shows. NEXT_ID: 69. * * @ingroup DataObject */ @@ -877,6 +875,44 @@ class ContentRating : public client::JsonCppData { return client::JsonValueToMutableCppValueHelper >(storage); } + /** + * Determine if the 'ecbmctRating' attribute was set. + * + * @return true if the 'ecbmctRating' attribute was set. + */ + bool has_ecbmct_rating() const { + return Storage().isMember("ecbmctRating"); + } + + /** + * Clears the 'ecbmctRating' attribute. + */ + void clear_ecbmct_rating() { + MutableStorage()->removeMember("ecbmctRating"); + } + + + /** + * Get the value of the 'ecbmctRating' attribute. + */ + const StringPiece get_ecbmct_rating() const { + const Json::Value& v = Storage("ecbmctRating"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'ecbmctRating' attribute. + * + * Rating system in Turkey - Evaluation and Classification Board of the + * Ministry of Culture and Tourism. + * + * @param[in] value The new value. + */ + void set_ecbmct_rating(const StringPiece& value) { + *MutableStorage("ecbmctRating") = value.data(); + } + /** * Determine if the 'eefilmRating' attribute was set. * @@ -1138,6 +1174,45 @@ class ContentRating : public client::JsonCppData { *MutableStorage("fpbRating") = value.data(); } + /** + * Determine if the 'fpbRatingReasons' attribute was set. + * + * @return true if the 'fpbRatingReasons' attribute was set. + */ + bool has_fpb_rating_reasons() const { + return Storage().isMember("fpbRatingReasons"); + } + + /** + * Clears the 'fpbRatingReasons' attribute. + */ + void clear_fpb_rating_reasons() { + MutableStorage()->removeMember("fpbRatingReasons"); + } + + + /** + * Get a reference to the value of the 'fpbRatingReasons' + * attribute. + */ + const client::JsonCppArray get_fpb_rating_reasons() const { + const Json::Value& storage = Storage("fpbRatingReasons"); + return client::JsonValueToCppValueHelper >(storage); + } + + /** + * Gets a reference to a mutable value of the 'fpbRatingReasons' + * property. + * + * Reasons that explain why the video received its FPB (South Africa) rating. + * + * @return The result can be modified to change the attribute value. + */ + client::JsonCppArray mutable_fpbRatingReasons() { + Json::Value* storage = MutableStorage("fpbRatingReasons"); + return client::JsonValueToMutableCppValueHelper >(storage); + } + /** * Determine if the 'fskRating' attribute was set. * @@ -1588,6 +1663,43 @@ class ContentRating : public client::JsonCppData { *MutableStorage("mccypRating") = value.data(); } + /** + * Determine if the 'mcstRating' attribute was set. + * + * @return true if the 'mcstRating' attribute was set. + */ + bool has_mcst_rating() const { + return Storage().isMember("mcstRating"); + } + + /** + * Clears the 'mcstRating' attribute. + */ + void clear_mcst_rating() { + MutableStorage()->removeMember("mcstRating"); + } + + + /** + * Get the value of the 'mcstRating' attribute. + */ + const StringPiece get_mcst_rating() const { + const Json::Value& v = Storage("mcstRating"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'mcstRating' attribute. + * + * The video's rating system for Vietnam - MCST. + * + * @param[in] value The new value. + */ + void set_mcst_rating(const StringPiece& value) { + *MutableStorage("mcstRating") = value.data(); + } + /** * Determine if the 'mdaRating' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/fan_funding_event.cc b/service_apis/youtube/google/youtube_api/fan_funding_event.cc index baddaec..ea30f5d 100644 --- a/service_apis/youtube/google/youtube_api/fan_funding_event.cc +++ b/service_apis/youtube/google/youtube_api/fan_funding_event.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // FanFundingEvent // Documentation: @@ -59,4 +56,16 @@ FanFundingEvent::FanFundingEvent(Json::Value* storage) // Standard destructor. FanFundingEvent::~FanFundingEvent() { } + +// Properties. + +const FanFundingEventSnippet FanFundingEvent::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +FanFundingEventSnippet FanFundingEvent::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/fan_funding_event.h b/service_apis/youtube/google/youtube_api/fan_funding_event.h index 872b9b3..ce97d1b 100644 --- a/service_apis/youtube/google/youtube_api/fan_funding_event.h +++ b/service_apis/youtube/google/youtube_api/fan_funding_event.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_FAN_FUNDING_EVENT_H_ #define GOOGLE_YOUTUBE_API_FAN_FUNDING_EVENT_H_ diff --git a/service_apis/youtube/google/youtube_api/fan_funding_event_list_response.cc b/service_apis/youtube/google/youtube_api/fan_funding_event_list_response.cc index 02ec42f..ddc93b3 100644 --- a/service_apis/youtube/google/youtube_api/fan_funding_event_list_response.cc +++ b/service_apis/youtube/google/youtube_api/fan_funding_event_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // FanFundingEventListResponse // Documentation: @@ -61,4 +58,36 @@ FanFundingEventListResponse::FanFundingEventListResponse(Json::Value* storage) // Standard destructor. FanFundingEventListResponse::~FanFundingEventListResponse() { } + +// Properties. + +const client::JsonCppArray FanFundingEventListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray FanFundingEventListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo FanFundingEventListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo FanFundingEventListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination FanFundingEventListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination FanFundingEventListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/fan_funding_event_list_response.h b/service_apis/youtube/google/youtube_api/fan_funding_event_list_response.h index 631ad8d..e6df838 100644 --- a/service_apis/youtube/google/youtube_api/fan_funding_event_list_response.h +++ b/service_apis/youtube/google/youtube_api/fan_funding_event_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_FAN_FUNDING_EVENT_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_FAN_FUNDING_EVENT_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/fan_funding_event_snippet.cc b/service_apis/youtube/google/youtube_api/fan_funding_event_snippet.cc index 3dd5542..e8d3973 100644 --- a/service_apis/youtube/google/youtube_api/fan_funding_event_snippet.cc +++ b/service_apis/youtube/google/youtube_api/fan_funding_event_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // FanFundingEventSnippet // Documentation: @@ -61,4 +58,16 @@ FanFundingEventSnippet::FanFundingEventSnippet(Json::Value* storage) // Standard destructor. FanFundingEventSnippet::~FanFundingEventSnippet() { } + +// Properties. + +const ChannelProfileDetails FanFundingEventSnippet::get_supporter_details() const { + const Json::Value& storage = Storage("supporterDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelProfileDetails FanFundingEventSnippet::mutable_supporterDetails() { + Json::Value* storage = MutableStorage("supporterDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/fan_funding_event_snippet.h b/service_apis/youtube/google/youtube_api/fan_funding_event_snippet.h index df8afac..a703aab 100644 --- a/service_apis/youtube/google/youtube_api/fan_funding_event_snippet.h +++ b/service_apis/youtube/google/youtube_api/fan_funding_event_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_FAN_FUNDING_EVENT_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_FAN_FUNDING_EVENT_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/geo_point.cc b/service_apis/youtube/google/youtube_api/geo_point.cc index 82b47e1..4bc413d 100644 --- a/service_apis/youtube/google/youtube_api/geo_point.cc +++ b/service_apis/youtube/google/youtube_api/geo_point.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // GeoPoint // Documentation: @@ -56,4 +53,6 @@ GeoPoint::GeoPoint(Json::Value* storage) // Standard destructor. GeoPoint::~GeoPoint() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/geo_point.h b/service_apis/youtube/google/youtube_api/geo_point.h index b02352f..2914826 100644 --- a/service_apis/youtube/google/youtube_api/geo_point.h +++ b/service_apis/youtube/google/youtube_api/geo_point.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_GEO_POINT_H_ #define GOOGLE_YOUTUBE_API_GEO_POINT_H_ diff --git a/service_apis/youtube/google/youtube_api/guide_category.cc b/service_apis/youtube/google/youtube_api/guide_category.cc index ddde5e8..c1a1a23 100644 --- a/service_apis/youtube/google/youtube_api/guide_category.cc +++ b/service_apis/youtube/google/youtube_api/guide_category.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // GuideCategory // Documentation: @@ -59,4 +56,16 @@ GuideCategory::GuideCategory(Json::Value* storage) // Standard destructor. GuideCategory::~GuideCategory() { } + +// Properties. + +const GuideCategorySnippet GuideCategory::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +GuideCategorySnippet GuideCategory::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/guide_category.h b/service_apis/youtube/google/youtube_api/guide_category.h index 28618c5..e280cc3 100644 --- a/service_apis/youtube/google/youtube_api/guide_category.h +++ b/service_apis/youtube/google/youtube_api/guide_category.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_GUIDE_CATEGORY_H_ #define GOOGLE_YOUTUBE_API_GUIDE_CATEGORY_H_ diff --git a/service_apis/youtube/google/youtube_api/guide_category_list_response.cc b/service_apis/youtube/google/youtube_api/guide_category_list_response.cc index 13fecc5..660f390 100644 --- a/service_apis/youtube/google/youtube_api/guide_category_list_response.cc +++ b/service_apis/youtube/google/youtube_api/guide_category_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // GuideCategoryListResponse // Documentation: @@ -61,4 +58,36 @@ GuideCategoryListResponse::GuideCategoryListResponse(Json::Value* storage) // Standard destructor. GuideCategoryListResponse::~GuideCategoryListResponse() { } + +// Properties. + +const client::JsonCppArray GuideCategoryListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray GuideCategoryListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo GuideCategoryListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo GuideCategoryListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination GuideCategoryListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination GuideCategoryListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/guide_category_list_response.h b/service_apis/youtube/google/youtube_api/guide_category_list_response.h index 05cb4f4..ec49361 100644 --- a/service_apis/youtube/google/youtube_api/guide_category_list_response.h +++ b/service_apis/youtube/google/youtube_api/guide_category_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_GUIDE_CATEGORY_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_GUIDE_CATEGORY_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/guide_category_snippet.cc b/service_apis/youtube/google/youtube_api/guide_category_snippet.cc index e824ce8..bbc1277 100644 --- a/service_apis/youtube/google/youtube_api/guide_category_snippet.cc +++ b/service_apis/youtube/google/youtube_api/guide_category_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // GuideCategorySnippet // Documentation: @@ -57,4 +54,6 @@ GuideCategorySnippet::GuideCategorySnippet(Json::Value* storage) // Standard destructor. GuideCategorySnippet::~GuideCategorySnippet() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/guide_category_snippet.h b/service_apis/youtube/google/youtube_api/guide_category_snippet.h index b46aa51..ea63d29 100644 --- a/service_apis/youtube/google/youtube_api/guide_category_snippet.h +++ b/service_apis/youtube/google/youtube_api/guide_category_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_GUIDE_CATEGORY_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_GUIDE_CATEGORY_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/i18n_language.cc b/service_apis/youtube/google/youtube_api/i18n_language.cc index 8b425ac..f921f4a 100644 --- a/service_apis/youtube/google/youtube_api/i18n_language.cc +++ b/service_apis/youtube/google/youtube_api/i18n_language.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // I18nLanguage // Documentation: @@ -59,4 +56,16 @@ I18nLanguage::I18nLanguage(Json::Value* storage) // Standard destructor. I18nLanguage::~I18nLanguage() { } + +// Properties. + +const I18nLanguageSnippet I18nLanguage::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +I18nLanguageSnippet I18nLanguage::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/i18n_language.h b/service_apis/youtube/google/youtube_api/i18n_language.h index 1cb6212..c89405e 100644 --- a/service_apis/youtube/google/youtube_api/i18n_language.h +++ b/service_apis/youtube/google/youtube_api/i18n_language.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_I18N_LANGUAGE_H_ #define GOOGLE_YOUTUBE_API_I18N_LANGUAGE_H_ diff --git a/service_apis/youtube/google/youtube_api/i18n_language_list_response.cc b/service_apis/youtube/google/youtube_api/i18n_language_list_response.cc index 95b6aab..535fc19 100644 --- a/service_apis/youtube/google/youtube_api/i18n_language_list_response.cc +++ b/service_apis/youtube/google/youtube_api/i18n_language_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // I18nLanguageListResponse // Documentation: @@ -59,4 +56,16 @@ I18nLanguageListResponse::I18nLanguageListResponse(Json::Value* storage) // Standard destructor. I18nLanguageListResponse::~I18nLanguageListResponse() { } + +// Properties. + +const client::JsonCppArray I18nLanguageListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray I18nLanguageListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/i18n_language_list_response.h b/service_apis/youtube/google/youtube_api/i18n_language_list_response.h index 789fbb9..64e26a1 100644 --- a/service_apis/youtube/google/youtube_api/i18n_language_list_response.h +++ b/service_apis/youtube/google/youtube_api/i18n_language_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_I18N_LANGUAGE_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_I18N_LANGUAGE_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/i18n_language_snippet.cc b/service_apis/youtube/google/youtube_api/i18n_language_snippet.cc index 8ddfb7b..156f666 100644 --- a/service_apis/youtube/google/youtube_api/i18n_language_snippet.cc +++ b/service_apis/youtube/google/youtube_api/i18n_language_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // I18nLanguageSnippet // Documentation: @@ -57,4 +54,6 @@ I18nLanguageSnippet::I18nLanguageSnippet(Json::Value* storage) // Standard destructor. I18nLanguageSnippet::~I18nLanguageSnippet() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/i18n_language_snippet.h b/service_apis/youtube/google/youtube_api/i18n_language_snippet.h index c4f4c00..4aa9711 100644 --- a/service_apis/youtube/google/youtube_api/i18n_language_snippet.h +++ b/service_apis/youtube/google/youtube_api/i18n_language_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_I18N_LANGUAGE_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_I18N_LANGUAGE_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/i18n_region.cc b/service_apis/youtube/google/youtube_api/i18n_region.cc index b78877e..3a78646 100644 --- a/service_apis/youtube/google/youtube_api/i18n_region.cc +++ b/service_apis/youtube/google/youtube_api/i18n_region.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // I18nRegion // Documentation: @@ -59,4 +56,16 @@ I18nRegion::I18nRegion(Json::Value* storage) // Standard destructor. I18nRegion::~I18nRegion() { } + +// Properties. + +const I18nRegionSnippet I18nRegion::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +I18nRegionSnippet I18nRegion::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/i18n_region.h b/service_apis/youtube/google/youtube_api/i18n_region.h index de8c4be..dbaae46 100644 --- a/service_apis/youtube/google/youtube_api/i18n_region.h +++ b/service_apis/youtube/google/youtube_api/i18n_region.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_I18N_REGION_H_ #define GOOGLE_YOUTUBE_API_I18N_REGION_H_ diff --git a/service_apis/youtube/google/youtube_api/i18n_region_list_response.cc b/service_apis/youtube/google/youtube_api/i18n_region_list_response.cc index ea7c8f1..dcea03b 100644 --- a/service_apis/youtube/google/youtube_api/i18n_region_list_response.cc +++ b/service_apis/youtube/google/youtube_api/i18n_region_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // I18nRegionListResponse // Documentation: @@ -59,4 +56,16 @@ I18nRegionListResponse::I18nRegionListResponse(Json::Value* storage) // Standard destructor. I18nRegionListResponse::~I18nRegionListResponse() { } + +// Properties. + +const client::JsonCppArray I18nRegionListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray I18nRegionListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/i18n_region_list_response.h b/service_apis/youtube/google/youtube_api/i18n_region_list_response.h index 2694a4c..c0f6197 100644 --- a/service_apis/youtube/google/youtube_api/i18n_region_list_response.h +++ b/service_apis/youtube/google/youtube_api/i18n_region_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_I18N_REGION_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_I18N_REGION_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/i18n_region_snippet.cc b/service_apis/youtube/google/youtube_api/i18n_region_snippet.cc index 12df58a..ea44365 100644 --- a/service_apis/youtube/google/youtube_api/i18n_region_snippet.cc +++ b/service_apis/youtube/google/youtube_api/i18n_region_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // I18nRegionSnippet // Documentation: @@ -57,4 +54,6 @@ I18nRegionSnippet::I18nRegionSnippet(Json::Value* storage) // Standard destructor. I18nRegionSnippet::~I18nRegionSnippet() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/i18n_region_snippet.h b/service_apis/youtube/google/youtube_api/i18n_region_snippet.h index 76e105c..aa12fb6 100644 --- a/service_apis/youtube/google/youtube_api/i18n_region_snippet.h +++ b/service_apis/youtube/google/youtube_api/i18n_region_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_I18N_REGION_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_I18N_REGION_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/image_settings.cc b/service_apis/youtube/google/youtube_api/image_settings.cc index 38bf740..a3fdb48 100644 --- a/service_apis/youtube/google/youtube_api/image_settings.cc +++ b/service_apis/youtube/google/youtube_api/image_settings.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ImageSettings // Documentation: @@ -59,4 +56,56 @@ ImageSettings::ImageSettings(Json::Value* storage) // Standard destructor. ImageSettings::~ImageSettings() { } + +// Properties. + +const LocalizedProperty ImageSettings::get_background_image_url() const { + const Json::Value& storage = Storage("backgroundImageUrl"); + return client::JsonValueToCppValueHelper(storage); +} + +LocalizedProperty ImageSettings::mutable_backgroundImageUrl() { + Json::Value* storage = MutableStorage("backgroundImageUrl"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LocalizedProperty ImageSettings::get_large_branded_banner_image_imap_script() const { + const Json::Value& storage = Storage("largeBrandedBannerImageImapScript"); + return client::JsonValueToCppValueHelper(storage); +} + +LocalizedProperty ImageSettings::mutable_largeBrandedBannerImageImapScript() { + Json::Value* storage = MutableStorage("largeBrandedBannerImageImapScript"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LocalizedProperty ImageSettings::get_large_branded_banner_image_url() const { + const Json::Value& storage = Storage("largeBrandedBannerImageUrl"); + return client::JsonValueToCppValueHelper(storage); +} + +LocalizedProperty ImageSettings::mutable_largeBrandedBannerImageUrl() { + Json::Value* storage = MutableStorage("largeBrandedBannerImageUrl"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LocalizedProperty ImageSettings::get_small_branded_banner_image_imap_script() const { + const Json::Value& storage = Storage("smallBrandedBannerImageImapScript"); + return client::JsonValueToCppValueHelper(storage); +} + +LocalizedProperty ImageSettings::mutable_smallBrandedBannerImageImapScript() { + Json::Value* storage = MutableStorage("smallBrandedBannerImageImapScript"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LocalizedProperty ImageSettings::get_small_branded_banner_image_url() const { + const Json::Value& storage = Storage("smallBrandedBannerImageUrl"); + return client::JsonValueToCppValueHelper(storage); +} + +LocalizedProperty ImageSettings::mutable_smallBrandedBannerImageUrl() { + Json::Value* storage = MutableStorage("smallBrandedBannerImageUrl"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/image_settings.h b/service_apis/youtube/google/youtube_api/image_settings.h index 5b1025d..5e5c20b 100644 --- a/service_apis/youtube/google/youtube_api/image_settings.h +++ b/service_apis/youtube/google/youtube_api/image_settings.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_IMAGE_SETTINGS_H_ #define GOOGLE_YOUTUBE_API_IMAGE_SETTINGS_H_ diff --git a/service_apis/youtube/google/youtube_api/ingestion_info.cc b/service_apis/youtube/google/youtube_api/ingestion_info.cc index 9e9599d..04f6a0c 100644 --- a/service_apis/youtube/google/youtube_api/ingestion_info.cc +++ b/service_apis/youtube/google/youtube_api/ingestion_info.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // IngestionInfo // Documentation: @@ -57,4 +54,6 @@ IngestionInfo::IngestionInfo(Json::Value* storage) // Standard destructor. IngestionInfo::~IngestionInfo() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/ingestion_info.h b/service_apis/youtube/google/youtube_api/ingestion_info.h index e34d327..3d498b5 100644 --- a/service_apis/youtube/google/youtube_api/ingestion_info.h +++ b/service_apis/youtube/google/youtube_api/ingestion_info.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_INGESTION_INFO_H_ #define GOOGLE_YOUTUBE_API_INGESTION_INFO_H_ diff --git a/service_apis/youtube/google/youtube_api/invideo_branding.cc b/service_apis/youtube/google/youtube_api/invideo_branding.cc index 2b7c5b6..8cabde0 100644 --- a/service_apis/youtube/google/youtube_api/invideo_branding.cc +++ b/service_apis/youtube/google/youtube_api/invideo_branding.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // InvideoBranding // Documentation: @@ -60,4 +57,26 @@ InvideoBranding::InvideoBranding(Json::Value* storage) // Standard destructor. InvideoBranding::~InvideoBranding() { } + +// Properties. + +const InvideoPosition InvideoBranding::get_position() const { + const Json::Value& storage = Storage("position"); + return client::JsonValueToCppValueHelper(storage); +} + +InvideoPosition InvideoBranding::mutable_position() { + Json::Value* storage = MutableStorage("position"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const InvideoTiming InvideoBranding::get_timing() const { + const Json::Value& storage = Storage("timing"); + return client::JsonValueToCppValueHelper(storage); +} + +InvideoTiming InvideoBranding::mutable_timing() { + Json::Value* storage = MutableStorage("timing"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/invideo_branding.h b/service_apis/youtube/google/youtube_api/invideo_branding.h index 9c9e8d4..f8511ff 100644 --- a/service_apis/youtube/google/youtube_api/invideo_branding.h +++ b/service_apis/youtube/google/youtube_api/invideo_branding.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_INVIDEO_BRANDING_H_ #define GOOGLE_YOUTUBE_API_INVIDEO_BRANDING_H_ diff --git a/service_apis/youtube/google/youtube_api/invideo_position.cc b/service_apis/youtube/google/youtube_api/invideo_position.cc index 5645c52..c5cf4df 100644 --- a/service_apis/youtube/google/youtube_api/invideo_position.cc +++ b/service_apis/youtube/google/youtube_api/invideo_position.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // InvideoPosition // Documentation: @@ -57,4 +54,6 @@ InvideoPosition::InvideoPosition(Json::Value* storage) // Standard destructor. InvideoPosition::~InvideoPosition() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/invideo_position.h b/service_apis/youtube/google/youtube_api/invideo_position.h index 007aa16..d4edb11 100644 --- a/service_apis/youtube/google/youtube_api/invideo_position.h +++ b/service_apis/youtube/google/youtube_api/invideo_position.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_INVIDEO_POSITION_H_ #define GOOGLE_YOUTUBE_API_INVIDEO_POSITION_H_ diff --git a/service_apis/youtube/google/youtube_api/invideo_promotion.cc b/service_apis/youtube/google/youtube_api/invideo_promotion.cc index 9b5b366..d90d86d 100644 --- a/service_apis/youtube/google/youtube_api/invideo_promotion.cc +++ b/service_apis/youtube/google/youtube_api/invideo_promotion.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // InvideoPromotion // Documentation: @@ -60,4 +57,36 @@ InvideoPromotion::InvideoPromotion(Json::Value* storage) // Standard destructor. InvideoPromotion::~InvideoPromotion() { } + +// Properties. + +const InvideoTiming InvideoPromotion::get_default_timing() const { + const Json::Value& storage = Storage("defaultTiming"); + return client::JsonValueToCppValueHelper(storage); +} + +InvideoTiming InvideoPromotion::mutable_defaultTiming() { + Json::Value* storage = MutableStorage("defaultTiming"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const client::JsonCppArray InvideoPromotion::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray InvideoPromotion::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const InvideoPosition InvideoPromotion::get_position() const { + const Json::Value& storage = Storage("position"); + return client::JsonValueToCppValueHelper(storage); +} + +InvideoPosition InvideoPromotion::mutable_position() { + Json::Value* storage = MutableStorage("position"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/invideo_promotion.h b/service_apis/youtube/google/youtube_api/invideo_promotion.h index d6093af..e67091b 100644 --- a/service_apis/youtube/google/youtube_api/invideo_promotion.h +++ b/service_apis/youtube/google/youtube_api/invideo_promotion.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_INVIDEO_PROMOTION_H_ #define GOOGLE_YOUTUBE_API_INVIDEO_PROMOTION_H_ diff --git a/service_apis/youtube/google/youtube_api/invideo_timing.cc b/service_apis/youtube/google/youtube_api/invideo_timing.cc index 08bb4e8..ed7ed82 100644 --- a/service_apis/youtube/google/youtube_api/invideo_timing.cc +++ b/service_apis/youtube/google/youtube_api/invideo_timing.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // InvideoTiming // Documentation: @@ -58,4 +55,6 @@ InvideoTiming::InvideoTiming(Json::Value* storage) // Standard destructor. InvideoTiming::~InvideoTiming() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/invideo_timing.h b/service_apis/youtube/google/youtube_api/invideo_timing.h index a1e513c..7f680c3 100644 --- a/service_apis/youtube/google/youtube_api/invideo_timing.h +++ b/service_apis/youtube/google/youtube_api/invideo_timing.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_INVIDEO_TIMING_H_ #define GOOGLE_YOUTUBE_API_INVIDEO_TIMING_H_ diff --git a/service_apis/youtube/google/youtube_api/language_tag.cc b/service_apis/youtube/google/youtube_api/language_tag.cc index 4e64471..24d460a 100644 --- a/service_apis/youtube/google/youtube_api/language_tag.cc +++ b/service_apis/youtube/google/youtube_api/language_tag.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LanguageTag // Documentation: @@ -57,4 +54,6 @@ LanguageTag::LanguageTag(Json::Value* storage) // Standard destructor. LanguageTag::~LanguageTag() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/language_tag.h b/service_apis/youtube/google/youtube_api/language_tag.h index 81e6c52..15aa163 100644 --- a/service_apis/youtube/google/youtube_api/language_tag.h +++ b/service_apis/youtube/google/youtube_api/language_tag.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LANGUAGE_TAG_H_ #define GOOGLE_YOUTUBE_API_LANGUAGE_TAG_H_ diff --git a/service_apis/youtube/google/youtube_api/live_broadcast.cc b/service_apis/youtube/google/youtube_api/live_broadcast.cc index b329984..8bc5398 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast.cc +++ b/service_apis/youtube/google/youtube_api/live_broadcast.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveBroadcast // Documentation: @@ -63,4 +60,56 @@ LiveBroadcast::LiveBroadcast(Json::Value* storage) // Standard destructor. LiveBroadcast::~LiveBroadcast() { } + +// Properties. + +const LiveBroadcastContentDetails LiveBroadcast::get_content_details() const { + const Json::Value& storage = Storage("contentDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveBroadcastContentDetails LiveBroadcast::mutable_contentDetails() { + Json::Value* storage = MutableStorage("contentDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveBroadcastSnippet LiveBroadcast::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveBroadcastSnippet LiveBroadcast::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveBroadcastStatistics LiveBroadcast::get_statistics() const { + const Json::Value& storage = Storage("statistics"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveBroadcastStatistics LiveBroadcast::mutable_statistics() { + Json::Value* storage = MutableStorage("statistics"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveBroadcastStatus LiveBroadcast::get_status() const { + const Json::Value& storage = Storage("status"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveBroadcastStatus LiveBroadcast::mutable_status() { + Json::Value* storage = MutableStorage("status"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveBroadcastTopicDetails LiveBroadcast::get_topic_details() const { + const Json::Value& storage = Storage("topicDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveBroadcastTopicDetails LiveBroadcast::mutable_topicDetails() { + Json::Value* storage = MutableStorage("topicDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_broadcast.h b/service_apis/youtube/google/youtube_api/live_broadcast.h index e4a2195..9a7feb7 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast.h +++ b/service_apis/youtube/google/youtube_api/live_broadcast.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_H_ #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_H_ diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_content_details.cc b/service_apis/youtube/google/youtube_api/live_broadcast_content_details.cc index f6b7515..6cd2909 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_content_details.cc +++ b/service_apis/youtube/google/youtube_api/live_broadcast_content_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveBroadcastContentDetails // Documentation: @@ -29,6 +26,7 @@ #include "google/youtube_api/live_broadcast_content_details.h" #include #include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/client/util/date_time.h" #include "googleapis/strings/stringpiece.h" #include "google/youtube_api/monitor_stream_info.h" @@ -59,4 +57,16 @@ LiveBroadcastContentDetails::LiveBroadcastContentDetails(Json::Value* storage) // Standard destructor. LiveBroadcastContentDetails::~LiveBroadcastContentDetails() { } + +// Properties. + +const MonitorStreamInfo LiveBroadcastContentDetails::get_monitor_stream() const { + const Json::Value& storage = Storage("monitorStream"); + return client::JsonValueToCppValueHelper(storage); +} + +MonitorStreamInfo LiveBroadcastContentDetails::mutable_monitorStream() { + Json::Value* storage = MutableStorage("monitorStream"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_content_details.h b/service_apis/youtube/google/youtube_api/live_broadcast_content_details.h index 0575336..e375a40 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_content_details.h +++ b/service_apis/youtube/google/youtube_api/live_broadcast_content_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,15 +18,17 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_CONTENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_CONTENT_DETAILS_H_ #include #include "googleapis/base/macros.h" #include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/client/util/date_time.h" #include "googleapis/strings/stringpiece.h" #include "google/youtube_api/monitor_stream_info.h" @@ -120,6 +119,46 @@ class LiveBroadcastContentDetails : public client::JsonCppData { *MutableStorage("boundStreamId") = value.data(); } + /** + * Determine if the 'boundStreamLastUpdateTimeMs' attribute was + * set. + * + * @return true if the 'boundStreamLastUpdateTimeMs' attribute + * was set. + */ + bool has_bound_stream_last_update_time_ms() const { + return Storage().isMember("boundStreamLastUpdateTimeMs"); + } + + /** + * Clears the 'boundStreamLastUpdateTimeMs' attribute. + */ + void clear_bound_stream_last_update_time_ms() { + MutableStorage()->removeMember("boundStreamLastUpdateTimeMs"); + } + + + /** + * Get the value of the 'boundStreamLastUpdateTimeMs' attribute. + */ + client::DateTime get_bound_stream_last_update_time_ms() const { + const Json::Value& storage = Storage("boundStreamLastUpdateTimeMs"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'boundStreamLastUpdateTimeMs' attribute. + * + * The date and time that the live stream referenced by boundStreamId was last + * updated. + * + * @param[in] value The new value. + */ + void set_bound_stream_last_update_time_ms(client::DateTime value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("boundStreamLastUpdateTimeMs")); + } + /** * Determine if the 'closedCaptionsType' attribute was set. * @@ -391,6 +430,43 @@ class LiveBroadcastContentDetails : public client::JsonCppData { */ MonitorStreamInfo mutable_monitorStream(); + /** + * Determine if the 'projection' attribute was set. + * + * @return true if the 'projection' attribute was set. + */ + bool has_projection() const { + return Storage().isMember("projection"); + } + + /** + * Clears the 'projection' attribute. + */ + void clear_projection() { + MutableStorage()->removeMember("projection"); + } + + + /** + * Get the value of the 'projection' attribute. + */ + const StringPiece get_projection() const { + const Json::Value& v = Storage("projection"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'projection' attribute. + * + * The projection format of this broadcast. This defaults to rectangular. + * + * @param[in] value The new value. + */ + void set_projection(const StringPiece& value) { + *MutableStorage("projection") = value.data(); + } + /** * Determine if the 'recordFromStart' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_list_response.cc b/service_apis/youtube/google/youtube_api/live_broadcast_list_response.cc index 0620a57..447a261 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_list_response.cc +++ b/service_apis/youtube/google/youtube_api/live_broadcast_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveBroadcastListResponse // Documentation: @@ -61,4 +58,36 @@ LiveBroadcastListResponse::LiveBroadcastListResponse(Json::Value* storage) // Standard destructor. LiveBroadcastListResponse::~LiveBroadcastListResponse() { } + +// Properties. + +const client::JsonCppArray LiveBroadcastListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray LiveBroadcastListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo LiveBroadcastListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo LiveBroadcastListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination LiveBroadcastListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination LiveBroadcastListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_list_response.h b/service_apis/youtube/google/youtube_api/live_broadcast_list_response.h index b0292b7..fcad7ba 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_list_response.h +++ b/service_apis/youtube/google/youtube_api/live_broadcast_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_snippet.cc b/service_apis/youtube/google/youtube_api/live_broadcast_snippet.cc index f6c2674..076e248 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_snippet.cc +++ b/service_apis/youtube/google/youtube_api/live_broadcast_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveBroadcastSnippet // Documentation: @@ -60,4 +57,16 @@ LiveBroadcastSnippet::LiveBroadcastSnippet(Json::Value* storage) // Standard destructor. LiveBroadcastSnippet::~LiveBroadcastSnippet() { } + +// Properties. + +const ThumbnailDetails LiveBroadcastSnippet::get_thumbnails() const { + const Json::Value& storage = Storage("thumbnails"); + return client::JsonValueToCppValueHelper(storage); +} + +ThumbnailDetails LiveBroadcastSnippet::mutable_thumbnails() { + Json::Value* storage = MutableStorage("thumbnails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_snippet.h b/service_apis/youtube/google/youtube_api/live_broadcast_snippet.h index e4b265f..cc3c26f 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_snippet.h +++ b/service_apis/youtube/google/youtube_api/live_broadcast_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_statistics.cc b/service_apis/youtube/google/youtube_api/live_broadcast_statistics.cc index 5b0ddd2..5eabcb8 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_statistics.cc +++ b/service_apis/youtube/google/youtube_api/live_broadcast_statistics.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveBroadcastStatistics // Documentation: @@ -57,4 +54,6 @@ LiveBroadcastStatistics::LiveBroadcastStatistics(Json::Value* storage) // Standard destructor. LiveBroadcastStatistics::~LiveBroadcastStatistics() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_statistics.h b/service_apis/youtube/google/youtube_api/live_broadcast_statistics.h index 01a2952..4600dff 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_statistics.h +++ b/service_apis/youtube/google/youtube_api/live_broadcast_statistics.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_STATISTICS_H_ #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_STATISTICS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_status.cc b/service_apis/youtube/google/youtube_api/live_broadcast_status.cc index f2833ad..6909a9d 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_status.cc +++ b/service_apis/youtube/google/youtube_api/live_broadcast_status.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveBroadcastStatus // Documentation: @@ -57,4 +54,6 @@ LiveBroadcastStatus::LiveBroadcastStatus(Json::Value* storage) // Standard destructor. LiveBroadcastStatus::~LiveBroadcastStatus() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_status.h b/service_apis/youtube/google/youtube_api/live_broadcast_status.h index 0f96b8f..cc15fec 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_status.h +++ b/service_apis/youtube/google/youtube_api/live_broadcast_status.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_STATUS_H_ #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_STATUS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_topic.cc b/service_apis/youtube/google/youtube_api/live_broadcast_topic.cc index e5d0bce..8abbe50 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_topic.cc +++ b/service_apis/youtube/google/youtube_api/live_broadcast_topic.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveBroadcastTopic // Documentation: @@ -59,4 +56,16 @@ LiveBroadcastTopic::LiveBroadcastTopic(Json::Value* storage) // Standard destructor. LiveBroadcastTopic::~LiveBroadcastTopic() { } + +// Properties. + +const LiveBroadcastTopicSnippet LiveBroadcastTopic::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveBroadcastTopicSnippet LiveBroadcastTopic::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_topic.h b/service_apis/youtube/google/youtube_api/live_broadcast_topic.h index fc52af9..577b093 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_topic.h +++ b/service_apis/youtube/google/youtube_api/live_broadcast_topic.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_TOPIC_H_ #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_TOPIC_H_ diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_topic_details.cc b/service_apis/youtube/google/youtube_api/live_broadcast_topic_details.cc index e4c792b..b243e24 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_topic_details.cc +++ b/service_apis/youtube/google/youtube_api/live_broadcast_topic_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveBroadcastTopicDetails // Documentation: @@ -58,4 +55,16 @@ LiveBroadcastTopicDetails::LiveBroadcastTopicDetails(Json::Value* storage) // Standard destructor. LiveBroadcastTopicDetails::~LiveBroadcastTopicDetails() { } + +// Properties. + +const client::JsonCppArray LiveBroadcastTopicDetails::get_topics() const { + const Json::Value& storage = Storage("topics"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray LiveBroadcastTopicDetails::mutable_topics() { + Json::Value* storage = MutableStorage("topics"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_topic_details.h b/service_apis/youtube/google/youtube_api/live_broadcast_topic_details.h index eaa3b44..6212b2a 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_topic_details.h +++ b/service_apis/youtube/google/youtube_api/live_broadcast_topic_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_TOPIC_DETAILS_H_ #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_TOPIC_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_topic_snippet.cc b/service_apis/youtube/google/youtube_api/live_broadcast_topic_snippet.cc index ebe7120..4805e25 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_topic_snippet.cc +++ b/service_apis/youtube/google/youtube_api/live_broadcast_topic_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveBroadcastTopicSnippet // Documentation: @@ -57,4 +54,6 @@ LiveBroadcastTopicSnippet::LiveBroadcastTopicSnippet(Json::Value* storage) // Standard destructor. LiveBroadcastTopicSnippet::~LiveBroadcastTopicSnippet() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_broadcast_topic_snippet.h b/service_apis/youtube/google/youtube_api/live_broadcast_topic_snippet.h index 6e48418..9f9d123 100644 --- a/service_apis/youtube/google/youtube_api/live_broadcast_topic_snippet.h +++ b/service_apis/youtube/google/youtube_api/live_broadcast_topic_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_BROADCAST_TOPIC_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_LIVE_BROADCAST_TOPIC_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_ban.cc b/service_apis/youtube/google/youtube_api/live_chat_ban.cc index 3e2cf4a..71361f2 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_ban.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_ban.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatBan // Documentation: @@ -59,4 +56,16 @@ LiveChatBan::LiveChatBan(Json::Value* storage) // Standard destructor. LiveChatBan::~LiveChatBan() { } + +// Properties. + +const LiveChatBanSnippet LiveChatBan::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatBanSnippet LiveChatBan::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_ban.h b/service_apis/youtube/google/youtube_api/live_chat_ban.h index 2939864..7dc7a32 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_ban.h +++ b/service_apis/youtube/google/youtube_api/live_chat_ban.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_BAN_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_BAN_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_ban_snippet.cc b/service_apis/youtube/google/youtube_api/live_chat_ban_snippet.cc index c4c8458..b4864c4 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_ban_snippet.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_ban_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatBanSnippet // Documentation: @@ -60,4 +57,16 @@ LiveChatBanSnippet::LiveChatBanSnippet(Json::Value* storage) // Standard destructor. LiveChatBanSnippet::~LiveChatBanSnippet() { } + +// Properties. + +const ChannelProfileDetails LiveChatBanSnippet::get_banned_user_details() const { + const Json::Value& storage = Storage("bannedUserDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelProfileDetails LiveChatBanSnippet::mutable_bannedUserDetails() { + Json::Value* storage = MutableStorage("bannedUserDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_ban_snippet.h b/service_apis/youtube/google/youtube_api/live_chat_ban_snippet.h index cd23b8d..d430a0a 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_ban_snippet.h +++ b/service_apis/youtube/google/youtube_api/live_chat_ban_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_BAN_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_BAN_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_fan_funding_event_details.cc b/service_apis/youtube/google/youtube_api/live_chat_fan_funding_event_details.cc index 4bd02c3..85168b2 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_fan_funding_event_details.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_fan_funding_event_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatFanFundingEventDetails // Documentation: @@ -58,4 +55,6 @@ LiveChatFanFundingEventDetails::LiveChatFanFundingEventDetails(Json::Value* stor // Standard destructor. LiveChatFanFundingEventDetails::~LiveChatFanFundingEventDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_fan_funding_event_details.h b/service_apis/youtube/google/youtube_api/live_chat_fan_funding_event_details.h index 840f6ef..3adeae3 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_fan_funding_event_details.h +++ b/service_apis/youtube/google/youtube_api/live_chat_fan_funding_event_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_FAN_FUNDING_EVENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_FAN_FUNDING_EVENT_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_message.cc b/service_apis/youtube/google/youtube_api/live_chat_message.cc index ce1d1da..863c26a 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_message.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_message.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatMessage // Documentation: @@ -60,4 +57,26 @@ LiveChatMessage::LiveChatMessage(Json::Value* storage) // Standard destructor. LiveChatMessage::~LiveChatMessage() { } + +// Properties. + +const LiveChatMessageAuthorDetails LiveChatMessage::get_author_details() const { + const Json::Value& storage = Storage("authorDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatMessageAuthorDetails LiveChatMessage::mutable_authorDetails() { + Json::Value* storage = MutableStorage("authorDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatMessageSnippet LiveChatMessage::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatMessageSnippet LiveChatMessage::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_message.h b/service_apis/youtube/google/youtube_api/live_chat_message.h index eedfce7..5f3126c 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_message.h +++ b/service_apis/youtube/google/youtube_api/live_chat_message.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_message_author_details.cc b/service_apis/youtube/google/youtube_api/live_chat_message_author_details.cc index 058880a..9bfd1e2 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_message_author_details.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_message_author_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatMessageAuthorDetails // Documentation: @@ -57,4 +54,6 @@ LiveChatMessageAuthorDetails::LiveChatMessageAuthorDetails(Json::Value* storage) // Standard destructor. LiveChatMessageAuthorDetails::~LiveChatMessageAuthorDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_message_author_details.h b/service_apis/youtube/google/youtube_api/live_chat_message_author_details.h index 59d41a5..18e8a57 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_message_author_details.h +++ b/service_apis/youtube/google/youtube_api/live_chat_message_author_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_AUTHOR_DETAILS_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_AUTHOR_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_message_deleted_details.cc b/service_apis/youtube/google/youtube_api/live_chat_message_deleted_details.cc new file mode 100644 index 0000000..607e207 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_message_deleted_details.cc @@ -0,0 +1,59 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Description: +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. +// Classes: +// LiveChatMessageDeletedDetails +// Documentation: +// https://developers.google.com/youtube/v3 + +#include "google/youtube_api/live_chat_message_deleted_details.h" +#include +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_youtube_api { +using namespace googleapis; + + +// Object factory method (static). +LiveChatMessageDeletedDetails* LiveChatMessageDeletedDetails::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +LiveChatMessageDeletedDetails::LiveChatMessageDeletedDetails(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +LiveChatMessageDeletedDetails::LiveChatMessageDeletedDetails(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +LiveChatMessageDeletedDetails::~LiveChatMessageDeletedDetails() { +} + +// Properties. +} // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_conversion_pings.h b/service_apis/youtube/google/youtube_api/live_chat_message_deleted_details.h similarity index 53% rename from service_apis/youtube/google/youtube_api/video_conversion_pings.h rename to service_apis/youtube/google/youtube_api/live_chat_message_deleted_details.h index 3bed3eb..03bc3cd 100644 --- a/service_apis/youtube/google/youtube_api/video_conversion_pings.h +++ b/service_apis/youtube/google/youtube_api/live_chat_message_deleted_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,18 +18,18 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 -#ifndef GOOGLE_YOUTUBE_API_VIDEO_CONVERSION_PINGS_H_ -#define GOOGLE_YOUTUBE_API_VIDEO_CONVERSION_PINGS_H_ +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_DELETED_DETAILS_H_ +#define GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_DELETED_DETAILS_H_ +#include #include "googleapis/base/macros.h" #include "googleapis/client/data/jsoncpp_data.h" #include "googleapis/strings/stringpiece.h" -#include "google/youtube_api/video_conversion_ping.h" - namespace Json { class Value; } // namespace Json @@ -45,78 +42,79 @@ using namespace googleapis; * * @ingroup DataObject */ -class VideoConversionPings : public client::JsonCppData { +class LiveChatMessageDeletedDetails : public client::JsonCppData { public: /** * Creates a new default instance. * * @return Ownership is passed back to the caller. */ - static VideoConversionPings* New(); + static LiveChatMessageDeletedDetails* New(); /** * Standard constructor for an immutable data object instance. * * @param[in] storage The underlying data storage for this instance. */ - explicit VideoConversionPings(const Json::Value& storage); + explicit LiveChatMessageDeletedDetails(const Json::Value& storage); /** * Standard constructor for a mutable data object instance. * * @param[in] storage The underlying data storage for this instance. */ - explicit VideoConversionPings(Json::Value* storage); + explicit LiveChatMessageDeletedDetails(Json::Value* storage); /** * Standard destructor. */ - virtual ~VideoConversionPings(); + virtual ~LiveChatMessageDeletedDetails(); /** * Returns a string denoting the type of this data object. * - * @return google_youtube_api::VideoConversionPings + * @return google_youtube_api::LiveChatMessageDeletedDetails */ const StringPiece GetTypeName() const { - return StringPiece("google_youtube_api::VideoConversionPings"); + return StringPiece("google_youtube_api::LiveChatMessageDeletedDetails"); } /** - * Determine if the 'pings' attribute was set. + * Determine if the 'deletedMessageId' attribute was set. * - * @return true if the 'pings' attribute was set. + * @return true if the 'deletedMessageId' attribute was set. */ - bool has_pings() const { - return Storage().isMember("pings"); + bool has_deleted_message_id() const { + return Storage().isMember("deletedMessageId"); } /** - * Clears the 'pings' attribute. + * Clears the 'deletedMessageId' attribute. */ - void clear_pings() { - MutableStorage()->removeMember("pings"); + void clear_deleted_message_id() { + MutableStorage()->removeMember("deletedMessageId"); } /** - * Get a reference to the value of the 'pings' attribute. + * Get the value of the 'deletedMessageId' attribute. */ - const client::JsonCppArray get_pings() const; + const StringPiece get_deleted_message_id() const { + const Json::Value& v = Storage("deletedMessageId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } /** - * Gets a reference to a mutable value of the 'pings' property. - * - * Pings that the app shall fire for a video (authenticated by biscotti - * cookie). Each ping has a context, in which the app must fire the ping, and - * a url identifying the ping. - * - * @return The result can be modified to change the attribute value. + * Change the 'deletedMessageId' attribute. + * @param[in] value The new value. */ - client::JsonCppArray mutable_pings(); + void set_deleted_message_id(const StringPiece& value) { + *MutableStorage("deletedMessageId") = value.data(); + } private: - void operator=(const VideoConversionPings&); -}; // VideoConversionPings + void operator=(const LiveChatMessageDeletedDetails&); +}; // LiveChatMessageDeletedDetails } // namespace google_youtube_api -#endif // GOOGLE_YOUTUBE_API_VIDEO_CONVERSION_PINGS_H_ +#endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_DELETED_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_message_list_response.cc b/service_apis/youtube/google/youtube_api/live_chat_message_list_response.cc index 1138131..5201f4a 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_message_list_response.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_message_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatMessageListResponse // Documentation: @@ -63,4 +60,36 @@ LiveChatMessageListResponse::LiveChatMessageListResponse(Json::Value* storage) // Standard destructor. LiveChatMessageListResponse::~LiveChatMessageListResponse() { } + +// Properties. + +const client::JsonCppArray LiveChatMessageListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray LiveChatMessageListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo LiveChatMessageListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo LiveChatMessageListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination LiveChatMessageListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination LiveChatMessageListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_message_list_response.h b/service_apis/youtube/google/youtube_api/live_chat_message_list_response.h index fba4e72..93565f3 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_message_list_response.h +++ b/service_apis/youtube/google/youtube_api/live_chat_message_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_message_retracted_details.cc b/service_apis/youtube/google/youtube_api/live_chat_message_retracted_details.cc new file mode 100644 index 0000000..d13cc43 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_message_retracted_details.cc @@ -0,0 +1,59 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Description: +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. +// Classes: +// LiveChatMessageRetractedDetails +// Documentation: +// https://developers.google.com/youtube/v3 + +#include "google/youtube_api/live_chat_message_retracted_details.h" +#include +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_youtube_api { +using namespace googleapis; + + +// Object factory method (static). +LiveChatMessageRetractedDetails* LiveChatMessageRetractedDetails::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +LiveChatMessageRetractedDetails::LiveChatMessageRetractedDetails(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +LiveChatMessageRetractedDetails::LiveChatMessageRetractedDetails(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +LiveChatMessageRetractedDetails::~LiveChatMessageRetractedDetails() { +} + +// Properties. +} // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_message_retracted_details.h b/service_apis/youtube/google/youtube_api/live_chat_message_retracted_details.h new file mode 100644 index 0000000..58b767e --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_message_retracted_details.h @@ -0,0 +1,120 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_RETRACTED_DETAILS_H_ +#define GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_RETRACTED_DETAILS_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class LiveChatMessageRetractedDetails : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static LiveChatMessageRetractedDetails* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatMessageRetractedDetails(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatMessageRetractedDetails(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~LiveChatMessageRetractedDetails(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::LiveChatMessageRetractedDetails + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::LiveChatMessageRetractedDetails"); + } + + /** + * Determine if the 'retractedMessageId' attribute was set. + * + * @return true if the 'retractedMessageId' attribute was set. + */ + bool has_retracted_message_id() const { + return Storage().isMember("retractedMessageId"); + } + + /** + * Clears the 'retractedMessageId' attribute. + */ + void clear_retracted_message_id() { + MutableStorage()->removeMember("retractedMessageId"); + } + + + /** + * Get the value of the 'retractedMessageId' attribute. + */ + const StringPiece get_retracted_message_id() const { + const Json::Value& v = Storage("retractedMessageId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'retractedMessageId' attribute. + * @param[in] value The new value. + */ + void set_retracted_message_id(const StringPiece& value) { + *MutableStorage("retractedMessageId") = value.data(); + } + + private: + void operator=(const LiveChatMessageRetractedDetails&); +}; // LiveChatMessageRetractedDetails +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_RETRACTED_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_message_snippet.cc b/service_apis/youtube/google/youtube_api/live_chat_message_snippet.cc index 6a58bbc..0548892 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_message_snippet.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_message_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatMessageSnippet // Documentation: @@ -33,7 +30,15 @@ #include "googleapis/strings/stringpiece.h" #include "google/youtube_api/live_chat_fan_funding_event_details.h" +#include "google/youtube_api/live_chat_message_deleted_details.h" +#include "google/youtube_api/live_chat_message_retracted_details.h" +#include "google/youtube_api/live_chat_poll_closed_details.h" +#include "google/youtube_api/live_chat_poll_edited_details.h" +#include "google/youtube_api/live_chat_poll_opened_details.h" +#include "google/youtube_api/live_chat_poll_voted_details.h" +#include "google/youtube_api/live_chat_super_chat_details.h" #include "google/youtube_api/live_chat_text_message_details.h" +#include "google/youtube_api/live_chat_user_banned_message_details.h" #include @@ -61,4 +66,106 @@ LiveChatMessageSnippet::LiveChatMessageSnippet(Json::Value* storage) // Standard destructor. LiveChatMessageSnippet::~LiveChatMessageSnippet() { } + +// Properties. + +const LiveChatFanFundingEventDetails LiveChatMessageSnippet::get_fan_funding_event_details() const { + const Json::Value& storage = Storage("fanFundingEventDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatFanFundingEventDetails LiveChatMessageSnippet::mutable_fanFundingEventDetails() { + Json::Value* storage = MutableStorage("fanFundingEventDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatMessageDeletedDetails LiveChatMessageSnippet::get_message_deleted_details() const { + const Json::Value& storage = Storage("messageDeletedDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatMessageDeletedDetails LiveChatMessageSnippet::mutable_messageDeletedDetails() { + Json::Value* storage = MutableStorage("messageDeletedDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatMessageRetractedDetails LiveChatMessageSnippet::get_message_retracted_details() const { + const Json::Value& storage = Storage("messageRetractedDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatMessageRetractedDetails LiveChatMessageSnippet::mutable_messageRetractedDetails() { + Json::Value* storage = MutableStorage("messageRetractedDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatPollClosedDetails LiveChatMessageSnippet::get_poll_closed_details() const { + const Json::Value& storage = Storage("pollClosedDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatPollClosedDetails LiveChatMessageSnippet::mutable_pollClosedDetails() { + Json::Value* storage = MutableStorage("pollClosedDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatPollEditedDetails LiveChatMessageSnippet::get_poll_edited_details() const { + const Json::Value& storage = Storage("pollEditedDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatPollEditedDetails LiveChatMessageSnippet::mutable_pollEditedDetails() { + Json::Value* storage = MutableStorage("pollEditedDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatPollOpenedDetails LiveChatMessageSnippet::get_poll_opened_details() const { + const Json::Value& storage = Storage("pollOpenedDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatPollOpenedDetails LiveChatMessageSnippet::mutable_pollOpenedDetails() { + Json::Value* storage = MutableStorage("pollOpenedDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatPollVotedDetails LiveChatMessageSnippet::get_poll_voted_details() const { + const Json::Value& storage = Storage("pollVotedDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatPollVotedDetails LiveChatMessageSnippet::mutable_pollVotedDetails() { + Json::Value* storage = MutableStorage("pollVotedDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatSuperChatDetails LiveChatMessageSnippet::get_super_chat_details() const { + const Json::Value& storage = Storage("superChatDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatSuperChatDetails LiveChatMessageSnippet::mutable_superChatDetails() { + Json::Value* storage = MutableStorage("superChatDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatTextMessageDetails LiveChatMessageSnippet::get_text_message_details() const { + const Json::Value& storage = Storage("textMessageDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatTextMessageDetails LiveChatMessageSnippet::mutable_textMessageDetails() { + Json::Value* storage = MutableStorage("textMessageDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveChatUserBannedMessageDetails LiveChatMessageSnippet::get_user_banned_details() const { + const Json::Value& storage = Storage("userBannedDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatUserBannedMessageDetails LiveChatMessageSnippet::mutable_userBannedDetails() { + Json::Value* storage = MutableStorage("userBannedDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_message_snippet.h b/service_apis/youtube/google/youtube_api/live_chat_message_snippet.h index 21401cd..8e795e0 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_message_snippet.h +++ b/service_apis/youtube/google/youtube_api/live_chat_message_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_MESSAGE_SNIPPET_H_ @@ -34,7 +32,15 @@ #include "googleapis/strings/stringpiece.h" #include "google/youtube_api/live_chat_fan_funding_event_details.h" +#include "google/youtube_api/live_chat_message_deleted_details.h" +#include "google/youtube_api/live_chat_message_retracted_details.h" +#include "google/youtube_api/live_chat_poll_closed_details.h" +#include "google/youtube_api/live_chat_poll_edited_details.h" +#include "google/youtube_api/live_chat_poll_opened_details.h" +#include "google/youtube_api/live_chat_poll_voted_details.h" +#include "google/youtube_api/live_chat_super_chat_details.h" #include "google/youtube_api/live_chat_text_message_details.h" +#include "google/youtube_api/live_chat_user_banned_message_details.h" namespace Json { class Value; @@ -117,7 +123,10 @@ class LiveChatMessageSnippet : public client::JsonCppData { * The ID of the user that authored this message, this field is not always * filled. textMessageEvent - the user that wrote the message fanFundingEvent * - the user that funded the broadcast newSponsorEvent - the user that just - * became a sponsor. + * became a sponsor messageDeletedEvent - the moderator that took the action + * messageRetractedEvent - the author that retracted their message + * userBannedEvent - the moderator that took the action superChatEvent - the + * user that made the purchase. * * @param[in] value The new value. */ @@ -270,6 +279,187 @@ class LiveChatMessageSnippet : public client::JsonCppData { *MutableStorage("liveChatId") = value.data(); } + /** + * Determine if the 'messageDeletedDetails' attribute was set. + * + * @return true if the 'messageDeletedDetails' attribute was set. + */ + bool has_message_deleted_details() const { + return Storage().isMember("messageDeletedDetails"); + } + + /** + * Clears the 'messageDeletedDetails' attribute. + */ + void clear_message_deleted_details() { + MutableStorage()->removeMember("messageDeletedDetails"); + } + + + /** + * Get a reference to the value of the 'messageDeletedDetails' + * attribute. + */ + const LiveChatMessageDeletedDetails get_message_deleted_details() const; + + /** + * Gets a reference to a mutable value of the + * 'messageDeletedDetails' property. + * @return The result can be modified to change the attribute value. + */ + LiveChatMessageDeletedDetails mutable_messageDeletedDetails(); + + /** + * Determine if the 'messageRetractedDetails' attribute was set. + * + * @return true if the 'messageRetractedDetails' attribute was + * set. + */ + bool has_message_retracted_details() const { + return Storage().isMember("messageRetractedDetails"); + } + + /** + * Clears the 'messageRetractedDetails' attribute. + */ + void clear_message_retracted_details() { + MutableStorage()->removeMember("messageRetractedDetails"); + } + + + /** + * Get a reference to the value of the 'messageRetractedDetails' + * attribute. + */ + const LiveChatMessageRetractedDetails get_message_retracted_details() const; + + /** + * Gets a reference to a mutable value of the + * 'messageRetractedDetails' property. + * @return The result can be modified to change the attribute value. + */ + LiveChatMessageRetractedDetails mutable_messageRetractedDetails(); + + /** + * Determine if the 'pollClosedDetails' attribute was set. + * + * @return true if the 'pollClosedDetails' attribute was set. + */ + bool has_poll_closed_details() const { + return Storage().isMember("pollClosedDetails"); + } + + /** + * Clears the 'pollClosedDetails' attribute. + */ + void clear_poll_closed_details() { + MutableStorage()->removeMember("pollClosedDetails"); + } + + + /** + * Get a reference to the value of the 'pollClosedDetails' + * attribute. + */ + const LiveChatPollClosedDetails get_poll_closed_details() const; + + /** + * Gets a reference to a mutable value of the 'pollClosedDetails' + * property. + * @return The result can be modified to change the attribute value. + */ + LiveChatPollClosedDetails mutable_pollClosedDetails(); + + /** + * Determine if the 'pollEditedDetails' attribute was set. + * + * @return true if the 'pollEditedDetails' attribute was set. + */ + bool has_poll_edited_details() const { + return Storage().isMember("pollEditedDetails"); + } + + /** + * Clears the 'pollEditedDetails' attribute. + */ + void clear_poll_edited_details() { + MutableStorage()->removeMember("pollEditedDetails"); + } + + + /** + * Get a reference to the value of the 'pollEditedDetails' + * attribute. + */ + const LiveChatPollEditedDetails get_poll_edited_details() const; + + /** + * Gets a reference to a mutable value of the 'pollEditedDetails' + * property. + * @return The result can be modified to change the attribute value. + */ + LiveChatPollEditedDetails mutable_pollEditedDetails(); + + /** + * Determine if the 'pollOpenedDetails' attribute was set. + * + * @return true if the 'pollOpenedDetails' attribute was set. + */ + bool has_poll_opened_details() const { + return Storage().isMember("pollOpenedDetails"); + } + + /** + * Clears the 'pollOpenedDetails' attribute. + */ + void clear_poll_opened_details() { + MutableStorage()->removeMember("pollOpenedDetails"); + } + + + /** + * Get a reference to the value of the 'pollOpenedDetails' + * attribute. + */ + const LiveChatPollOpenedDetails get_poll_opened_details() const; + + /** + * Gets a reference to a mutable value of the 'pollOpenedDetails' + * property. + * @return The result can be modified to change the attribute value. + */ + LiveChatPollOpenedDetails mutable_pollOpenedDetails(); + + /** + * Determine if the 'pollVotedDetails' attribute was set. + * + * @return true if the 'pollVotedDetails' attribute was set. + */ + bool has_poll_voted_details() const { + return Storage().isMember("pollVotedDetails"); + } + + /** + * Clears the 'pollVotedDetails' attribute. + */ + void clear_poll_voted_details() { + MutableStorage()->removeMember("pollVotedDetails"); + } + + + /** + * Get a reference to the value of the 'pollVotedDetails' + * attribute. + */ + const LiveChatPollVotedDetails get_poll_voted_details() const; + + /** + * Gets a reference to a mutable value of the 'pollVotedDetails' + * property. + * @return The result can be modified to change the attribute value. + */ + LiveChatPollVotedDetails mutable_pollVotedDetails(); + /** * Determine if the 'publishedAt' attribute was set. * @@ -308,6 +498,40 @@ class LiveChatMessageSnippet : public client::JsonCppData { value, MutableStorage("publishedAt")); } + /** + * Determine if the 'superChatDetails' attribute was set. + * + * @return true if the 'superChatDetails' attribute was set. + */ + bool has_super_chat_details() const { + return Storage().isMember("superChatDetails"); + } + + /** + * Clears the 'superChatDetails' attribute. + */ + void clear_super_chat_details() { + MutableStorage()->removeMember("superChatDetails"); + } + + + /** + * Get a reference to the value of the 'superChatDetails' + * attribute. + */ + const LiveChatSuperChatDetails get_super_chat_details() const; + + /** + * Gets a reference to a mutable value of the 'superChatDetails' + * property. + * + * Details about the Super Chat event, this is only set if the type is + * 'superChatEvent'. + * + * @return The result can be modified to change the attribute value. + */ + LiveChatSuperChatDetails mutable_superChatDetails(); + /** * Determine if the 'textMessageDetails' attribute was set. * @@ -380,6 +604,36 @@ class LiveChatMessageSnippet : public client::JsonCppData { *MutableStorage("type") = value.data(); } + /** + * Determine if the 'userBannedDetails' attribute was set. + * + * @return true if the 'userBannedDetails' attribute was set. + */ + bool has_user_banned_details() const { + return Storage().isMember("userBannedDetails"); + } + + /** + * Clears the 'userBannedDetails' attribute. + */ + void clear_user_banned_details() { + MutableStorage()->removeMember("userBannedDetails"); + } + + + /** + * Get a reference to the value of the 'userBannedDetails' + * attribute. + */ + const LiveChatUserBannedMessageDetails get_user_banned_details() const; + + /** + * Gets a reference to a mutable value of the 'userBannedDetails' + * property. + * @return The result can be modified to change the attribute value. + */ + LiveChatUserBannedMessageDetails mutable_userBannedDetails(); + private: void operator=(const LiveChatMessageSnippet&); }; // LiveChatMessageSnippet diff --git a/service_apis/youtube/google/youtube_api/live_chat_moderator.cc b/service_apis/youtube/google/youtube_api/live_chat_moderator.cc index 9ef4da6..7f8be57 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_moderator.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_moderator.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatModerator // Documentation: @@ -59,4 +56,16 @@ LiveChatModerator::LiveChatModerator(Json::Value* storage) // Standard destructor. LiveChatModerator::~LiveChatModerator() { } + +// Properties. + +const LiveChatModeratorSnippet LiveChatModerator::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveChatModeratorSnippet LiveChatModerator::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_moderator.h b/service_apis/youtube/google/youtube_api/live_chat_moderator.h index cbede13..9276581 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_moderator.h +++ b/service_apis/youtube/google/youtube_api/live_chat_moderator.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MODERATOR_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_MODERATOR_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_moderator_list_response.cc b/service_apis/youtube/google/youtube_api/live_chat_moderator_list_response.cc index 9f242c4..ea50dfb 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_moderator_list_response.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_moderator_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatModeratorListResponse // Documentation: @@ -61,4 +58,36 @@ LiveChatModeratorListResponse::LiveChatModeratorListResponse(Json::Value* storag // Standard destructor. LiveChatModeratorListResponse::~LiveChatModeratorListResponse() { } + +// Properties. + +const client::JsonCppArray LiveChatModeratorListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray LiveChatModeratorListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo LiveChatModeratorListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo LiveChatModeratorListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination LiveChatModeratorListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination LiveChatModeratorListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_moderator_list_response.h b/service_apis/youtube/google/youtube_api/live_chat_moderator_list_response.h index 8eb0374..15af679 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_moderator_list_response.h +++ b/service_apis/youtube/google/youtube_api/live_chat_moderator_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MODERATOR_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_MODERATOR_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_moderator_snippet.cc b/service_apis/youtube/google/youtube_api/live_chat_moderator_snippet.cc index aaf5370..7425d18 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_moderator_snippet.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_moderator_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatModeratorSnippet // Documentation: @@ -59,4 +56,16 @@ LiveChatModeratorSnippet::LiveChatModeratorSnippet(Json::Value* storage) // Standard destructor. LiveChatModeratorSnippet::~LiveChatModeratorSnippet() { } + +// Properties. + +const ChannelProfileDetails LiveChatModeratorSnippet::get_moderator_details() const { + const Json::Value& storage = Storage("moderatorDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelProfileDetails LiveChatModeratorSnippet::mutable_moderatorDetails() { + Json::Value* storage = MutableStorage("moderatorDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_moderator_snippet.h b/service_apis/youtube/google/youtube_api/live_chat_moderator_snippet.h index c3ffac3..3a10756 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_moderator_snippet.h +++ b/service_apis/youtube/google/youtube_api/live_chat_moderator_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MODERATOR_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_MODERATOR_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/video_conversion_pings.cc b/service_apis/youtube/google/youtube_api/live_chat_poll_closed_details.cc similarity index 69% rename from service_apis/youtube/google/youtube_api/video_conversion_pings.cc rename to service_apis/youtube/google/youtube_api/live_chat_poll_closed_details.cc index 3dee82d..7eced9b 100644 --- a/service_apis/youtube/google/youtube_api/video_conversion_pings.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_closed_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,25 +11,23 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: -// VideoConversionPings +// LiveChatPollClosedDetails // Documentation: // https://developers.google.com/youtube/v3 -#include "google/youtube_api/video_conversion_pings.h" +#include "google/youtube_api/live_chat_poll_closed_details.h" +#include #include "googleapis/client/data/jsoncpp_data.h" #include "googleapis/strings/stringpiece.h" -#include "google/youtube_api/video_conversion_ping.h" - #include #include "googleapis/strings/strcat.h" @@ -41,21 +37,23 @@ using namespace googleapis; // Object factory method (static). -VideoConversionPings* VideoConversionPings::New() { - return new client::JsonCppCapsule; +LiveChatPollClosedDetails* LiveChatPollClosedDetails::New() { + return new client::JsonCppCapsule; } // Standard immutable constructor. -VideoConversionPings::VideoConversionPings(const Json::Value& storage) +LiveChatPollClosedDetails::LiveChatPollClosedDetails(const Json::Value& storage) : client::JsonCppData(storage) { } // Standard mutable constructor. -VideoConversionPings::VideoConversionPings(Json::Value* storage) +LiveChatPollClosedDetails::LiveChatPollClosedDetails(Json::Value* storage) : client::JsonCppData(storage) { } // Standard destructor. -VideoConversionPings::~VideoConversionPings() { +LiveChatPollClosedDetails::~LiveChatPollClosedDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/channel_id.h b/service_apis/youtube/google/youtube_api/live_chat_poll_closed_details.h similarity index 59% rename from service_apis/youtube/google/youtube_api/channel_id.h rename to service_apis/youtube/google/youtube_api/live_chat_poll_closed_details.h index a91b9e5..dd5bb50 100644 --- a/service_apis/youtube/google/youtube_api/channel_id.h +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_closed_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,11 +18,12 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 -#ifndef GOOGLE_YOUTUBE_API_CHANNEL_ID_H_ -#define GOOGLE_YOUTUBE_API_CHANNEL_ID_H_ +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_CLOSED_DETAILS_H_ +#define GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_CLOSED_DETAILS_H_ #include #include "googleapis/base/macros.h" @@ -44,79 +42,82 @@ using namespace googleapis; * * @ingroup DataObject */ -class ChannelId : public client::JsonCppData { +class LiveChatPollClosedDetails : public client::JsonCppData { public: /** * Creates a new default instance. * * @return Ownership is passed back to the caller. */ - static ChannelId* New(); + static LiveChatPollClosedDetails* New(); /** * Standard constructor for an immutable data object instance. * * @param[in] storage The underlying data storage for this instance. */ - explicit ChannelId(const Json::Value& storage); + explicit LiveChatPollClosedDetails(const Json::Value& storage); /** * Standard constructor for a mutable data object instance. * * @param[in] storage The underlying data storage for this instance. */ - explicit ChannelId(Json::Value* storage); + explicit LiveChatPollClosedDetails(Json::Value* storage); /** * Standard destructor. */ - virtual ~ChannelId(); + virtual ~LiveChatPollClosedDetails(); /** * Returns a string denoting the type of this data object. * - * @return google_youtube_api::ChannelId + * @return google_youtube_api::LiveChatPollClosedDetails */ const StringPiece GetTypeName() const { - return StringPiece("google_youtube_api::ChannelId"); + return StringPiece("google_youtube_api::LiveChatPollClosedDetails"); } /** - * Determine if the 'value' attribute was set. + * Determine if the 'pollId' attribute was set. * - * @return true if the 'value' attribute was set. + * @return true if the 'pollId' attribute was set. */ - bool has_value() const { - return Storage().isMember("value"); + bool has_poll_id() const { + return Storage().isMember("pollId"); } /** - * Clears the 'value' attribute. + * Clears the 'pollId' attribute. */ - void clear_value() { - MutableStorage()->removeMember("value"); + void clear_poll_id() { + MutableStorage()->removeMember("pollId"); } /** - * Get the value of the 'value' attribute. + * Get the value of the 'pollId' attribute. */ - const StringPiece get_value() const { - const Json::Value& v = Storage("value"); + const StringPiece get_poll_id() const { + const Json::Value& v = Storage("pollId"); if (v == Json::Value::null) return StringPiece(""); return StringPiece(v.asCString()); } /** - * Change the 'value' attribute. + * Change the 'pollId' attribute. + * + * The id of the poll that was closed. + * * @param[in] value The new value. */ - void set_value(const StringPiece& value) { - *MutableStorage("value") = value.data(); + void set_poll_id(const StringPiece& value) { + *MutableStorage("pollId") = value.data(); } private: - void operator=(const ChannelId&); -}; // ChannelId + void operator=(const LiveChatPollClosedDetails&); +}; // LiveChatPollClosedDetails } // namespace google_youtube_api -#endif // GOOGLE_YOUTUBE_API_CHANNEL_ID_H_ +#endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_CLOSED_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_poll_edited_details.cc b/service_apis/youtube/google/youtube_api/live_chat_poll_edited_details.cc new file mode 100644 index 0000000..1e6454f --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_edited_details.cc @@ -0,0 +1,71 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Description: +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. +// Classes: +// LiveChatPollEditedDetails +// Documentation: +// https://developers.google.com/youtube/v3 + +#include "google/youtube_api/live_chat_poll_edited_details.h" +#include +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/live_chat_poll_item.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_youtube_api { +using namespace googleapis; + + +// Object factory method (static). +LiveChatPollEditedDetails* LiveChatPollEditedDetails::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +LiveChatPollEditedDetails::LiveChatPollEditedDetails(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +LiveChatPollEditedDetails::LiveChatPollEditedDetails(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +LiveChatPollEditedDetails::~LiveChatPollEditedDetails() { +} + +// Properties. + +const client::JsonCppArray LiveChatPollEditedDetails::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray LiveChatPollEditedDetails::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} +} // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_poll_edited_details.h b/service_apis/youtube/google/youtube_api/live_chat_poll_edited_details.h new file mode 100644 index 0000000..0a68f55 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_edited_details.h @@ -0,0 +1,184 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_EDITED_DETAILS_H_ +#define GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_EDITED_DETAILS_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/live_chat_poll_item.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class LiveChatPollEditedDetails : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static LiveChatPollEditedDetails* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatPollEditedDetails(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatPollEditedDetails(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~LiveChatPollEditedDetails(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::LiveChatPollEditedDetails + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::LiveChatPollEditedDetails"); + } + + /** + * Determine if the 'id' attribute was set. + * + * @return true if the 'id' attribute was set. + */ + bool has_id() const { + return Storage().isMember("id"); + } + + /** + * Clears the 'id' attribute. + */ + void clear_id() { + MutableStorage()->removeMember("id"); + } + + + /** + * Get the value of the 'id' attribute. + */ + const StringPiece get_id() const { + const Json::Value& v = Storage("id"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'id' attribute. + * @param[in] value The new value. + */ + void set_id(const StringPiece& value) { + *MutableStorage("id") = value.data(); + } + + /** + * Determine if the 'items' attribute was set. + * + * @return true if the 'items' attribute was set. + */ + bool has_items() const { + return Storage().isMember("items"); + } + + /** + * Clears the 'items' attribute. + */ + void clear_items() { + MutableStorage()->removeMember("items"); + } + + + /** + * Get a reference to the value of the 'items' attribute. + */ + const client::JsonCppArray get_items() const; + + /** + * Gets a reference to a mutable value of the 'items' property. + * @return The result can be modified to change the attribute value. + */ + client::JsonCppArray mutable_items(); + + /** + * Determine if the 'prompt' attribute was set. + * + * @return true if the 'prompt' attribute was set. + */ + bool has_prompt() const { + return Storage().isMember("prompt"); + } + + /** + * Clears the 'prompt' attribute. + */ + void clear_prompt() { + MutableStorage()->removeMember("prompt"); + } + + + /** + * Get the value of the 'prompt' attribute. + */ + const StringPiece get_prompt() const { + const Json::Value& v = Storage("prompt"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'prompt' attribute. + * @param[in] value The new value. + */ + void set_prompt(const StringPiece& value) { + *MutableStorage("prompt") = value.data(); + } + + private: + void operator=(const LiveChatPollEditedDetails&); +}; // LiveChatPollEditedDetails +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_EDITED_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/channel_id.cc b/service_apis/youtube/google/youtube_api/live_chat_poll_item.cc similarity index 74% rename from service_apis/youtube/google/youtube_api/channel_id.cc rename to service_apis/youtube/google/youtube_api/live_chat_poll_item.cc index ba582fd..5b790ad 100644 --- a/service_apis/youtube/google/youtube_api/channel_id.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_item.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,20 +11,19 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: -// ChannelId +// LiveChatPollItem // Documentation: // https://developers.google.com/youtube/v3 -#include "google/youtube_api/channel_id.h" +#include "google/youtube_api/live_chat_poll_item.h" #include #include "googleapis/client/data/jsoncpp_data.h" #include "googleapis/strings/stringpiece.h" @@ -40,21 +37,23 @@ using namespace googleapis; // Object factory method (static). -ChannelId* ChannelId::New() { - return new client::JsonCppCapsule; +LiveChatPollItem* LiveChatPollItem::New() { + return new client::JsonCppCapsule; } // Standard immutable constructor. -ChannelId::ChannelId(const Json::Value& storage) +LiveChatPollItem::LiveChatPollItem(const Json::Value& storage) : client::JsonCppData(storage) { } // Standard mutable constructor. -ChannelId::ChannelId(Json::Value* storage) +LiveChatPollItem::LiveChatPollItem(Json::Value* storage) : client::JsonCppData(storage) { } // Standard destructor. -ChannelId::~ChannelId() { +LiveChatPollItem::~LiveChatPollItem() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_poll_item.h b/service_apis/youtube/google/youtube_api/live_chat_poll_item.h new file mode 100644 index 0000000..d5223ad --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_item.h @@ -0,0 +1,157 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_ITEM_H_ +#define GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_ITEM_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class LiveChatPollItem : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static LiveChatPollItem* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatPollItem(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatPollItem(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~LiveChatPollItem(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::LiveChatPollItem + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::LiveChatPollItem"); + } + + /** + * Determine if the 'description' attribute was set. + * + * @return true if the 'description' attribute was set. + */ + bool has_description() const { + return Storage().isMember("description"); + } + + /** + * Clears the 'description' attribute. + */ + void clear_description() { + MutableStorage()->removeMember("description"); + } + + + /** + * Get the value of the 'description' attribute. + */ + const StringPiece get_description() const { + const Json::Value& v = Storage("description"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'description' attribute. + * + * Plain text description of the item. + * + * @param[in] value The new value. + */ + void set_description(const StringPiece& value) { + *MutableStorage("description") = value.data(); + } + + /** + * Determine if the 'itemId' attribute was set. + * + * @return true if the 'itemId' attribute was set. + */ + bool has_item_id() const { + return Storage().isMember("itemId"); + } + + /** + * Clears the 'itemId' attribute. + */ + void clear_item_id() { + MutableStorage()->removeMember("itemId"); + } + + + /** + * Get the value of the 'itemId' attribute. + */ + const StringPiece get_item_id() const { + const Json::Value& v = Storage("itemId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'itemId' attribute. + * @param[in] value The new value. + */ + void set_item_id(const StringPiece& value) { + *MutableStorage("itemId") = value.data(); + } + + private: + void operator=(const LiveChatPollItem&); +}; // LiveChatPollItem +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_ITEM_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_poll_opened_details.cc b/service_apis/youtube/google/youtube_api/live_chat_poll_opened_details.cc new file mode 100644 index 0000000..676caa4 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_opened_details.cc @@ -0,0 +1,71 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Description: +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. +// Classes: +// LiveChatPollOpenedDetails +// Documentation: +// https://developers.google.com/youtube/v3 + +#include "google/youtube_api/live_chat_poll_opened_details.h" +#include +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/live_chat_poll_item.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_youtube_api { +using namespace googleapis; + + +// Object factory method (static). +LiveChatPollOpenedDetails* LiveChatPollOpenedDetails::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +LiveChatPollOpenedDetails::LiveChatPollOpenedDetails(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +LiveChatPollOpenedDetails::LiveChatPollOpenedDetails(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +LiveChatPollOpenedDetails::~LiveChatPollOpenedDetails() { +} + +// Properties. + +const client::JsonCppArray LiveChatPollOpenedDetails::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray LiveChatPollOpenedDetails::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} +} // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_poll_opened_details.h b/service_apis/youtube/google/youtube_api/live_chat_poll_opened_details.h new file mode 100644 index 0000000..e03ce09 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_opened_details.h @@ -0,0 +1,184 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_OPENED_DETAILS_H_ +#define GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_OPENED_DETAILS_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/live_chat_poll_item.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class LiveChatPollOpenedDetails : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static LiveChatPollOpenedDetails* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatPollOpenedDetails(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatPollOpenedDetails(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~LiveChatPollOpenedDetails(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::LiveChatPollOpenedDetails + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::LiveChatPollOpenedDetails"); + } + + /** + * Determine if the 'id' attribute was set. + * + * @return true if the 'id' attribute was set. + */ + bool has_id() const { + return Storage().isMember("id"); + } + + /** + * Clears the 'id' attribute. + */ + void clear_id() { + MutableStorage()->removeMember("id"); + } + + + /** + * Get the value of the 'id' attribute. + */ + const StringPiece get_id() const { + const Json::Value& v = Storage("id"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'id' attribute. + * @param[in] value The new value. + */ + void set_id(const StringPiece& value) { + *MutableStorage("id") = value.data(); + } + + /** + * Determine if the 'items' attribute was set. + * + * @return true if the 'items' attribute was set. + */ + bool has_items() const { + return Storage().isMember("items"); + } + + /** + * Clears the 'items' attribute. + */ + void clear_items() { + MutableStorage()->removeMember("items"); + } + + + /** + * Get a reference to the value of the 'items' attribute. + */ + const client::JsonCppArray get_items() const; + + /** + * Gets a reference to a mutable value of the 'items' property. + * @return The result can be modified to change the attribute value. + */ + client::JsonCppArray mutable_items(); + + /** + * Determine if the 'prompt' attribute was set. + * + * @return true if the 'prompt' attribute was set. + */ + bool has_prompt() const { + return Storage().isMember("prompt"); + } + + /** + * Clears the 'prompt' attribute. + */ + void clear_prompt() { + MutableStorage()->removeMember("prompt"); + } + + + /** + * Get the value of the 'prompt' attribute. + */ + const StringPiece get_prompt() const { + const Json::Value& v = Storage("prompt"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'prompt' attribute. + * @param[in] value The new value. + */ + void set_prompt(const StringPiece& value) { + *MutableStorage("prompt") = value.data(); + } + + private: + void operator=(const LiveChatPollOpenedDetails&); +}; // LiveChatPollOpenedDetails +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_OPENED_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/video_conversion_ping.cc b/service_apis/youtube/google/youtube_api/live_chat_poll_voted_details.cc similarity index 70% rename from service_apis/youtube/google/youtube_api/video_conversion_ping.cc rename to service_apis/youtube/google/youtube_api/live_chat_poll_voted_details.cc index b4c70b6..ba82c77 100644 --- a/service_apis/youtube/google/youtube_api/video_conversion_ping.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_voted_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,20 +11,19 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: -// VideoConversionPing +// LiveChatPollVotedDetails // Documentation: // https://developers.google.com/youtube/v3 -#include "google/youtube_api/video_conversion_ping.h" +#include "google/youtube_api/live_chat_poll_voted_details.h" #include #include "googleapis/client/data/jsoncpp_data.h" #include "googleapis/strings/stringpiece.h" @@ -40,21 +37,23 @@ using namespace googleapis; // Object factory method (static). -VideoConversionPing* VideoConversionPing::New() { - return new client::JsonCppCapsule; +LiveChatPollVotedDetails* LiveChatPollVotedDetails::New() { + return new client::JsonCppCapsule; } // Standard immutable constructor. -VideoConversionPing::VideoConversionPing(const Json::Value& storage) +LiveChatPollVotedDetails::LiveChatPollVotedDetails(const Json::Value& storage) : client::JsonCppData(storage) { } // Standard mutable constructor. -VideoConversionPing::VideoConversionPing(Json::Value* storage) +LiveChatPollVotedDetails::LiveChatPollVotedDetails(Json::Value* storage) : client::JsonCppData(storage) { } // Standard destructor. -VideoConversionPing::~VideoConversionPing() { +LiveChatPollVotedDetails::~LiveChatPollVotedDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_poll_voted_details.h b/service_apis/youtube/google/youtube_api/live_chat_poll_voted_details.h new file mode 100644 index 0000000..4ee26a8 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_poll_voted_details.h @@ -0,0 +1,160 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_VOTED_DETAILS_H_ +#define GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_VOTED_DETAILS_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class LiveChatPollVotedDetails : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static LiveChatPollVotedDetails* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatPollVotedDetails(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatPollVotedDetails(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~LiveChatPollVotedDetails(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::LiveChatPollVotedDetails + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::LiveChatPollVotedDetails"); + } + + /** + * Determine if the 'itemId' attribute was set. + * + * @return true if the 'itemId' attribute was set. + */ + bool has_item_id() const { + return Storage().isMember("itemId"); + } + + /** + * Clears the 'itemId' attribute. + */ + void clear_item_id() { + MutableStorage()->removeMember("itemId"); + } + + + /** + * Get the value of the 'itemId' attribute. + */ + const StringPiece get_item_id() const { + const Json::Value& v = Storage("itemId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'itemId' attribute. + * + * The poll item the user chose. + * + * @param[in] value The new value. + */ + void set_item_id(const StringPiece& value) { + *MutableStorage("itemId") = value.data(); + } + + /** + * Determine if the 'pollId' attribute was set. + * + * @return true if the 'pollId' attribute was set. + */ + bool has_poll_id() const { + return Storage().isMember("pollId"); + } + + /** + * Clears the 'pollId' attribute. + */ + void clear_poll_id() { + MutableStorage()->removeMember("pollId"); + } + + + /** + * Get the value of the 'pollId' attribute. + */ + const StringPiece get_poll_id() const { + const Json::Value& v = Storage("pollId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'pollId' attribute. + * + * The poll the user voted on. + * + * @param[in] value The new value. + */ + void set_poll_id(const StringPiece& value) { + *MutableStorage("pollId") = value.data(); + } + + private: + void operator=(const LiveChatPollVotedDetails&); +}; // LiveChatPollVotedDetails +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_VOTED_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_super_chat_details.cc b/service_apis/youtube/google/youtube_api/live_chat_super_chat_details.cc new file mode 100644 index 0000000..7f28a77 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_super_chat_details.cc @@ -0,0 +1,60 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Description: +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. +// Classes: +// LiveChatSuperChatDetails +// Documentation: +// https://developers.google.com/youtube/v3 + +#include "google/youtube_api/live_chat_super_chat_details.h" +#include +#include "googleapis/base/integral_types.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_youtube_api { +using namespace googleapis; + + +// Object factory method (static). +LiveChatSuperChatDetails* LiveChatSuperChatDetails::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +LiveChatSuperChatDetails::LiveChatSuperChatDetails(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +LiveChatSuperChatDetails::LiveChatSuperChatDetails(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +LiveChatSuperChatDetails::~LiveChatSuperChatDetails() { +} + +// Properties. +} // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_super_chat_details.h b/service_apis/youtube/google/youtube_api/live_chat_super_chat_details.h new file mode 100644 index 0000000..aed3948 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_super_chat_details.h @@ -0,0 +1,273 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_SUPER_CHAT_DETAILS_H_ +#define GOOGLE_YOUTUBE_API_LIVE_CHAT_SUPER_CHAT_DETAILS_H_ + +#include +#include "googleapis/base/integral_types.h" +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class LiveChatSuperChatDetails : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static LiveChatSuperChatDetails* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatSuperChatDetails(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatSuperChatDetails(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~LiveChatSuperChatDetails(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::LiveChatSuperChatDetails + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::LiveChatSuperChatDetails"); + } + + /** + * Determine if the 'amountDisplayString' attribute was set. + * + * @return true if the 'amountDisplayString' attribute was set. + */ + bool has_amount_display_string() const { + return Storage().isMember("amountDisplayString"); + } + + /** + * Clears the 'amountDisplayString' attribute. + */ + void clear_amount_display_string() { + MutableStorage()->removeMember("amountDisplayString"); + } + + + /** + * Get the value of the 'amountDisplayString' attribute. + */ + const StringPiece get_amount_display_string() const { + const Json::Value& v = Storage("amountDisplayString"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'amountDisplayString' attribute. + * + * A rendered string that displays the fund amount and currency to the user. + * + * @param[in] value The new value. + */ + void set_amount_display_string(const StringPiece& value) { + *MutableStorage("amountDisplayString") = value.data(); + } + + /** + * Determine if the 'amountMicros' attribute was set. + * + * @return true if the 'amountMicros' attribute was set. + */ + bool has_amount_micros() const { + return Storage().isMember("amountMicros"); + } + + /** + * Clears the 'amountMicros' attribute. + */ + void clear_amount_micros() { + MutableStorage()->removeMember("amountMicros"); + } + + + /** + * Get the value of the 'amountMicros' attribute. + */ + uint64 get_amount_micros() const { + const Json::Value& storage = Storage("amountMicros"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'amountMicros' attribute. + * + * The amount purchased by the user, in micros (1,750,000 micros = 1.75). + * + * @param[in] value The new value. + */ + void set_amount_micros(uint64 value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("amountMicros")); + } + + /** + * Determine if the 'currency' attribute was set. + * + * @return true if the 'currency' attribute was set. + */ + bool has_currency() const { + return Storage().isMember("currency"); + } + + /** + * Clears the 'currency' attribute. + */ + void clear_currency() { + MutableStorage()->removeMember("currency"); + } + + + /** + * Get the value of the 'currency' attribute. + */ + const StringPiece get_currency() const { + const Json::Value& v = Storage("currency"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'currency' attribute. + * + * The currency in which the purchase was made. + * + * @param[in] value The new value. + */ + void set_currency(const StringPiece& value) { + *MutableStorage("currency") = value.data(); + } + + /** + * Determine if the 'tier' attribute was set. + * + * @return true if the 'tier' attribute was set. + */ + bool has_tier() const { + return Storage().isMember("tier"); + } + + /** + * Clears the 'tier' attribute. + */ + void clear_tier() { + MutableStorage()->removeMember("tier"); + } + + + /** + * Get the value of the 'tier' attribute. + */ + uint32 get_tier() const { + const Json::Value& storage = Storage("tier"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'tier' attribute. + * + * The tier in which the amount belongs to. Lower amounts belong to lower + * tiers. Starts at 1. + * + * @param[in] value The new value. + */ + void set_tier(uint32 value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("tier")); + } + + /** + * Determine if the 'userComment' attribute was set. + * + * @return true if the 'userComment' attribute was set. + */ + bool has_user_comment() const { + return Storage().isMember("userComment"); + } + + /** + * Clears the 'userComment' attribute. + */ + void clear_user_comment() { + MutableStorage()->removeMember("userComment"); + } + + + /** + * Get the value of the 'userComment' attribute. + */ + const StringPiece get_user_comment() const { + const Json::Value& v = Storage("userComment"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'userComment' attribute. + * + * The comment added by the user to this Super Chat event. + * + * @param[in] value The new value. + */ + void set_user_comment(const StringPiece& value) { + *MutableStorage("userComment") = value.data(); + } + + private: + void operator=(const LiveChatSuperChatDetails&); +}; // LiveChatSuperChatDetails +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_SUPER_CHAT_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_text_message_details.cc b/service_apis/youtube/google/youtube_api/live_chat_text_message_details.cc index 9e6254a..e1bfb06 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_text_message_details.cc +++ b/service_apis/youtube/google/youtube_api/live_chat_text_message_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveChatTextMessageDetails // Documentation: @@ -57,4 +54,6 @@ LiveChatTextMessageDetails::LiveChatTextMessageDetails(Json::Value* storage) // Standard destructor. LiveChatTextMessageDetails::~LiveChatTextMessageDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_text_message_details.h b/service_apis/youtube/google/youtube_api/live_chat_text_message_details.h index fe8adef..ab7a188 100644 --- a/service_apis/youtube/google/youtube_api/live_chat_text_message_details.h +++ b/service_apis/youtube/google/youtube_api/live_chat_text_message_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_TEXT_MESSAGE_DETAILS_H_ #define GOOGLE_YOUTUBE_API_LIVE_CHAT_TEXT_MESSAGE_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_chat_user_banned_message_details.cc b/service_apis/youtube/google/youtube_api/live_chat_user_banned_message_details.cc new file mode 100644 index 0000000..3b47f9a --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_user_banned_message_details.cc @@ -0,0 +1,72 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Description: +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. +// Classes: +// LiveChatUserBannedMessageDetails +// Documentation: +// https://developers.google.com/youtube/v3 + +#include "google/youtube_api/live_chat_user_banned_message_details.h" +#include +#include "googleapis/base/integral_types.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/channel_profile_details.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_youtube_api { +using namespace googleapis; + + +// Object factory method (static). +LiveChatUserBannedMessageDetails* LiveChatUserBannedMessageDetails::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +LiveChatUserBannedMessageDetails::LiveChatUserBannedMessageDetails(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +LiveChatUserBannedMessageDetails::LiveChatUserBannedMessageDetails(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +LiveChatUserBannedMessageDetails::~LiveChatUserBannedMessageDetails() { +} + +// Properties. + +const ChannelProfileDetails LiveChatUserBannedMessageDetails::get_banned_user_details() const { + const Json::Value& storage = Storage("bannedUserDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelProfileDetails LiveChatUserBannedMessageDetails::mutable_bannedUserDetails() { + Json::Value* storage = MutableStorage("bannedUserDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} +} // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_chat_user_banned_message_details.h b/service_apis/youtube/google/youtube_api/live_chat_user_banned_message_details.h new file mode 100644 index 0000000..19488ca --- /dev/null +++ b/service_apis/youtube/google/youtube_api/live_chat_user_banned_message_details.h @@ -0,0 +1,197 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_USER_BANNED_MESSAGE_DETAILS_H_ +#define GOOGLE_YOUTUBE_API_LIVE_CHAT_USER_BANNED_MESSAGE_DETAILS_H_ + +#include +#include "googleapis/base/integral_types.h" +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/channel_profile_details.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class LiveChatUserBannedMessageDetails : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static LiveChatUserBannedMessageDetails* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatUserBannedMessageDetails(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit LiveChatUserBannedMessageDetails(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~LiveChatUserBannedMessageDetails(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::LiveChatUserBannedMessageDetails + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::LiveChatUserBannedMessageDetails"); + } + + /** + * Determine if the 'banDurationSeconds' attribute was set. + * + * @return true if the 'banDurationSeconds' attribute was set. + */ + bool has_ban_duration_seconds() const { + return Storage().isMember("banDurationSeconds"); + } + + /** + * Clears the 'banDurationSeconds' attribute. + */ + void clear_ban_duration_seconds() { + MutableStorage()->removeMember("banDurationSeconds"); + } + + + /** + * Get the value of the 'banDurationSeconds' attribute. + */ + uint64 get_ban_duration_seconds() const { + const Json::Value& storage = Storage("banDurationSeconds"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'banDurationSeconds' attribute. + * + * The duration of the ban. This property is only present if the banType is + * temporary. + * + * @param[in] value The new value. + */ + void set_ban_duration_seconds(uint64 value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("banDurationSeconds")); + } + + /** + * Determine if the 'banType' attribute was set. + * + * @return true if the 'banType' attribute was set. + */ + bool has_ban_type() const { + return Storage().isMember("banType"); + } + + /** + * Clears the 'banType' attribute. + */ + void clear_ban_type() { + MutableStorage()->removeMember("banType"); + } + + + /** + * Get the value of the 'banType' attribute. + */ + const StringPiece get_ban_type() const { + const Json::Value& v = Storage("banType"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'banType' attribute. + * + * The type of ban. + * + * @param[in] value The new value. + */ + void set_ban_type(const StringPiece& value) { + *MutableStorage("banType") = value.data(); + } + + /** + * Determine if the 'bannedUserDetails' attribute was set. + * + * @return true if the 'bannedUserDetails' attribute was set. + */ + bool has_banned_user_details() const { + return Storage().isMember("bannedUserDetails"); + } + + /** + * Clears the 'bannedUserDetails' attribute. + */ + void clear_banned_user_details() { + MutableStorage()->removeMember("bannedUserDetails"); + } + + + /** + * Get a reference to the value of the 'bannedUserDetails' + * attribute. + */ + const ChannelProfileDetails get_banned_user_details() const; + + /** + * Gets a reference to a mutable value of the 'bannedUserDetails' + * property. + * + * The details of the user that was banned. + * + * @return The result can be modified to change the attribute value. + */ + ChannelProfileDetails mutable_bannedUserDetails(); + + private: + void operator=(const LiveChatUserBannedMessageDetails&); +}; // LiveChatUserBannedMessageDetails +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_USER_BANNED_MESSAGE_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_stream.cc b/service_apis/youtube/google/youtube_api/live_stream.cc index e194e31..1243d7c 100644 --- a/service_apis/youtube/google/youtube_api/live_stream.cc +++ b/service_apis/youtube/google/youtube_api/live_stream.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveStream // Documentation: @@ -62,4 +59,46 @@ LiveStream::LiveStream(Json::Value* storage) // Standard destructor. LiveStream::~LiveStream() { } + +// Properties. + +const CdnSettings LiveStream::get_cdn() const { + const Json::Value& storage = Storage("cdn"); + return client::JsonValueToCppValueHelper(storage); +} + +CdnSettings LiveStream::mutable_cdn() { + Json::Value* storage = MutableStorage("cdn"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveStreamContentDetails LiveStream::get_content_details() const { + const Json::Value& storage = Storage("contentDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveStreamContentDetails LiveStream::mutable_contentDetails() { + Json::Value* storage = MutableStorage("contentDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveStreamSnippet LiveStream::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveStreamSnippet LiveStream::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const LiveStreamStatus LiveStream::get_status() const { + const Json::Value& storage = Storage("status"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveStreamStatus LiveStream::mutable_status() { + Json::Value* storage = MutableStorage("status"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_stream.h b/service_apis/youtube/google/youtube_api/live_stream.h index ea48b29..4dce88a 100644 --- a/service_apis/youtube/google/youtube_api/live_stream.h +++ b/service_apis/youtube/google/youtube_api/live_stream.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_STREAM_H_ #define GOOGLE_YOUTUBE_API_LIVE_STREAM_H_ diff --git a/service_apis/youtube/google/youtube_api/live_stream_configuration_issue.cc b/service_apis/youtube/google/youtube_api/live_stream_configuration_issue.cc index 7ab56c8..cb1c19b 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_configuration_issue.cc +++ b/service_apis/youtube/google/youtube_api/live_stream_configuration_issue.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveStreamConfigurationIssue // Documentation: @@ -57,4 +54,6 @@ LiveStreamConfigurationIssue::LiveStreamConfigurationIssue(Json::Value* storage) // Standard destructor. LiveStreamConfigurationIssue::~LiveStreamConfigurationIssue() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_stream_configuration_issue.h b/service_apis/youtube/google/youtube_api/live_stream_configuration_issue.h index 9d9c156..27b30d8 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_configuration_issue.h +++ b/service_apis/youtube/google/youtube_api/live_stream_configuration_issue.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_STREAM_CONFIGURATION_ISSUE_H_ #define GOOGLE_YOUTUBE_API_LIVE_STREAM_CONFIGURATION_ISSUE_H_ diff --git a/service_apis/youtube/google/youtube_api/live_stream_content_details.cc b/service_apis/youtube/google/youtube_api/live_stream_content_details.cc index e65faf6..fb81f74 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_content_details.cc +++ b/service_apis/youtube/google/youtube_api/live_stream_content_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveStreamContentDetails // Documentation: @@ -57,4 +54,6 @@ LiveStreamContentDetails::LiveStreamContentDetails(Json::Value* storage) // Standard destructor. LiveStreamContentDetails::~LiveStreamContentDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_stream_content_details.h b/service_apis/youtube/google/youtube_api/live_stream_content_details.h index 5889861..a95d2c4 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_content_details.h +++ b/service_apis/youtube/google/youtube_api/live_stream_content_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_STREAM_CONTENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_LIVE_STREAM_CONTENT_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_stream_health_status.cc b/service_apis/youtube/google/youtube_api/live_stream_health_status.cc index 94fe2a2..bc8da25 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_health_status.cc +++ b/service_apis/youtube/google/youtube_api/live_stream_health_status.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveStreamHealthStatus // Documentation: @@ -60,4 +57,16 @@ LiveStreamHealthStatus::LiveStreamHealthStatus(Json::Value* storage) // Standard destructor. LiveStreamHealthStatus::~LiveStreamHealthStatus() { } + +// Properties. + +const client::JsonCppArray LiveStreamHealthStatus::get_configuration_issues() const { + const Json::Value& storage = Storage("configurationIssues"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray LiveStreamHealthStatus::mutable_configurationIssues() { + Json::Value* storage = MutableStorage("configurationIssues"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_stream_health_status.h b/service_apis/youtube/google/youtube_api/live_stream_health_status.h index 4ed59ba..66517db 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_health_status.h +++ b/service_apis/youtube/google/youtube_api/live_stream_health_status.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_STREAM_HEALTH_STATUS_H_ #define GOOGLE_YOUTUBE_API_LIVE_STREAM_HEALTH_STATUS_H_ diff --git a/service_apis/youtube/google/youtube_api/live_stream_list_response.cc b/service_apis/youtube/google/youtube_api/live_stream_list_response.cc index 9449f1e..7608cb2 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_list_response.cc +++ b/service_apis/youtube/google/youtube_api/live_stream_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveStreamListResponse // Documentation: @@ -61,4 +58,36 @@ LiveStreamListResponse::LiveStreamListResponse(Json::Value* storage) // Standard destructor. LiveStreamListResponse::~LiveStreamListResponse() { } + +// Properties. + +const client::JsonCppArray LiveStreamListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray LiveStreamListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo LiveStreamListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo LiveStreamListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination LiveStreamListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination LiveStreamListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_stream_list_response.h b/service_apis/youtube/google/youtube_api/live_stream_list_response.h index f910a81..2bae3bf 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_list_response.h +++ b/service_apis/youtube/google/youtube_api/live_stream_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_STREAM_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_LIVE_STREAM_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/live_stream_snippet.cc b/service_apis/youtube/google/youtube_api/live_stream_snippet.cc index f31cd11..46b3834 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_snippet.cc +++ b/service_apis/youtube/google/youtube_api/live_stream_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveStreamSnippet // Documentation: @@ -58,4 +55,6 @@ LiveStreamSnippet::LiveStreamSnippet(Json::Value* storage) // Standard destructor. LiveStreamSnippet::~LiveStreamSnippet() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_stream_snippet.h b/service_apis/youtube/google/youtube_api/live_stream_snippet.h index bd45781..48ca5f6 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_snippet.h +++ b/service_apis/youtube/google/youtube_api/live_stream_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_STREAM_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_LIVE_STREAM_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/live_stream_status.cc b/service_apis/youtube/google/youtube_api/live_stream_status.cc index 289908f..12f5508 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_status.cc +++ b/service_apis/youtube/google/youtube_api/live_stream_status.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LiveStreamStatus // Documentation: @@ -59,4 +56,16 @@ LiveStreamStatus::LiveStreamStatus(Json::Value* storage) // Standard destructor. LiveStreamStatus::~LiveStreamStatus() { } + +// Properties. + +const LiveStreamHealthStatus LiveStreamStatus::get_health_status() const { + const Json::Value& storage = Storage("healthStatus"); + return client::JsonValueToCppValueHelper(storage); +} + +LiveStreamHealthStatus LiveStreamStatus::mutable_healthStatus() { + Json::Value* storage = MutableStorage("healthStatus"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/live_stream_status.h b/service_apis/youtube/google/youtube_api/live_stream_status.h index cb7c181..1a23958 100644 --- a/service_apis/youtube/google/youtube_api/live_stream_status.h +++ b/service_apis/youtube/google/youtube_api/live_stream_status.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LIVE_STREAM_STATUS_H_ #define GOOGLE_YOUTUBE_API_LIVE_STREAM_STATUS_H_ diff --git a/service_apis/youtube/google/youtube_api/localized_property.cc b/service_apis/youtube/google/youtube_api/localized_property.cc index 6117eb5..6db271f 100644 --- a/service_apis/youtube/google/youtube_api/localized_property.cc +++ b/service_apis/youtube/google/youtube_api/localized_property.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LocalizedProperty // Documentation: @@ -60,4 +57,26 @@ LocalizedProperty::LocalizedProperty(Json::Value* storage) // Standard destructor. LocalizedProperty::~LocalizedProperty() { } + +// Properties. + +const LanguageTag LocalizedProperty::get_default_language() const { + const Json::Value& storage = Storage("defaultLanguage"); + return client::JsonValueToCppValueHelper(storage); +} + +LanguageTag LocalizedProperty::mutable_defaultLanguage() { + Json::Value* storage = MutableStorage("defaultLanguage"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const client::JsonCppArray LocalizedProperty::get_localized() const { + const Json::Value& storage = Storage("localized"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray LocalizedProperty::mutable_localized() { + Json::Value* storage = MutableStorage("localized"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/localized_property.h b/service_apis/youtube/google/youtube_api/localized_property.h index 5ad2925..06116e6 100644 --- a/service_apis/youtube/google/youtube_api/localized_property.h +++ b/service_apis/youtube/google/youtube_api/localized_property.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LOCALIZED_PROPERTY_H_ #define GOOGLE_YOUTUBE_API_LOCALIZED_PROPERTY_H_ diff --git a/service_apis/youtube/google/youtube_api/localized_string.cc b/service_apis/youtube/google/youtube_api/localized_string.cc index d12a03c..fe53358 100644 --- a/service_apis/youtube/google/youtube_api/localized_string.cc +++ b/service_apis/youtube/google/youtube_api/localized_string.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // LocalizedString // Documentation: @@ -57,4 +54,6 @@ LocalizedString::LocalizedString(Json::Value* storage) // Standard destructor. LocalizedString::~LocalizedString() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/localized_string.h b/service_apis/youtube/google/youtube_api/localized_string.h index dda255f..7b11931 100644 --- a/service_apis/youtube/google/youtube_api/localized_string.h +++ b/service_apis/youtube/google/youtube_api/localized_string.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_LOCALIZED_STRING_H_ #define GOOGLE_YOUTUBE_API_LOCALIZED_STRING_H_ diff --git a/service_apis/youtube/google/youtube_api/monitor_stream_info.cc b/service_apis/youtube/google/youtube_api/monitor_stream_info.cc index 9746318..b8d2bf4 100644 --- a/service_apis/youtube/google/youtube_api/monitor_stream_info.cc +++ b/service_apis/youtube/google/youtube_api/monitor_stream_info.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // MonitorStreamInfo // Documentation: @@ -58,4 +55,6 @@ MonitorStreamInfo::MonitorStreamInfo(Json::Value* storage) // Standard destructor. MonitorStreamInfo::~MonitorStreamInfo() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/monitor_stream_info.h b/service_apis/youtube/google/youtube_api/monitor_stream_info.h index b241b09..6053ae5 100644 --- a/service_apis/youtube/google/youtube_api/monitor_stream_info.h +++ b/service_apis/youtube/google/youtube_api/monitor_stream_info.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_MONITOR_STREAM_INFO_H_ #define GOOGLE_YOUTUBE_API_MONITOR_STREAM_INFO_H_ diff --git a/service_apis/youtube/google/youtube_api/page_info.cc b/service_apis/youtube/google/youtube_api/page_info.cc index 58ec737..1ef27af 100644 --- a/service_apis/youtube/google/youtube_api/page_info.cc +++ b/service_apis/youtube/google/youtube_api/page_info.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PageInfo // Documentation: @@ -57,4 +54,6 @@ PageInfo::PageInfo(Json::Value* storage) // Standard destructor. PageInfo::~PageInfo() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/page_info.h b/service_apis/youtube/google/youtube_api/page_info.h index cfe9f24..fb92711 100644 --- a/service_apis/youtube/google/youtube_api/page_info.h +++ b/service_apis/youtube/google/youtube_api/page_info.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PAGE_INFO_H_ #define GOOGLE_YOUTUBE_API_PAGE_INFO_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist.cc b/service_apis/youtube/google/youtube_api/playlist.cc index 84c2fcc..f7f37f4 100644 --- a/service_apis/youtube/google/youtube_api/playlist.cc +++ b/service_apis/youtube/google/youtube_api/playlist.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // Playlist // Documentation: @@ -63,4 +60,56 @@ Playlist::Playlist(Json::Value* storage) // Standard destructor. Playlist::~Playlist() { } + +// Properties. + +const PlaylistContentDetails Playlist::get_content_details() const { + const Json::Value& storage = Storage("contentDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +PlaylistContentDetails Playlist::mutable_contentDetails() { + Json::Value* storage = MutableStorage("contentDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const client::JsonCppAssociativeArray Playlist::get_localizations() const { + const Json::Value& storage = Storage("localizations"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppAssociativeArray Playlist::mutable_localizations() { + Json::Value* storage = MutableStorage("localizations"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PlaylistPlayer Playlist::get_player() const { + const Json::Value& storage = Storage("player"); + return client::JsonValueToCppValueHelper(storage); +} + +PlaylistPlayer Playlist::mutable_player() { + Json::Value* storage = MutableStorage("player"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const PlaylistSnippet Playlist::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +PlaylistSnippet Playlist::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const PlaylistStatus Playlist::get_status() const { + const Json::Value& storage = Storage("status"); + return client::JsonValueToCppValueHelper(storage); +} + +PlaylistStatus Playlist::mutable_status() { + Json::Value* storage = MutableStorage("status"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist.h b/service_apis/youtube/google/youtube_api/playlist.h index e180e67..261428c 100644 --- a/service_apis/youtube/google/youtube_api/playlist.h +++ b/service_apis/youtube/google/youtube_api/playlist.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_content_details.cc b/service_apis/youtube/google/youtube_api/playlist_content_details.cc index 98a8b0a..326f721 100644 --- a/service_apis/youtube/google/youtube_api/playlist_content_details.cc +++ b/service_apis/youtube/google/youtube_api/playlist_content_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistContentDetails // Documentation: @@ -57,4 +54,6 @@ PlaylistContentDetails::PlaylistContentDetails(Json::Value* storage) // Standard destructor. PlaylistContentDetails::~PlaylistContentDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_content_details.h b/service_apis/youtube/google/youtube_api/playlist_content_details.h index 47c87c9..52a5b07 100644 --- a/service_apis/youtube/google/youtube_api/playlist_content_details.h +++ b/service_apis/youtube/google/youtube_api/playlist_content_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_CONTENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_CONTENT_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_item.cc b/service_apis/youtube/google/youtube_api/playlist_item.cc index 9f3be08..7ccddb0 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item.cc +++ b/service_apis/youtube/google/youtube_api/playlist_item.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistItem // Documentation: @@ -61,4 +58,36 @@ PlaylistItem::PlaylistItem(Json::Value* storage) // Standard destructor. PlaylistItem::~PlaylistItem() { } + +// Properties. + +const PlaylistItemContentDetails PlaylistItem::get_content_details() const { + const Json::Value& storage = Storage("contentDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +PlaylistItemContentDetails PlaylistItem::mutable_contentDetails() { + Json::Value* storage = MutableStorage("contentDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const PlaylistItemSnippet PlaylistItem::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +PlaylistItemSnippet PlaylistItem::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const PlaylistItemStatus PlaylistItem::get_status() const { + const Json::Value& storage = Storage("status"); + return client::JsonValueToCppValueHelper(storage); +} + +PlaylistItemStatus PlaylistItem::mutable_status() { + Json::Value* storage = MutableStorage("status"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_item.h b/service_apis/youtube/google/youtube_api/playlist_item.h index 8c309df..6aacf37 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item.h +++ b/service_apis/youtube/google/youtube_api/playlist_item.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_item_content_details.cc b/service_apis/youtube/google/youtube_api/playlist_item_content_details.cc index cfcfe3c..6c14843 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item_content_details.cc +++ b/service_apis/youtube/google/youtube_api/playlist_item_content_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistItemContentDetails // Documentation: @@ -29,6 +26,7 @@ #include "google/youtube_api/playlist_item_content_details.h" #include #include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/client/util/date_time.h" #include "googleapis/strings/stringpiece.h" @@ -57,4 +55,6 @@ PlaylistItemContentDetails::PlaylistItemContentDetails(Json::Value* storage) // Standard destructor. PlaylistItemContentDetails::~PlaylistItemContentDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_item_content_details.h b/service_apis/youtube/google/youtube_api/playlist_item_content_details.h index d073eb3..44af14b 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item_content_details.h +++ b/service_apis/youtube/google/youtube_api/playlist_item_content_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,15 +18,17 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_CONTENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_CONTENT_DETAILS_H_ #include #include "googleapis/base/macros.h" #include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/client/util/date_time.h" #include "googleapis/strings/stringpiece.h" namespace Json { @@ -238,6 +237,44 @@ class PlaylistItemContentDetails : public client::JsonCppData { *MutableStorage("videoId") = value.data(); } + /** + * Determine if the 'videoPublishedAt' attribute was set. + * + * @return true if the 'videoPublishedAt' attribute was set. + */ + bool has_video_published_at() const { + return Storage().isMember("videoPublishedAt"); + } + + /** + * Clears the 'videoPublishedAt' attribute. + */ + void clear_video_published_at() { + MutableStorage()->removeMember("videoPublishedAt"); + } + + + /** + * Get the value of the 'videoPublishedAt' attribute. + */ + client::DateTime get_video_published_at() const { + const Json::Value& storage = Storage("videoPublishedAt"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'videoPublishedAt' attribute. + * + * The date and time that the video was published to YouTube. The value is + * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + * + * @param[in] value The new value. + */ + void set_video_published_at(client::DateTime value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("videoPublishedAt")); + } + private: void operator=(const PlaylistItemContentDetails&); }; // PlaylistItemContentDetails diff --git a/service_apis/youtube/google/youtube_api/playlist_item_list_response.cc b/service_apis/youtube/google/youtube_api/playlist_item_list_response.cc index 4a735fa..963e34b 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item_list_response.cc +++ b/service_apis/youtube/google/youtube_api/playlist_item_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistItemListResponse // Documentation: @@ -61,4 +58,36 @@ PlaylistItemListResponse::PlaylistItemListResponse(Json::Value* storage) // Standard destructor. PlaylistItemListResponse::~PlaylistItemListResponse() { } + +// Properties. + +const client::JsonCppArray PlaylistItemListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray PlaylistItemListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo PlaylistItemListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo PlaylistItemListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination PlaylistItemListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination PlaylistItemListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_item_list_response.h b/service_apis/youtube/google/youtube_api/playlist_item_list_response.h index 823d84c..7a9f02a 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item_list_response.h +++ b/service_apis/youtube/google/youtube_api/playlist_item_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_item_snippet.cc b/service_apis/youtube/google/youtube_api/playlist_item_snippet.cc index 2259c86..db4b73b 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item_snippet.cc +++ b/service_apis/youtube/google/youtube_api/playlist_item_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistItemSnippet // Documentation: @@ -62,4 +59,26 @@ PlaylistItemSnippet::PlaylistItemSnippet(Json::Value* storage) // Standard destructor. PlaylistItemSnippet::~PlaylistItemSnippet() { } + +// Properties. + +const ResourceId PlaylistItemSnippet::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId PlaylistItemSnippet::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ThumbnailDetails PlaylistItemSnippet::get_thumbnails() const { + const Json::Value& storage = Storage("thumbnails"); + return client::JsonValueToCppValueHelper(storage); +} + +ThumbnailDetails PlaylistItemSnippet::mutable_thumbnails() { + Json::Value* storage = MutableStorage("thumbnails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_item_snippet.h b/service_apis/youtube/google/youtube_api/playlist_item_snippet.h index f31b1e5..e5553e3 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item_snippet.h +++ b/service_apis/youtube/google/youtube_api/playlist_item_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_item_status.cc b/service_apis/youtube/google/youtube_api/playlist_item_status.cc index 3bc22fc..67b089d 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item_status.cc +++ b/service_apis/youtube/google/youtube_api/playlist_item_status.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistItemStatus // Documentation: @@ -57,4 +54,6 @@ PlaylistItemStatus::PlaylistItemStatus(Json::Value* storage) // Standard destructor. PlaylistItemStatus::~PlaylistItemStatus() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_item_status.h b/service_apis/youtube/google/youtube_api/playlist_item_status.h index 2151e35..64e03f5 100644 --- a/service_apis/youtube/google/youtube_api/playlist_item_status.h +++ b/service_apis/youtube/google/youtube_api/playlist_item_status.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_STATUS_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_ITEM_STATUS_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_list_response.cc b/service_apis/youtube/google/youtube_api/playlist_list_response.cc index aad2448..658995e 100644 --- a/service_apis/youtube/google/youtube_api/playlist_list_response.cc +++ b/service_apis/youtube/google/youtube_api/playlist_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistListResponse // Documentation: @@ -61,4 +58,36 @@ PlaylistListResponse::PlaylistListResponse(Json::Value* storage) // Standard destructor. PlaylistListResponse::~PlaylistListResponse() { } + +// Properties. + +const client::JsonCppArray PlaylistListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray PlaylistListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo PlaylistListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo PlaylistListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination PlaylistListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination PlaylistListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_list_response.h b/service_apis/youtube/google/youtube_api/playlist_list_response.h index f668d24..7937dec 100644 --- a/service_apis/youtube/google/youtube_api/playlist_list_response.h +++ b/service_apis/youtube/google/youtube_api/playlist_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_localization.cc b/service_apis/youtube/google/youtube_api/playlist_localization.cc index e2cdaff..42d5e3f 100644 --- a/service_apis/youtube/google/youtube_api/playlist_localization.cc +++ b/service_apis/youtube/google/youtube_api/playlist_localization.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistLocalization // Documentation: @@ -57,4 +54,6 @@ PlaylistLocalization::PlaylistLocalization(Json::Value* storage) // Standard destructor. PlaylistLocalization::~PlaylistLocalization() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_localization.h b/service_apis/youtube/google/youtube_api/playlist_localization.h index 0be2505..61905b1 100644 --- a/service_apis/youtube/google/youtube_api/playlist_localization.h +++ b/service_apis/youtube/google/youtube_api/playlist_localization.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_LOCALIZATION_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_LOCALIZATION_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_player.cc b/service_apis/youtube/google/youtube_api/playlist_player.cc index d3b64e1..c86c0d4 100644 --- a/service_apis/youtube/google/youtube_api/playlist_player.cc +++ b/service_apis/youtube/google/youtube_api/playlist_player.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistPlayer // Documentation: @@ -57,4 +54,6 @@ PlaylistPlayer::PlaylistPlayer(Json::Value* storage) // Standard destructor. PlaylistPlayer::~PlaylistPlayer() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_player.h b/service_apis/youtube/google/youtube_api/playlist_player.h index 09dcdaa..ab09501 100644 --- a/service_apis/youtube/google/youtube_api/playlist_player.h +++ b/service_apis/youtube/google/youtube_api/playlist_player.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_PLAYER_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_PLAYER_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_snippet.cc b/service_apis/youtube/google/youtube_api/playlist_snippet.cc index efa4a46..d1ebbda 100644 --- a/service_apis/youtube/google/youtube_api/playlist_snippet.cc +++ b/service_apis/youtube/google/youtube_api/playlist_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistSnippet // Documentation: @@ -61,4 +58,26 @@ PlaylistSnippet::PlaylistSnippet(Json::Value* storage) // Standard destructor. PlaylistSnippet::~PlaylistSnippet() { } + +// Properties. + +const PlaylistLocalization PlaylistSnippet::get_localized() const { + const Json::Value& storage = Storage("localized"); + return client::JsonValueToCppValueHelper(storage); +} + +PlaylistLocalization PlaylistSnippet::mutable_localized() { + Json::Value* storage = MutableStorage("localized"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ThumbnailDetails PlaylistSnippet::get_thumbnails() const { + const Json::Value& storage = Storage("thumbnails"); + return client::JsonValueToCppValueHelper(storage); +} + +ThumbnailDetails PlaylistSnippet::mutable_thumbnails() { + Json::Value* storage = MutableStorage("thumbnails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_snippet.h b/service_apis/youtube/google/youtube_api/playlist_snippet.h index 15a58a0..1e5a98b 100644 --- a/service_apis/youtube/google/youtube_api/playlist_snippet.h +++ b/service_apis/youtube/google/youtube_api/playlist_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/playlist_status.cc b/service_apis/youtube/google/youtube_api/playlist_status.cc index 64272a7..fb22df7 100644 --- a/service_apis/youtube/google/youtube_api/playlist_status.cc +++ b/service_apis/youtube/google/youtube_api/playlist_status.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PlaylistStatus // Documentation: @@ -57,4 +54,6 @@ PlaylistStatus::PlaylistStatus(Json::Value* storage) // Standard destructor. PlaylistStatus::~PlaylistStatus() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/playlist_status.h b/service_apis/youtube/google/youtube_api/playlist_status.h index 22d4619..08c1872 100644 --- a/service_apis/youtube/google/youtube_api/playlist_status.h +++ b/service_apis/youtube/google/youtube_api/playlist_status.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PLAYLIST_STATUS_H_ #define GOOGLE_YOUTUBE_API_PLAYLIST_STATUS_H_ diff --git a/service_apis/youtube/google/youtube_api/promoted_item.cc b/service_apis/youtube/google/youtube_api/promoted_item.cc index 543fd63..6e606a8 100644 --- a/service_apis/youtube/google/youtube_api/promoted_item.cc +++ b/service_apis/youtube/google/youtube_api/promoted_item.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PromotedItem // Documentation: @@ -60,4 +57,26 @@ PromotedItem::PromotedItem(Json::Value* storage) // Standard destructor. PromotedItem::~PromotedItem() { } + +// Properties. + +const PromotedItemId PromotedItem::get_id() const { + const Json::Value& storage = Storage("id"); + return client::JsonValueToCppValueHelper(storage); +} + +PromotedItemId PromotedItem::mutable_id() { + Json::Value* storage = MutableStorage("id"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const InvideoTiming PromotedItem::get_timing() const { + const Json::Value& storage = Storage("timing"); + return client::JsonValueToCppValueHelper(storage); +} + +InvideoTiming PromotedItem::mutable_timing() { + Json::Value* storage = MutableStorage("timing"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/promoted_item.h b/service_apis/youtube/google/youtube_api/promoted_item.h index d2576fa..2bb1170 100644 --- a/service_apis/youtube/google/youtube_api/promoted_item.h +++ b/service_apis/youtube/google/youtube_api/promoted_item.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PROMOTED_ITEM_H_ #define GOOGLE_YOUTUBE_API_PROMOTED_ITEM_H_ diff --git a/service_apis/youtube/google/youtube_api/promoted_item_id.cc b/service_apis/youtube/google/youtube_api/promoted_item_id.cc index 30d3366..64aa3bb 100644 --- a/service_apis/youtube/google/youtube_api/promoted_item_id.cc +++ b/service_apis/youtube/google/youtube_api/promoted_item_id.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PromotedItemId // Documentation: @@ -57,4 +54,6 @@ PromotedItemId::PromotedItemId(Json::Value* storage) // Standard destructor. PromotedItemId::~PromotedItemId() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/promoted_item_id.h b/service_apis/youtube/google/youtube_api/promoted_item_id.h index b0670c3..ac6a710 100644 --- a/service_apis/youtube/google/youtube_api/promoted_item_id.h +++ b/service_apis/youtube/google/youtube_api/promoted_item_id.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PROMOTED_ITEM_ID_H_ #define GOOGLE_YOUTUBE_API_PROMOTED_ITEM_ID_H_ diff --git a/service_apis/youtube/google/youtube_api/property_value.cc b/service_apis/youtube/google/youtube_api/property_value.cc index f7dcfdc..f6dd1b9 100644 --- a/service_apis/youtube/google/youtube_api/property_value.cc +++ b/service_apis/youtube/google/youtube_api/property_value.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // PropertyValue // Documentation: @@ -57,4 +54,6 @@ PropertyValue::PropertyValue(Json::Value* storage) // Standard destructor. PropertyValue::~PropertyValue() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/property_value.h b/service_apis/youtube/google/youtube_api/property_value.h index 6d555b8..23334ea 100644 --- a/service_apis/youtube/google/youtube_api/property_value.h +++ b/service_apis/youtube/google/youtube_api/property_value.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_PROPERTY_VALUE_H_ #define GOOGLE_YOUTUBE_API_PROPERTY_VALUE_H_ diff --git a/service_apis/youtube/google/youtube_api/resource_id.cc b/service_apis/youtube/google/youtube_api/resource_id.cc index 959f0d3..e374912 100644 --- a/service_apis/youtube/google/youtube_api/resource_id.cc +++ b/service_apis/youtube/google/youtube_api/resource_id.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ResourceId // Documentation: @@ -57,4 +54,6 @@ ResourceId::ResourceId(Json::Value* storage) // Standard destructor. ResourceId::~ResourceId() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/resource_id.h b/service_apis/youtube/google/youtube_api/resource_id.h index 16fec6a..96304f8 100644 --- a/service_apis/youtube/google/youtube_api/resource_id.h +++ b/service_apis/youtube/google/youtube_api/resource_id.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_RESOURCE_ID_H_ #define GOOGLE_YOUTUBE_API_RESOURCE_ID_H_ diff --git a/service_apis/youtube/google/youtube_api/search_list_response.cc b/service_apis/youtube/google/youtube_api/search_list_response.cc index a0bc31d..cbd1b08 100644 --- a/service_apis/youtube/google/youtube_api/search_list_response.cc +++ b/service_apis/youtube/google/youtube_api/search_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // SearchListResponse // Documentation: @@ -61,4 +58,36 @@ SearchListResponse::SearchListResponse(Json::Value* storage) // Standard destructor. SearchListResponse::~SearchListResponse() { } + +// Properties. + +const client::JsonCppArray SearchListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray SearchListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo SearchListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo SearchListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination SearchListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination SearchListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/search_list_response.h b/service_apis/youtube/google/youtube_api/search_list_response.h index 4a1c8ef..ef3ee8f 100644 --- a/service_apis/youtube/google/youtube_api/search_list_response.h +++ b/service_apis/youtube/google/youtube_api/search_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SEARCH_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_SEARCH_LIST_RESPONSE_H_ @@ -333,6 +331,40 @@ class SearchListResponse : public client::JsonCppData { *MutableStorage("prevPageToken") = value.data(); } + /** + * Determine if the 'regionCode' attribute was set. + * + * @return true if the 'regionCode' attribute was set. + */ + bool has_region_code() const { + return Storage().isMember("regionCode"); + } + + /** + * Clears the 'regionCode' attribute. + */ + void clear_region_code() { + MutableStorage()->removeMember("regionCode"); + } + + + /** + * Get the value of the 'regionCode' attribute. + */ + const StringPiece get_region_code() const { + const Json::Value& v = Storage("regionCode"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'regionCode' attribute. + * @param[in] value The new value. + */ + void set_region_code(const StringPiece& value) { + *MutableStorage("regionCode") = value.data(); + } + /** * Determine if the 'tokenPagination' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/search_result.cc b/service_apis/youtube/google/youtube_api/search_result.cc index 14f08c9..37bc8c3 100644 --- a/service_apis/youtube/google/youtube_api/search_result.cc +++ b/service_apis/youtube/google/youtube_api/search_result.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // SearchResult // Documentation: @@ -60,4 +57,26 @@ SearchResult::SearchResult(Json::Value* storage) // Standard destructor. SearchResult::~SearchResult() { } + +// Properties. + +const ResourceId SearchResult::get_id() const { + const Json::Value& storage = Storage("id"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId SearchResult::mutable_id() { + Json::Value* storage = MutableStorage("id"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const SearchResultSnippet SearchResult::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +SearchResultSnippet SearchResult::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/search_result.h b/service_apis/youtube/google/youtube_api/search_result.h index 7a59849..0676a48 100644 --- a/service_apis/youtube/google/youtube_api/search_result.h +++ b/service_apis/youtube/google/youtube_api/search_result.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SEARCH_RESULT_H_ #define GOOGLE_YOUTUBE_API_SEARCH_RESULT_H_ diff --git a/service_apis/youtube/google/youtube_api/search_result_snippet.cc b/service_apis/youtube/google/youtube_api/search_result_snippet.cc index dc75461..130cce4 100644 --- a/service_apis/youtube/google/youtube_api/search_result_snippet.cc +++ b/service_apis/youtube/google/youtube_api/search_result_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // SearchResultSnippet // Documentation: @@ -60,4 +57,16 @@ SearchResultSnippet::SearchResultSnippet(Json::Value* storage) // Standard destructor. SearchResultSnippet::~SearchResultSnippet() { } + +// Properties. + +const ThumbnailDetails SearchResultSnippet::get_thumbnails() const { + const Json::Value& storage = Storage("thumbnails"); + return client::JsonValueToCppValueHelper(storage); +} + +ThumbnailDetails SearchResultSnippet::mutable_thumbnails() { + Json::Value* storage = MutableStorage("thumbnails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/search_result_snippet.h b/service_apis/youtube/google/youtube_api/search_result_snippet.h index 0cd2735..6478481 100644 --- a/service_apis/youtube/google/youtube_api/search_result_snippet.h +++ b/service_apis/youtube/google/youtube_api/search_result_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SEARCH_RESULT_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_SEARCH_RESULT_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/sponsor.cc b/service_apis/youtube/google/youtube_api/sponsor.cc index 8a462b3..c0c570d 100644 --- a/service_apis/youtube/google/youtube_api/sponsor.cc +++ b/service_apis/youtube/google/youtube_api/sponsor.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // Sponsor // Documentation: @@ -59,4 +56,16 @@ Sponsor::Sponsor(Json::Value* storage) // Standard destructor. Sponsor::~Sponsor() { } + +// Properties. + +const SponsorSnippet Sponsor::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +SponsorSnippet Sponsor::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/sponsor.h b/service_apis/youtube/google/youtube_api/sponsor.h index e6ce0f7..0d90c5a 100644 --- a/service_apis/youtube/google/youtube_api/sponsor.h +++ b/service_apis/youtube/google/youtube_api/sponsor.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SPONSOR_H_ #define GOOGLE_YOUTUBE_API_SPONSOR_H_ diff --git a/service_apis/youtube/google/youtube_api/sponsor_list_response.cc b/service_apis/youtube/google/youtube_api/sponsor_list_response.cc index a79695c..6e886df 100644 --- a/service_apis/youtube/google/youtube_api/sponsor_list_response.cc +++ b/service_apis/youtube/google/youtube_api/sponsor_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // SponsorListResponse // Documentation: @@ -61,4 +58,36 @@ SponsorListResponse::SponsorListResponse(Json::Value* storage) // Standard destructor. SponsorListResponse::~SponsorListResponse() { } + +// Properties. + +const client::JsonCppArray SponsorListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray SponsorListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo SponsorListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo SponsorListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination SponsorListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination SponsorListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/sponsor_list_response.h b/service_apis/youtube/google/youtube_api/sponsor_list_response.h index df5599b..2a33403 100644 --- a/service_apis/youtube/google/youtube_api/sponsor_list_response.h +++ b/service_apis/youtube/google/youtube_api/sponsor_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SPONSOR_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_SPONSOR_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/sponsor_snippet.cc b/service_apis/youtube/google/youtube_api/sponsor_snippet.cc index b9be863..e4258c0 100644 --- a/service_apis/youtube/google/youtube_api/sponsor_snippet.cc +++ b/service_apis/youtube/google/youtube_api/sponsor_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // SponsorSnippet // Documentation: @@ -60,4 +57,16 @@ SponsorSnippet::SponsorSnippet(Json::Value* storage) // Standard destructor. SponsorSnippet::~SponsorSnippet() { } + +// Properties. + +const ChannelProfileDetails SponsorSnippet::get_sponsor_details() const { + const Json::Value& storage = Storage("sponsorDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelProfileDetails SponsorSnippet::mutable_sponsorDetails() { + Json::Value* storage = MutableStorage("sponsorDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/sponsor_snippet.h b/service_apis/youtube/google/youtube_api/sponsor_snippet.h index e358b87..ba4f1ff 100644 --- a/service_apis/youtube/google/youtube_api/sponsor_snippet.h +++ b/service_apis/youtube/google/youtube_api/sponsor_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SPONSOR_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_SPONSOR_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/subscription.cc b/service_apis/youtube/google/youtube_api/subscription.cc index e5358ea..7f520b0 100644 --- a/service_apis/youtube/google/youtube_api/subscription.cc +++ b/service_apis/youtube/google/youtube_api/subscription.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // Subscription // Documentation: @@ -61,4 +58,36 @@ Subscription::Subscription(Json::Value* storage) // Standard destructor. Subscription::~Subscription() { } + +// Properties. + +const SubscriptionContentDetails Subscription::get_content_details() const { + const Json::Value& storage = Storage("contentDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +SubscriptionContentDetails Subscription::mutable_contentDetails() { + Json::Value* storage = MutableStorage("contentDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const SubscriptionSnippet Subscription::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +SubscriptionSnippet Subscription::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const SubscriptionSubscriberSnippet Subscription::get_subscriber_snippet() const { + const Json::Value& storage = Storage("subscriberSnippet"); + return client::JsonValueToCppValueHelper(storage); +} + +SubscriptionSubscriberSnippet Subscription::mutable_subscriberSnippet() { + Json::Value* storage = MutableStorage("subscriberSnippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/subscription.h b/service_apis/youtube/google/youtube_api/subscription.h index 94b50ba..c4694cb 100644 --- a/service_apis/youtube/google/youtube_api/subscription.h +++ b/service_apis/youtube/google/youtube_api/subscription.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SUBSCRIPTION_H_ #define GOOGLE_YOUTUBE_API_SUBSCRIPTION_H_ diff --git a/service_apis/youtube/google/youtube_api/subscription_content_details.cc b/service_apis/youtube/google/youtube_api/subscription_content_details.cc index 4b1472e..1e68db4 100644 --- a/service_apis/youtube/google/youtube_api/subscription_content_details.cc +++ b/service_apis/youtube/google/youtube_api/subscription_content_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // SubscriptionContentDetails // Documentation: @@ -58,4 +55,6 @@ SubscriptionContentDetails::SubscriptionContentDetails(Json::Value* storage) // Standard destructor. SubscriptionContentDetails::~SubscriptionContentDetails() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/subscription_content_details.h b/service_apis/youtube/google/youtube_api/subscription_content_details.h index 7fbb254..8a4dd4c 100644 --- a/service_apis/youtube/google/youtube_api/subscription_content_details.h +++ b/service_apis/youtube/google/youtube_api/subscription_content_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SUBSCRIPTION_CONTENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_SUBSCRIPTION_CONTENT_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/subscription_list_response.cc b/service_apis/youtube/google/youtube_api/subscription_list_response.cc index ed32172..55554a5 100644 --- a/service_apis/youtube/google/youtube_api/subscription_list_response.cc +++ b/service_apis/youtube/google/youtube_api/subscription_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // SubscriptionListResponse // Documentation: @@ -61,4 +58,36 @@ SubscriptionListResponse::SubscriptionListResponse(Json::Value* storage) // Standard destructor. SubscriptionListResponse::~SubscriptionListResponse() { } + +// Properties. + +const client::JsonCppArray SubscriptionListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray SubscriptionListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo SubscriptionListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo SubscriptionListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination SubscriptionListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination SubscriptionListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/subscription_list_response.h b/service_apis/youtube/google/youtube_api/subscription_list_response.h index 7317f31..ab8b1e3 100644 --- a/service_apis/youtube/google/youtube_api/subscription_list_response.h +++ b/service_apis/youtube/google/youtube_api/subscription_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SUBSCRIPTION_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_SUBSCRIPTION_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/subscription_snippet.cc b/service_apis/youtube/google/youtube_api/subscription_snippet.cc index 066a11f..c24b07c 100644 --- a/service_apis/youtube/google/youtube_api/subscription_snippet.cc +++ b/service_apis/youtube/google/youtube_api/subscription_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // SubscriptionSnippet // Documentation: @@ -61,4 +58,26 @@ SubscriptionSnippet::SubscriptionSnippet(Json::Value* storage) // Standard destructor. SubscriptionSnippet::~SubscriptionSnippet() { } + +// Properties. + +const ResourceId SubscriptionSnippet::get_resource_id() const { + const Json::Value& storage = Storage("resourceId"); + return client::JsonValueToCppValueHelper(storage); +} + +ResourceId SubscriptionSnippet::mutable_resourceId() { + Json::Value* storage = MutableStorage("resourceId"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const ThumbnailDetails SubscriptionSnippet::get_thumbnails() const { + const Json::Value& storage = Storage("thumbnails"); + return client::JsonValueToCppValueHelper(storage); +} + +ThumbnailDetails SubscriptionSnippet::mutable_thumbnails() { + Json::Value* storage = MutableStorage("thumbnails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/subscription_snippet.h b/service_apis/youtube/google/youtube_api/subscription_snippet.h index 9c85c04..3264e42 100644 --- a/service_apis/youtube/google/youtube_api/subscription_snippet.h +++ b/service_apis/youtube/google/youtube_api/subscription_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SUBSCRIPTION_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_SUBSCRIPTION_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/subscription_subscriber_snippet.cc b/service_apis/youtube/google/youtube_api/subscription_subscriber_snippet.cc index 300fe8e..24e6dc2 100644 --- a/service_apis/youtube/google/youtube_api/subscription_subscriber_snippet.cc +++ b/service_apis/youtube/google/youtube_api/subscription_subscriber_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // SubscriptionSubscriberSnippet // Documentation: @@ -59,4 +56,16 @@ SubscriptionSubscriberSnippet::SubscriptionSubscriberSnippet(Json::Value* storag // Standard destructor. SubscriptionSubscriberSnippet::~SubscriptionSubscriberSnippet() { } + +// Properties. + +const ThumbnailDetails SubscriptionSubscriberSnippet::get_thumbnails() const { + const Json::Value& storage = Storage("thumbnails"); + return client::JsonValueToCppValueHelper(storage); +} + +ThumbnailDetails SubscriptionSubscriberSnippet::mutable_thumbnails() { + Json::Value* storage = MutableStorage("thumbnails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/subscription_subscriber_snippet.h b/service_apis/youtube/google/youtube_api/subscription_subscriber_snippet.h index 79ae567..aa6fa14 100644 --- a/service_apis/youtube/google/youtube_api/subscription_subscriber_snippet.h +++ b/service_apis/youtube/google/youtube_api/subscription_subscriber_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_SUBSCRIPTION_SUBSCRIBER_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_SUBSCRIPTION_SUBSCRIBER_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/super_chat_event.cc b/service_apis/youtube/google/youtube_api/super_chat_event.cc new file mode 100644 index 0000000..1a87275 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/super_chat_event.cc @@ -0,0 +1,71 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Description: +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. +// Classes: +// SuperChatEvent +// Documentation: +// https://developers.google.com/youtube/v3 + +#include "google/youtube_api/super_chat_event.h" +#include +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/super_chat_event_snippet.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_youtube_api { +using namespace googleapis; + + +// Object factory method (static). +SuperChatEvent* SuperChatEvent::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +SuperChatEvent::SuperChatEvent(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +SuperChatEvent::SuperChatEvent(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +SuperChatEvent::~SuperChatEvent() { +} + +// Properties. + +const SuperChatEventSnippet SuperChatEvent::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +SuperChatEventSnippet SuperChatEvent::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} +} // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/super_chat_event.h b/service_apis/youtube/google/youtube_api/super_chat_event.h new file mode 100644 index 0000000..dc87ec2 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/super_chat_event.h @@ -0,0 +1,232 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_H_ +#define GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/super_chat_event_snippet.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * A superChatEvent resource represents a Super Chat purchase on a YouTube + * channel. + * + * @ingroup DataObject + */ +class SuperChatEvent : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static SuperChatEvent* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit SuperChatEvent(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit SuperChatEvent(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~SuperChatEvent(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::SuperChatEvent + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::SuperChatEvent"); + } + + /** + * Determine if the 'etag' attribute was set. + * + * @return true if the 'etag' attribute was set. + */ + bool has_etag() const { + return Storage().isMember("etag"); + } + + /** + * Clears the 'etag' attribute. + */ + void clear_etag() { + MutableStorage()->removeMember("etag"); + } + + + /** + * Get the value of the 'etag' attribute. + */ + const StringPiece get_etag() const { + const Json::Value& v = Storage("etag"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'etag' attribute. + * + * Etag of this resource. + * + * @param[in] value The new value. + */ + void set_etag(const StringPiece& value) { + *MutableStorage("etag") = value.data(); + } + + /** + * Determine if the 'id' attribute was set. + * + * @return true if the 'id' attribute was set. + */ + bool has_id() const { + return Storage().isMember("id"); + } + + /** + * Clears the 'id' attribute. + */ + void clear_id() { + MutableStorage()->removeMember("id"); + } + + + /** + * Get the value of the 'id' attribute. + */ + const StringPiece get_id() const { + const Json::Value& v = Storage("id"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'id' attribute. + * + * The ID that YouTube assigns to uniquely identify the Super Chat event. + * + * @param[in] value The new value. + */ + void set_id(const StringPiece& value) { + *MutableStorage("id") = value.data(); + } + + /** + * Determine if the 'kind' attribute was set. + * + * @return true if the 'kind' attribute was set. + */ + bool has_kind() const { + return Storage().isMember("kind"); + } + + /** + * Clears the 'kind' attribute. + */ + void clear_kind() { + MutableStorage()->removeMember("kind"); + } + + + /** + * Get the value of the 'kind' attribute. + */ + const StringPiece get_kind() const { + const Json::Value& v = Storage("kind"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'kind' attribute. + * + * Identifies what kind of resource this is. Value: the fixed string + * "youtube#superChatEvent". + * + * @param[in] value The new value. + */ + void set_kind(const StringPiece& value) { + *MutableStorage("kind") = value.data(); + } + + /** + * Determine if the 'snippet' attribute was set. + * + * @return true if the 'snippet' attribute was set. + */ + bool has_snippet() const { + return Storage().isMember("snippet"); + } + + /** + * Clears the 'snippet' attribute. + */ + void clear_snippet() { + MutableStorage()->removeMember("snippet"); + } + + + /** + * Get a reference to the value of the 'snippet' attribute. + */ + const SuperChatEventSnippet get_snippet() const; + + /** + * Gets a reference to a mutable value of the 'snippet' property. + * + * The snippet object contains basic details about the Super Chat event. + * + * @return The result can be modified to change the attribute value. + */ + SuperChatEventSnippet mutable_snippet(); + + private: + void operator=(const SuperChatEvent&); +}; // SuperChatEvent +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_H_ diff --git a/service_apis/youtube/google/youtube_api/super_chat_event_list_response.cc b/service_apis/youtube/google/youtube_api/super_chat_event_list_response.cc new file mode 100644 index 0000000..e89ea63 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/super_chat_event_list_response.cc @@ -0,0 +1,93 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Description: +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. +// Classes: +// SuperChatEventListResponse +// Documentation: +// https://developers.google.com/youtube/v3 + +#include "google/youtube_api/super_chat_event_list_response.h" +#include +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/page_info.h" +#include "google/youtube_api/super_chat_event.h" +#include "google/youtube_api/token_pagination.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_youtube_api { +using namespace googleapis; + + +// Object factory method (static). +SuperChatEventListResponse* SuperChatEventListResponse::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +SuperChatEventListResponse::SuperChatEventListResponse(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +SuperChatEventListResponse::SuperChatEventListResponse(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +SuperChatEventListResponse::~SuperChatEventListResponse() { +} + +// Properties. + +const client::JsonCppArray SuperChatEventListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray SuperChatEventListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo SuperChatEventListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo SuperChatEventListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination SuperChatEventListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination SuperChatEventListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} +} // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/super_chat_event_list_response.h b/service_apis/youtube/google/youtube_api/super_chat_event_list_response.h new file mode 100644 index 0000000..022e8aa --- /dev/null +++ b/service_apis/youtube/google/youtube_api/super_chat_event_list_response.h @@ -0,0 +1,367 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_LIST_RESPONSE_H_ +#define GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_LIST_RESPONSE_H_ + +#include +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/page_info.h" +#include "google/youtube_api/super_chat_event.h" +#include "google/youtube_api/token_pagination.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class SuperChatEventListResponse : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static SuperChatEventListResponse* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit SuperChatEventListResponse(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit SuperChatEventListResponse(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~SuperChatEventListResponse(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::SuperChatEventListResponse + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::SuperChatEventListResponse"); + } + + /** + * Determine if the 'etag' attribute was set. + * + * @return true if the 'etag' attribute was set. + */ + bool has_etag() const { + return Storage().isMember("etag"); + } + + /** + * Clears the 'etag' attribute. + */ + void clear_etag() { + MutableStorage()->removeMember("etag"); + } + + + /** + * Get the value of the 'etag' attribute. + */ + const StringPiece get_etag() const { + const Json::Value& v = Storage("etag"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'etag' attribute. + * + * Etag of this resource. + * + * @param[in] value The new value. + */ + void set_etag(const StringPiece& value) { + *MutableStorage("etag") = value.data(); + } + + /** + * Determine if the 'eventId' attribute was set. + * + * @return true if the 'eventId' attribute was set. + */ + bool has_event_id() const { + return Storage().isMember("eventId"); + } + + /** + * Clears the 'eventId' attribute. + */ + void clear_event_id() { + MutableStorage()->removeMember("eventId"); + } + + + /** + * Get the value of the 'eventId' attribute. + */ + const StringPiece get_event_id() const { + const Json::Value& v = Storage("eventId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'eventId' attribute. + * + * Serialized EventId of the request which produced this response. + * + * @param[in] value The new value. + */ + void set_event_id(const StringPiece& value) { + *MutableStorage("eventId") = value.data(); + } + + /** + * Determine if the 'items' attribute was set. + * + * @return true if the 'items' attribute was set. + */ + bool has_items() const { + return Storage().isMember("items"); + } + + /** + * Clears the 'items' attribute. + */ + void clear_items() { + MutableStorage()->removeMember("items"); + } + + + /** + * Get a reference to the value of the 'items' attribute. + */ + const client::JsonCppArray get_items() const; + + /** + * Gets a reference to a mutable value of the 'items' property. + * + * A list of Super Chat purchases that match the request criteria. + * + * @return The result can be modified to change the attribute value. + */ + client::JsonCppArray mutable_items(); + + /** + * Determine if the 'kind' attribute was set. + * + * @return true if the 'kind' attribute was set. + */ + bool has_kind() const { + return Storage().isMember("kind"); + } + + /** + * Clears the 'kind' attribute. + */ + void clear_kind() { + MutableStorage()->removeMember("kind"); + } + + + /** + * Get the value of the 'kind' attribute. + */ + const StringPiece get_kind() const { + const Json::Value& v = Storage("kind"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'kind' attribute. + * + * Identifies what kind of resource this is. Value: the fixed string + * "youtube#superChatEventListResponse". + * + * @param[in] value The new value. + */ + void set_kind(const StringPiece& value) { + *MutableStorage("kind") = value.data(); + } + + /** + * Determine if the 'nextPageToken' attribute was set. + * + * @return true if the 'nextPageToken' attribute was set. + */ + bool has_next_page_token() const { + return Storage().isMember("nextPageToken"); + } + + /** + * Clears the 'nextPageToken' attribute. + */ + void clear_next_page_token() { + MutableStorage()->removeMember("nextPageToken"); + } + + + /** + * Get the value of the 'nextPageToken' attribute. + */ + const StringPiece get_next_page_token() const { + const Json::Value& v = Storage("nextPageToken"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'nextPageToken' attribute. + * + * The token that can be used as the value of the pageToken parameter to + * retrieve the next page in the result set. + * + * @param[in] value The new value. + */ + void set_next_page_token(const StringPiece& value) { + *MutableStorage("nextPageToken") = value.data(); + } + + /** + * Determine if the 'pageInfo' attribute was set. + * + * @return true if the 'pageInfo' attribute was set. + */ + bool has_page_info() const { + return Storage().isMember("pageInfo"); + } + + /** + * Clears the 'pageInfo' attribute. + */ + void clear_page_info() { + MutableStorage()->removeMember("pageInfo"); + } + + + /** + * Get a reference to the value of the 'pageInfo' attribute. + */ + const PageInfo get_page_info() const; + + /** + * Gets a reference to a mutable value of the 'pageInfo' + * property. + * @return The result can be modified to change the attribute value. + */ + PageInfo mutable_pageInfo(); + + /** + * Determine if the 'tokenPagination' attribute was set. + * + * @return true if the 'tokenPagination' attribute was set. + */ + bool has_token_pagination() const { + return Storage().isMember("tokenPagination"); + } + + /** + * Clears the 'tokenPagination' attribute. + */ + void clear_token_pagination() { + MutableStorage()->removeMember("tokenPagination"); + } + + + /** + * Get a reference to the value of the 'tokenPagination' + * attribute. + */ + const TokenPagination get_token_pagination() const; + + /** + * Gets a reference to a mutable value of the 'tokenPagination' + * property. + * @return The result can be modified to change the attribute value. + */ + TokenPagination mutable_tokenPagination(); + + /** + * Determine if the 'visitorId' attribute was set. + * + * @return true if the 'visitorId' attribute was set. + */ + bool has_visitor_id() const { + return Storage().isMember("visitorId"); + } + + /** + * Clears the 'visitorId' attribute. + */ + void clear_visitor_id() { + MutableStorage()->removeMember("visitorId"); + } + + + /** + * Get the value of the 'visitorId' attribute. + */ + const StringPiece get_visitor_id() const { + const Json::Value& v = Storage("visitorId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'visitorId' attribute. + * + * The visitorId identifies the visitor. + * + * @param[in] value The new value. + */ + void set_visitor_id(const StringPiece& value) { + *MutableStorage("visitorId") = value.data(); + } + + private: + void operator=(const SuperChatEventListResponse&); +}; // SuperChatEventListResponse +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/super_chat_event_snippet.cc b/service_apis/youtube/google/youtube_api/super_chat_event_snippet.cc new file mode 100644 index 0000000..1ec1429 --- /dev/null +++ b/service_apis/youtube/google/youtube_api/super_chat_event_snippet.cc @@ -0,0 +1,73 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Description: +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. +// Classes: +// SuperChatEventSnippet +// Documentation: +// https://developers.google.com/youtube/v3 + +#include "google/youtube_api/super_chat_event_snippet.h" +#include +#include "googleapis/base/integral_types.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/client/util/date_time.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/channel_profile_details.h" + + +#include +#include "googleapis/strings/strcat.h" + +namespace google_youtube_api { +using namespace googleapis; + + +// Object factory method (static). +SuperChatEventSnippet* SuperChatEventSnippet::New() { + return new client::JsonCppCapsule; +} + +// Standard immutable constructor. +SuperChatEventSnippet::SuperChatEventSnippet(const Json::Value& storage) + : client::JsonCppData(storage) { +} + +// Standard mutable constructor. +SuperChatEventSnippet::SuperChatEventSnippet(Json::Value* storage) + : client::JsonCppData(storage) { +} + +// Standard destructor. +SuperChatEventSnippet::~SuperChatEventSnippet() { +} + +// Properties. + +const ChannelProfileDetails SuperChatEventSnippet::get_supporter_details() const { + const Json::Value& storage = Storage("supporterDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +ChannelProfileDetails SuperChatEventSnippet::mutable_supporterDetails() { + Json::Value* storage = MutableStorage("supporterDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} +} // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/super_chat_event_snippet.h b/service_apis/youtube/google/youtube_api/super_chat_event_snippet.h new file mode 100644 index 0000000..6ce5fbb --- /dev/null +++ b/service_apis/youtube/google/youtube_api/super_chat_event_snippet.h @@ -0,0 +1,386 @@ +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +// This code was generated by google-apis-code-generator 1.5.1 + +// ---------------------------------------------------------------------------- +// NOTE: This file is generated from Google APIs Discovery Service. +// Service: +// YouTube Data API (youtube/v3) +// Generated from: +// Version: v3 +// Revision: 20170130 +// Generated by: +// Tool: google-apis-code-generator 1.5.1 +// C++: 0.1.4 +#ifndef GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_SNIPPET_H_ +#define GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_SNIPPET_H_ + +#include +#include "googleapis/base/integral_types.h" +#include "googleapis/base/macros.h" +#include "googleapis/client/data/jsoncpp_data.h" +#include "googleapis/client/util/date_time.h" +#include "googleapis/strings/stringpiece.h" + +#include "google/youtube_api/channel_profile_details.h" + +namespace Json { +class Value; +} // namespace Json + +namespace google_youtube_api { +using namespace googleapis; + +/** + * No description provided. + * + * @ingroup DataObject + */ +class SuperChatEventSnippet : public client::JsonCppData { + public: + /** + * Creates a new default instance. + * + * @return Ownership is passed back to the caller. + */ + static SuperChatEventSnippet* New(); + + /** + * Standard constructor for an immutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit SuperChatEventSnippet(const Json::Value& storage); + + /** + * Standard constructor for a mutable data object instance. + * + * @param[in] storage The underlying data storage for this instance. + */ + explicit SuperChatEventSnippet(Json::Value* storage); + + /** + * Standard destructor. + */ + virtual ~SuperChatEventSnippet(); + + /** + * Returns a string denoting the type of this data object. + * + * @return google_youtube_api::SuperChatEventSnippet + */ + const StringPiece GetTypeName() const { + return StringPiece("google_youtube_api::SuperChatEventSnippet"); + } + + /** + * Determine if the 'amountMicros' attribute was set. + * + * @return true if the 'amountMicros' attribute was set. + */ + bool has_amount_micros() const { + return Storage().isMember("amountMicros"); + } + + /** + * Clears the 'amountMicros' attribute. + */ + void clear_amount_micros() { + MutableStorage()->removeMember("amountMicros"); + } + + + /** + * Get the value of the 'amountMicros' attribute. + */ + uint64 get_amount_micros() const { + const Json::Value& storage = Storage("amountMicros"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'amountMicros' attribute. + * + * The purchase amount, in micros of the purchase currency. e.g., 1 is + * represented as 1000000. + * + * @param[in] value The new value. + */ + void set_amount_micros(uint64 value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("amountMicros")); + } + + /** + * Determine if the 'channelId' attribute was set. + * + * @return true if the 'channelId' attribute was set. + */ + bool has_channel_id() const { + return Storage().isMember("channelId"); + } + + /** + * Clears the 'channelId' attribute. + */ + void clear_channel_id() { + MutableStorage()->removeMember("channelId"); + } + + + /** + * Get the value of the 'channelId' attribute. + */ + const StringPiece get_channel_id() const { + const Json::Value& v = Storage("channelId"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'channelId' attribute. + * + * Channel id where the event occurred. + * + * @param[in] value The new value. + */ + void set_channel_id(const StringPiece& value) { + *MutableStorage("channelId") = value.data(); + } + + /** + * Determine if the 'commentText' attribute was set. + * + * @return true if the 'commentText' attribute was set. + */ + bool has_comment_text() const { + return Storage().isMember("commentText"); + } + + /** + * Clears the 'commentText' attribute. + */ + void clear_comment_text() { + MutableStorage()->removeMember("commentText"); + } + + + /** + * Get the value of the 'commentText' attribute. + */ + const StringPiece get_comment_text() const { + const Json::Value& v = Storage("commentText"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'commentText' attribute. + * + * The text contents of the comment left by the user. + * + * @param[in] value The new value. + */ + void set_comment_text(const StringPiece& value) { + *MutableStorage("commentText") = value.data(); + } + + /** + * Determine if the 'createdAt' attribute was set. + * + * @return true if the 'createdAt' attribute was set. + */ + bool has_created_at() const { + return Storage().isMember("createdAt"); + } + + /** + * Clears the 'createdAt' attribute. + */ + void clear_created_at() { + MutableStorage()->removeMember("createdAt"); + } + + + /** + * Get the value of the 'createdAt' attribute. + */ + client::DateTime get_created_at() const { + const Json::Value& storage = Storage("createdAt"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'createdAt' attribute. + * + * The date and time when the event occurred. The value is specified in ISO + * 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + * + * @param[in] value The new value. + */ + void set_created_at(client::DateTime value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("createdAt")); + } + + /** + * Determine if the 'currency' attribute was set. + * + * @return true if the 'currency' attribute was set. + */ + bool has_currency() const { + return Storage().isMember("currency"); + } + + /** + * Clears the 'currency' attribute. + */ + void clear_currency() { + MutableStorage()->removeMember("currency"); + } + + + /** + * Get the value of the 'currency' attribute. + */ + const StringPiece get_currency() const { + const Json::Value& v = Storage("currency"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'currency' attribute. + * + * The currency in which the purchase was made. ISO 4217. + * + * @param[in] value The new value. + */ + void set_currency(const StringPiece& value) { + *MutableStorage("currency") = value.data(); + } + + /** + * Determine if the 'displayString' attribute was set. + * + * @return true if the 'displayString' attribute was set. + */ + bool has_display_string() const { + return Storage().isMember("displayString"); + } + + /** + * Clears the 'displayString' attribute. + */ + void clear_display_string() { + MutableStorage()->removeMember("displayString"); + } + + + /** + * Get the value of the 'displayString' attribute. + */ + const StringPiece get_display_string() const { + const Json::Value& v = Storage("displayString"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'displayString' attribute. + * + * A rendered string that displays the purchase amount and currency (e.g., + * "$1.00"). The string is rendered for the given language. + * + * @param[in] value The new value. + */ + void set_display_string(const StringPiece& value) { + *MutableStorage("displayString") = value.data(); + } + + /** + * Determine if the 'messageType' attribute was set. + * + * @return true if the 'messageType' attribute was set. + */ + bool has_message_type() const { + return Storage().isMember("messageType"); + } + + /** + * Clears the 'messageType' attribute. + */ + void clear_message_type() { + MutableStorage()->removeMember("messageType"); + } + + + /** + * Get the value of the 'messageType' attribute. + */ + uint32 get_message_type() const { + const Json::Value& storage = Storage("messageType"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'messageType' attribute. + * + * The tier for the paid message, which is based on the amount of money spent + * to purchase the message. + * + * @param[in] value The new value. + */ + void set_message_type(uint32 value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("messageType")); + } + + /** + * Determine if the 'supporterDetails' attribute was set. + * + * @return true if the 'supporterDetails' attribute was set. + */ + bool has_supporter_details() const { + return Storage().isMember("supporterDetails"); + } + + /** + * Clears the 'supporterDetails' attribute. + */ + void clear_supporter_details() { + MutableStorage()->removeMember("supporterDetails"); + } + + + /** + * Get a reference to the value of the 'supporterDetails' + * attribute. + */ + const ChannelProfileDetails get_supporter_details() const; + + /** + * Gets a reference to a mutable value of the 'supporterDetails' + * property. + * + * Details about the supporter. + * + * @return The result can be modified to change the attribute value. + */ + ChannelProfileDetails mutable_supporterDetails(); + + private: + void operator=(const SuperChatEventSnippet&); +}; // SuperChatEventSnippet +} // namespace google_youtube_api +#endif // GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/thumbnail.cc b/service_apis/youtube/google/youtube_api/thumbnail.cc index 18277d1..7fa3dbb 100644 --- a/service_apis/youtube/google/youtube_api/thumbnail.cc +++ b/service_apis/youtube/google/youtube_api/thumbnail.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // Thumbnail // Documentation: @@ -58,4 +55,6 @@ Thumbnail::Thumbnail(Json::Value* storage) // Standard destructor. Thumbnail::~Thumbnail() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/thumbnail.h b/service_apis/youtube/google/youtube_api/thumbnail.h index 1324f20..cd6d6d3 100644 --- a/service_apis/youtube/google/youtube_api/thumbnail.h +++ b/service_apis/youtube/google/youtube_api/thumbnail.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_THUMBNAIL_H_ #define GOOGLE_YOUTUBE_API_THUMBNAIL_H_ diff --git a/service_apis/youtube/google/youtube_api/thumbnail_details.cc b/service_apis/youtube/google/youtube_api/thumbnail_details.cc index c23ee39..ebd2bf5 100644 --- a/service_apis/youtube/google/youtube_api/thumbnail_details.cc +++ b/service_apis/youtube/google/youtube_api/thumbnail_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ThumbnailDetails // Documentation: @@ -58,4 +55,56 @@ ThumbnailDetails::ThumbnailDetails(Json::Value* storage) // Standard destructor. ThumbnailDetails::~ThumbnailDetails() { } + +// Properties. + +const Thumbnail ThumbnailDetails::get_default() const { + const Json::Value& storage = Storage("default"); + return client::JsonValueToCppValueHelper(storage); +} + +Thumbnail ThumbnailDetails::mutable_default() { + Json::Value* storage = MutableStorage("default"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const Thumbnail ThumbnailDetails::get_high() const { + const Json::Value& storage = Storage("high"); + return client::JsonValueToCppValueHelper(storage); +} + +Thumbnail ThumbnailDetails::mutable_high() { + Json::Value* storage = MutableStorage("high"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const Thumbnail ThumbnailDetails::get_maxres() const { + const Json::Value& storage = Storage("maxres"); + return client::JsonValueToCppValueHelper(storage); +} + +Thumbnail ThumbnailDetails::mutable_maxres() { + Json::Value* storage = MutableStorage("maxres"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const Thumbnail ThumbnailDetails::get_medium() const { + const Json::Value& storage = Storage("medium"); + return client::JsonValueToCppValueHelper(storage); +} + +Thumbnail ThumbnailDetails::mutable_medium() { + Json::Value* storage = MutableStorage("medium"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const Thumbnail ThumbnailDetails::get_standard() const { + const Json::Value& storage = Storage("standard"); + return client::JsonValueToCppValueHelper(storage); +} + +Thumbnail ThumbnailDetails::mutable_standard() { + Json::Value* storage = MutableStorage("standard"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/thumbnail_details.h b/service_apis/youtube/google/youtube_api/thumbnail_details.h index 6f8b58b..226861f 100644 --- a/service_apis/youtube/google/youtube_api/thumbnail_details.h +++ b/service_apis/youtube/google/youtube_api/thumbnail_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_THUMBNAIL_DETAILS_H_ #define GOOGLE_YOUTUBE_API_THUMBNAIL_DETAILS_H_ diff --git a/service_apis/youtube/google/youtube_api/thumbnail_set_response.cc b/service_apis/youtube/google/youtube_api/thumbnail_set_response.cc index 971ebb4..052f853 100644 --- a/service_apis/youtube/google/youtube_api/thumbnail_set_response.cc +++ b/service_apis/youtube/google/youtube_api/thumbnail_set_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // ThumbnailSetResponse // Documentation: @@ -59,4 +56,16 @@ ThumbnailSetResponse::ThumbnailSetResponse(Json::Value* storage) // Standard destructor. ThumbnailSetResponse::~ThumbnailSetResponse() { } + +// Properties. + +const client::JsonCppArray ThumbnailSetResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray ThumbnailSetResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/thumbnail_set_response.h b/service_apis/youtube/google/youtube_api/thumbnail_set_response.h index 969589a..f758573 100644 --- a/service_apis/youtube/google/youtube_api/thumbnail_set_response.h +++ b/service_apis/youtube/google/youtube_api/thumbnail_set_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_THUMBNAIL_SET_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_THUMBNAIL_SET_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/token_pagination.cc b/service_apis/youtube/google/youtube_api/token_pagination.cc index 26e9417..c2da9e8 100644 --- a/service_apis/youtube/google/youtube_api/token_pagination.cc +++ b/service_apis/youtube/google/youtube_api/token_pagination.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // TokenPagination // Documentation: diff --git a/service_apis/youtube/google/youtube_api/token_pagination.h b/service_apis/youtube/google/youtube_api/token_pagination.h index eb6880d..69194ad 100644 --- a/service_apis/youtube/google/youtube_api/token_pagination.h +++ b/service_apis/youtube/google/youtube_api/token_pagination.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_TOKEN_PAGINATION_H_ #define GOOGLE_YOUTUBE_API_TOKEN_PAGINATION_H_ diff --git a/service_apis/youtube/google/youtube_api/video.cc b/service_apis/youtube/google/youtube_api/video.cc index 2bcc67c..f4b5b4f 100644 --- a/service_apis/youtube/google/youtube_api/video.cc +++ b/service_apis/youtube/google/youtube_api/video.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // Video // Documentation: @@ -33,7 +30,6 @@ #include "google/youtube_api/video_age_gating.h" #include "google/youtube_api/video_content_details.h" -#include "google/youtube_api/video_conversion_pings.h" #include "google/youtube_api/video_file_details.h" #include "google/youtube_api/video_live_streaming_details.h" #include "google/youtube_api/video_localization.h" @@ -74,4 +70,156 @@ Video::Video(Json::Value* storage) // Standard destructor. Video::~Video() { } + +// Properties. + +const VideoAgeGating Video::get_age_gating() const { + const Json::Value& storage = Storage("ageGating"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoAgeGating Video::mutable_ageGating() { + Json::Value* storage = MutableStorage("ageGating"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoContentDetails Video::get_content_details() const { + const Json::Value& storage = Storage("contentDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoContentDetails Video::mutable_contentDetails() { + Json::Value* storage = MutableStorage("contentDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoFileDetails Video::get_file_details() const { + const Json::Value& storage = Storage("fileDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoFileDetails Video::mutable_fileDetails() { + Json::Value* storage = MutableStorage("fileDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoLiveStreamingDetails Video::get_live_streaming_details() const { + const Json::Value& storage = Storage("liveStreamingDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoLiveStreamingDetails Video::mutable_liveStreamingDetails() { + Json::Value* storage = MutableStorage("liveStreamingDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const client::JsonCppAssociativeArray Video::get_localizations() const { + const Json::Value& storage = Storage("localizations"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppAssociativeArray Video::mutable_localizations() { + Json::Value* storage = MutableStorage("localizations"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const VideoMonetizationDetails Video::get_monetization_details() const { + const Json::Value& storage = Storage("monetizationDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoMonetizationDetails Video::mutable_monetizationDetails() { + Json::Value* storage = MutableStorage("monetizationDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoPlayer Video::get_player() const { + const Json::Value& storage = Storage("player"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoPlayer Video::mutable_player() { + Json::Value* storage = MutableStorage("player"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoProcessingDetails Video::get_processing_details() const { + const Json::Value& storage = Storage("processingDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoProcessingDetails Video::mutable_processingDetails() { + Json::Value* storage = MutableStorage("processingDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoProjectDetails Video::get_project_details() const { + const Json::Value& storage = Storage("projectDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoProjectDetails Video::mutable_projectDetails() { + Json::Value* storage = MutableStorage("projectDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoRecordingDetails Video::get_recording_details() const { + const Json::Value& storage = Storage("recordingDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoRecordingDetails Video::mutable_recordingDetails() { + Json::Value* storage = MutableStorage("recordingDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoSnippet Video::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoSnippet Video::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoStatistics Video::get_statistics() const { + const Json::Value& storage = Storage("statistics"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoStatistics Video::mutable_statistics() { + Json::Value* storage = MutableStorage("statistics"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoStatus Video::get_status() const { + const Json::Value& storage = Storage("status"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoStatus Video::mutable_status() { + Json::Value* storage = MutableStorage("status"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoSuggestions Video::get_suggestions() const { + const Json::Value& storage = Storage("suggestions"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoSuggestions Video::mutable_suggestions() { + Json::Value* storage = MutableStorage("suggestions"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoTopicDetails Video::get_topic_details() const { + const Json::Value& storage = Storage("topicDetails"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoTopicDetails Video::mutable_topicDetails() { + Json::Value* storage = MutableStorage("topicDetails"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video.h b/service_apis/youtube/google/youtube_api/video.h index 06079e6..3a854ae 100644 --- a/service_apis/youtube/google/youtube_api/video.h +++ b/service_apis/youtube/google/youtube_api/video.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_H_ #define GOOGLE_YOUTUBE_API_VIDEO_H_ @@ -34,7 +32,6 @@ #include "google/youtube_api/video_age_gating.h" #include "google/youtube_api/video_content_details.h" -#include "google/youtube_api/video_conversion_pings.h" #include "google/youtube_api/video_file_details.h" #include "google/youtube_api/video_live_streaming_details.h" #include "google/youtube_api/video_localization.h" @@ -165,40 +162,6 @@ class Video : public client::JsonCppData { */ VideoContentDetails mutable_contentDetails(); - /** - * Determine if the 'conversionPings' attribute was set. - * - * @return true if the 'conversionPings' attribute was set. - */ - bool has_conversion_pings() const { - return Storage().isMember("conversionPings"); - } - - /** - * Clears the 'conversionPings' attribute. - */ - void clear_conversion_pings() { - MutableStorage()->removeMember("conversionPings"); - } - - - /** - * Get a reference to the value of the 'conversionPings' - * attribute. - */ - const VideoConversionPings get_conversion_pings() const; - - /** - * Gets a reference to a mutable value of the 'conversionPings' - * property. - * - * The conversionPings object encapsulates information about url pings that - * need to be respected by the App in different video contexts. - * - * @return The result can be modified to change the attribute value. - */ - VideoConversionPings mutable_conversionPings(); - /** * Determine if the 'etag' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report.cc b/service_apis/youtube/google/youtube_api/video_abuse_report.cc index 30f67bd..03973c9 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report.cc +++ b/service_apis/youtube/google/youtube_api/video_abuse_report.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoAbuseReport // Documentation: @@ -57,4 +54,6 @@ VideoAbuseReport::VideoAbuseReport(Json::Value* storage) // Standard destructor. VideoAbuseReport::~VideoAbuseReport() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report.h b/service_apis/youtube/google/youtube_api/video_abuse_report.h index dc71f03..bb7a140 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report.h +++ b/service_apis/youtube/google/youtube_api/video_abuse_report.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_H_ #define GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_H_ diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report_reason.cc b/service_apis/youtube/google/youtube_api/video_abuse_report_reason.cc index 48e0da7..cb5824b 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report_reason.cc +++ b/service_apis/youtube/google/youtube_api/video_abuse_report_reason.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoAbuseReportReason // Documentation: @@ -59,4 +56,16 @@ VideoAbuseReportReason::VideoAbuseReportReason(Json::Value* storage) // Standard destructor. VideoAbuseReportReason::~VideoAbuseReportReason() { } + +// Properties. + +const VideoAbuseReportReasonSnippet VideoAbuseReportReason::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoAbuseReportReasonSnippet VideoAbuseReportReason::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report_reason.h b/service_apis/youtube/google/youtube_api/video_abuse_report_reason.h index 012d242..c88d1d3 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report_reason.h +++ b/service_apis/youtube/google/youtube_api/video_abuse_report_reason.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_REASON_H_ #define GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_REASON_H_ diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report_reason_list_response.cc b/service_apis/youtube/google/youtube_api/video_abuse_report_reason_list_response.cc index 88cae13..d6c8f79 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report_reason_list_response.cc +++ b/service_apis/youtube/google/youtube_api/video_abuse_report_reason_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoAbuseReportReasonListResponse // Documentation: @@ -59,4 +56,16 @@ VideoAbuseReportReasonListResponse::VideoAbuseReportReasonListResponse(Json::Val // Standard destructor. VideoAbuseReportReasonListResponse::~VideoAbuseReportReasonListResponse() { } + +// Properties. + +const client::JsonCppArray VideoAbuseReportReasonListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray VideoAbuseReportReasonListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report_reason_list_response.h b/service_apis/youtube/google/youtube_api/video_abuse_report_reason_list_response.h index e631a92..cc037fd 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report_reason_list_response.h +++ b/service_apis/youtube/google/youtube_api/video_abuse_report_reason_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_REASON_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_REASON_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report_reason_snippet.cc b/service_apis/youtube/google/youtube_api/video_abuse_report_reason_snippet.cc index 60241ca..72466f9 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report_reason_snippet.cc +++ b/service_apis/youtube/google/youtube_api/video_abuse_report_reason_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoAbuseReportReasonSnippet // Documentation: @@ -59,4 +56,16 @@ VideoAbuseReportReasonSnippet::VideoAbuseReportReasonSnippet(Json::Value* storag // Standard destructor. VideoAbuseReportReasonSnippet::~VideoAbuseReportReasonSnippet() { } + +// Properties. + +const client::JsonCppArray VideoAbuseReportReasonSnippet::get_secondary_reasons() const { + const Json::Value& storage = Storage("secondaryReasons"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray VideoAbuseReportReasonSnippet::mutable_secondaryReasons() { + Json::Value* storage = MutableStorage("secondaryReasons"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report_reason_snippet.h b/service_apis/youtube/google/youtube_api/video_abuse_report_reason_snippet.h index 2375929..5e8ab5b 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report_reason_snippet.h +++ b/service_apis/youtube/google/youtube_api/video_abuse_report_reason_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_REASON_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_REASON_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report_secondary_reason.cc b/service_apis/youtube/google/youtube_api/video_abuse_report_secondary_reason.cc index 3d07e4c..e29a72d 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report_secondary_reason.cc +++ b/service_apis/youtube/google/youtube_api/video_abuse_report_secondary_reason.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoAbuseReportSecondaryReason // Documentation: @@ -57,4 +54,6 @@ VideoAbuseReportSecondaryReason::VideoAbuseReportSecondaryReason(Json::Value* st // Standard destructor. VideoAbuseReportSecondaryReason::~VideoAbuseReportSecondaryReason() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_abuse_report_secondary_reason.h b/service_apis/youtube/google/youtube_api/video_abuse_report_secondary_reason.h index 40b55dc..7334942 100644 --- a/service_apis/youtube/google/youtube_api/video_abuse_report_secondary_reason.h +++ b/service_apis/youtube/google/youtube_api/video_abuse_report_secondary_reason.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_SECONDARY_REASON_H_ #define GOOGLE_YOUTUBE_API_VIDEO_ABUSE_REPORT_SECONDARY_REASON_H_ diff --git a/service_apis/youtube/google/youtube_api/video_age_gating.cc b/service_apis/youtube/google/youtube_api/video_age_gating.cc index 1689ee1..fb412f2 100644 --- a/service_apis/youtube/google/youtube_api/video_age_gating.cc +++ b/service_apis/youtube/google/youtube_api/video_age_gating.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoAgeGating // Documentation: @@ -57,4 +54,6 @@ VideoAgeGating::VideoAgeGating(Json::Value* storage) // Standard destructor. VideoAgeGating::~VideoAgeGating() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_age_gating.h b/service_apis/youtube/google/youtube_api/video_age_gating.h index efbd1f3..5946744 100644 --- a/service_apis/youtube/google/youtube_api/video_age_gating.h +++ b/service_apis/youtube/google/youtube_api/video_age_gating.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_AGE_GATING_H_ #define GOOGLE_YOUTUBE_API_VIDEO_AGE_GATING_H_ diff --git a/service_apis/youtube/google/youtube_api/video_category.cc b/service_apis/youtube/google/youtube_api/video_category.cc index 7f82c9c..b0a5b94 100644 --- a/service_apis/youtube/google/youtube_api/video_category.cc +++ b/service_apis/youtube/google/youtube_api/video_category.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoCategory // Documentation: @@ -59,4 +56,16 @@ VideoCategory::VideoCategory(Json::Value* storage) // Standard destructor. VideoCategory::~VideoCategory() { } + +// Properties. + +const VideoCategorySnippet VideoCategory::get_snippet() const { + const Json::Value& storage = Storage("snippet"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoCategorySnippet VideoCategory::mutable_snippet() { + Json::Value* storage = MutableStorage("snippet"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_category.h b/service_apis/youtube/google/youtube_api/video_category.h index 4f7ac97..b619c50 100644 --- a/service_apis/youtube/google/youtube_api/video_category.h +++ b/service_apis/youtube/google/youtube_api/video_category.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_CATEGORY_H_ #define GOOGLE_YOUTUBE_API_VIDEO_CATEGORY_H_ diff --git a/service_apis/youtube/google/youtube_api/video_category_list_response.cc b/service_apis/youtube/google/youtube_api/video_category_list_response.cc index f53394d..8f9b5aa 100644 --- a/service_apis/youtube/google/youtube_api/video_category_list_response.cc +++ b/service_apis/youtube/google/youtube_api/video_category_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoCategoryListResponse // Documentation: @@ -61,4 +58,36 @@ VideoCategoryListResponse::VideoCategoryListResponse(Json::Value* storage) // Standard destructor. VideoCategoryListResponse::~VideoCategoryListResponse() { } + +// Properties. + +const client::JsonCppArray VideoCategoryListResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray VideoCategoryListResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const PageInfo VideoCategoryListResponse::get_page_info() const { + const Json::Value& storage = Storage("pageInfo"); + return client::JsonValueToCppValueHelper(storage); +} + +PageInfo VideoCategoryListResponse::mutable_pageInfo() { + Json::Value* storage = MutableStorage("pageInfo"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const TokenPagination VideoCategoryListResponse::get_token_pagination() const { + const Json::Value& storage = Storage("tokenPagination"); + return client::JsonValueToCppValueHelper(storage); +} + +TokenPagination VideoCategoryListResponse::mutable_tokenPagination() { + Json::Value* storage = MutableStorage("tokenPagination"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_category_list_response.h b/service_apis/youtube/google/youtube_api/video_category_list_response.h index 2af0d2e..b3e54b2 100644 --- a/service_apis/youtube/google/youtube_api/video_category_list_response.h +++ b/service_apis/youtube/google/youtube_api/video_category_list_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_CATEGORY_LIST_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_VIDEO_CATEGORY_LIST_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/video_category_snippet.cc b/service_apis/youtube/google/youtube_api/video_category_snippet.cc index 2b58177..e5f394e 100644 --- a/service_apis/youtube/google/youtube_api/video_category_snippet.cc +++ b/service_apis/youtube/google/youtube_api/video_category_snippet.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoCategorySnippet // Documentation: @@ -57,4 +54,6 @@ VideoCategorySnippet::VideoCategorySnippet(Json::Value* storage) // Standard destructor. VideoCategorySnippet::~VideoCategorySnippet() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_category_snippet.h b/service_apis/youtube/google/youtube_api/video_category_snippet.h index b24b5a8..09e85f2 100644 --- a/service_apis/youtube/google/youtube_api/video_category_snippet.h +++ b/service_apis/youtube/google/youtube_api/video_category_snippet.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_CATEGORY_SNIPPET_H_ #define GOOGLE_YOUTUBE_API_VIDEO_CATEGORY_SNIPPET_H_ diff --git a/service_apis/youtube/google/youtube_api/video_content_details.cc b/service_apis/youtube/google/youtube_api/video_content_details.cc index f942035..15fce73 100644 --- a/service_apis/youtube/google/youtube_api/video_content_details.cc +++ b/service_apis/youtube/google/youtube_api/video_content_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoContentDetails // Documentation: @@ -61,4 +58,36 @@ VideoContentDetails::VideoContentDetails(Json::Value* storage) // Standard destructor. VideoContentDetails::~VideoContentDetails() { } + +// Properties. + +const ContentRating VideoContentDetails::get_content_rating() const { + const Json::Value& storage = Storage("contentRating"); + return client::JsonValueToCppValueHelper(storage); +} + +ContentRating VideoContentDetails::mutable_contentRating() { + Json::Value* storage = MutableStorage("contentRating"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const AccessPolicy VideoContentDetails::get_country_restriction() const { + const Json::Value& storage = Storage("countryRestriction"); + return client::JsonValueToCppValueHelper(storage); +} + +AccessPolicy VideoContentDetails::mutable_countryRestriction() { + Json::Value* storage = MutableStorage("countryRestriction"); + return client::JsonValueToMutableCppValueHelper(storage); +} + +const VideoContentDetailsRegionRestriction VideoContentDetails::get_region_restriction() const { + const Json::Value& storage = Storage("regionRestriction"); + return client::JsonValueToCppValueHelper(storage); +} + +VideoContentDetailsRegionRestriction VideoContentDetails::mutable_regionRestriction() { + Json::Value* storage = MutableStorage("regionRestriction"); + return client::JsonValueToMutableCppValueHelper(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_content_details.h b/service_apis/youtube/google/youtube_api/video_content_details.h index 439e69d..5a33870 100644 --- a/service_apis/youtube/google/youtube_api/video_content_details.h +++ b/service_apis/youtube/google/youtube_api/video_content_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_CONTENT_DETAILS_H_ #define GOOGLE_YOUTUBE_API_VIDEO_CONTENT_DETAILS_H_ @@ -307,6 +305,44 @@ class VideoContentDetails : public client::JsonCppData { *MutableStorage("duration") = value.data(); } + /** + * Determine if the 'hasCustomThumbnail' attribute was set. + * + * @return true if the 'hasCustomThumbnail' attribute was set. + */ + bool has_has_custom_thumbnail() const { + return Storage().isMember("hasCustomThumbnail"); + } + + /** + * Clears the 'hasCustomThumbnail' attribute. + */ + void clear_has_custom_thumbnail() { + MutableStorage()->removeMember("hasCustomThumbnail"); + } + + + /** + * Get the value of the 'hasCustomThumbnail' attribute. + */ + bool get_has_custom_thumbnail() const { + const Json::Value& storage = Storage("hasCustomThumbnail"); + return client::JsonValueToCppValueHelper(storage); + } + + /** + * Change the 'hasCustomThumbnail' attribute. + * + * Indicates whether the video uploader has provided a custom thumbnail image + * for the video. This property is only visible to the video uploader. + * + * @param[in] value The new value. + */ + void set_has_custom_thumbnail(bool value) { + client::SetJsonValueFromCppValueHelper( + value, MutableStorage("hasCustomThumbnail")); + } + /** * Determine if the 'licensedContent' attribute was set. * @@ -345,6 +381,43 @@ class VideoContentDetails : public client::JsonCppData { value, MutableStorage("licensedContent")); } + /** + * Determine if the 'projection' attribute was set. + * + * @return true if the 'projection' attribute was set. + */ + bool has_projection() const { + return Storage().isMember("projection"); + } + + /** + * Clears the 'projection' attribute. + */ + void clear_projection() { + MutableStorage()->removeMember("projection"); + } + + + /** + * Get the value of the 'projection' attribute. + */ + const StringPiece get_projection() const { + const Json::Value& v = Storage("projection"); + if (v == Json::Value::null) return StringPiece(""); + return StringPiece(v.asCString()); + } + + /** + * Change the 'projection' attribute. + * + * Specifies the projection format of the video. + * + * @param[in] value The new value. + */ + void set_projection(const StringPiece& value) { + *MutableStorage("projection") = value.data(); + } + /** * Determine if the 'regionRestriction' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/video_content_details_region_restriction.cc b/service_apis/youtube/google/youtube_api/video_content_details_region_restriction.cc index 6e58b32..62504e2 100644 --- a/service_apis/youtube/google/youtube_api/video_content_details_region_restriction.cc +++ b/service_apis/youtube/google/youtube_api/video_content_details_region_restriction.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoContentDetailsRegionRestriction // Documentation: @@ -57,4 +54,6 @@ VideoContentDetailsRegionRestriction::VideoContentDetailsRegionRestriction(Json: // Standard destructor. VideoContentDetailsRegionRestriction::~VideoContentDetailsRegionRestriction() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_content_details_region_restriction.h b/service_apis/youtube/google/youtube_api/video_content_details_region_restriction.h index ceb4919..eb58d0b 100644 --- a/service_apis/youtube/google/youtube_api/video_content_details_region_restriction.h +++ b/service_apis/youtube/google/youtube_api/video_content_details_region_restriction.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_CONTENT_DETAILS_REGION_RESTRICTION_H_ #define GOOGLE_YOUTUBE_API_VIDEO_CONTENT_DETAILS_REGION_RESTRICTION_H_ diff --git a/service_apis/youtube/google/youtube_api/video_conversion_ping.h b/service_apis/youtube/google/youtube_api/video_conversion_ping.h deleted file mode 100644 index 0042093..0000000 --- a/service_apis/youtube/google/youtube_api/video_conversion_ping.h +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright 2010 Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); you may not -// use this file except in compliance with the License. You may obtain a copy of -// the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations under -// the License. - -// This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 - -// ---------------------------------------------------------------------------- -// NOTE: This file is generated from Google APIs Discovery Service. -// Service: -// YouTube Data API (youtube/v3) -// Generated from: -// Version: v3 -// Generated by: -// Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 -#ifndef GOOGLE_YOUTUBE_API_VIDEO_CONVERSION_PING_H_ -#define GOOGLE_YOUTUBE_API_VIDEO_CONVERSION_PING_H_ - -#include -#include "googleapis/base/macros.h" -#include "googleapis/client/data/jsoncpp_data.h" -#include "googleapis/strings/stringpiece.h" - -namespace Json { -class Value; -} // namespace Json - -namespace google_youtube_api { -using namespace googleapis; - -/** - * No description provided. - * - * @ingroup DataObject - */ -class VideoConversionPing : public client::JsonCppData { - public: - /** - * Creates a new default instance. - * - * @return Ownership is passed back to the caller. - */ - static VideoConversionPing* New(); - - /** - * Standard constructor for an immutable data object instance. - * - * @param[in] storage The underlying data storage for this instance. - */ - explicit VideoConversionPing(const Json::Value& storage); - - /** - * Standard constructor for a mutable data object instance. - * - * @param[in] storage The underlying data storage for this instance. - */ - explicit VideoConversionPing(Json::Value* storage); - - /** - * Standard destructor. - */ - virtual ~VideoConversionPing(); - - /** - * Returns a string denoting the type of this data object. - * - * @return google_youtube_api::VideoConversionPing - */ - const StringPiece GetTypeName() const { - return StringPiece("google_youtube_api::VideoConversionPing"); - } - - /** - * Determine if the 'context' attribute was set. - * - * @return true if the 'context' attribute was set. - */ - bool has_context() const { - return Storage().isMember("context"); - } - - /** - * Clears the 'context' attribute. - */ - void clear_context() { - MutableStorage()->removeMember("context"); - } - - - /** - * Get the value of the 'context' attribute. - */ - const StringPiece get_context() const { - const Json::Value& v = Storage("context"); - if (v == Json::Value::null) return StringPiece(""); - return StringPiece(v.asCString()); - } - - /** - * Change the 'context' attribute. - * - * Defines the context of the ping. - * - * @param[in] value The new value. - */ - void set_context(const StringPiece& value) { - *MutableStorage("context") = value.data(); - } - - /** - * Determine if the 'conversionUrl' attribute was set. - * - * @return true if the 'conversionUrl' attribute was set. - */ - bool has_conversion_url() const { - return Storage().isMember("conversionUrl"); - } - - /** - * Clears the 'conversionUrl' attribute. - */ - void clear_conversion_url() { - MutableStorage()->removeMember("conversionUrl"); - } - - - /** - * Get the value of the 'conversionUrl' attribute. - */ - const StringPiece get_conversion_url() const { - const Json::Value& v = Storage("conversionUrl"); - if (v == Json::Value::null) return StringPiece(""); - return StringPiece(v.asCString()); - } - - /** - * Change the 'conversionUrl' attribute. - * - * The url (without the schema) that the app shall send the ping to. It's at - * caller's descretion to decide which schema to use (http vs https) Example - * of a returned url: //googleads.g.doubleclick.net/pagead/ - * viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D - * like%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA%3Bytvid%3DUrIaJUvIQDg=default The - * caller must append biscotti authentication (ms param in case of mobile, for - * example) to this ping. - * - * @param[in] value The new value. - */ - void set_conversion_url(const StringPiece& value) { - *MutableStorage("conversionUrl") = value.data(); - } - - private: - void operator=(const VideoConversionPing&); -}; // VideoConversionPing -} // namespace google_youtube_api -#endif // GOOGLE_YOUTUBE_API_VIDEO_CONVERSION_PING_H_ diff --git a/service_apis/youtube/google/youtube_api/video_file_details.cc b/service_apis/youtube/google/youtube_api/video_file_details.cc index 567d8e0..331a1c8 100644 --- a/service_apis/youtube/google/youtube_api/video_file_details.cc +++ b/service_apis/youtube/google/youtube_api/video_file_details.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoFileDetails // Documentation: @@ -32,7 +29,6 @@ #include "googleapis/client/data/jsoncpp_data.h" #include "googleapis/strings/stringpiece.h" -#include "google/youtube_api/geo_point.h" #include "google/youtube_api/video_file_details_audio_stream.h" #include "google/youtube_api/video_file_details_video_stream.h" @@ -62,4 +58,26 @@ VideoFileDetails::VideoFileDetails(Json::Value* storage) // Standard destructor. VideoFileDetails::~VideoFileDetails() { } + +// Properties. + +const client::JsonCppArray VideoFileDetails::get_audio_streams() const { + const Json::Value& storage = Storage("audioStreams"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray VideoFileDetails::mutable_audioStreams() { + Json::Value* storage = MutableStorage("audioStreams"); + return client::JsonValueToMutableCppValueHelper >(storage); +} + +const client::JsonCppArray VideoFileDetails::get_video_streams() const { + const Json::Value& storage = Storage("videoStreams"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray VideoFileDetails::mutable_videoStreams() { + Json::Value* storage = MutableStorage("videoStreams"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_file_details.h b/service_apis/youtube/google/youtube_api/video_file_details.h index 78fcb0f..ec2f19d 100644 --- a/service_apis/youtube/google/youtube_api/video_file_details.h +++ b/service_apis/youtube/google/youtube_api/video_file_details.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_H_ #define GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_H_ @@ -33,7 +31,6 @@ #include "googleapis/client/data/jsoncpp_data.h" #include "googleapis/strings/stringpiece.h" -#include "google/youtube_api/geo_point.h" #include "google/youtube_api/video_file_details_audio_stream.h" #include "google/youtube_api/video_file_details_video_stream.h" @@ -390,40 +387,6 @@ class VideoFileDetails : public client::JsonCppData { *MutableStorage("fileType") = value.data(); } - /** - * Determine if the 'recordingLocation' attribute was set. - * - * @return true if the 'recordingLocation' attribute was set. - */ - bool has_recording_location() const { - return Storage().isMember("recordingLocation"); - } - - /** - * Clears the 'recordingLocation' attribute. - */ - void clear_recording_location() { - MutableStorage()->removeMember("recordingLocation"); - } - - - /** - * Get a reference to the value of the 'recordingLocation' - * attribute. - */ - const GeoPoint get_recording_location() const; - - /** - * Gets a reference to a mutable value of the 'recordingLocation' - * property. - * - * Geographic coordinates that identify the place where the uploaded video was - * recorded. Coordinates are defined using WGS 84. - * - * @return The result can be modified to change the attribute value. - */ - GeoPoint mutable_recordingLocation(); - /** * Determine if the 'videoStreams' attribute was set. * diff --git a/service_apis/youtube/google/youtube_api/video_file_details_audio_stream.cc b/service_apis/youtube/google/youtube_api/video_file_details_audio_stream.cc index 837290c..e5a2d08 100644 --- a/service_apis/youtube/google/youtube_api/video_file_details_audio_stream.cc +++ b/service_apis/youtube/google/youtube_api/video_file_details_audio_stream.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoFileDetailsAudioStream // Documentation: @@ -58,4 +55,6 @@ VideoFileDetailsAudioStream::VideoFileDetailsAudioStream(Json::Value* storage) // Standard destructor. VideoFileDetailsAudioStream::~VideoFileDetailsAudioStream() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_file_details_audio_stream.h b/service_apis/youtube/google/youtube_api/video_file_details_audio_stream.h index 5745e68..e1d6639 100644 --- a/service_apis/youtube/google/youtube_api/video_file_details_audio_stream.h +++ b/service_apis/youtube/google/youtube_api/video_file_details_audio_stream.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_AUDIO_STREAM_H_ #define GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_AUDIO_STREAM_H_ diff --git a/service_apis/youtube/google/youtube_api/video_file_details_video_stream.cc b/service_apis/youtube/google/youtube_api/video_file_details_video_stream.cc index 2bbeaa7..92d89e8 100644 --- a/service_apis/youtube/google/youtube_api/video_file_details_video_stream.cc +++ b/service_apis/youtube/google/youtube_api/video_file_details_video_stream.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoFileDetailsVideoStream // Documentation: @@ -58,4 +55,6 @@ VideoFileDetailsVideoStream::VideoFileDetailsVideoStream(Json::Value* storage) // Standard destructor. VideoFileDetailsVideoStream::~VideoFileDetailsVideoStream() { } + +// Properties. } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_file_details_video_stream.h b/service_apis/youtube/google/youtube_api/video_file_details_video_stream.h index 56a31ab..6f0f1a1 100644 --- a/service_apis/youtube/google/youtube_api/video_file_details_video_stream.h +++ b/service_apis/youtube/google/youtube_api/video_file_details_video_stream.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_VIDEO_STREAM_H_ #define GOOGLE_YOUTUBE_API_VIDEO_FILE_DETAILS_VIDEO_STREAM_H_ diff --git a/service_apis/youtube/google/youtube_api/video_get_rating_response.cc b/service_apis/youtube/google/youtube_api/video_get_rating_response.cc index f75eed1..67d4475 100644 --- a/service_apis/youtube/google/youtube_api/video_get_rating_response.cc +++ b/service_apis/youtube/google/youtube_api/video_get_rating_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoGetRatingResponse // Documentation: @@ -59,4 +56,16 @@ VideoGetRatingResponse::VideoGetRatingResponse(Json::Value* storage) // Standard destructor. VideoGetRatingResponse::~VideoGetRatingResponse() { } + +// Properties. + +const client::JsonCppArray VideoGetRatingResponse::get_items() const { + const Json::Value& storage = Storage("items"); + return client::JsonValueToCppValueHelper >(storage); +} + +client::JsonCppArray VideoGetRatingResponse::mutable_items() { + Json::Value* storage = MutableStorage("items"); + return client::JsonValueToMutableCppValueHelper >(storage); +} } // namespace google_youtube_api diff --git a/service_apis/youtube/google/youtube_api/video_get_rating_response.h b/service_apis/youtube/google/youtube_api/video_get_rating_response.h index 3e9e904..3ed20b5 100644 --- a/service_apis/youtube/google/youtube_api/video_get_rating_response.h +++ b/service_apis/youtube/google/youtube_api/video_get_rating_response.h @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,7 +11,6 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. @@ -21,9 +18,10 @@ // YouTube Data API (youtube/v3) // Generated from: // Version: v3 +// Revision: 20170130 // Generated by: // Tool: google-apis-code-generator 1.5.1 -// C++: 0.1.3 +// C++: 0.1.4 #ifndef GOOGLE_YOUTUBE_API_VIDEO_GET_RATING_RESPONSE_H_ #define GOOGLE_YOUTUBE_API_VIDEO_GET_RATING_RESPONSE_H_ diff --git a/service_apis/youtube/google/youtube_api/video_list_response.cc b/service_apis/youtube/google/youtube_api/video_list_response.cc index c98dfc0..913a3b9 100644 --- a/service_apis/youtube/google/youtube_api/video_list_response.cc +++ b/service_apis/youtube/google/youtube_api/video_list_response.cc @@ -1,5 +1,3 @@ -// Copyright 2010 Google Inc. -// // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at @@ -13,14 +11,13 @@ // the License. // This code was generated by google-apis-code-generator 1.5.1 -// C++ generator version: 0.1.3 // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // YouTube Data API (youtube/v3) // Description: -// Programmatic access to YouTube features. +// Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. // Classes: // VideoListResponse // Documentation: @@ -61,4 +58,36 @@ VideoListResponse::VideoListResponse(Json::Value* storage) // Standard destructor. VideoListResponse::~VideoListResponse() { } + +// Properties. + +const client::JsonCppArray