├── .hgignore ├── src └── googleapis │ ├── __init__.py │ └── codegen │ ├── filesys │ ├── testdata │ │ ├── tree │ │ │ ├── abc │ │ │ ├── def │ │ │ └── subdir │ │ │ │ └── 123 │ │ ├── zips │ │ │ ├── a-c.zip │ │ │ ├── a-d.zip │ │ │ └── d-e.zip │ │ └── file1.txt │ └── __init__.py │ ├── testdata │ ├── _out_of_dir.tmpl │ ├── library │ │ └── templates │ │ │ ├── foo.tmpl │ │ │ ├── bar.tmpl │ │ │ ├── ___package_path___ │ │ │ └── xxx.tmpl │ │ │ ├── app_yaml.tmpl │ │ │ └── ___topLevelModels_wireName___.tmpl │ ├── languages │ │ └── java │ │ │ ├── 1.0 │ │ │ └── test.tmpl │ │ │ ├── 1.0dev │ │ │ └── test.tmpl │ │ │ ├── generator_test │ │ │ └── features.json │ │ │ └── imports_test.java.tmpl │ ├── bundle │ │ ├── LICENSE.txt │ │ └── ___unzip___package.zip │ ├── _call_test.tmpl │ ├── broken.json │ ├── _eoltest2.tmpl │ ├── _eoltest.tmpl │ ├── _escape_test.tmpl │ ├── targets.json │ ├── golden │ │ └── diff_test.sh │ └── AndroidManifest.xml │ ├── __init__.py │ ├── languages │ ├── sample │ │ └── 0.1 │ │ │ ├── templates │ │ │ ├── _file_header.tmpl │ │ │ ├── _parameter_type.tmpl │ │ │ ├── src │ │ │ │ ├── ___package___ │ │ │ │ │ └── ___topLevelModels_className___.xxx.tmpl │ │ │ │ └── recursive_generate.tmpl │ │ │ ├── pubspec.yaml.tmpl │ │ │ ├── _parameter_doc.tmpl │ │ │ ├── _enum.tmpl │ │ │ └── _recursive_generate.tmpl │ │ │ └── features.json │ ├── java │ │ ├── 1.19.0 │ │ │ └── templates │ │ │ │ ├── pom.xml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _file_header.tmpl │ │ │ │ ├── _model_def.tmpl │ │ │ │ ├── _alt_def.tmpl │ │ │ │ ├── _required_param_def.tmpl │ │ │ │ ├── _pattern_check_def.tmpl │ │ │ │ ├── _proguard_content_def.tmpl │ │ │ │ └── _resource.tmpl │ │ ├── 1.19.1 │ │ │ └── templates │ │ │ │ ├── pom.xml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _file_header.tmpl │ │ │ │ ├── _model_def.tmpl │ │ │ │ ├── _alt_def.tmpl │ │ │ │ ├── _required_param_def.tmpl │ │ │ │ ├── _pattern_check_def.tmpl │ │ │ │ ├── _proguard_content_def.tmpl │ │ │ │ └── _resource.tmpl │ │ ├── 1.20.0 │ │ │ └── templates │ │ │ │ ├── pom.xml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _file_header.tmpl │ │ │ │ ├── _model_def.tmpl │ │ │ │ ├── _alt_def.tmpl │ │ │ │ ├── _required_param_def.tmpl │ │ │ │ ├── _pattern_check_def.tmpl │ │ │ │ ├── _proguard_content_def.tmpl │ │ │ │ └── _resource.tmpl │ │ ├── 1.21.0 │ │ │ └── templates │ │ │ │ ├── pom.xml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _file_header.tmpl │ │ │ │ ├── _model_def.tmpl │ │ │ │ ├── _alt_def.tmpl │ │ │ │ ├── _required_param_def.tmpl │ │ │ │ ├── _proguard_content_def.tmpl │ │ │ │ └── _resource.tmpl │ │ ├── 1.22.0 │ │ │ └── templates │ │ │ │ ├── pom.xml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _file_header.tmpl │ │ │ │ ├── _model_def.tmpl │ │ │ │ ├── _alt_def.tmpl │ │ │ │ ├── _required_param_def.tmpl │ │ │ │ ├── _proguard_content_def.tmpl │ │ │ │ └── _resource.tmpl │ │ ├── 1.23.0 │ │ │ └── templates │ │ │ │ ├── pom.xml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _file_header.tmpl │ │ │ │ ├── _model_def.tmpl │ │ │ │ ├── _alt_def.tmpl │ │ │ │ ├── _required_param_def.tmpl │ │ │ │ ├── _proguard_content_def.tmpl │ │ │ │ └── _resource.tmpl │ │ ├── 1.24.0 │ │ │ └── templates │ │ │ │ ├── pom.xml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _file_header.tmpl │ │ │ │ ├── _model_def.tmpl │ │ │ │ ├── _alt_def.tmpl │ │ │ │ ├── _required_param_def.tmpl │ │ │ │ ├── _proguard_content_def.tmpl │ │ │ │ └── _resource.tmpl │ │ ├── 1.24.1 │ │ │ └── templates │ │ │ │ ├── pom.xml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _file_header.tmpl │ │ │ │ ├── _model_def.tmpl │ │ │ │ ├── _alt_def.tmpl │ │ │ │ ├── _required_param_def.tmpl │ │ │ │ ├── _proguard_content_def.tmpl │ │ │ │ └── _resource.tmpl │ │ ├── 1.25.0 │ │ │ └── templates │ │ │ │ ├── pom.xml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _file_header.tmpl │ │ │ │ ├── _model_def.tmpl │ │ │ │ ├── _alt_def.tmpl │ │ │ │ ├── _required_param_def.tmpl │ │ │ │ ├── _proguard_content_def.tmpl │ │ │ │ └── _resource.tmpl │ │ └── default │ │ │ └── templates │ │ │ ├── pom.xml.tmpl │ │ │ ├── _parameter.tmpl │ │ │ ├── _file_header.tmpl │ │ │ ├── _model_def.tmpl │ │ │ ├── _alt_def.tmpl │ │ │ ├── _required_param_def.tmpl │ │ │ ├── _proguard_content_def.tmpl │ │ │ └── _resource.tmpl │ ├── any │ │ ├── README │ │ ├── html │ │ │ ├── docs_generator.tmpl │ │ │ ├── _link_generator.tmpl │ │ │ ├── _method_parameter_row.tmpl │ │ │ ├── _property_path.tmpl │ │ │ ├── _README.txt │ │ │ ├── _resource_property_row.tmpl │ │ │ ├── _resource_alt_json.tmpl │ │ │ ├── index.html.tmpl │ │ │ ├── _index_resource_info.tmpl │ │ │ ├── _resource_file_path.tmpl │ │ │ ├── _method_response.tmpl │ │ │ └── _resource_tree.tmpl │ │ └── discovery_check │ │ │ ├── _model_content.tmpl │ │ │ ├── _resource.tmpl │ │ │ ├── _model.tmpl │ │ │ ├── report.txt.tmpl │ │ │ └── _method.tmpl │ ├── cpp │ │ ├── 0.1.3 │ │ │ ├── features.json │ │ │ └── templates │ │ │ │ ├── _service_scopes_cc.tmpl │ │ │ │ ├── _model_h.tmpl │ │ │ │ ├── _model_cc.tmpl │ │ │ │ ├── _resource_method_h.tmpl │ │ │ │ ├── _resource_method_cc.tmpl │ │ │ │ ├── ___package___ │ │ │ │ ├── ___api_kitchensink___.cc.tmpl │ │ │ │ ├── ___api_kitchensink___.h.tmpl │ │ │ │ └── CMakeLists.txt.tmpl │ │ │ │ ├── _time_stamp.tmpl │ │ │ │ ├── _resource_cc.tmpl │ │ │ │ ├── _declare_method_attributes_h.tmpl │ │ │ │ ├── _declare_method_attributes_cc.tmpl │ │ │ │ ├── _append_query_parameter_cc.tmpl │ │ │ │ ├── _service_scopes_h.tmpl │ │ │ │ ├── _append_uri_template_variable_cc.tmpl │ │ │ │ ├── _monolithic_kitchensink_cc_impl.tmpl │ │ │ │ └── _model_cc_impl.tmpl │ │ ├── 0.1.4 │ │ │ ├── features.json │ │ │ └── templates │ │ │ │ ├── _service_scopes_cc.tmpl │ │ │ │ ├── _model_h.tmpl │ │ │ │ ├── _model_cc.tmpl │ │ │ │ ├── _resource_method_h.tmpl │ │ │ │ ├── _resource_method_cc.tmpl │ │ │ │ ├── ___package___ │ │ │ │ ├── ___api_kitchensink___.cc.tmpl │ │ │ │ ├── ___api_kitchensink___.h.tmpl │ │ │ │ └── CMakeLists.txt.tmpl │ │ │ │ ├── _time_stamp.tmpl │ │ │ │ ├── _resource_cc.tmpl │ │ │ │ ├── _declare_method_attributes_h.tmpl │ │ │ │ ├── _declare_method_attributes_cc.tmpl │ │ │ │ ├── _append_query_parameter_cc.tmpl │ │ │ │ ├── _service_scopes_h.tmpl │ │ │ │ ├── _append_uri_template_variable_cc.tmpl │ │ │ │ ├── _monolithic_kitchensink_cc_impl.tmpl │ │ │ │ └── _model_cc_impl.tmpl │ │ ├── default │ │ │ ├── features.json │ │ │ └── templates │ │ │ │ ├── _service_scopes_cc.tmpl │ │ │ │ ├── _model_h.tmpl │ │ │ │ ├── _model_cc.tmpl │ │ │ │ ├── _resource_method_h.tmpl │ │ │ │ ├── _resource_method_cc.tmpl │ │ │ │ ├── ___package___ │ │ │ │ ├── ___api_kitchensink___.cc.tmpl │ │ │ │ ├── ___api_kitchensink___.h.tmpl │ │ │ │ └── CMakeLists.txt.tmpl │ │ │ │ ├── _time_stamp.tmpl │ │ │ │ ├── _resource_cc.tmpl │ │ │ │ ├── _declare_method_attributes_h.tmpl │ │ │ │ ├── _append_query_parameter_cc.tmpl │ │ │ │ ├── _service_scopes_h.tmpl │ │ │ │ ├── _declare_method_attributes_cc.tmpl │ │ │ │ ├── _append_uri_template_variable_cc.tmpl │ │ │ │ └── _monolithic_kitchensink_cc_impl.tmpl │ │ └── 0.1.2 │ │ │ ├── features.json │ │ │ └── templates │ │ │ ├── _service_scopes_cc.tmpl │ │ │ ├── _model_h.tmpl │ │ │ ├── _model_cc.tmpl │ │ │ ├── _resource_method_h.tmpl │ │ │ ├── _resource_method_cc.tmpl │ │ │ ├── ___package___ │ │ │ ├── ___api_kitchensink___.cc.tmpl │ │ │ ├── ___api_kitchensink___.h.tmpl │ │ │ └── CMakeLists.txt.tmpl │ │ │ ├── _append_uri_template_variable_cc.tmpl │ │ │ ├── _time_stamp.tmpl │ │ │ ├── _resource_cc.tmpl │ │ │ ├── _declare_method_attributes_h.tmpl │ │ │ ├── _declare_method_attributes_cc.tmpl │ │ │ ├── _append_query_parameter_cc.tmpl │ │ │ ├── _service_scopes_h.tmpl │ │ │ ├── _monolithic_kitchensink_cc_impl.tmpl │ │ │ └── _model_cc_impl.tmpl │ ├── objc │ │ └── default │ │ │ ├── features.json │ │ │ └── templates │ │ │ ├── _constants_m_impl.tmpl │ │ │ ├── ___api_monolithicSourceName___.h.tmpl │ │ │ ├── ___api_monolithicSourceName___.m.tmpl │ │ │ ├── _monolithic_h_impl.tmpl │ │ │ ├── _time_stamp.tmpl │ │ │ ├── ___package___ │ │ │ ├── ___api_className___Constants.m.tmpl │ │ │ ├── ___api_className___.h.tmpl │ │ │ ├── ___api_serviceName___.m.tmpl │ │ │ ├── ___topLevelModels_className___.m.tmpl │ │ │ ├── ___api_query___.m.tmpl │ │ │ ├── ___topLevelModels_className___.h.tmpl │ │ │ └── ___api_className___Constants.h.tmpl │ │ │ ├── _model_h_impl.tmpl │ │ │ └── _service_m_impl.tmpl │ ├── csharp │ │ ├── 1.9.0 │ │ │ ├── features.json │ │ │ └── templates │ │ │ │ ├── _get_resource.tmpl │ │ │ │ ├── _time_stamp.tmpl │ │ │ │ ├── _base_request.tmpl │ │ │ │ ├── _init_parameters.tmpl │ │ │ │ ├── packages.config.tmpl │ │ │ │ └── _resource.tmpl │ │ ├── 1.9.2 │ │ │ ├── features.json │ │ │ └── templates │ │ │ │ ├── _get_resource.tmpl │ │ │ │ ├── _time_stamp.tmpl │ │ │ │ ├── _base_request.tmpl │ │ │ │ ├── _init_parameters.tmpl │ │ │ │ ├── packages.config.tmpl │ │ │ │ └── _resource.tmpl │ │ └── default │ │ │ ├── features.json │ │ │ └── templates │ │ │ ├── _get_resource.tmpl │ │ │ ├── _time_stamp.tmpl │ │ │ ├── _base_request.tmpl │ │ │ ├── _init_parameters.tmpl │ │ │ ├── packages.config.tmpl │ │ │ └── _resource.tmpl │ ├── dart │ │ ├── 0.1 │ │ │ ├── templates │ │ │ │ ├── _parameter_type.tmpl │ │ │ │ ├── google_api____api_name_______api_version___ │ │ │ │ │ └── pubspec.yaml.tmpl │ │ │ │ ├── _parameter.tmpl │ │ │ │ ├── _serialize.tmpl │ │ │ │ ├── _parse.tmpl │ │ │ │ └── _resource.tmpl │ │ │ └── features.json │ │ └── 0.2 │ │ │ ├── templates │ │ │ ├── google_api____api_name_______api_version___ │ │ │ │ ├── lib │ │ │ │ │ ├── src │ │ │ │ │ │ └── common │ │ │ │ │ │ │ ├── resources.dart.tmpl │ │ │ │ │ │ │ └── schemas.dart.tmpl │ │ │ │ │ ├── ___api_name_______api_version____api_client.dart.tmpl │ │ │ │ │ ├── ___api_name_______api_version____api_browser.dart.tmpl │ │ │ │ │ └── ___api_name_______api_version____api_console.dart.tmpl │ │ │ │ └── pubspec.yaml.tmpl │ │ │ ├── _parameter_type.tmpl │ │ │ ├── _parameter.tmpl │ │ │ ├── _parse.tmpl │ │ │ ├── _serialize.tmpl │ │ │ └── _resource.tmpl │ │ │ └── features.json │ ├── gwt │ │ ├── 0.4-alpha │ │ │ ├── templates │ │ │ │ ├── _enum.tmpl │ │ │ │ ├── _resource_ctors.tmpl │ │ │ │ ├── com │ │ │ │ │ └── google │ │ │ │ │ │ └── api │ │ │ │ │ │ └── gwt │ │ │ │ │ │ └── services │ │ │ │ │ │ └── ___api_className___.gwt.xml.tmpl │ │ │ │ ├── _resource.tmpl │ │ │ │ └── ___package___ │ │ │ │ │ └── package-info.java.tmpl │ │ │ └── features.json │ │ └── default │ │ │ ├── templates │ │ │ ├── _resource_ctors.tmpl │ │ │ ├── com │ │ │ │ └── google │ │ │ │ │ └── api │ │ │ │ │ └── gwt │ │ │ │ │ └── services │ │ │ │ │ └── ___api_className___.gwt.xml.tmpl │ │ │ ├── _enum.tmpl │ │ │ ├── _resource.tmpl │ │ │ └── ___package___ │ │ │ │ └── package-info.java.tmpl │ │ │ └── features.json │ ├── php │ │ ├── 1.1.0 │ │ │ ├── templates │ │ │ │ ├── _resource_var.tmpl │ │ │ │ ├── README.txt.tmpl │ │ │ │ ├── _func_params.tmpl │ │ │ │ ├── _resource_decl.tmpl │ │ │ │ ├── _methods_decl.tmpl │ │ │ │ └── _resource.tmpl │ │ │ └── features.json │ │ ├── 1.1.1 │ │ │ ├── templates │ │ │ │ ├── _resource_var.tmpl │ │ │ │ ├── README.txt.tmpl │ │ │ │ ├── _func_params.tmpl │ │ │ │ ├── _resource_decl.tmpl │ │ │ │ ├── _methods_decl.tmpl │ │ │ │ └── _resource.tmpl │ │ │ └── features.json │ │ ├── 1.1.4 │ │ │ ├── templates │ │ │ │ ├── _resource_var.tmpl │ │ │ │ ├── README.txt.tmpl │ │ │ │ ├── _func_params.tmpl │ │ │ │ ├── _resource_decl.tmpl │ │ │ │ ├── _methods_decl.tmpl │ │ │ │ └── _resource.tmpl │ │ │ └── features.json │ │ ├── 1.2.0 │ │ │ ├── templates │ │ │ │ ├── _resource_var.tmpl │ │ │ │ ├── _func_params.tmpl │ │ │ │ ├── _resource_decl.tmpl │ │ │ │ ├── _methods_decl.tmpl │ │ │ │ └── ___api_className___ │ │ │ │ │ └── Resource │ │ │ │ │ └── ___resources_className___.php.tmpl │ │ │ └── features.json │ │ ├── 1.2.1 │ │ │ ├── templates │ │ │ │ ├── _resource_var.tmpl │ │ │ │ ├── _func_params.tmpl │ │ │ │ ├── _resource_decl.tmpl │ │ │ │ ├── _methods_decl.tmpl │ │ │ │ └── ___api_className___ │ │ │ │ │ └── Resource │ │ │ │ │ └── ___resources_className___.php.tmpl │ │ │ └── features.json │ │ ├── 1.3.0 │ │ │ ├── templates │ │ │ │ ├── _resource_var.tmpl │ │ │ │ ├── _func_params.tmpl │ │ │ │ ├── _resource_decl.tmpl │ │ │ │ ├── _methods_decl.tmpl │ │ │ │ └── ___api_className___ │ │ │ │ │ └── Resource │ │ │ │ │ └── ___resources_className___.php.tmpl │ │ │ └── features.json │ │ └── default │ │ │ ├── templates │ │ │ ├── _resource_var.tmpl │ │ │ ├── README.txt.tmpl │ │ │ ├── _func_params.tmpl │ │ │ ├── _resource_decl.tmpl │ │ │ ├── _methods_decl.tmpl │ │ │ └── _resource.tmpl │ │ │ └── features.json │ └── python │ │ └── 1.0 │ │ └── features.json │ ├── script_stubs.py │ ├── utilities │ ├── html_stripper.py │ ├── convert_size_test.py │ └── ordered_set_test.py │ └── documenting_language_model_test.py ├── .gitignore ├── MANIFEST.in ├── generate.sh └── RunTests.sh /.hgignore: -------------------------------------------------------------------------------- 1 | .*\.pyc 2 | -------------------------------------------------------------------------------- /src/googleapis/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python2.7 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/filesys/testdata/tree/abc: -------------------------------------------------------------------------------- 1 | abc 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/filesys/testdata/tree/def: -------------------------------------------------------------------------------- 1 | def 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/_out_of_dir.tmpl: -------------------------------------------------------------------------------- 1 | OUT OF DIR -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/library/templates/foo.tmpl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/googleapis/codegen/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python2.7 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/filesys/testdata/tree/subdir/123: -------------------------------------------------------------------------------- 1 | 123 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/filesys/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python2.7 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/languages/java/1.0/test.tmpl: -------------------------------------------------------------------------------- 1 | Test -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/languages/java/1.0dev/test.tmpl: -------------------------------------------------------------------------------- 1 | Test -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.class 3 | build/ 4 | dist/ 5 | *.egg-info/ 6 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/bundle/LICENSE.txt: -------------------------------------------------------------------------------- 1 | I am a license file 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/library/templates/bar.tmpl: -------------------------------------------------------------------------------- 1 | This is the file bar.tmpl 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/_call_test.tmpl: -------------------------------------------------------------------------------- 1 | 1{{ foo }}1 2{{ api.xxx }}2 3{{ qux }}3 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/library/templates/___package_path___/xxx.tmpl: -------------------------------------------------------------------------------- 1 | A file under a flexible path 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/broken.json: -------------------------------------------------------------------------------- 1 | { 2 | "thisfile": "contains bad json to test the json file checker.", 3 | } 4 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include CHANGES LICENSE README setup.py ez_setup.py MANIFEST.in 2 | include *.sh 3 | recursive-include src * 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/library/templates/app_yaml.tmpl: -------------------------------------------------------------------------------- 1 | app_yaml is a magic file name which becomes app.yaml after expansion. 2 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/_eoltest2.tmpl: -------------------------------------------------------------------------------- 1 | {% noeol %} 2 | | 3 | {% eol %} 4 | | 5 | {% endnoeol %} 6 | {% eol %} 7 | X 8 | 9 | X 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/_eoltest.tmpl: -------------------------------------------------------------------------------- 1 | {% noeol %} 2 | | 3 | {% eol %} 4 | | 5 | {% endnoeol %} 6 | 7 | 8 | X 9 | 10 | 11 | X 12 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/sample/0.1/templates/_file_header.tmpl: -------------------------------------------------------------------------------- 1 | {% language cpp %}{% copyright_block %} 2 | 3 | // I might put standard imports here. 4 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/_escape_test.tmpl: -------------------------------------------------------------------------------- 1 | method({% parameter_list %} 2 | {% parameter %} 3 | {{ foo }} a{% end_parameter %} 4 | {% end_parameter_list %}) -------------------------------------------------------------------------------- /src/googleapis/codegen/filesys/testdata/zips/a-c.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/apis-client-generator/HEAD/src/googleapis/codegen/filesys/testdata/zips/a-c.zip -------------------------------------------------------------------------------- /src/googleapis/codegen/filesys/testdata/zips/a-d.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/apis-client-generator/HEAD/src/googleapis/codegen/filesys/testdata/zips/a-d.zip -------------------------------------------------------------------------------- /src/googleapis/codegen/filesys/testdata/zips/d-e.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/apis-client-generator/HEAD/src/googleapis/codegen/filesys/testdata/zips/d-e.zip -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.19.0/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.19.1/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.20.0/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.21.0/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.22.0/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.23.0/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.24.0/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.24.1/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.25.0/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/default/templates/pom.xml.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.ownerDomain != "google.com" %}{% halt %}{% else %}{% call_template _pom_xml %}{% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/any/README: -------------------------------------------------------------------------------- 1 | The 'any' language is for templates that are not in any specific programming 2 | language. E.g. an API method documenter. 3 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.3/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "language": "cpp", 3 | "description": "C++ libraries for Google APIs.", 4 | "releaseVersion": "0.1.3" 5 | } 6 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.4/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "language": "cpp", 3 | "description": "C++ libraries for Google APIs.", 4 | "releaseVersion": "0.1.4" 5 | } 6 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/default/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "language": "cpp", 3 | "description": "C++ libraries for Google APIs.", 4 | "releaseVersion": "0.1.5" 5 | } 6 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/library/templates/___topLevelModels_wireName___.tmpl: -------------------------------------------------------------------------------- 1 | // A template which is instantiated once for each data model 2 | I am {{ model.wireName }} 3 | -------------------------------------------------------------------------------- /src/googleapis/codegen/filesys/testdata/file1.txt: -------------------------------------------------------------------------------- 1 | Test data for library_package_test.py 2 | If you edit this file, you will break a unit test whichj 3 | depends on its size being 125 4 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/bundle/___unzip___package.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google/apis-client-generator/HEAD/src/googleapis/codegen/testdata/bundle/___unzip___package.zip -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/any/html/docs_generator.tmpl: -------------------------------------------------------------------------------- 1 | {% for r in api.resources %} 2 | {% call_template _resource_tree resource=r dir="" title_path="" %} 3 | {% endfor %} 4 | 5 | {% halt %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/objc/default/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "language": "Objective-C", 3 | "description": "Objective-C libraries for Google APIs.", 4 | "releaseVersion": "0.1" 5 | } 6 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/languages/java/generator_test/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "language": "java", 3 | "description": "Java libraries for Google APIs.", 4 | "generator": "gwt", 5 | "requires": [] 6 | } 7 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.2/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "language": "cpp", 3 | "description": "C++ libraries for Google APIs.", 4 | "releaseVersion": "0.1.2", 5 | "patch": "a", 6 | "patchDate": "20140410" 7 | } 8 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/csharp/1.9.0/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "language": "csharp", 3 | "description": "C# libraries for Google APIs.", 4 | "releaseVersion": "1.9.0", 5 | "baseClientLibrary": "1.9.0", 6 | "nugetVersion": "1.9.0" 7 | } 8 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/csharp/1.9.2/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "language": "csharp", 3 | "description": "C# libraries for Google APIs.", 4 | "releaseVersion": "1.9.2", 5 | "baseClientLibrary": "1.9.2", 6 | "nugetVersion": "1.9.2" 7 | } 8 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/csharp/default/features.json: -------------------------------------------------------------------------------- 1 | { 2 | "language": "csharp", 3 | "description": "C# libraries for Google APIs.", 4 | "releaseVersion": "1.10.0", 5 | "baseClientLibrary": "1.10.0", 6 | "nugetVersion": "1.10.0" 7 | } 8 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/any/html/_link_generator.tmpl: -------------------------------------------------------------------------------- 1 | {% noeol %} 2 | 3 | {% if item.isSchema and item.associatedResource %} 4 | {% call_template _resource_file_path resource=item.associatedResource children="" %} 5 | {% endif %} 6 | 7 | {% endnoeol%} 8 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.2/templates/_service_scopes_cc.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.authscopes %}{% for authscope in api.authscopes %} 2 | const StringPiece {{ api.className }}::SCOPES::{{ authscope.name|upper }}("{{ authscope.value }}"); 3 | {% endfor %}{% endif %} 4 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.3/templates/_service_scopes_cc.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.authscopes %}{% for authscope in api.authscopes %} 2 | const StringPiece {{ api.className }}::SCOPES::{{ authscope.name|upper }}("{{ authscope.value }}"); 3 | {% endfor %}{% endif %} 4 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/dart/0.1/templates/_parameter_type.tmpl: -------------------------------------------------------------------------------- 1 | {% comment %} 2 | Renders the type of a parameter. 3 | [param] the parameter. 4 | {% endcomment %}{% if param.enumType %}{{ param.enumType.codeType }}{% else %}{{ param.codeType }}{% endif %} 5 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.4/templates/_service_scopes_cc.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.authscopes %}{% for authscope in api.authscopes %} 2 | const char {{ api.className }}::SCOPES::{{ authscope.name|upper }}[] = {"{{ authscope.value }}"}; 3 | {% endfor %} 4 | {% endif %} 5 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/default/templates/_service_scopes_cc.tmpl: -------------------------------------------------------------------------------- 1 | {% if api.authscopes %}{% for authscope in api.authscopes %} 2 | const char {{ api.className }}::SCOPES::{{ authscope.name|upper }}[] = {"{{ authscope.value }}"}; 3 | {% endfor %} 4 | {% endif %} 5 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/sample/0.1/templates/_parameter_type.tmpl: -------------------------------------------------------------------------------- 1 | {% comment %} 2 | Renders the type of a parameter. 3 | [param] the parameter. 4 | {% endcomment %}{% if param.enumType %}{{ param.enumType.codeType }}{% else %}{{ param.codeType }}{% endif %} 5 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/dart/0.2/templates/google_api____api_name_______api_version___/lib/src/common/resources.dart.tmpl: -------------------------------------------------------------------------------- 1 | part of {{ api.name }}_{{ api.version }}_api_client; 2 | {% for r in api.resources %} 3 | {% call_template _resource resource=r %} 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/dart/0.2/templates/google_api____api_name_______api_version___/lib/src/common/schemas.dart.tmpl: -------------------------------------------------------------------------------- 1 | part of {{ api.name }}_{{ api.version }}_api_client; 2 | {% for model in api.models %} 3 | {% call_template _model_content model=model %} 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.2/templates/_model_h.tmpl: -------------------------------------------------------------------------------- 1 | {% if not guarded_model.isSchema %}{% for child in guarded_model.children %}{% call_template _model_h guarded_model=child %}{% endfor %}{% else %} 2 | {% call_template _model_h_impl current_model=guarded_model %}{% endif %} 3 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.3/templates/_model_h.tmpl: -------------------------------------------------------------------------------- 1 | {% if not guarded_model.isSchema %}{% for child in guarded_model.children %}{% call_template _model_h guarded_model=child %}{% endfor %}{% else %} 2 | {% call_template _model_h_impl current_model=guarded_model %}{% endif %} 3 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.4/templates/_model_h.tmpl: -------------------------------------------------------------------------------- 1 | {% if not guarded_model.isSchema %}{% for child in guarded_model.children %}{% call_template _model_h guarded_model=child %}{% endfor %}{% else %} 2 | {% call_template _model_h_impl current_model=guarded_model %}{% endif %} 3 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/default/templates/_model_h.tmpl: -------------------------------------------------------------------------------- 1 | {% if not guarded_model.isSchema %}{% for child in guarded_model.children %}{% call_template _model_h guarded_model=child %}{% endfor %}{% else %} 2 | {% call_template _model_h_impl current_model=guarded_model %}{% endif %} 3 | -------------------------------------------------------------------------------- /src/googleapis/codegen/testdata/targets.json: -------------------------------------------------------------------------------- 1 | { 2 | "java" : { 3 | "stable" : { 4 | "releaseVersion" : "0.0.1", 5 | "path" : "stable", 6 | "description" : "This release targets Java X.Y.Z" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.2/templates/_model_cc.tmpl: -------------------------------------------------------------------------------- 1 | {% if not guarded_model.isSchema %}{% for child in guarded_model.children %}{% call_template _model_cc guarded_model=child %}{% endfor %}{% else %} 2 | {% call_template _model_cc_impl current_model=guarded_model %} 3 | {% endif %} 4 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.3/templates/_model_cc.tmpl: -------------------------------------------------------------------------------- 1 | {% if not guarded_model.isSchema %}{% for child in guarded_model.children %}{% call_template _model_cc guarded_model=child %}{% endfor %}{% else %} 2 | {% call_template _model_cc_impl current_model=guarded_model %} 3 | {% endif %} 4 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/0.1.4/templates/_model_cc.tmpl: -------------------------------------------------------------------------------- 1 | {% if not guarded_model.isSchema %}{% for child in guarded_model.children %}{% call_template _model_cc guarded_model=child %}{% endfor %}{% else %} 2 | {% call_template _model_cc_impl current_model=guarded_model %} 3 | {% endif %} 4 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/gwt/0.4-alpha/templates/_enum.tmpl: -------------------------------------------------------------------------------- 1 | public enum {{ enum.className }} { 2 | {% for name_value_desc in enum.pairs %} 3 | {% doc_comment_if name_value_desc.2 %} 4 | @PropertyName("{{ name_value_desc.1 }}") {{ name_value_desc.0 }},{% endfor %} 5 | ; 6 | } 7 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/cpp/default/templates/_model_cc.tmpl: -------------------------------------------------------------------------------- 1 | {% if not guarded_model.isSchema %}{% for child in guarded_model.children %}{% call_template _model_cc guarded_model=child %}{% endfor %}{% else %} 2 | {% call_template _model_cc_impl current_model=guarded_model %} 3 | {% endif %} 4 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/any/html/_method_parameter_row.tmpl: -------------------------------------------------------------------------------- 1 |
{{ param.wireName }}{{ param.type }}{% call_template _property_path schema=schema %}{{ prop.wireName }}{{ prop.type }}This API reference is organized by resource type. Each resource type has one or more data representations and one or more methods.
14 | {% for r in api.resources %} 15 | {% call_template _index_resource_info resource=r %} 16 | {% endfor %} 17 |7 | * {{ api.description }} 8 | *
9 | * 10 | *11 | * To get started in your code, call {@code GWT.create({{ api.className }}.class)} 12 | *
13 | * 14 | *15 | * For more information about this service, see the 16 | * API Documentation 17 | *
18 | * 19 | * @author Google, Inc. 20 | */ 21 | package {{ api.module.name }}; 22 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.19.0/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.19.1/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.20.0/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.21.0/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.22.0/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.23.0/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.24.0/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.24.1/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.25.0/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/default/templates/_model_def.tmpl: -------------------------------------------------------------------------------- 1 | {% if not model.isSchema %}{% for child in model.children %}{% call_template _model_def model=child %}{% endfor %}{% else %} 2 | /**{% filter block_comment %} 3 | * {% if model.description %}{{ model.description }}{% else %}Model definition for {{ model.className }}.{% endif %}{% endfilter %} 4 | */ 5 | public static final class {{ model.safeClassName }} extends com.google.api.client.json.GenericJson { 6 | 7 | {% call_template _model_content_def current_model=child %} 8 | {% for child in model.children %}{% indent %}{% call_template _model_def model=child %}{% endindent %}{% endfor %} 9 | }{% endif %} 10 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/gwt/0.4-alpha/templates/___package___/package-info.java.tmpl: -------------------------------------------------------------------------------- 1 | {% language java %}{% copyright_block %} 2 | 3 | /** 4 | * Support classes to facilitate interaction with {{ api.version }} of the {{ api.name }} service. 5 | * 6 | *7 | * {{ api.description }} 8 | *
9 | * 10 | *11 | * To get started in your code, call {@code GWT.create({{ api.className }}.class)} 12 | *
13 | * 14 | *15 | * For more information about this service, see the 16 | * API Documentation 17 | *
18 | * 19 | * @author Google, Inc. 20 | */ 21 | package {{ api.module.name }}; 22 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/dart/0.2/templates/google_api____api_name_______api_version___/lib/___api_name_______api_version____api_browser.dart.tmpl: -------------------------------------------------------------------------------- 1 | library {{ api.name }}_{{ api.version }}_api_browser; 2 | 3 | import "{{ api.name }}_{{ api.version }}_api_client.dart"; 4 | export "{{ api.name }}_{{ api.version }}_api_client.dart"; 5 | 6 | import "dart:core" as core; 7 | import "dart:html" as html; 8 | import "dart:async" as async; 9 | import "dart:convert"; 10 | import "package:js/js.dart" as js; 11 | import "package:google_oauth2_client/google_oauth2_browser.dart" as oauth; 12 | 13 | part "src/browser/browserclient.dart"; 14 | part "src/browser/{{ api.name }}.dart"; 15 | 16 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/csharp/1.9.2/templates/_time_stamp.tmpl: -------------------------------------------------------------------------------- 1 | 2 | //------------------------------------------------------------------------------ 3 | //
5 | * ${{ api.name }}Service = new {{ api.ownerName }}_Service_{{ api.className }}(...);
6 | * ${{ resource.codeName }} = ${{ api.name }}Service->{{ resource.codeName }};
7 | *
8 | */
9 | class {{ api.ownerName }}_Service_{{ api.className }}_{{ resource.className }}_Resource extends Google_Service_Resource
10 | {{% indent %}{% for method in resource.methods %}
11 | {% call_template _method method=method %}{% endfor %}
12 | {% endindent %}}
13 | {% for subr in resource.resources %}
14 | {% call_template _resource resource=subr %}{% endfor %}
15 |
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/php/1.1.4/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * The "{{ resource.wireName }}" collection of methods.
3 | * Typical usage is:
4 | *
5 | * ${{ api.name }}Service = new {{ api.ownerName }}_Service_{{ api.className }}(...);
6 | * ${{ resource.codeName }} = ${{ api.name }}Service->{{ resource.codeName }};
7 | *
8 | */
9 | class {{ api.ownerName }}_Service_{{ api.className }}_{{ resource.className }}_Resource extends Google_Service_Resource
10 | {{% indent %}{% for method in resource.methods %}
11 | {% call_template _method method=method %}{% endfor %}
12 | {% endindent %}}
13 | {% for subr in resource.resources %}
14 | {% call_template _resource resource=subr %}{% endfor %}
15 |
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/php/1.2.0/templates/___api_className___/Resource/___resources_className___.php.tmpl:
--------------------------------------------------------------------------------
1 |
8 | * ${{ api.name }}Service = new {{ api.ownerName }}_Service_{{ api.className }}(...);
9 | * ${{ resource.codeName }} = ${{ api.name }}Service->{{ resource.codeName }};
10 | *
11 | */
12 | class {{ api.ownerName }}_Service_{{ api.className }}_Resource_{{ resource.className }} extends Google_Service_Resource
13 | {{% indent %}{% for method in resource.methods %}
14 | {% call_template _method method=method %}{% endfor %}
15 | {% endindent %}}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/php/1.2.1/templates/___api_className___/Resource/___resources_className___.php.tmpl:
--------------------------------------------------------------------------------
1 |
8 | * ${{ api.name }}Service = new {{ api.ownerName }}_Service_{{ api.className }}(...);
9 | * ${{ resource.codeName }} = ${{ api.name }}Service->{{ resource.codeName }};
10 | *
11 | */
12 | class {{ api.ownerName }}_Service_{{ api.className }}_Resource_{{ resource.className }} extends Google_Service_Resource
13 | {{% indent %}{% for method in resource.methods %}
14 | {% call_template _method method=method %}{% endfor %}
15 | {% endindent %}}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/php/1.3.0/templates/___api_className___/Resource/___resources_className___.php.tmpl:
--------------------------------------------------------------------------------
1 |
8 | * ${{ api.name }}Service = new {{ api.ownerName }}_Service_{{ api.className }}(...);
9 | * ${{ resource.codeName }} = ${{ api.name }}Service->{{ resource.codeName }};
10 | *
11 | */
12 | class {{ api.ownerName }}_Service_{{ api.className }}_Resource_{{ resource.className }} extends Google_Service_Resource
13 | {{% indent %}{% for method in resource.methods %}
14 | {% call_template _method method=method %}{% endfor %}
15 | {% endindent %}}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/php/default/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * The "{{ resource.wireName }}" collection of methods.
3 | * Typical usage is:
4 | *
5 | * ${{ api.name }}Service = new {{ api.ownerName }}_Service_{{ api.className }}(...);
6 | * ${{ resource.codeName }} = ${{ api.name }}Service->{{ resource.codeName }};
7 | *
8 | */
9 | class {{ api.ownerName }}_Service_{{ api.className }}_{{ resource.className }}_Resource extends Google_Service_Resource
10 | {{% indent %}{% for method in resource.methods %}
11 | {% call_template _method method=method %}{% endfor %}
12 | {% endindent %}}
13 | {% for subr in resource.resources %}
14 | {% call_template _resource resource=subr %}{% endfor %}
15 |
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/default/templates/_alt_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | This template is used to determine when alt should be set to "json" in a method.
3 | set("alt", "json") is generated if any of the cases are true:
4 | * If method parameter alt!=json.
5 | * If method does not have an alt parameter and global parameter alt!=json.
6 | * If method does not have an alt parameter and global parameters does not have an alt parameter.
7 | {% endcomment %}
8 | {% if method.alt.default %}
9 | {% ifnotequal method.alt.default "json" %}
10 | set("alt", "json");
11 | {% endifnotequal %}
12 | {% else %}
13 | {% ifnotequal api.alt.default "json" %}
14 | set("alt", "json");
15 | {% endifnotequal %}
16 | {% endif %}
17 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/php/1.1.0/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * The "{{ resource.wireName }}" collection of methods.
3 | * Typical usage is:
4 | *
5 | * ${{ api.name }}Service = new {{ api.ownerName }}_Service_{{ api.className }}(...);
6 | * ${{ resource.codeName }} = ${{ api.name }}Service->{{ resource.codeName }};
7 | *
8 | */
9 | class {{ api.ownerName }}_Service_{{ api.className }}_{{ resource.className }}_Resource extends Google_Service_Resource
10 | {{% indent %}
11 | {% for method in resource.methods %}
12 | {% call_template _method method=method %}{% endfor %}
13 | {% endindent %}}
14 | {% for subr in resource.resources %}
15 | {% call_template _resource resource=subr %}{% endfor %}
16 |
17 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.19.0/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.19.1/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.20.0/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.21.0/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.22.0/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.23.0/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.24.0/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.24.1/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.25.0/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/default/templates/_required_param_def.tmpl:
--------------------------------------------------------------------------------
1 | {% for property in properties %}
2 | {% if property.data_type.required_for_methods %}
3 | {% for required_method in property.data_type.required_for_methods %}
4 | {% ifequal method.id required_method %}
5 | checkRequiredParameter(content, "content");
6 | checkRequiredParameter(content{% param_getter_chain property %}, "{{ method.requestType.class_name }}{% param_getter_chain property %}");
7 | {% if property.data_type.properties %}
8 | {% call_template _required_param_def properties=property.data_type.properties %}
9 | {% endif %}
10 | {% endifequal %}
11 | {% endfor %}
12 | {% endif %}
13 | {% endfor %}
14 |
15 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/objc/default/templates/___package___/___api_className___.h.tmpl:
--------------------------------------------------------------------------------
1 | {% language objc %}{% copyright_block %}
2 | {% call_template _time_stamp %}
3 |
4 | //
5 | // {{ api.className }}.h
6 | //
7 |
8 | // ----------------------------------------------------------------------------
9 | // NOTE: This file is generated from Google API Discovery Service.
10 | // Service:
11 | // {{ api.title }} ({{ api.name }}/{{ api.version }})
12 | // Description:
13 | // {{ api.description }}
14 |
15 | #import "{{ api.className }}Constants.h"
16 |
17 | {% for model in api.models %}#import "{{ model.className }}.h"
18 | {% endfor %}
19 | {% if api.query %}#import "{{ api.query }}.h"
20 | {% endif %}#import "{{ api.serviceName }}.h"
21 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/any/html/_index_resource_info.tmpl:
--------------------------------------------------------------------------------
1 | For {{ resource.className }} Resource details, see the resource representation page.
4 || Method | 8 |REST URI | 9 |Description | 10 |
|---|---|---|
| {{ m.wireName }} | 15 |{{ m.httpMethod }} {{ m.path }} |
16 | {{ m.description }} | 17 |
If successful, this method returns an empty response body.
3 | 4 | {% elif method.responseType.isList %} 5 |If successful, this method returns a response body with the following structure:
6 |
8 | {% call_template _resource_alt_json schema=method.responseType %}
9 |
10 |
11 | | Property Name | 15 |Value | 16 |Description | 17 |
|---|
If successful, this method returns a {{ method.responseType.className }} resource in the response body.
28 | 29 | {% endif %} -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.19.0/templates/_proguard_content_def.tmpl: -------------------------------------------------------------------------------- 1 | {% comment %} 2 | TODO: not schema.reference does not capture the complete solution to b/8167652. 3 | There should instead be a mechanism to get the right answer easily. 4 | {% endcomment %} 5 | {% if not schema.builtIn and not schema.reference %} static { 6 | {% if schema.arrayOf %} 7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out 8 | // see https://github.com/google/google-api-java-client/issues/543 9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class); 10 | {% else %} 11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out 12 | // see https://github.com/google/google-api-java-client/issues/543 13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class); 14 | {% endif %} 15 | }{% endif %} 16 | -------------------------------------------------------------------------------- /src/googleapis/codegen/languages/java/1.19.0/templates/_resource.tmpl: -------------------------------------------------------------------------------- 1 | /** 2 | * An accessor for creating requests from the {{ resource.className }} collection. 3 | * 4 | *The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.19.1/templates/_proguard_content_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | TODO: not schema.reference does not capture the complete solution to b/8167652.
3 | There should instead be a mechanism to get the right answer easily.
4 | {% endcomment %}
5 | {% if not schema.builtIn and not schema.reference %} static {
6 | {% if schema.arrayOf %}
7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out
8 | // see https://github.com/google/google-api-java-client/issues/543
9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class);
10 | {% else %}
11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out
12 | // see https://github.com/google/google-api-java-client/issues/543
13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class);
14 | {% endif %}
15 | }{% endif %}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.19.1/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * An accessor for creating requests from the {{ resource.className }} collection.
3 | *
4 | * The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.20.0/templates/_proguard_content_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | TODO: not schema.reference does not capture the complete solution to b/8167652.
3 | There should instead be a mechanism to get the right answer easily.
4 | {% endcomment %}
5 | {% if not schema.builtIn and not schema.reference %} static {
6 | {% if schema.arrayOf %}
7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out
8 | // see https://github.com/google/google-api-java-client/issues/543
9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class);
10 | {% else %}
11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out
12 | // see https://github.com/google/google-api-java-client/issues/543
13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class);
14 | {% endif %}
15 | }{% endif %}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.20.0/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * An accessor for creating requests from the {{ resource.className }} collection.
3 | *
4 | * The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.21.0/templates/_proguard_content_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | TODO: not schema.reference does not capture the complete solution to b/8167652.
3 | There should instead be a mechanism to get the right answer easily.
4 | {% endcomment %}
5 | {% if not schema.builtIn and not schema.reference %} static {
6 | {% if schema.arrayOf %}
7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out
8 | // see https://github.com/google/google-api-java-client/issues/543
9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class);
10 | {% else %}
11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out
12 | // see https://github.com/google/google-api-java-client/issues/543
13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class);
14 | {% endif %}
15 | }{% endif %}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.21.0/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * An accessor for creating requests from the {{ resource.className }} collection.
3 | *
4 | * The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.22.0/templates/_proguard_content_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | TODO: not schema.reference does not capture the complete solution to b/8167652.
3 | There should instead be a mechanism to get the right answer easily.
4 | {% endcomment %}
5 | {% if not schema.builtIn and not schema.reference %} static {
6 | {% if schema.arrayOf %}
7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out
8 | // see https://github.com/google/google-api-java-client/issues/543
9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class);
10 | {% else %}
11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out
12 | // see https://github.com/google/google-api-java-client/issues/543
13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class);
14 | {% endif %}
15 | }{% endif %}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.22.0/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * An accessor for creating requests from the {{ resource.className }} collection.
3 | *
4 | * The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.23.0/templates/_proguard_content_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | TODO: not schema.reference does not capture the complete solution to b/8167652.
3 | There should instead be a mechanism to get the right answer easily.
4 | {% endcomment %}
5 | {% if not schema.builtIn and not schema.reference %} static {
6 | {% if schema.arrayOf %}
7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out
8 | // see https://github.com/google/google-api-java-client/issues/543
9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class);
10 | {% else %}
11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out
12 | // see https://github.com/google/google-api-java-client/issues/543
13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class);
14 | {% endif %}
15 | }{% endif %}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.23.0/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * An accessor for creating requests from the {{ resource.className }} collection.
3 | *
4 | * The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.24.0/templates/_proguard_content_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | TODO: not schema.reference does not capture the complete solution to b/8167652.
3 | There should instead be a mechanism to get the right answer easily.
4 | {% endcomment %}
5 | {% if not schema.builtIn and not schema.reference %} static {
6 | {% if schema.arrayOf %}
7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out
8 | // see https://github.com/google/google-api-java-client/issues/543
9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class);
10 | {% else %}
11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out
12 | // see https://github.com/google/google-api-java-client/issues/543
13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class);
14 | {% endif %}
15 | }{% endif %}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.24.0/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * An accessor for creating requests from the {{ resource.className }} collection.
3 | *
4 | * The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.24.1/templates/_proguard_content_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | TODO: not schema.reference does not capture the complete solution to b/8167652.
3 | There should instead be a mechanism to get the right answer easily.
4 | {% endcomment %}
5 | {% if not schema.builtIn and not schema.reference %} static {
6 | {% if schema.arrayOf %}
7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out
8 | // see https://github.com/google/google-api-java-client/issues/543
9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class);
10 | {% else %}
11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out
12 | // see https://github.com/google/google-api-java-client/issues/543
13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class);
14 | {% endif %}
15 | }{% endif %}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.24.1/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * An accessor for creating requests from the {{ resource.className }} collection.
3 | *
4 | * The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.25.0/templates/_proguard_content_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | TODO: not schema.reference does not capture the complete solution to b/8167652.
3 | There should instead be a mechanism to get the right answer easily.
4 | {% endcomment %}
5 | {% if not schema.builtIn and not schema.reference %} static {
6 | {% if schema.arrayOf %}
7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out
8 | // see https://github.com/google/google-api-java-client/issues/543
9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class);
10 | {% else %}
11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out
12 | // see https://github.com/google/google-api-java-client/issues/543
13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class);
14 | {% endif %}
15 | }{% endif %}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/1.25.0/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * An accessor for creating requests from the {{ resource.className }} collection.
3 | *
4 | * The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/default/templates/_proguard_content_def.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | TODO: not schema.reference does not capture the complete solution to b/8167652.
3 | There should instead be a mechanism to get the right answer easily.
4 | {% endcomment %}
5 | {% if not schema.builtIn and not schema.reference %} static {
6 | {% if schema.arrayOf %}
7 | // hack to force ProGuard to consider {{ schema.safeClassName }}Items used, since otherwise it would be stripped out
8 | // see https://github.com/google/google-api-java-client/issues/543
9 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}Items.class);
10 | {% else %}
11 | // hack to force ProGuard to consider {{ schema.safeClassName }} used, since otherwise it would be stripped out
12 | // see https://github.com/google/google-api-java-client/issues/543
13 | com.google.api.client.util.Data.nullOf({{ schema.safeClassName }}.class);
14 | {% endif %}
15 | }{% endif %}
16 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/java/default/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * An accessor for creating requests from the {{ resource.className }} collection.
3 | *
4 | * The typical use is:
5 | *
6 | * {@code {{ api.className }} {{ api.name }} = new {{ api.className }}(...);}
7 | * {@code {{ api.className }}.{{ resource.className }}.List request = {{ api.name }}.{{ resource.codeName }}().list(parameters ...)}
8 | *
9 | *
10 | * @return the resource collection
11 | */
12 | public {{ resource.className }} {{ resource.codeName }}() {
13 | return new {{ resource.className }}();
14 | }
15 |
16 | /**
17 | * The "{{ resource.wireName }}" collection of methods.
18 | */
19 | public class {{ resource.className }} {{% indent %}
20 | {% for method in resource.methods %}
21 | {% call_template _method method=method %}{% endfor %}
22 | {% for subr in resource.resources %}
23 | {% call_template _resource resource=subr %}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/cpp/0.1.2/templates/_model_cc_impl.tmpl:
--------------------------------------------------------------------------------
1 | {% if current_model.children %}{% for child in current_model.children %}{% call_template _model_cc guarded_model=child %}{% endfor %}{% endif %}
2 | // Object factory method (static).
3 | {{ current_model.packageRelativeClassName }}* {{ current_model.packageRelativeClassName }}::New() {
4 | return new {{ api.client_namespace }}::JsonCppCapsule<{{ current_model.className }}>;
5 | }
6 |
7 | // Standard immutable constructor.
8 | {{ current_model.packageRelativeClassName }}::{{ current_model.className }}(const Json::Value& storage)
9 | : {{ api.client_namespace }}::JsonCppData(storage) {
10 | }
11 |
12 | // Standard mutable constructor.
13 | {{ current_model.packageRelativeClassName }}::{{ current_model.className }}(Json::Value* storage)
14 | : {{ api.client_namespace }}::JsonCppData(storage) {
15 | }
16 |
17 | // Standard destructor.
18 | {{ current_model.packageRelativeClassName }}::~{{ current_model.className }}() {
19 | }
20 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/cpp/0.1.3/templates/_model_cc_impl.tmpl:
--------------------------------------------------------------------------------
1 | {% if current_model.children %}{% for child in current_model.children %}{% call_template _model_cc guarded_model=child %}{% endfor %}{% endif %}
2 | // Object factory method (static).
3 | {{ current_model.packageRelativeClassName }}* {{ current_model.packageRelativeClassName }}::New() {
4 | return new {{ api.client_namespace }}::JsonCppCapsule<{{ current_model.className }}>;
5 | }
6 |
7 | // Standard immutable constructor.
8 | {{ current_model.packageRelativeClassName }}::{{ current_model.className }}(const Json::Value& storage)
9 | : {{ api.client_namespace }}::JsonCppData(storage) {
10 | }
11 |
12 | // Standard mutable constructor.
13 | {{ current_model.packageRelativeClassName }}::{{ current_model.className }}(Json::Value* storage)
14 | : {{ api.client_namespace }}::JsonCppData(storage) {
15 | }
16 |
17 | // Standard destructor.
18 | {{ current_model.packageRelativeClassName }}::~{{ current_model.className }}() {
19 | }
20 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/cpp/0.1.4/templates/_model_cc_impl.tmpl:
--------------------------------------------------------------------------------
1 | {% if current_model.children %}{% for child in current_model.children %}{% call_template _model_cc guarded_model=child %}{% endfor %}{% endif %}
2 | // Object factory method (static).
3 | {{ current_model.packageRelativeClassName }}* {{ current_model.packageRelativeClassName }}::New() {
4 | return new {{ api.client_namespace }}::JsonCppCapsule<{{ current_model.className }}>;
5 | }
6 |
7 | // Standard immutable constructor.
8 | {{ current_model.packageRelativeClassName }}::{{ current_model.className }}(const Json::Value& storage)
9 | : {{ api.client_namespace }}::JsonCppData(storage) {
10 | }
11 |
12 | // Standard mutable constructor.
13 | {{ current_model.packageRelativeClassName }}::{{ current_model.className }}(Json::Value* storage)
14 | : {{ api.client_namespace }}::JsonCppData(storage) {
15 | }
16 |
17 | // Standard destructor.
18 | {{ current_model.packageRelativeClassName }}::~{{ current_model.className }}() {
19 | }
20 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/dart/0.1/templates/_resource.tmpl:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | Renders a resource class.
3 | [resource] the resource to render.
4 | {% endcomment %}// Resource {{ resource.contextCodeType }}
5 | class {{ resource.className }} extends core.Object {
6 | final {{ api.className }} _$service;
7 | {% for r in resource.resources %}final {{ r.className }} {{ r.codeName }};
8 | {% endfor %}
9 | {{ resource.className }}._internal({{ api.className }} $service) : _$service = $service{% for r in resource.resources %},
10 | {{ r.codeName }} = new {{ r.className }}._internal($service){% endfor %};
11 | {% for m in resource.methods %}{% indent %}
12 | {% call_template _method method=m %}
13 | {% endindent %}{% endfor %}}
14 | {% for m in resource.methods %}{% for param in m.parameters %}{% if param.enumType %}
15 | {% call_template _enum param=param %}
16 | {% endif %}{% endfor %}{% endfor %}
17 | {% for r in resource.resources %}
18 | {% call_template _resource resource=r %}
19 | {% endfor %}
20 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/any/discovery_check/report.txt.tmpl:
--------------------------------------------------------------------------------
1 | {% filter noblanklines %}
2 | generated_by: {{ tool.name }} {{ tool.version }}
3 | {% if tool.buildDate %}tool_build_date: {{ tool.buildDate }}{% endif %}
4 | generated_at: {{ tool.runDate }} {{ tool.runTime }}
5 |
6 | api:{{ api.name }}
7 | version:{{ api.version }}
8 | {% if api.revision %}revision: {{ api.revision }}{% endif %}
9 |
10 | Description: {{ api.description }}
11 |
12 | api_documentation: {{ api.documentationLink }}
13 |
14 | servicePath: {{ api.servicePath }}
15 | rootUrl: {{ api.rootUrl }}
16 | title: {{ api.title }}
17 | {% for icon in api.icons %}
18 | icons.{{ icon }}: {{ icon }} To be fixed
19 | {% endfor %}
20 |
21 | {% if api.dataWrapper %}data_wrapper: 1{% endif %}
22 | {% endfilter %}
23 |
24 | {% for s in api.models %}
25 | {% call_template _model model s %}{% endfor %}
26 | {% for r in api.resources %}
27 | {% call_template _resource resource r %}{% endfor %}
28 | {% for m in api.methods %}
29 | {% call_template _method method m %}{% endfor %}
30 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/any/discovery_check/_method.tmpl:
--------------------------------------------------------------------------------
1 | method {{% indent %}
2 | name: {{ method.wireName }}
3 | id: {{ method.id }}
4 | path: {{ method.path }}
5 | httpMethod: {{ method.httpMethod }}
6 | description: {{ method.description }}
7 | {% filter noblanklines %}
8 | {% if method.requestType %}request_type: {{ method.requestType.id }}{% endif %}
9 | {% if method.responseType %}response_type: {{ method.responseType.id }}{% endif %}
10 | {% endfilter %}
11 | {% for param in method.parameters %}
12 | parameter: {{ param.wireName }} {{% indent %}
13 | {% filter noblanklines %}
14 | description:{{ param.description }}
15 | type: {{ param.code_type }}
16 | required: {{ param.required }}
17 | location: {{ param.location }}
18 | repeated: {{ param.repeated }}
19 | {% if param.default %} default: {{ param.default }}{% endif %}
20 | {% if param.minimum %} minimum: {{ param.minimum }}{% endif %}
21 | {% if param.maximum %} maximum: {{ param.maximum }}{% endif %}
22 | {% endfilter %}
23 | {% endindent %}}{% endfor %}
24 | {% endindent %}}
25 |
--------------------------------------------------------------------------------
/src/googleapis/codegen/languages/csharp/1.9.0/templates/packages.config.tmpl:
--------------------------------------------------------------------------------
1 |
2 |