├── .gitignore
├── CMakeLists.txt
├── COPYING.txt
├── README.md
├── doxygen.config
├── doxygenate.py
├── introspect.cmake
├── prepare_dependencies.py
├── service_apis
├── CMakeLists.txt
├── calendar
│ ├── CMakeLists.txt
│ ├── LICENSE.txt
│ ├── google
│ │ └── calendar_api
│ │ │ ├── CMakeLists.txt
│ │ │ ├── acl.cc
│ │ │ ├── acl.h
│ │ │ ├── acl_rule.cc
│ │ │ ├── acl_rule.h
│ │ │ ├── calendar.cc
│ │ │ ├── calendar.h
│ │ │ ├── calendar_api.h
│ │ │ ├── calendar_list.cc
│ │ │ ├── calendar_list.h
│ │ │ ├── calendar_list_entry.cc
│ │ │ ├── calendar_list_entry.h
│ │ │ ├── calendar_notification.cc
│ │ │ ├── calendar_notification.h
│ │ │ ├── calendar_service.cc
│ │ │ ├── calendar_service.h
│ │ │ ├── channel.cc
│ │ │ ├── channel.h
│ │ │ ├── color_definition.cc
│ │ │ ├── color_definition.h
│ │ │ ├── colors.cc
│ │ │ ├── colors.h
│ │ │ ├── error.cc
│ │ │ ├── error.h
│ │ │ ├── event.cc
│ │ │ ├── event.h
│ │ │ ├── event_attachment.cc
│ │ │ ├── event_attachment.h
│ │ │ ├── event_attendee.cc
│ │ │ ├── event_attendee.h
│ │ │ ├── event_date_time.cc
│ │ │ ├── event_date_time.h
│ │ │ ├── event_reminder.cc
│ │ │ ├── event_reminder.h
│ │ │ ├── events.cc
│ │ │ ├── events.h
│ │ │ ├── free_busy_calendar.cc
│ │ │ ├── free_busy_calendar.h
│ │ │ ├── free_busy_group.cc
│ │ │ ├── free_busy_group.h
│ │ │ ├── free_busy_request.cc
│ │ │ ├── free_busy_request.h
│ │ │ ├── free_busy_request_item.cc
│ │ │ ├── free_busy_request_item.h
│ │ │ ├── free_busy_response.cc
│ │ │ ├── free_busy_response.h
│ │ │ ├── setting.cc
│ │ │ ├── setting.h
│ │ │ ├── settings.cc
│ │ │ ├── settings.h
│ │ │ ├── time_period.cc
│ │ │ └── time_period.h
│ └── readme.html
└── storage
│ ├── CMakeLists.txt
│ ├── LICENSE.txt
│ ├── google
│ └── storage_api
│ │ ├── CMakeLists.txt
│ │ ├── bucket.cc
│ │ ├── bucket.h
│ │ ├── bucket_access_control.cc
│ │ ├── bucket_access_control.h
│ │ ├── bucket_access_controls.cc
│ │ ├── bucket_access_controls.h
│ │ ├── buckets.cc
│ │ ├── buckets.h
│ │ ├── channel.cc
│ │ ├── channel.h
│ │ ├── compose_request.cc
│ │ ├── compose_request.h
│ │ ├── notification.cc
│ │ ├── notification.h
│ │ ├── notifications.cc
│ │ ├── notifications.h
│ │ ├── object.cc
│ │ ├── object.h
│ │ ├── object_access_control.cc
│ │ ├── object_access_control.h
│ │ ├── object_access_controls.cc
│ │ ├── object_access_controls.h
│ │ ├── objects.cc
│ │ ├── objects.h
│ │ ├── policy.cc
│ │ ├── policy.h
│ │ ├── rewrite_response.cc
│ │ ├── rewrite_response.h
│ │ ├── service_account.cc
│ │ ├── service_account.h
│ │ ├── storage_api.h
│ │ ├── storage_service.cc
│ │ ├── storage_service.h
│ │ ├── test_iam_permissions_response.cc
│ │ └── test_iam_permissions_response.h
│ └── readme.html
└── src
├── CMakeLists.txt
├── googleapis
├── CMakeLists.txt
├── base
│ ├── callback-specializations.h
│ ├── callback-types.h
│ ├── callback.cc
│ ├── callback.h
│ ├── int128.h
│ ├── integral_types.h
│ ├── macros.h
│ ├── mutex.h
│ ├── once.cc
│ ├── once.h
│ ├── port.h
│ ├── strtoint.cc
│ ├── strtoint.h
│ ├── template_util.h
│ ├── thread_annotations.h
│ ├── windows_compatability.cc
│ └── windows_compatability.h
├── client
│ ├── CMakeLists.txt
│ ├── auth
│ │ ├── credential_store.cc
│ │ ├── credential_store.h
│ │ ├── file_credential_store.cc
│ │ ├── file_credential_store.h
│ │ ├── jwt_builder.cc
│ │ ├── jwt_builder.h
│ │ ├── oauth2_authorization.cc
│ │ ├── oauth2_authorization.h
│ │ ├── oauth2_pending_authorizations.h
│ │ ├── oauth2_service_authorization.cc
│ │ ├── oauth2_service_authorization.h
│ │ ├── test
│ │ │ ├── file_credential_store_test.cc
│ │ │ ├── interactive_oauth2_authorization_test.cc
│ │ │ └── oauth2_authorization_test.cc
│ │ ├── webserver_authorization_getter.cc
│ │ └── webserver_authorization_getter.h
│ ├── data
│ │ ├── base64_codec.cc
│ │ ├── base64_codec.h
│ │ ├── codec.cc
│ │ ├── codec.h
│ │ ├── composite_data_reader.cc
│ │ ├── data_reader.cc
│ │ ├── data_reader.h
│ │ ├── data_writer.cc
│ │ ├── data_writer.h
│ │ ├── file_data_reader.cc
│ │ ├── file_data_writer.cc
│ │ ├── file_data_writer.h
│ │ ├── inmemory_data_reader.cc
│ │ ├── istream_data_reader.cc
│ │ ├── jsoncpp_data.cc
│ │ ├── jsoncpp_data.h
│ │ ├── jsoncpp_data_helpers.h
│ │ ├── openssl_codec.cc
│ │ ├── openssl_codec.h
│ │ ├── roots.pem
│ │ ├── serializable_json.cc
│ │ ├── serializable_json.h
│ │ └── test
│ │ │ ├── base64_codec_test.cc
│ │ │ ├── composite_data_reader_test.cc
│ │ │ ├── data_reader_test.cc
│ │ │ ├── data_writer_test.cc
│ │ │ ├── file_data_reader_test.cc
│ │ │ ├── inmemory_data_reader_test.cc
│ │ │ ├── istream_data_reader_test.cc
│ │ │ ├── jsoncpp_data_test.cc
│ │ │ └── openssl_codec_test.cc
│ ├── service
│ │ ├── client_service.cc
│ │ ├── client_service.h
│ │ ├── media_uploader.cc
│ │ ├── media_uploader.h
│ │ ├── service_request_pager.cc
│ │ ├── service_request_pager.h
│ │ └── test
│ │ │ ├── client_service_test.cc
│ │ │ ├── media_uploader_test.cc
│ │ │ └── service_request_pager_test.cc
│ ├── test
│ │ └── google
│ │ │ └── wax_api
│ │ │ ├── CMakeLists.txt
│ │ │ ├── subscription.cc
│ │ │ ├── subscription.h
│ │ │ ├── wax_api.h
│ │ │ ├── wax_create_session_request.cc
│ │ │ ├── wax_create_session_request.h
│ │ │ ├── wax_data_item.cc
│ │ │ ├── wax_data_item.h
│ │ │ ├── wax_list_response.cc
│ │ │ ├── wax_list_response.h
│ │ │ ├── wax_new_session_params.cc
│ │ │ ├── wax_new_session_params.h
│ │ │ ├── wax_new_session_request.cc
│ │ │ ├── wax_new_session_request.h
│ │ │ ├── wax_new_session_response.cc
│ │ │ ├── wax_new_session_response.h
│ │ │ ├── wax_remove_session_request.cc
│ │ │ ├── wax_remove_session_request.h
│ │ │ ├── wax_remove_session_response.cc
│ │ │ ├── wax_remove_session_response.h
│ │ │ ├── wax_service.cc
│ │ │ └── wax_service.h
│ ├── transport
│ │ ├── ca_paths.cc
│ │ ├── ca_paths.h
│ │ ├── curl_http_transport.cc
│ │ ├── curl_http_transport.h
│ │ ├── html_scribe.cc
│ │ ├── html_scribe.h
│ │ ├── http_authorization.cc
│ │ ├── http_authorization.h
│ │ ├── http_request.cc
│ │ ├── http_request.h
│ │ ├── http_request_batch.cc
│ │ ├── http_request_batch.h
│ │ ├── http_response.cc
│ │ ├── http_response.h
│ │ ├── http_scribe.cc
│ │ ├── http_scribe.h
│ │ ├── http_transport.cc
│ │ ├── http_transport.h
│ │ ├── http_transport_global_state.cc
│ │ ├── http_transport_global_state.h
│ │ ├── http_types.h
│ │ ├── json_playback_transport.cc
│ │ ├── json_playback_transport.h
│ │ ├── json_scribe.cc
│ │ ├── json_scribe.h
│ │ ├── test
│ │ │ ├── curl_http_transport_test.cc
│ │ │ ├── html_scribe_test.cc
│ │ │ ├── http_request_batch_test.cc
│ │ │ ├── http_scribe_test.cc
│ │ │ ├── http_transport_test.cc
│ │ │ ├── http_transport_test_fixture.cc
│ │ │ ├── http_transport_test_fixture.h
│ │ │ ├── json_playback_transport_test.cc
│ │ │ ├── json_transport_playback.json
│ │ │ ├── mock_http_transport.h
│ │ │ └── wax_server.py
│ │ ├── versioninfo.cc
│ │ └── versioninfo.h
│ └── util
│ │ ├── abstract_webserver.cc
│ │ ├── abstract_webserver.h
│ │ ├── date_time.cc
│ │ ├── date_time.h
│ │ ├── escaping.cc
│ │ ├── escaping.h
│ │ ├── file_utils.cc
│ │ ├── file_utils.h
│ │ ├── program_path.cc
│ │ ├── program_path.h
│ │ ├── status.cc
│ │ ├── status.h
│ │ ├── test
│ │ ├── date_time_test.cc
│ │ ├── file_utils_test.cc
│ │ ├── googleapis_gtest.h
│ │ ├── googleapis_gtest_main.cc
│ │ ├── uri_template_test.cc
│ │ └── uri_utils_test.cc
│ │ ├── uri_template.cc
│ │ ├── uri_template.h
│ │ ├── uri_utils.cc
│ │ └── uri_utils.h
├── config.h.in
├── strings
│ ├── ascii_ctype.cc
│ ├── ascii_ctype.h
│ ├── case.cc
│ ├── case.h
│ ├── join.h
│ ├── memutil.cc
│ ├── memutil.h
│ ├── numbers.cc
│ ├── numbers.h
│ ├── split.cc
│ ├── split.h
│ ├── strcat.cc
│ ├── strcat.h
│ ├── stringpiece.cc
│ ├── stringpiece.h
│ ├── strip.cc
│ ├── strip.h
│ ├── util.cc
│ └── util.h
└── util
│ ├── case_insensitive_hash.h
│ ├── executor.cc
│ ├── executor.h
│ ├── file.cc
│ ├── file.h
│ ├── hash.cc
│ ├── hash.h
│ ├── mock_executor.h
│ ├── status.cc
│ └── status.h
└── samples
├── CMakeLists.txt
├── README.md
├── calendar_sample_main.cc
├── resources
└── download-client-secret.png
└── storage_sample_main.cc
/.gitignore:
--------------------------------------------------------------------------------
1 | *~
2 | .\#*
3 | CMakeFiles
4 | CMakeCache.txt
5 | CTestTestfile.cmake
6 | Makefile
7 | Testing
8 | cmake_install.cmake
9 | src/googleapis/config.h
10 | src/gmock
11 | external_dependencies
12 | bin
13 | lib
14 | export
15 | local.cmake
16 | build/
17 | .vscode/
18 | .idea/
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Google API C++ Client
2 |
3 | **This repository is deprecated as of May 30th 2019. Please do not use this for any new projects.**
4 |
5 | **PLEASE READ**: If you have a support contract with Google, and need help with this library - please create an issue in the [support console](https://cloud.google.com/support/).
6 |
7 | The current installation has only been tested on Unix/Linux systems;
8 | this release does not support Windows.
9 |
10 | ## Building
11 |
12 | ### Prerequisites:
13 | * python (Available from http://www.python.org/getit/)
14 | - verified with versions 2.6.4 and 2.7.3
15 | * C++ compiler and Make
16 | - Mac OSX https://developer.apple.com/xcode/
17 | - Linux http://gcc.gnu.org/
18 |
19 | ### Build Steps:
20 |
21 | ./prepare_dependencies.py
22 | mkdir build && cd build
23 | ../external_dependencies/install/bin/cmake ..
24 | make
25 |
26 | ## Running the Samples
27 |
28 | See [src/samples/README.md](src/samples/README.md)
29 |
30 |
31 | ## Building Clients for Other APIs
32 |
33 | To download additional APIs specialized for individual Google Services see:
34 | http://google.github.io/google-api-cpp-client/latest/available_service_apis.html
35 | and use this precise version of the apis client generator:
36 | https://github.com/google/apis-client-generator/tree/dcad06f5ff0fecfcf7a029efefe62a6b6287b025
37 |
38 | Here's an example invocation:
39 |
40 | $ python apis-client-generator/src/googleapis/codegen/generate_library.py --api_name=drive --api_version=v2 --language=cpp --output_dir=/tmp/generated
41 |
42 | It should be possible to build this from existing installed libraries.
43 | However, the build scripts are not yet written to find them. For initial
44 | support simplicity we download and build all the dependencies in the
45 | prepare_dependencies.py script for the time being as a one-time brute
46 | force preparation.
47 |
48 | ### Getting Help
49 |
50 | If you have problems, questions or suggestions, contact:
51 | The Google group at https://groups.google.com/group/google-api-cpp-client
52 |
53 | Or you may also ask questions on StackOverflow at:
54 | http://stackoverflow.com with the tag google-api-cpp-client
55 |
56 | **PLEASE READ**: If you have a support contract with Google, and need help with this library - please create an issue in the [support console](https://cloud.google.com/support/).
57 |
58 | ## Status
59 |
60 | This SDK is deprecated and archived. We don't accept patches any more.
61 |
62 | ### About the branches
63 |
64 | The master branch is where development is done. It usually is compatible with
65 | the generated libraries available from from google.developers.com. On occasion
66 | it gets aheaad of those. It usually catches up in a few days.
67 |
68 | The latest generated libraries for any Google API is available automatically
69 | from
70 | https://developers.google.com/resources/api-libraries/download//\/cpp
71 |
72 | For example, for Drive/v2, you would use
73 | https://developers.google.com/resources/api-libraries/download/drive/v2/cpp
74 |
--------------------------------------------------------------------------------
/doxygenate.py:
--------------------------------------------------------------------------------
1 | #! /usr/bin/python
2 | """INPUT_FILTER for Doxygen that converts C++ comments to Doxygen comments."""
3 | import sys
4 | import re
5 |
6 |
7 | def Doxygenate(text):
8 | """Change commenting style to the one recognized by Doxygen."""
9 | # /* -> /**
10 | text = re.sub(r'(/\*)([ \t\n]) ?', r'/**\2', text)
11 |
12 | # // -> ///
13 | text = re.sub(r'(//)([ \t\n]) ?', r'///\2', text)
14 |
15 | # // Author:-> /** \author */
16 | text = re.sub(r'(//[ ]+Author:?[ ]*)([^\n]+)', r'/** \\author \2 */', text)
17 | print text
18 |
19 | if __name__ == '__main__':
20 | f = open(sys.argv[1], 'r')
21 | src = f.read()
22 | f.close()
23 | Doxygenate(src)
24 |
--------------------------------------------------------------------------------
/introspect.cmake:
--------------------------------------------------------------------------------
1 | include(CheckIncludeFile)
2 | include(CheckCXXSourceCompiles)
3 |
4 | find_library(JSONCPP_LIBRARY
5 | NAMES jsoncpp libjsoncpp
6 | HINTS "${CMAKE_PREFIX_PATH}/jsoncpp/lib"
7 | REQUIRED)
8 | message(" -- using libjsoncpp from ${JSONCPP_LIBRARY}")
9 |
10 | find_library(CURL_LIBRARY
11 | NAMES curl libcurl
12 | HINTS "${CMAKE_PREFIX_PATH}/curl/lib")
13 | if (${CURL_LIBRARY} STREQUAL "CURL_LIBRARY-NOTFOUND")
14 | message("WARING: libcurl you do not have libcurl, skipping support for it.")
15 | else()
16 | message(" -- using libcurl from ${CURL_LIBRARY}")
17 | endif()
18 |
19 | check_include_file("libproc.h" HAVE_LIBPROC)
20 | check_include_file("mongoose/mongoose.h" HAVE_MONGOOSE)
21 | check_include_file("openssl/ossl_typ.h" HAVE_OPENSSL)
22 |
23 | check_cxx_source_compiles(
24 | "#include
25 | int type = S_IRGRP | S_IWOTH;
26 | " HAVE_UGO_PERMISSIONS)
27 |
28 | check_cxx_source_compiles(
29 | "#include
30 | int check_fstat(int fd) {
31 | stat64 info;
32 | return fstat64(fd, &info);
33 | }" HAVE_FSTAT64)
34 |
35 | #cmakedefine HAVE_FSTAT64
36 | #cmakedefine HAVE_UGO_PERMISSIONS
37 | #cmakedefine HAVE_LIBPROC
38 | #cmakedefine HAVE_MONGOOSE
39 | #cmakedefine HAVE_OPENSSL
40 |
--------------------------------------------------------------------------------
/service_apis/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | file(GLOB all_valid_subdirs RELATIVE
2 | ${CMAKE_CURRENT_SOURCE_DIR} "*/CMakeLists.txt")
3 |
4 | foreach(dir ${all_valid_subdirs})
5 | message(STATUS "path = ${dir}")
6 | if(${dir} MATCHES "^([^/]*)/CMakeLists.txt")
7 | string(REGEX REPLACE
8 | "^([^/]*)/CMakeLists.txt" "\\1" dir_trimmed ${dir})
9 | add_subdirectory(${dir_trimmed})
10 | endif()
11 | endforeach(dir)
12 |
--------------------------------------------------------------------------------
/service_apis/calendar/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This is a CMake file for Calendar API v3
2 | # using the Google APIs Client Library for C++.
3 | #
4 | # See http://google.github.io/google-api-cpp-client/latest/start/get_started
5 | # for more information about what to do with this file.
6 |
7 | project (calendar)
8 | INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/.)
9 |
10 | add_subdirectory(google/calendar_api)
11 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This is a CMake file for Calendar API v3
2 | # using the Google APIs Client Library for C++.
3 | #
4 | # See http://google.github.io/google-api-cpp-client/latest/start/get_started
5 | # for more information about what to do with this file.
6 |
7 | project (google_calendar_api)
8 |
9 | # These sources assume that the CMakeLists.txt in ../.. added itself to
10 | # the include directories so that include paths are specified explicitly
11 | # with the directory #include "google/calendar_api/..."
12 | add_library(google_calendar_api STATIC
13 | acl.cc
14 | acl_rule.cc
15 | calendar.cc
16 | calendar_list.cc
17 | calendar_list_entry.cc
18 | calendar_notification.cc
19 | channel.cc
20 | color_definition.cc
21 | colors.cc
22 | error.cc
23 | event.cc
24 | event_attachment.cc
25 | event_attendee.cc
26 | event_date_time.cc
27 | event_reminder.cc
28 | events.cc
29 | free_busy_calendar.cc
30 | free_busy_group.cc
31 | free_busy_request.cc
32 | free_busy_request_item.cc
33 | free_busy_response.cc
34 | setting.cc
35 | settings.cc
36 | time_period.cc
37 | calendar_service.cc)
38 | target_link_libraries(google_calendar_api googleapis_http)
39 | target_link_libraries(google_calendar_api googleapis_internal)
40 | target_link_libraries(google_calendar_api googleapis_jsoncpp)
41 | target_link_libraries(google_calendar_api googleapis_utils)
42 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/acl.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // Acl
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/acl.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 | #include "google/calendar_api/acl_rule.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_calendar_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | Acl* Acl::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | Acl::Acl(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | Acl::Acl(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | Acl::~Acl() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray Acl::get_items() const {
63 | const Json::Value& storage = Storage("items");
64 | return client::JsonValueToCppValueHelper >(storage);
65 | }
66 |
67 | client::JsonCppArray Acl::mutable_items() {
68 | Json::Value* storage = MutableStorage("items");
69 | return client::JsonValueToMutableCppValueHelper >(storage);
70 | }
71 | } // namespace google_calendar_api
72 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/acl_rule.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // AclRule
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/acl_rule.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_calendar_api {
36 | using namespace googleapis;
37 |
38 |
39 |
40 | // Object factory method (static).
41 | AclRule::AclRuleScope* AclRule::AclRuleScope::New() {
42 | return new client::JsonCppCapsule;
43 | }
44 |
45 | // Standard immutable constructor.
46 | AclRule::AclRuleScope::AclRuleScope(const Json::Value& storage)
47 | : client::JsonCppData(storage) {
48 | }
49 |
50 | // Standard mutable constructor.
51 | AclRule::AclRuleScope::AclRuleScope(Json::Value* storage)
52 | : client::JsonCppData(storage) {
53 | }
54 |
55 | // Standard destructor.
56 | AclRule::AclRuleScope::~AclRuleScope() {
57 | }
58 |
59 | // Properties.
60 | // Object factory method (static).
61 | AclRule* AclRule::New() {
62 | return new client::JsonCppCapsule;
63 | }
64 |
65 | // Standard immutable constructor.
66 | AclRule::AclRule(const Json::Value& storage)
67 | : client::JsonCppData(storage) {
68 | }
69 |
70 | // Standard mutable constructor.
71 | AclRule::AclRule(Json::Value* storage)
72 | : client::JsonCppData(storage) {
73 | }
74 |
75 | // Standard destructor.
76 | AclRule::~AclRule() {
77 | }
78 |
79 | // Properties.
80 | } // namespace google_calendar_api
81 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/calendar.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // Calendar
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/calendar.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_calendar_api {
36 | using namespace googleapis;
37 |
38 |
39 | // Object factory method (static).
40 | Calendar* Calendar::New() {
41 | return new client::JsonCppCapsule;
42 | }
43 |
44 | // Standard immutable constructor.
45 | Calendar::Calendar(const Json::Value& storage)
46 | : client::JsonCppData(storage) {
47 | }
48 |
49 | // Standard mutable constructor.
50 | Calendar::Calendar(Json::Value* storage)
51 | : client::JsonCppData(storage) {
52 | }
53 |
54 | // Standard destructor.
55 | Calendar::~Calendar() {
56 | }
57 |
58 | // Properties.
59 | } // namespace google_calendar_api
60 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/calendar_api.h:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 | // This code was generated by google-apis-code-generator 1.5.1
13 |
14 | #ifndef GOOGLE_CALENDAR_API_CALENDAR_API_H_
15 | #define GOOGLE_CALENDAR_API_CALENDAR_API_H_
16 |
17 | #include "google/calendar_api/acl_rule.h"
18 | #include "google/calendar_api/acl.h"
19 | #include "google/calendar_api/calendar.h"
20 | #include "google/calendar_api/event_reminder.h"
21 | #include "google/calendar_api/calendar_notification.h"
22 | #include "google/calendar_api/calendar_list_entry.h"
23 | #include "google/calendar_api/calendar_list.h"
24 | #include "google/calendar_api/channel.h"
25 | #include "google/calendar_api/color_definition.h"
26 | #include "google/calendar_api/colors.h"
27 | #include "google/calendar_api/error.h"
28 | #include "google/calendar_api/event_attachment.h"
29 | #include "google/calendar_api/event_attendee.h"
30 | #include "google/calendar_api/event_date_time.h"
31 | #include "google/calendar_api/event.h"
32 | #include "google/calendar_api/events.h"
33 | #include "google/calendar_api/time_period.h"
34 | #include "google/calendar_api/free_busy_calendar.h"
35 | #include "google/calendar_api/free_busy_group.h"
36 | #include "google/calendar_api/free_busy_request_item.h"
37 | #include "google/calendar_api/free_busy_request.h"
38 | #include "google/calendar_api/free_busy_response.h"
39 | #include "google/calendar_api/setting.h"
40 | #include "google/calendar_api/settings.h"
41 |
42 | #include "google/calendar_api/calendar_service.h"
43 |
44 |
45 | #endif // GOOGLE_CALENDAR_API_CALENDAR_API_H_
46 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/calendar_list.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // CalendarList
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/calendar_list.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 | #include "google/calendar_api/calendar_list_entry.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_calendar_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | CalendarList* CalendarList::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | CalendarList::CalendarList(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | CalendarList::CalendarList(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | CalendarList::~CalendarList() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray CalendarList::get_items() const {
63 | const Json::Value& storage = Storage("items");
64 | return client::JsonValueToCppValueHelper >(storage);
65 | }
66 |
67 | client::JsonCppArray CalendarList::mutable_items() {
68 | Json::Value* storage = MutableStorage("items");
69 | return client::JsonValueToMutableCppValueHelper >(storage);
70 | }
71 | } // namespace google_calendar_api
72 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/calendar_notification.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // CalendarNotification
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/calendar_notification.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_calendar_api {
36 | using namespace googleapis;
37 |
38 |
39 | // Object factory method (static).
40 | CalendarNotification* CalendarNotification::New() {
41 | return new client::JsonCppCapsule;
42 | }
43 |
44 | // Standard immutable constructor.
45 | CalendarNotification::CalendarNotification(const Json::Value& storage)
46 | : client::JsonCppData(storage) {
47 | }
48 |
49 | // Standard mutable constructor.
50 | CalendarNotification::CalendarNotification(Json::Value* storage)
51 | : client::JsonCppData(storage) {
52 | }
53 |
54 | // Standard destructor.
55 | CalendarNotification::~CalendarNotification() {
56 | }
57 |
58 | // Properties.
59 | } // namespace google_calendar_api
60 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/channel.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // Channel
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/channel.h"
27 | #include
28 | #include "googleapis/base/integral_types.h"
29 | #include "googleapis/client/data/jsoncpp_data.h"
30 | #include "googleapis/strings/stringpiece.h"
31 |
32 |
33 | #include
34 | #include "googleapis/strings/strcat.h"
35 |
36 | namespace google_calendar_api {
37 | using namespace googleapis;
38 |
39 |
40 | // Object factory method (static).
41 | Channel* Channel::New() {
42 | return new client::JsonCppCapsule;
43 | }
44 |
45 | // Standard immutable constructor.
46 | Channel::Channel(const Json::Value& storage)
47 | : client::JsonCppData(storage) {
48 | }
49 |
50 | // Standard mutable constructor.
51 | Channel::Channel(Json::Value* storage)
52 | : client::JsonCppData(storage) {
53 | }
54 |
55 | // Standard destructor.
56 | Channel::~Channel() {
57 | }
58 |
59 | // Properties.
60 | } // namespace google_calendar_api
61 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/color_definition.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // ColorDefinition
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/color_definition.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_calendar_api {
36 | using namespace googleapis;
37 |
38 |
39 | // Object factory method (static).
40 | ColorDefinition* ColorDefinition::New() {
41 | return new client::JsonCppCapsule;
42 | }
43 |
44 | // Standard immutable constructor.
45 | ColorDefinition::ColorDefinition(const Json::Value& storage)
46 | : client::JsonCppData(storage) {
47 | }
48 |
49 | // Standard mutable constructor.
50 | ColorDefinition::ColorDefinition(Json::Value* storage)
51 | : client::JsonCppData(storage) {
52 | }
53 |
54 | // Standard destructor.
55 | ColorDefinition::~ColorDefinition() {
56 | }
57 |
58 | // Properties.
59 | } // namespace google_calendar_api
60 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/colors.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // Colors
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/colors.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/client/util/date_time.h"
30 | #include "googleapis/strings/stringpiece.h"
31 |
32 | #include "google/calendar_api/color_definition.h"
33 |
34 |
35 | #include
36 | #include "googleapis/strings/strcat.h"
37 |
38 | namespace google_calendar_api {
39 | using namespace googleapis;
40 |
41 |
42 | // Object factory method (static).
43 | Colors* Colors::New() {
44 | return new client::JsonCppCapsule;
45 | }
46 |
47 | // Standard immutable constructor.
48 | Colors::Colors(const Json::Value& storage)
49 | : client::JsonCppData(storage) {
50 | }
51 |
52 | // Standard mutable constructor.
53 | Colors::Colors(Json::Value* storage)
54 | : client::JsonCppData(storage) {
55 | }
56 |
57 | // Standard destructor.
58 | Colors::~Colors() {
59 | }
60 |
61 | // Properties.
62 |
63 | const client::JsonCppAssociativeArray Colors::get_calendar() const {
64 | const Json::Value& storage = Storage("calendar");
65 | return client::JsonValueToCppValueHelper >(storage);
66 | }
67 |
68 | client::JsonCppAssociativeArray Colors::mutable_calendar() {
69 | Json::Value* storage = MutableStorage("calendar");
70 | return client::JsonValueToMutableCppValueHelper >(storage);
71 | }
72 |
73 | const client::JsonCppAssociativeArray Colors::get_event() const {
74 | const Json::Value& storage = Storage("event");
75 | return client::JsonValueToCppValueHelper >(storage);
76 | }
77 |
78 | client::JsonCppAssociativeArray Colors::mutable_event() {
79 | Json::Value* storage = MutableStorage("event");
80 | return client::JsonValueToMutableCppValueHelper >(storage);
81 | }
82 | } // namespace google_calendar_api
83 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/error.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // Error
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/error.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_calendar_api {
36 | using namespace googleapis;
37 |
38 |
39 | // Object factory method (static).
40 | Error* Error::New() {
41 | return new client::JsonCppCapsule;
42 | }
43 |
44 | // Standard immutable constructor.
45 | Error::Error(const Json::Value& storage)
46 | : client::JsonCppData(storage) {
47 | }
48 |
49 | // Standard mutable constructor.
50 | Error::Error(Json::Value* storage)
51 | : client::JsonCppData(storage) {
52 | }
53 |
54 | // Standard destructor.
55 | Error::~Error() {
56 | }
57 |
58 | // Properties.
59 | } // namespace google_calendar_api
60 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/event_attachment.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // EventAttachment
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/event_attachment.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_calendar_api {
36 | using namespace googleapis;
37 |
38 |
39 | // Object factory method (static).
40 | EventAttachment* EventAttachment::New() {
41 | return new client::JsonCppCapsule;
42 | }
43 |
44 | // Standard immutable constructor.
45 | EventAttachment::EventAttachment(const Json::Value& storage)
46 | : client::JsonCppData(storage) {
47 | }
48 |
49 | // Standard mutable constructor.
50 | EventAttachment::EventAttachment(Json::Value* storage)
51 | : client::JsonCppData(storage) {
52 | }
53 |
54 | // Standard destructor.
55 | EventAttachment::~EventAttachment() {
56 | }
57 |
58 | // Properties.
59 | } // namespace google_calendar_api
60 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/event_attendee.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // EventAttendee
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/event_attendee.h"
27 | #include
28 | #include "googleapis/base/integral_types.h"
29 | #include "googleapis/client/data/jsoncpp_data.h"
30 | #include "googleapis/strings/stringpiece.h"
31 |
32 |
33 | #include
34 | #include "googleapis/strings/strcat.h"
35 |
36 | namespace google_calendar_api {
37 | using namespace googleapis;
38 |
39 |
40 | // Object factory method (static).
41 | EventAttendee* EventAttendee::New() {
42 | return new client::JsonCppCapsule;
43 | }
44 |
45 | // Standard immutable constructor.
46 | EventAttendee::EventAttendee(const Json::Value& storage)
47 | : client::JsonCppData(storage) {
48 | }
49 |
50 | // Standard mutable constructor.
51 | EventAttendee::EventAttendee(Json::Value* storage)
52 | : client::JsonCppData(storage) {
53 | }
54 |
55 | // Standard destructor.
56 | EventAttendee::~EventAttendee() {
57 | }
58 |
59 | // Properties.
60 | } // namespace google_calendar_api
61 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/event_date_time.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // EventDateTime
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/event_date_time.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/client/util/date_time.h"
30 | #include "googleapis/strings/stringpiece.h"
31 |
32 |
33 | #include
34 | #include "googleapis/strings/strcat.h"
35 |
36 | namespace google_calendar_api {
37 | using namespace googleapis;
38 |
39 |
40 | // Object factory method (static).
41 | EventDateTime* EventDateTime::New() {
42 | return new client::JsonCppCapsule;
43 | }
44 |
45 | // Standard immutable constructor.
46 | EventDateTime::EventDateTime(const Json::Value& storage)
47 | : client::JsonCppData(storage) {
48 | }
49 |
50 | // Standard mutable constructor.
51 | EventDateTime::EventDateTime(Json::Value* storage)
52 | : client::JsonCppData(storage) {
53 | }
54 |
55 | // Standard destructor.
56 | EventDateTime::~EventDateTime() {
57 | }
58 |
59 | // Properties.
60 | } // namespace google_calendar_api
61 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/event_reminder.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // EventReminder
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/event_reminder.h"
27 | #include
28 | #include "googleapis/base/integral_types.h"
29 | #include "googleapis/client/data/jsoncpp_data.h"
30 | #include "googleapis/strings/stringpiece.h"
31 |
32 |
33 | #include
34 | #include "googleapis/strings/strcat.h"
35 |
36 | namespace google_calendar_api {
37 | using namespace googleapis;
38 |
39 |
40 | // Object factory method (static).
41 | EventReminder* EventReminder::New() {
42 | return new client::JsonCppCapsule;
43 | }
44 |
45 | // Standard immutable constructor.
46 | EventReminder::EventReminder(const Json::Value& storage)
47 | : client::JsonCppData(storage) {
48 | }
49 |
50 | // Standard mutable constructor.
51 | EventReminder::EventReminder(Json::Value* storage)
52 | : client::JsonCppData(storage) {
53 | }
54 |
55 | // Standard destructor.
56 | EventReminder::~EventReminder() {
57 | }
58 |
59 | // Properties.
60 | } // namespace google_calendar_api
61 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/events.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // Events
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/events.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/client/util/date_time.h"
30 | #include "googleapis/strings/stringpiece.h"
31 |
32 | #include "google/calendar_api/event.h"
33 | #include "google/calendar_api/event_reminder.h"
34 |
35 |
36 | #include
37 | #include "googleapis/strings/strcat.h"
38 |
39 | namespace google_calendar_api {
40 | using namespace googleapis;
41 |
42 |
43 | // Object factory method (static).
44 | Events* Events::New() {
45 | return new client::JsonCppCapsule;
46 | }
47 |
48 | // Standard immutable constructor.
49 | Events::Events(const Json::Value& storage)
50 | : client::JsonCppData(storage) {
51 | }
52 |
53 | // Standard mutable constructor.
54 | Events::Events(Json::Value* storage)
55 | : client::JsonCppData(storage) {
56 | }
57 |
58 | // Standard destructor.
59 | Events::~Events() {
60 | }
61 |
62 | // Properties.
63 |
64 | const client::JsonCppArray Events::get_default_reminders() const {
65 | const Json::Value& storage = Storage("defaultReminders");
66 | return client::JsonValueToCppValueHelper >(storage);
67 | }
68 |
69 | client::JsonCppArray Events::mutable_defaultReminders() {
70 | Json::Value* storage = MutableStorage("defaultReminders");
71 | return client::JsonValueToMutableCppValueHelper >(storage);
72 | }
73 |
74 | const client::JsonCppArray Events::get_items() const {
75 | const Json::Value& storage = Storage("items");
76 | return client::JsonValueToCppValueHelper >(storage);
77 | }
78 |
79 | client::JsonCppArray Events::mutable_items() {
80 | Json::Value* storage = MutableStorage("items");
81 | return client::JsonValueToMutableCppValueHelper >(storage);
82 | }
83 | } // namespace google_calendar_api
84 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/free_busy_calendar.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // FreeBusyCalendar
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/free_busy_calendar.h"
27 | #include "googleapis/client/data/jsoncpp_data.h"
28 | #include "googleapis/strings/stringpiece.h"
29 |
30 | #include "google/calendar_api/error.h"
31 | #include "google/calendar_api/time_period.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_calendar_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | FreeBusyCalendar* FreeBusyCalendar::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | FreeBusyCalendar::FreeBusyCalendar(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | FreeBusyCalendar::FreeBusyCalendar(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | FreeBusyCalendar::~FreeBusyCalendar() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray FreeBusyCalendar::get_busy() const {
63 | const Json::Value& storage = Storage("busy");
64 | return client::JsonValueToCppValueHelper >(storage);
65 | }
66 |
67 | client::JsonCppArray FreeBusyCalendar::mutable_busy() {
68 | Json::Value* storage = MutableStorage("busy");
69 | return client::JsonValueToMutableCppValueHelper >(storage);
70 | }
71 |
72 | const client::JsonCppArray FreeBusyCalendar::get_errors() const {
73 | const Json::Value& storage = Storage("errors");
74 | return client::JsonValueToCppValueHelper >(storage);
75 | }
76 |
77 | client::JsonCppArray FreeBusyCalendar::mutable_errors() {
78 | Json::Value* storage = MutableStorage("errors");
79 | return client::JsonValueToMutableCppValueHelper >(storage);
80 | }
81 | } // namespace google_calendar_api
82 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/free_busy_group.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // FreeBusyGroup
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/free_busy_group.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 | #include "google/calendar_api/error.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_calendar_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | FreeBusyGroup* FreeBusyGroup::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | FreeBusyGroup::FreeBusyGroup(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | FreeBusyGroup::FreeBusyGroup(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | FreeBusyGroup::~FreeBusyGroup() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray FreeBusyGroup::get_errors() const {
63 | const Json::Value& storage = Storage("errors");
64 | return client::JsonValueToCppValueHelper >(storage);
65 | }
66 |
67 | client::JsonCppArray FreeBusyGroup::mutable_errors() {
68 | Json::Value* storage = MutableStorage("errors");
69 | return client::JsonValueToMutableCppValueHelper >(storage);
70 | }
71 | } // namespace google_calendar_api
72 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/free_busy_request.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // FreeBusyRequest
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/free_busy_request.h"
27 | #include
28 | #include "googleapis/base/integral_types.h"
29 | #include "googleapis/client/data/jsoncpp_data.h"
30 | #include "googleapis/client/util/date_time.h"
31 | #include "googleapis/strings/stringpiece.h"
32 |
33 | #include "google/calendar_api/free_busy_request_item.h"
34 |
35 |
36 | #include
37 | #include "googleapis/strings/strcat.h"
38 |
39 | namespace google_calendar_api {
40 | using namespace googleapis;
41 |
42 |
43 | // Object factory method (static).
44 | FreeBusyRequest* FreeBusyRequest::New() {
45 | return new client::JsonCppCapsule;
46 | }
47 |
48 | // Standard immutable constructor.
49 | FreeBusyRequest::FreeBusyRequest(const Json::Value& storage)
50 | : client::JsonCppData(storage) {
51 | }
52 |
53 | // Standard mutable constructor.
54 | FreeBusyRequest::FreeBusyRequest(Json::Value* storage)
55 | : client::JsonCppData(storage) {
56 | }
57 |
58 | // Standard destructor.
59 | FreeBusyRequest::~FreeBusyRequest() {
60 | }
61 |
62 | // Properties.
63 |
64 | const client::JsonCppArray FreeBusyRequest::get_items() const {
65 | const Json::Value& storage = Storage("items");
66 | return client::JsonValueToCppValueHelper >(storage);
67 | }
68 |
69 | client::JsonCppArray FreeBusyRequest::mutable_items() {
70 | Json::Value* storage = MutableStorage("items");
71 | return client::JsonValueToMutableCppValueHelper >(storage);
72 | }
73 | } // namespace google_calendar_api
74 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/free_busy_request_item.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // FreeBusyRequestItem
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/free_busy_request_item.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_calendar_api {
36 | using namespace googleapis;
37 |
38 |
39 | // Object factory method (static).
40 | FreeBusyRequestItem* FreeBusyRequestItem::New() {
41 | return new client::JsonCppCapsule;
42 | }
43 |
44 | // Standard immutable constructor.
45 | FreeBusyRequestItem::FreeBusyRequestItem(const Json::Value& storage)
46 | : client::JsonCppData(storage) {
47 | }
48 |
49 | // Standard mutable constructor.
50 | FreeBusyRequestItem::FreeBusyRequestItem(Json::Value* storage)
51 | : client::JsonCppData(storage) {
52 | }
53 |
54 | // Standard destructor.
55 | FreeBusyRequestItem::~FreeBusyRequestItem() {
56 | }
57 |
58 | // Properties.
59 | } // namespace google_calendar_api
60 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/free_busy_response.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // FreeBusyResponse
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/free_busy_response.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/client/util/date_time.h"
30 | #include "googleapis/strings/stringpiece.h"
31 |
32 | #include "google/calendar_api/free_busy_calendar.h"
33 | #include "google/calendar_api/free_busy_group.h"
34 |
35 |
36 | #include
37 | #include "googleapis/strings/strcat.h"
38 |
39 | namespace google_calendar_api {
40 | using namespace googleapis;
41 |
42 |
43 | // Object factory method (static).
44 | FreeBusyResponse* FreeBusyResponse::New() {
45 | return new client::JsonCppCapsule;
46 | }
47 |
48 | // Standard immutable constructor.
49 | FreeBusyResponse::FreeBusyResponse(const Json::Value& storage)
50 | : client::JsonCppData(storage) {
51 | }
52 |
53 | // Standard mutable constructor.
54 | FreeBusyResponse::FreeBusyResponse(Json::Value* storage)
55 | : client::JsonCppData(storage) {
56 | }
57 |
58 | // Standard destructor.
59 | FreeBusyResponse::~FreeBusyResponse() {
60 | }
61 |
62 | // Properties.
63 |
64 | const client::JsonCppAssociativeArray FreeBusyResponse::get_calendars() const {
65 | const Json::Value& storage = Storage("calendars");
66 | return client::JsonValueToCppValueHelper >(storage);
67 | }
68 |
69 | client::JsonCppAssociativeArray FreeBusyResponse::mutable_calendars() {
70 | Json::Value* storage = MutableStorage("calendars");
71 | return client::JsonValueToMutableCppValueHelper >(storage);
72 | }
73 |
74 | const client::JsonCppAssociativeArray FreeBusyResponse::get_groups() const {
75 | const Json::Value& storage = Storage("groups");
76 | return client::JsonValueToCppValueHelper >(storage);
77 | }
78 |
79 | client::JsonCppAssociativeArray FreeBusyResponse::mutable_groups() {
80 | Json::Value* storage = MutableStorage("groups");
81 | return client::JsonValueToMutableCppValueHelper >(storage);
82 | }
83 | } // namespace google_calendar_api
84 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/setting.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // Setting
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/setting.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_calendar_api {
36 | using namespace googleapis;
37 |
38 |
39 | // Object factory method (static).
40 | Setting* Setting::New() {
41 | return new client::JsonCppCapsule;
42 | }
43 |
44 | // Standard immutable constructor.
45 | Setting::Setting(const Json::Value& storage)
46 | : client::JsonCppData(storage) {
47 | }
48 |
49 | // Standard mutable constructor.
50 | Setting::Setting(Json::Value* storage)
51 | : client::JsonCppData(storage) {
52 | }
53 |
54 | // Standard destructor.
55 | Setting::~Setting() {
56 | }
57 |
58 | // Properties.
59 | } // namespace google_calendar_api
60 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/settings.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // Settings
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/settings.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 | #include "google/calendar_api/setting.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_calendar_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | Settings* Settings::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | Settings::Settings(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | Settings::Settings(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | Settings::~Settings() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray Settings::get_items() const {
63 | const Json::Value& storage = Storage("items");
64 | return client::JsonValueToCppValueHelper >(storage);
65 | }
66 |
67 | client::JsonCppArray Settings::mutable_items() {
68 | Json::Value* storage = MutableStorage("items");
69 | return client::JsonValueToMutableCppValueHelper >(storage);
70 | }
71 | } // namespace google_calendar_api
72 |
--------------------------------------------------------------------------------
/service_apis/calendar/google/calendar_api/time_period.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Calendar API (calendar/v3)
19 | // Description:
20 | // Manipulates events and other calendar data.
21 | // Classes:
22 | // TimePeriod
23 | // Documentation:
24 | // https://developers.google.com/google-apps/calendar/firstapp
25 |
26 | #include "google/calendar_api/time_period.h"
27 | #include "googleapis/client/data/jsoncpp_data.h"
28 | #include "googleapis/client/util/date_time.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_calendar_api {
36 | using namespace googleapis;
37 |
38 |
39 | // Object factory method (static).
40 | TimePeriod* TimePeriod::New() {
41 | return new client::JsonCppCapsule;
42 | }
43 |
44 | // Standard immutable constructor.
45 | TimePeriod::TimePeriod(const Json::Value& storage)
46 | : client::JsonCppData(storage) {
47 | }
48 |
49 | // Standard mutable constructor.
50 | TimePeriod::TimePeriod(Json::Value* storage)
51 | : client::JsonCppData(storage) {
52 | }
53 |
54 | // Standard destructor.
55 | TimePeriod::~TimePeriod() {
56 | }
57 |
58 | // Properties.
59 | } // namespace google_calendar_api
60 |
--------------------------------------------------------------------------------
/service_apis/calendar/readme.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Calendar API v3 Client Library for C++
4 |
5 |
6 | Calendar API v3 Client Library for C++
7 |
8 |
9 | If you are using a default build environment as documented in the
10 | Google APIs Client Library for C++ Installation Guide then:
11 |
12 | - Move this directory to the
service_apis
directory in
13 | the build root.
14 | - Run
make
from the root directory
15 |
16 |
17 |
18 | To use the specialized service library, consumers may either:
19 |
20 | - Add this directory to your
INCLUDE
path.
21 |
22 | - In your
CMakeLists.txt
file, add the following:
23 | INCLUDE_DIRECTORIES(${GOOGLEAPIS_SERVICE_REPOSITORY_DIR}/{{ api.module.name })
24 | - Add the following
target_link_libraries
for your
25 | build target my_build_target:
26 | target_link_libraries(my_build_target
27 |
28 | - Either include the single monolithic header file
29 | #include "/.h"
30 | - Or include only the individual header files explicitly needed.
31 |
32 |
33 |
34 | The provided CMakeLists.txt
file is a CMake file compatible with
35 | those in the Google APIs Client Library for C++ SDK.
36 |
37 |
38 |
39 | See Getting Started with the Google APIs Client Library for C++ for more
40 | information on how to use these service API libraries.
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/service_apis/storage/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This is a CMake file for YouTube Data API v3
2 | # using the Google APIs Client Library for C++.
3 | #
4 | # See http://google.github.io/google-api-cpp-client/latest/start/get_started
5 | # for more information about what to do with this file.
6 |
7 | project (storage)
8 | INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/.)
9 |
10 | add_subdirectory(google/storage_api)
11 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This is a CMake file for Cloud Storage JSON API v1
2 | # using the Google APIs Client Library for C++.
3 | #
4 | # See http://google.github.io/google-api-cpp-client/latest/start/get_started
5 | # for more information about what to do with this file.
6 |
7 | project (google_storage_api)
8 |
9 | # These sources assume that the CMakeLists.txt in ../.. added itself to
10 | # the include directories so that include paths are specified explicitly
11 | # with the directory #include "google/storage_api/..."
12 | add_library(google_storage_api STATIC
13 | bucket.cc
14 | bucket_access_control.cc
15 | bucket_access_controls.cc
16 | buckets.cc
17 | channel.cc
18 | compose_request.cc
19 | notification.cc
20 | notifications.cc
21 | object.cc
22 | object_access_control.cc
23 | object_access_controls.cc
24 | objects.cc
25 | policy.cc
26 | rewrite_response.cc
27 | service_account.cc
28 | test_iam_permissions_response.cc
29 | storage_service.cc)
30 | target_link_libraries(google_storage_api googleapis_http)
31 | target_link_libraries(google_storage_api googleapis_internal)
32 | target_link_libraries(google_storage_api googleapis_jsoncpp)
33 | target_link_libraries(google_storage_api googleapis_utils)
34 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/bucket_access_control.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Cloud Storage JSON API (storage/v1)
19 | // Description:
20 | // Stores and retrieves potentially large, immutable data objects.
21 | // Classes:
22 | // BucketAccessControl
23 | // Documentation:
24 | // https://developers.google.com/storage/docs/json_api/
25 |
26 | #include "google/storage_api/bucket_access_control.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_storage_api {
36 | using namespace googleapis;
37 |
38 |
39 |
40 | // Object factory method (static).
41 | BucketAccessControl::BucketAccessControlProjectTeam* BucketAccessControl::BucketAccessControlProjectTeam::New() {
42 | return new client::JsonCppCapsule;
43 | }
44 |
45 | // Standard immutable constructor.
46 | BucketAccessControl::BucketAccessControlProjectTeam::BucketAccessControlProjectTeam(const Json::Value& storage)
47 | : client::JsonCppData(storage) {
48 | }
49 |
50 | // Standard mutable constructor.
51 | BucketAccessControl::BucketAccessControlProjectTeam::BucketAccessControlProjectTeam(Json::Value* storage)
52 | : client::JsonCppData(storage) {
53 | }
54 |
55 | // Standard destructor.
56 | BucketAccessControl::BucketAccessControlProjectTeam::~BucketAccessControlProjectTeam() {
57 | }
58 |
59 | // Properties.
60 | // Object factory method (static).
61 | BucketAccessControl* BucketAccessControl::New() {
62 | return new client::JsonCppCapsule;
63 | }
64 |
65 | // Standard immutable constructor.
66 | BucketAccessControl::BucketAccessControl(const Json::Value& storage)
67 | : client::JsonCppData(storage) {
68 | }
69 |
70 | // Standard mutable constructor.
71 | BucketAccessControl::BucketAccessControl(Json::Value* storage)
72 | : client::JsonCppData(storage) {
73 | }
74 |
75 | // Standard destructor.
76 | BucketAccessControl::~BucketAccessControl() {
77 | }
78 |
79 | // Properties.
80 | } // namespace google_storage_api
81 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/bucket_access_controls.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Cloud Storage JSON API (storage/v1)
19 | // Description:
20 | // Stores and retrieves potentially large, immutable data objects.
21 | // Classes:
22 | // BucketAccessControls
23 | // Documentation:
24 | // https://developers.google.com/storage/docs/json_api/
25 |
26 | #include "google/storage_api/bucket_access_controls.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 | #include "google/storage_api/bucket_access_control.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_storage_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | BucketAccessControls* BucketAccessControls::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | BucketAccessControls::BucketAccessControls(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | BucketAccessControls::BucketAccessControls(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | BucketAccessControls::~BucketAccessControls() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray BucketAccessControls::get_items() const {
63 | const Json::Value& storage = Storage("items");
64 | return client::JsonValueToCppValueHelper >(storage);
65 | }
66 |
67 | client::JsonCppArray BucketAccessControls::mutable_items() {
68 | Json::Value* storage = MutableStorage("items");
69 | return client::JsonValueToMutableCppValueHelper >(storage);
70 | }
71 | } // namespace google_storage_api
72 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/buckets.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Cloud Storage JSON API (storage/v1)
19 | // Description:
20 | // Stores and retrieves potentially large, immutable data objects.
21 | // Classes:
22 | // Buckets
23 | // Documentation:
24 | // https://developers.google.com/storage/docs/json_api/
25 |
26 | #include "google/storage_api/buckets.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 | #include "google/storage_api/bucket.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_storage_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | Buckets* Buckets::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | Buckets::Buckets(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | Buckets::Buckets(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | Buckets::~Buckets() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray Buckets::get_items() const {
63 | const Json::Value& storage = Storage("items");
64 | return client::JsonValueToCppValueHelper >(storage);
65 | }
66 |
67 | client::JsonCppArray Buckets::mutable_items() {
68 | Json::Value* storage = MutableStorage("items");
69 | return client::JsonValueToMutableCppValueHelper >(storage);
70 | }
71 | } // namespace google_storage_api
72 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/channel.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Cloud Storage JSON API (storage/v1)
19 | // Description:
20 | // Stores and retrieves potentially large, immutable data objects.
21 | // Classes:
22 | // Channel
23 | // Documentation:
24 | // https://developers.google.com/storage/docs/json_api/
25 |
26 | #include "google/storage_api/channel.h"
27 | #include
28 | #include "googleapis/base/integral_types.h"
29 | #include "googleapis/client/data/jsoncpp_data.h"
30 | #include "googleapis/strings/stringpiece.h"
31 |
32 |
33 | #include
34 | #include "googleapis/strings/strcat.h"
35 |
36 | namespace google_storage_api {
37 | using namespace googleapis;
38 |
39 |
40 | // Object factory method (static).
41 | Channel* Channel::New() {
42 | return new client::JsonCppCapsule;
43 | }
44 |
45 | // Standard immutable constructor.
46 | Channel::Channel(const Json::Value& storage)
47 | : client::JsonCppData(storage) {
48 | }
49 |
50 | // Standard mutable constructor.
51 | Channel::Channel(Json::Value* storage)
52 | : client::JsonCppData(storage) {
53 | }
54 |
55 | // Standard destructor.
56 | Channel::~Channel() {
57 | }
58 |
59 | // Properties.
60 | } // namespace google_storage_api
61 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/notification.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Cloud Storage JSON API (storage/v1)
19 | // Description:
20 | // Stores and retrieves potentially large, immutable data objects.
21 | // Classes:
22 | // Notification
23 | // Documentation:
24 | // https://developers.google.com/storage/docs/json_api/
25 |
26 | #include "google/storage_api/notification.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 |
32 | #include
33 | #include "googleapis/strings/strcat.h"
34 |
35 | namespace google_storage_api {
36 | using namespace googleapis;
37 |
38 |
39 | // Object factory method (static).
40 | Notification* Notification::New() {
41 | return new client::JsonCppCapsule;
42 | }
43 |
44 | // Standard immutable constructor.
45 | Notification::Notification(const Json::Value& storage)
46 | : client::JsonCppData(storage) {
47 | }
48 |
49 | // Standard mutable constructor.
50 | Notification::Notification(Json::Value* storage)
51 | : client::JsonCppData(storage) {
52 | }
53 |
54 | // Standard destructor.
55 | Notification::~Notification() {
56 | }
57 |
58 | // Properties.
59 | } // namespace google_storage_api
60 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/notifications.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Cloud Storage JSON API (storage/v1)
19 | // Description:
20 | // Stores and retrieves potentially large, immutable data objects.
21 | // Classes:
22 | // Notifications
23 | // Documentation:
24 | // https://developers.google.com/storage/docs/json_api/
25 |
26 | #include "google/storage_api/notifications.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 | #include "google/storage_api/notification.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_storage_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | Notifications* Notifications::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | Notifications::Notifications(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | Notifications::Notifications(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | Notifications::~Notifications() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray Notifications::get_items() const {
63 | const Json::Value& storage = Storage("items");
64 | return client::JsonValueToCppValueHelper >(storage);
65 | }
66 |
67 | client::JsonCppArray Notifications::mutable_items() {
68 | Json::Value* storage = MutableStorage("items");
69 | return client::JsonValueToMutableCppValueHelper >(storage);
70 | }
71 | } // namespace google_storage_api
72 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/object_access_control.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Cloud Storage JSON API (storage/v1)
19 | // Description:
20 | // Stores and retrieves potentially large, immutable data objects.
21 | // Classes:
22 | // ObjectAccessControl
23 | // Documentation:
24 | // https://developers.google.com/storage/docs/json_api/
25 |
26 | #include "google/storage_api/object_access_control.h"
27 | #include
28 | #include "googleapis/base/integral_types.h"
29 | #include "googleapis/client/data/jsoncpp_data.h"
30 | #include "googleapis/strings/stringpiece.h"
31 |
32 |
33 | #include
34 | #include "googleapis/strings/strcat.h"
35 |
36 | namespace google_storage_api {
37 | using namespace googleapis;
38 |
39 |
40 |
41 | // Object factory method (static).
42 | ObjectAccessControl::ObjectAccessControlProjectTeam* ObjectAccessControl::ObjectAccessControlProjectTeam::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | ObjectAccessControl::ObjectAccessControlProjectTeam::ObjectAccessControlProjectTeam(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | ObjectAccessControl::ObjectAccessControlProjectTeam::ObjectAccessControlProjectTeam(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | ObjectAccessControl::ObjectAccessControlProjectTeam::~ObjectAccessControlProjectTeam() {
58 | }
59 |
60 | // Properties.
61 | // Object factory method (static).
62 | ObjectAccessControl* ObjectAccessControl::New() {
63 | return new client::JsonCppCapsule;
64 | }
65 |
66 | // Standard immutable constructor.
67 | ObjectAccessControl::ObjectAccessControl(const Json::Value& storage)
68 | : client::JsonCppData(storage) {
69 | }
70 |
71 | // Standard mutable constructor.
72 | ObjectAccessControl::ObjectAccessControl(Json::Value* storage)
73 | : client::JsonCppData(storage) {
74 | }
75 |
76 | // Standard destructor.
77 | ObjectAccessControl::~ObjectAccessControl() {
78 | }
79 |
80 | // Properties.
81 | } // namespace google_storage_api
82 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/object_access_controls.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Cloud Storage JSON API (storage/v1)
19 | // Description:
20 | // Stores and retrieves potentially large, immutable data objects.
21 | // Classes:
22 | // ObjectAccessControls
23 | // Documentation:
24 | // https://developers.google.com/storage/docs/json_api/
25 |
26 | #include "google/storage_api/object_access_controls.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 | #include "google/storage_api/object_access_control.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_storage_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | ObjectAccessControls* ObjectAccessControls::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | ObjectAccessControls::ObjectAccessControls(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | ObjectAccessControls::ObjectAccessControls(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | ObjectAccessControls::~ObjectAccessControls() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray ObjectAccessControls::get_items() const {
63 | const Json::Value& storage = Storage("items");
64 | return client::JsonValueToCppValueHelper >(storage);
65 | }
66 |
67 | client::JsonCppArray ObjectAccessControls::mutable_items() {
68 | Json::Value* storage = MutableStorage("items");
69 | return client::JsonValueToMutableCppValueHelper >(storage);
70 | }
71 | } // namespace google_storage_api
72 |
--------------------------------------------------------------------------------
/service_apis/storage/google/storage_api/objects.cc:
--------------------------------------------------------------------------------
1 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
2 | // use this file except in compliance with the License. You may obtain a copy of
3 | // the License at
4 | //
5 | // http://www.apache.org/licenses/LICENSE-2.0
6 | //
7 | // Unless required by applicable law or agreed to in writing, software
8 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 | // License for the specific language governing permissions and limitations under
11 | // the License.
12 |
13 | // This code was generated by google-apis-code-generator 1.5.1
14 |
15 | // ----------------------------------------------------------------------------
16 | // NOTE: This file is generated from Google APIs Discovery Service.
17 | // Service:
18 | // Cloud Storage JSON API (storage/v1)
19 | // Description:
20 | // Stores and retrieves potentially large, immutable data objects.
21 | // Classes:
22 | // Objects
23 | // Documentation:
24 | // https://developers.google.com/storage/docs/json_api/
25 |
26 | #include "google/storage_api/objects.h"
27 | #include
28 | #include "googleapis/client/data/jsoncpp_data.h"
29 | #include "googleapis/strings/stringpiece.h"
30 |
31 | #include "google/storage_api/object.h"
32 |
33 |
34 | #include
35 | #include "googleapis/strings/strcat.h"
36 |
37 | namespace google_storage_api {
38 | using namespace googleapis;
39 |
40 |
41 | // Object factory method (static).
42 | Objects* Objects::New() {
43 | return new client::JsonCppCapsule;
44 | }
45 |
46 | // Standard immutable constructor.
47 | Objects::Objects(const Json::Value& storage)
48 | : client::JsonCppData(storage) {
49 | }
50 |
51 | // Standard mutable constructor.
52 | Objects::Objects(Json::Value* storage)
53 | : client::JsonCppData(storage) {
54 | }
55 |
56 | // Standard destructor.
57 | Objects::~Objects() {
58 | }
59 |
60 | // Properties.
61 |
62 | const client::JsonCppArray