From 7686a2246dd5bbe0ee673e3151ed4a0a5a13415f Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 5 Oct 2018 11:26:10 -0700 Subject: [PATCH 1/2] Add compute synth --- .../google-cloud-compute/synth.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 google-cloud-clients/google-cloud-compute/synth.py diff --git a/google-cloud-clients/google-cloud-compute/synth.py b/google-cloud-clients/google-cloud-compute/synth.py new file mode 100644 index 000000000000..581084ad32ad --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/synth.py @@ -0,0 +1,29 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""This script is used to synthesize generated parts of this library.""" + +import synthtool as s +import synthtool.gcp as gcp + +gapic = gcp.DiscoGAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='compute', + version='v1', + config_path='artman_compute.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-compute-v1/src', 'src') From a37f8653fd72ad4dd4bc40f189248695ba8dc7fb Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 17 Oct 2018 15:01:26 -0700 Subject: [PATCH 2/2] Remove unused variable --- google-cloud-clients/google-cloud-compute/synth.py | 1 - 1 file changed, 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-compute/synth.py b/google-cloud-clients/google-cloud-compute/synth.py index 581084ad32ad..c4188a04f6ee 100644 --- a/google-cloud-clients/google-cloud-compute/synth.py +++ b/google-cloud-clients/google-cloud-compute/synth.py @@ -18,7 +18,6 @@ import synthtool.gcp as gcp gapic = gcp.DiscoGAPICGenerator() -common_templates = gcp.CommonTemplates() library = gapic.java_library( service='compute',