From 3d1aa2e7d7a760ee2dee94975aaa210d7e69b839 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 2 Oct 2018 22:30:14 -0700 Subject: [PATCH 01/32] Add assets synth script --- .../google-cloud-asset/synth.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 google-cloud-clients/google-cloud-asset/synth.py diff --git a/google-cloud-clients/google-cloud-asset/synth.py b/google-cloud-clients/google-cloud-asset/synth.py new file mode 100644 index 000000000000..6028ae300010 --- /dev/null +++ b/google-cloud-clients/google-cloud-asset/synth.py @@ -0,0 +1,36 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +# tasks has two product names, and a poorly named artman yaml +v1beta1_library = gapic.java_library( + 'asset', 'v1beta1', + config_path='artman_cloudasset_v1beta1.yaml', + artman_output_name='') + +s.copy(v1beta1_library / 'gapic-google-cloud-asset-v1beta1/src', 'src') +s.copy(v1beta1_library / 'grpc-google-cloud-asset-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-asset-v1beta1/src') +s.copy(v1beta1_library / 'proto-google-cloud-asset-v1beta1/src', '../../google-api-grpc/proto-google-cloud-asset-v1beta1/src') + +# s.copy(templates) From f446ec8c70ea101d2276e8a1d3c16543ecd96e13 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 2 Oct 2018 22:34:25 -0700 Subject: [PATCH 02/32] Add automl synth script --- .../google-cloud-automl/synth.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 google-cloud-clients/google-cloud-automl/synth.py diff --git a/google-cloud-clients/google-cloud-automl/synth.py b/google-cloud-clients/google-cloud-automl/synth.py new file mode 100644 index 000000000000..c604d0478244 --- /dev/null +++ b/google-cloud-clients/google-cloud-automl/synth.py @@ -0,0 +1,36 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +# tasks has two product names, and a poorly named artman yaml +v1beta1_library = gapic.java_library( + 'automl', 'v1beta1', + config_path='artman_automl_v1beta1.yaml', + artman_output_name='') + +s.copy(v1beta1_library / 'gapic-google-cloud-automl-v1beta1/src', 'src') +s.copy(v1beta1_library / 'grpc-google-cloud-automl-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-automl-v1beta1/src') +s.copy(v1beta1_library / 'proto-google-cloud-automl-v1beta1/src', '../../google-api-grpc/proto-google-cloud-automl-v1beta1/src') + +# s.copy(templates) From 639751396aa9c8dc244e8b8b19d07936b9519109 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 2 Oct 2018 22:45:52 -0700 Subject: [PATCH 03/32] Add BigQueryDataTransfer synth --- .../google-cloud-asset/synth.py | 3 +- .../google-cloud-automl/synth.py | 13 ++++--- .../synth.py | 35 +++++++++++++++++++ 3 files changed, 43 insertions(+), 8 deletions(-) create mode 100644 google-cloud-clients/google-cloud-bigquerydatatransfer/synth.py diff --git a/google-cloud-clients/google-cloud-asset/synth.py b/google-cloud-clients/google-cloud-asset/synth.py index 6028ae300010..e99ee101e8e5 100644 --- a/google-cloud-clients/google-cloud-asset/synth.py +++ b/google-cloud-clients/google-cloud-asset/synth.py @@ -25,7 +25,8 @@ # tasks has two product names, and a poorly named artman yaml v1beta1_library = gapic.java_library( - 'asset', 'v1beta1', + service='asset', + version='v1beta1', config_path='artman_cloudasset_v1beta1.yaml', artman_output_name='') diff --git a/google-cloud-clients/google-cloud-automl/synth.py b/google-cloud-clients/google-cloud-automl/synth.py index c604d0478244..e20607fc6cab 100644 --- a/google-cloud-clients/google-cloud-automl/synth.py +++ b/google-cloud-clients/google-cloud-automl/synth.py @@ -23,14 +23,13 @@ gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() -# tasks has two product names, and a poorly named artman yaml -v1beta1_library = gapic.java_library( - 'automl', 'v1beta1', +library = gapic.java_library( + service='automl', + version='v1beta1', config_path='artman_automl_v1beta1.yaml', artman_output_name='') -s.copy(v1beta1_library / 'gapic-google-cloud-automl-v1beta1/src', 'src') -s.copy(v1beta1_library / 'grpc-google-cloud-automl-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-automl-v1beta1/src') -s.copy(v1beta1_library / 'proto-google-cloud-automl-v1beta1/src', '../../google-api-grpc/proto-google-cloud-automl-v1beta1/src') +s.copy(library / 'gapic-google-cloud-automl-v1beta1/src', 'src') +s.copy(library / 'grpc-google-cloud-automl-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-automl-v1beta1/src') +s.copy(library / 'proto-google-cloud-automl-v1beta1/src', '../../google-api-grpc/proto-google-cloud-automl-v1beta1/src') -# s.copy(templates) diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.py b/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.py new file mode 100644 index 000000000000..16ac544afa8e --- /dev/null +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='bigquerydatatransfer', + version='v1', + config_path='/google/cloud/bigquery/datatransfer/artman_bigquerydatatransfer.yaml', + artman_output_name='google-cloud-bigquerydatatransfer-v1') + +s.copy(library / 'gapic-google-cloud-bigquerydatatransfer-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-bigquerydatatransfer-v1/src', '../../google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/src') +s.copy(library / 'proto-google-cloud-bigquerydatatransfer-v1/src', '../../google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src') + From b646ed96ce3a2dcd8ef848f91500c4cd4eaa7adf Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 2 Oct 2018 22:53:42 -0700 Subject: [PATCH 04/32] Add BigTable synth --- .../google-cloud-bigtable/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-bigtable/synth.py diff --git a/google-cloud-clients/google-cloud-bigtable/synth.py b/google-cloud-clients/google-cloud-bigtable/synth.py new file mode 100644 index 000000000000..c6a145e92742 --- /dev/null +++ b/google-cloud-clients/google-cloud-bigtable/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='bigtable', + version='v2', + config_path='/google/bigtable/artman_bigtable.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-bigtable-v2/src', 'src') +s.copy(library / 'grpc-google-cloud-bigtable-v2/src', '../../google-api-grpc/grpc-google-cloud-bigtable-v2/src') +s.copy(library / 'proto-google-cloud-bigtable-v2/src', '../../google-api-grpc/proto-google-cloud-bigtable-v2/src') + From d8a56fa849be18b3f2d29243c729a60be2995aea Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 2 Oct 2018 22:56:14 -0700 Subject: [PATCH 05/32] Add BigTableAdmin synth --- .../google-cloud-bigtable-admin/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-bigtable-admin/synth.py diff --git a/google-cloud-clients/google-cloud-bigtable-admin/synth.py b/google-cloud-clients/google-cloud-bigtable-admin/synth.py new file mode 100644 index 000000000000..2af4d05d1b1a --- /dev/null +++ b/google-cloud-clients/google-cloud-bigtable-admin/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='bigtable-admin', + version='v2', + config_path='/google/bigtable/admin/artman_bigtableadmin.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-bigtable-admin-v2/src', 'src') +s.copy(library / 'grpc-google-cloud-bigtable-admin-v2/src', '../../google-api-grpc/grpc-google-cloud-bigtable-admin-v2/src') +s.copy(library / 'proto-google-cloud-bigtable-admin-v2/src', '../../google-api-grpc/proto-google-cloud-bigtable-admin-v2/src') + From d413248c67dbe7f646936e4018f7b5b4f8c62cdf Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 2 Oct 2018 22:59:12 -0700 Subject: [PATCH 06/32] Add container synth --- .../google-cloud-container/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-container/synth.py diff --git a/google-cloud-clients/google-cloud-container/synth.py b/google-cloud-clients/google-cloud-container/synth.py new file mode 100644 index 000000000000..1ad149f0f28c --- /dev/null +++ b/google-cloud-clients/google-cloud-container/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='container', + version='v1', + config_path='/google/container/artman_container.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-container-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-container-v1/src', '../../google-api-grpc/grpc-google-cloud-container-v1/src') +s.copy(library / 'proto-google-cloud-container-v1/src', '../../google-api-grpc/proto-google-cloud-container-v1/src') + From 7668b6c188576fd2c2858159e4379e6f0fa3ee27 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 2 Oct 2018 23:01:48 -0700 Subject: [PATCH 07/32] Add containeranalysis synth --- .../google-cloud-containeranalysis/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-containeranalysis/synth.py diff --git a/google-cloud-clients/google-cloud-containeranalysis/synth.py b/google-cloud-clients/google-cloud-containeranalysis/synth.py new file mode 100644 index 000000000000..0b652849a310 --- /dev/null +++ b/google-cloud-clients/google-cloud-containeranalysis/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='container', + version='v1beta1', + config_path='/google/devtools/containeranalysis/artman_containeranalysis_v1beta1.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-containeranalysis-v1beta1/src', 'src') +s.copy(library / 'grpc-google-cloud-containeranalysis-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/src') +s.copy(library / 'proto-google-cloud-containeranalysis-v1beta1/src', '../../google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/src') + From 5fd519d49b2296c03001d150fa1b1e2445ed41cb Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 2 Oct 2018 23:06:36 -0700 Subject: [PATCH 08/32] Add dataproc synth --- .../google-cloud-dataproc/synth.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 google-cloud-clients/google-cloud-dataproc/synth.py diff --git a/google-cloud-clients/google-cloud-dataproc/synth.py b/google-cloud-clients/google-cloud-dataproc/synth.py new file mode 100644 index 000000000000..8fc103d972bc --- /dev/null +++ b/google-cloud-clients/google-cloud-dataproc/synth.py @@ -0,0 +1,36 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +for version in ["v1", "v1beta2"]: + library = gapic.java_library( + service='dataproc', + version=version, + config_path=f'/google/cloud/dataproc/artman_dataproc_{version}.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-dataproc-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-dataproc-{version}/src', f'../../google-api-grpc/grpc-google-cloud-dataproc-{version}/src') + s.copy(library / f'proto-google-cloud-dataproc-{version}/src', f'../../google-api-grpc/proto-google-cloud-dataproc-{version}/src') + From a1042dcc988cb9155ea26283b1add86b6c20f1b4 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 2 Oct 2018 23:12:33 -0700 Subject: [PATCH 09/32] Add datastore synth --- .../google-cloud-datastore/synth.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 google-cloud-clients/google-cloud-datastore/synth.py diff --git a/google-cloud-clients/google-cloud-datastore/synth.py b/google-cloud-clients/google-cloud-datastore/synth.py new file mode 100644 index 000000000000..55ce4dd78097 --- /dev/null +++ b/google-cloud-clients/google-cloud-datastore/synth.py @@ -0,0 +1,36 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='datastore', + version='v1', + config_path='/google/datastore/artman_datastore.yaml', + artman_output_name='') + +# Datastore only generates protos +#s.copy(library / 'gapic-google-cloud-datastore-v1/src', 'src') +#s.copy(library / 'grpc-google-cloud-datastore-v1/src', '../../google-api-grpc/grpc-google-cloud-datastore-v1/src') +s.copy(library / 'proto-google-cloud-datastore-v1/src', '../../google-api-grpc/proto-google-cloud-datastore-v1/src') + From 9cf131b8626e2ae912c32c25dc2aa0e02abdb1a4 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 08:33:19 -0700 Subject: [PATCH 10/32] Add dialogflow synth --- .../google-cloud-dialogflow/synth.py | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 google-cloud-clients/google-cloud-dialogflow/synth.py diff --git a/google-cloud-clients/google-cloud-dialogflow/synth.py b/google-cloud-clients/google-cloud-dialogflow/synth.py new file mode 100644 index 000000000000..f4c7d8aa7d52 --- /dev/null +++ b/google-cloud-clients/google-cloud-dialogflow/synth.py @@ -0,0 +1,45 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='dialogflow', + version='v2', + config_path=f'/google/cloud/dialogflow/artman_dialogflow_v2.yaml', + artman_output_name='') + +s.copy(library / f'gapic-google-cloud-dialogflow-v2/src', 'src') +s.copy(library / f'grpc-google-cloud-dialogflow-v2/src', f'../../google-api-grpc/grpc-google-cloud-dialogflow-v2/src') +s.copy(library / f'proto-google-cloud-dialogflow-v2/src', f'../../google-api-grpc/proto-google-cloud-dialogflow-v2/src') + +# v2beta1 has a weird config name +library = gapic.java_library( + service='dialogflow', + version='v2beta1', + config_path=f'/google/cloud/dialogflow/artman_dialogflow_v2beta1_java.yaml', + artman_output_name='') + +s.copy(library / f'gapic-google-cloud-dialogflow-v2beta1/src', 'src') +s.copy(library / f'grpc-google-cloud-dialogflow-v2beta1/src', f'../../google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/src') +s.copy(library / f'proto-google-cloud-dialogflow-v2beta1/src', f'../../google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src') From 3e50d8dba44324affb8e71484b4b0f84f073f2ed Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 08:36:32 -0700 Subject: [PATCH 11/32] Add dlp synth --- .../google-cloud-dlp/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-dlp/synth.py diff --git a/google-cloud-clients/google-cloud-dlp/synth.py b/google-cloud-clients/google-cloud-dlp/synth.py new file mode 100644 index 000000000000..a4bc8b6f4d24 --- /dev/null +++ b/google-cloud-clients/google-cloud-dlp/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='dlp', + version='v2', + config_path='/google/privacy/dlp/artman_dlp_v2.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-dlp-v2/src', 'src') +s.copy(library / 'grpc-google-cloud-dlp-v2/src', '../../google-api-grpc/grpc-google-cloud-dlp-v2/src') +s.copy(library / 'proto-google-cloud-dlp-v2/src', '../../google-api-grpc/proto-google-cloud-dlp-v2/src') + From 19b667d17de8c49dc873d2fd079a997b860e0a86 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 08:41:17 -0700 Subject: [PATCH 12/32] Add errorreporting synth --- .../google-cloud-errorreporting/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-errorreporting/synth.py diff --git a/google-cloud-clients/google-cloud-errorreporting/synth.py b/google-cloud-clients/google-cloud-errorreporting/synth.py new file mode 100644 index 000000000000..a0c286fa580d --- /dev/null +++ b/google-cloud-clients/google-cloud-errorreporting/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='errorreporting', + version='v1beta1', + config_path='/google/devtools/clouderrorreporting/artman_errorreporting.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-error-reporting-v1beta1/src', 'src') +s.copy(library / 'grpc-google-cloud-error-reporting-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/src') +s.copy(library / 'proto-google-cloud-error-reporting-v1beta1/src', '../../google-api-grpc/proto-google-cloud-error-reporting-v1beta1/src') + From 676cca070351dd5ce27d1fbe6de09595f387be7e Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 08:43:22 -0700 Subject: [PATCH 13/32] Add firestore synth --- .../google-cloud-firestore/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-firestore/synth.py diff --git a/google-cloud-clients/google-cloud-firestore/synth.py b/google-cloud-clients/google-cloud-firestore/synth.py new file mode 100644 index 000000000000..81b5c85f0c59 --- /dev/null +++ b/google-cloud-clients/google-cloud-firestore/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='firestore', + version='v1beta1', + config_path='/google/firestore/artman_firestore.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-firestore-v1beta1/src', 'src') +s.copy(library / 'grpc-google-cloud-firestore-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-firestore-v1beta1/src') +s.copy(library / 'proto-google-cloud-firestore-v1beta1/src', '../../google-api-grpc/proto-google-cloud-firestore-v1beta1/src') + From e80364c2af4cbb765af3ebce922d37589e073752 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 08:44:51 -0700 Subject: [PATCH 14/32] Add iot synth --- .../google-cloud-iot/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-iot/synth.py diff --git a/google-cloud-clients/google-cloud-iot/synth.py b/google-cloud-clients/google-cloud-iot/synth.py new file mode 100644 index 000000000000..a5d097cfb2f5 --- /dev/null +++ b/google-cloud-clients/google-cloud-iot/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='iot', + version='v1', + config_path='/google/cloud/iot/artman_cloudiot.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-iot-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-iot-v1/src', '../../google-api-grpc/grpc-google-cloud-iot-v1/src') +s.copy(library / 'proto-google-cloud-iot-v1/src', '../../google-api-grpc/proto-google-cloud-iot-v1/src') + From 5e1f5df365db4e08a2b94f64e046dda589f2ab0c Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 08:47:31 -0700 Subject: [PATCH 15/32] Add kms synth --- .../google-cloud-kms/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-kms/synth.py diff --git a/google-cloud-clients/google-cloud-kms/synth.py b/google-cloud-clients/google-cloud-kms/synth.py new file mode 100644 index 000000000000..3795ffdfd08c --- /dev/null +++ b/google-cloud-clients/google-cloud-kms/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='kms', + version='v1', + config_path='/google/cloud/kms/artman_cloudkms.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-kms-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-kms-v1/src', '../../google-api-grpc/grpc-google-cloud-kms-v1/src') +s.copy(library / 'proto-google-cloud-kms-v1/src', '../../google-api-grpc/proto-google-cloud-kms-v1/src') + From f329a72e0092d18178567987275157b81b7b74cf Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 08:55:32 -0700 Subject: [PATCH 16/32] Add language synth --- .../google-cloud-language/synth.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 google-cloud-clients/google-cloud-language/synth.py diff --git a/google-cloud-clients/google-cloud-language/synth.py b/google-cloud-clients/google-cloud-language/synth.py new file mode 100644 index 000000000000..a63241e4cd6b --- /dev/null +++ b/google-cloud-clients/google-cloud-language/synth.py @@ -0,0 +1,36 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +for version in ["v1", "v1beta2"]: + library = gapic.java_library( + service='language', + version=version, + config_path=f'/google/cloud/language/artman_language_{version}.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-language-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-language-{version}/src', f'../../google-api-grpc/grpc-google-cloud-language-{version}/src') + s.copy(library / f'proto-google-cloud-language-{version}/src', f'../../google-api-grpc/proto-google-cloud-language-{version}/src') + From ec9135d44de97be8ee89a0090f7bfa89f8e634ee Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 08:57:51 -0700 Subject: [PATCH 17/32] Add logging synth --- .../google-cloud-logging/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-logging/synth.py diff --git a/google-cloud-clients/google-cloud-logging/synth.py b/google-cloud-clients/google-cloud-logging/synth.py new file mode 100644 index 000000000000..a2e71a317873 --- /dev/null +++ b/google-cloud-clients/google-cloud-logging/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='logging', + version='v2', + config_path='/google/logging/artman_logging.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-logging-v2/src', 'src') +s.copy(library / 'grpc-google-cloud-logging-v2/src', '../../google-api-grpc/grpc-google-cloud-logging-v2/src') +s.copy(library / 'proto-google-cloud-logging-v2/src', '../../google-api-grpc/proto-google-cloud-logging-v2/src') + From a2a3d588e2eb464f5287a09d13cdcc88933ceffb Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 08:59:23 -0700 Subject: [PATCH 18/32] Add monitoring synth --- .../google-cloud-monitoring/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-monitoring/synth.py diff --git a/google-cloud-clients/google-cloud-monitoring/synth.py b/google-cloud-clients/google-cloud-monitoring/synth.py new file mode 100644 index 000000000000..c9fe07985a34 --- /dev/null +++ b/google-cloud-clients/google-cloud-monitoring/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='monitoring', + version='v3', + config_path='/google/monitoring/artman_monitoring.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-monitoring-v3/src', 'src') +s.copy(library / 'grpc-google-cloud-monitoring-v3/src', '../../google-api-grpc/grpc-google-cloud-monitoring-v3/src') +s.copy(library / 'proto-google-cloud-monitoring-v3/src', '../../google-api-grpc/proto-google-cloud-monitoring-v3/src') + From df966322c612a4f08f09504ec9697b24547c3c59 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 09:01:38 -0700 Subject: [PATCH 19/32] Add oslogin synth --- .../google-cloud-os-login/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-os-login/synth.py diff --git a/google-cloud-clients/google-cloud-os-login/synth.py b/google-cloud-clients/google-cloud-os-login/synth.py new file mode 100644 index 000000000000..a3666ce7e524 --- /dev/null +++ b/google-cloud-clients/google-cloud-os-login/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='oslogin', + version='v1', + config_path='/google/cloud/oslogin/artman_oslogin_v1.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-os-login-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-os-login-v1/src', '../../google-api-grpc/grpc-google-cloud-os-login-v1/src') +s.copy(library / 'proto-google-cloud-os-login-v1/src', '../../google-api-grpc/proto-google-cloud-os-login-v1/src') + From eb4f8d005473c1e3ad17c3c81df2baeda33115f0 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 09:03:13 -0700 Subject: [PATCH 20/32] Add pubsub synth --- .../google-cloud-pubsub/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-pubsub/synth.py diff --git a/google-cloud-clients/google-cloud-pubsub/synth.py b/google-cloud-clients/google-cloud-pubsub/synth.py new file mode 100644 index 000000000000..e19bb8543111 --- /dev/null +++ b/google-cloud-clients/google-cloud-pubsub/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='pubsub', + version='v1', + config_path='/google/pubsub/artman_pubsub.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-pubsub-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-pubsub-v1/src', '../../google-api-grpc/grpc-google-cloud-pubsub-v1/src') +s.copy(library / 'proto-google-cloud-pubsub-v1/src', '../../google-api-grpc/proto-google-cloud-pubsub-v1/src') + From e78d8171df0293767dd13f359caf3ff6b37a6b2d Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 09:05:33 -0700 Subject: [PATCH 21/32] Add redis synth --- .../google-cloud-redis/synth.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 google-cloud-clients/google-cloud-redis/synth.py diff --git a/google-cloud-clients/google-cloud-redis/synth.py b/google-cloud-clients/google-cloud-redis/synth.py new file mode 100644 index 000000000000..e8a04b92d855 --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/synth.py @@ -0,0 +1,36 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +for version in ["v1", "v1beta1"]: + library = gapic.java_library( + service='redis', + version=version, + config_path=f'/google/cloud/redis/artman_redis_{version}.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-redis-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-redis-{version}/src', f'../../google-api-grpc/grpc-google-cloud-redis-{version}/src') + s.copy(library / f'proto-google-cloud-redis-{version}/src', f'../../google-api-grpc/proto-google-cloud-redis-{version}/src') + From 34d3cb4b61a12e66b87e67eab3384f2bf2fdc705 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 09:12:47 -0700 Subject: [PATCH 22/32] Add spanner synth --- .../google-cloud-spanner/synth.py | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 google-cloud-clients/google-cloud-spanner/synth.py diff --git a/google-cloud-clients/google-cloud-spanner/synth.py b/google-cloud-clients/google-cloud-spanner/synth.py new file mode 100644 index 000000000000..fc420cc855a3 --- /dev/null +++ b/google-cloud-clients/google-cloud-spanner/synth.py @@ -0,0 +1,55 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='spanner', + version='v1', + config_path='/google/spanner/artman_spanner.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-spanner-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-spanner-v1/src', '../../google-api-grpc/grpc-google-cloud-spanner-v1/src') +s.copy(library / 'proto-google-cloud-spanner-v1/src', '../../google-api-grpc/proto-google-cloud-spanner-v1/src') + + +library = gapic.java_library( + service='spanner', + version='v1', + config_path='/google/spanner/admin/database/artman_spanner_admin_database.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-spanner-admin-database-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-spanner-admin-database-v1/src', '../../google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/src') +s.copy(library / 'proto-google-cloud-spanner-admin-database-v1/src', '../../google-api-grpc/proto-google-cloud-spanner-admin-database-v1/src') + +library = gapic.java_library( + service='spanner', + version='v1', + config_path='/google/spanner/admin/instance/artman_spanner_admin_instance.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-spanner-admin-instance-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-spanner-admin-instance-v1/src', '../../google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/src') +s.copy(library / 'proto-google-cloud-spanner-admin-instance-v1/src', '../../google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/src') \ No newline at end of file From 390325c769077f2563208be80e93df520ba8b61c Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 09:15:42 -0700 Subject: [PATCH 23/32] Add speech synth --- .../google-cloud-speech/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-speech/synth.py diff --git a/google-cloud-clients/google-cloud-speech/synth.py b/google-cloud-clients/google-cloud-speech/synth.py new file mode 100644 index 000000000000..92cb18fcecb3 --- /dev/null +++ b/google-cloud-clients/google-cloud-speech/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +for version in ["v1", "v1p1beta1"]: + library = gapic.java_library( + service='speech', + version=version, + config_path=f'/google/cloud/speech/artman_speech_{version}.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-speech-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-speech-{version}/src', f'../../google-api-grpc/grpc-google-cloud-speech-{version}/src') + s.copy(library / f'proto-google-cloud-speech-{version}/src', f'../../google-api-grpc/proto-google-cloud-speech-{version}/src') From 1d231891b34f75ef500cc949d400379d35727e79 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 09:18:25 -0700 Subject: [PATCH 24/32] Add tasks synth --- .../google-cloud-tasks/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-tasks/synth.py diff --git a/google-cloud-clients/google-cloud-tasks/synth.py b/google-cloud-clients/google-cloud-tasks/synth.py new file mode 100644 index 000000000000..1d63c00e482a --- /dev/null +++ b/google-cloud-clients/google-cloud-tasks/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +for version in ["v2beta2", "v2beta3"]: + library = gapic.java_library( + service='tasks', + version=version, + config_path=f'/google/cloud/tasks/artman_cloudtasks_{version}.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-tasks-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-tasks-{version}/src', f'../../google-api-grpc/grpc-google-cloud-tasks-{version}/src') + s.copy(library / f'proto-google-cloud-tasks-{version}/src', f'../../google-api-grpc/proto-google-cloud-tasks-{version}/src') From 885a31535beb73516aae884d28154f79547052bd Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 09:21:28 -0700 Subject: [PATCH 25/32] Add texttospeech synth --- .../google-cloud-texttospeech/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-texttospeech/synth.py diff --git a/google-cloud-clients/google-cloud-texttospeech/synth.py b/google-cloud-clients/google-cloud-texttospeech/synth.py new file mode 100644 index 000000000000..66b844387bdc --- /dev/null +++ b/google-cloud-clients/google-cloud-texttospeech/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +for version in ["v1", "v1beta1"]: + library = gapic.java_library( + service='texttospeech', + version=version, + config_path=f'/google/cloud/texttospeech/artman_texttospeech_{version}.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-texttospeech-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-texttospeech-{version}/src', f'../../google-api-grpc/grpc-google-cloud-texttospeech-{version}/src') + s.copy(library / f'proto-google-cloud-texttospeech-{version}/src', f'../../google-api-grpc/proto-google-cloud-texttospeech-{version}/src') From 323efa62563d084799bb20962562a4513c504bfd Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 09:23:48 -0700 Subject: [PATCH 26/32] Add trace synth --- .../google-cloud-trace/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-trace/synth.py diff --git a/google-cloud-clients/google-cloud-trace/synth.py b/google-cloud-clients/google-cloud-trace/synth.py new file mode 100644 index 000000000000..a60a9a2e6dce --- /dev/null +++ b/google-cloud-clients/google-cloud-trace/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +for version in ["v1", "v2"]: + library = gapic.java_library( + service='trace', + version=version, + config_path=f'/google/devtools/cloudtrace/artman_cloudtrace_{version}.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-trace-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-trace-{version}/src', f'../../google-api-grpc/grpc-google-cloud-trace-{version}/src') + s.copy(library / f'proto-google-cloud-trace-{version}/src', f'../../google-api-grpc/proto-google-cloud-trace-{version}/src') From e4afbb8960a8b4522b528aefe1f03f7dfe57ad76 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 10:48:21 -0700 Subject: [PATCH 27/32] Add videointelligence synth --- .../google-cloud-video-intelligence/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-video-intelligence/synth.py diff --git a/google-cloud-clients/google-cloud-video-intelligence/synth.py b/google-cloud-clients/google-cloud-video-intelligence/synth.py new file mode 100644 index 000000000000..f8753f699fca --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +for version in ["v1", "v1beta1", "v1beta2", "v1p1beta1", "v1p2beta1"]: + library = gapic.java_library( + service='videointelligence', + version=version, + config_path=f'/google/cloud/videointelligence/artman_videointelligence_{version}.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-video-intelligence-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-video-intelligence-{version}/src', f'../../google-api-grpc/grpc-google-cloud-video-intelligence-{version}/src') + s.copy(library / f'proto-google-cloud-video-intelligence-{version}/src', f'../../google-api-grpc/proto-google-cloud-video-intelligence-{version}/src') From ba35839f68280eeb934c9f444b071af33d1585a1 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 10:52:27 -0700 Subject: [PATCH 28/32] Add vision synth --- .../google-cloud-vision/synth.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 google-cloud-clients/google-cloud-vision/synth.py diff --git a/google-cloud-clients/google-cloud-vision/synth.py b/google-cloud-clients/google-cloud-vision/synth.py new file mode 100644 index 000000000000..09e1bb2d5921 --- /dev/null +++ b/google-cloud-clients/google-cloud-vision/synth.py @@ -0,0 +1,35 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +for version in ["v1", "v1p1beta1", "v1p2beta1", "v1p3beta1"]: + library = gapic.java_library( + service='vision', + version=version, + config_path=f'/google/cloud/vision/artman_vision_{version}.yaml', + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-vision-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-vision-{version}/src', f'../../google-api-grpc/grpc-google-cloud-vision-{version}/src') + s.copy(library / f'proto-google-cloud-vision-{version}/src', f'../../google-api-grpc/proto-google-cloud-vision-{version}/src') From a479fe66d24e0de724c318153c73ed197ca30fc9 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 10:57:21 -0700 Subject: [PATCH 29/32] Add websecurityscanner synth --- .../google-cloud-websecurityscanner/synth.py | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 google-cloud-clients/google-cloud-websecurityscanner/synth.py diff --git a/google-cloud-clients/google-cloud-websecurityscanner/synth.py b/google-cloud-clients/google-cloud-websecurityscanner/synth.py new file mode 100644 index 000000000000..0c29d9b8d8d7 --- /dev/null +++ b/google-cloud-clients/google-cloud-websecurityscanner/synth.py @@ -0,0 +1,34 @@ +# 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 +import logging + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='websecurityscanner', + version='v1alpha', + config_path='/google/cloud/websecurityscanner/artman_websecurityscanner_v1alpha.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-websecurityscanner-v1alpha/src', 'src') +s.copy(library / 'grpc-google-cloud-websecurityscanner-v1alpha/src', '../../google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/src') +s.copy(library / 'proto-google-cloud-websecurityscanner-v1alpha/src', '../../google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/src') From 9739afd08daa28a2ca44f8e385178d47420915be Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 13:29:12 -0700 Subject: [PATCH 30/32] Add compute synth --- .../google-cloud-compute/synth.py | 89 +++++++++++++++++++ 1 file changed, 89 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..485c836166d5 --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/synth.py @@ -0,0 +1,89 @@ +# 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 os +import synthtool as s +import synthtool.gcp as gcp +import logging + +from synthtool import log +from synthtool import _tracked_paths +from synthtool import shell +from synthtool.sources import git + +logging.basicConfig(level=logging.DEBUG) + +discovery_url = "https://github.com/googleapis/discovery-artifact-manager.git" + +log.debug(f"Cloning {discovery_url}.") +discovery = git.clone(discovery_url, depth=1) + +def generate(config, root_dir): + image = "googleapis/artman:latest" + log.debug("Pulling artman image.") + shell.run(["docker", "pull", image]) + + output_dir = root_dir / "artman-genfiles" + + docker_cmd = [ + "docker", + "run", + "--rm", + "-i", + "-e", + f"HOST_USER_ID={os.getuid()}", + "-e", + f"HOST_GROUP_ID={os.getgid()}", + "-e", + "RUNNING_IN_ARTMAN_DOCKER=True", + "-v", + f"{root_dir}:{root_dir}", + "-v", + f"{output_dir}:{output_dir}", + "-w", + root_dir, + image, + "/bin/bash", + "-c", + ] + + config_yaml = root_dir / config + artman_command = " ".join( + map(str, ["artman", "--local", "--config", config_yaml, "generate", "java_discogapic"]) + ) + + cmd = docker_cmd + [artman_command] + + shell.run(cmd, cwd=root_dir) + + genfiles = output_dir / "java" + + if not genfiles.exists(): + raise FileNotFoundError( + f"Unable to find generated output of artman: {genfiles}." + ) + + log.success(f"Generated code into {genfiles}.") + + _tracked_paths.add(genfiles) + return genfiles + +library = generate('gapic/google/compute/artman_compute.yaml', discovery) + +s.copy(library / 'gapic-google-cloud-compute-v1/src', 'src') +#s.copy(library / 'grpc-google-cloud-compute-v1/src', '../../google-api-grpc/grpc-google-cloud-compute-v1/src') +#s.copy(library / 'proto-google-cloud-compute-v1/src', '../../google-api-grpc/proto-google-cloud-compute-v1/src') + From 40c41d14faf908a6be4f396e9b707e955030b33f Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 18:00:16 -0700 Subject: [PATCH 31/32] Remove unnecessary import --- 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 485c836166d5..0b7ebd1d50b1 100644 --- a/google-cloud-clients/google-cloud-compute/synth.py +++ b/google-cloud-clients/google-cloud-compute/synth.py @@ -16,7 +16,6 @@ import os import synthtool as s -import synthtool.gcp as gcp import logging from synthtool import log From 98c03cabd933fc748573d6bac31646eee30a8965 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 5 Oct 2018 10:34:32 -0700 Subject: [PATCH 32/32] Remove compute synth and remove excess logging statements --- .../google-cloud-asset/synth.py | 5 -- .../google-cloud-automl/synth.py | 4 - .../synth.py | 4 - .../google-cloud-bigtable-admin/synth.py | 4 - .../google-cloud-bigtable/synth.py | 4 - .../google-cloud-compute/synth.py | 88 ------------------- .../google-cloud-container/synth.py | 4 - .../google-cloud-containeranalysis/synth.py | 4 - .../google-cloud-dataproc/synth.py | 4 - .../google-cloud-datastore/synth.py | 4 - .../google-cloud-dialogflow/synth.py | 3 - .../google-cloud-dlp/synth.py | 4 - .../google-cloud-errorreporting/synth.py | 4 - .../google-cloud-firestore/synth.py | 4 - .../google-cloud-iot/synth.py | 4 - .../google-cloud-kms/synth.py | 4 - .../google-cloud-language/synth.py | 4 - .../google-cloud-logging/synth.py | 4 - .../google-cloud-monitoring/synth.py | 4 - .../google-cloud-os-login/synth.py | 4 - .../google-cloud-pubsub/synth.py | 4 - .../google-cloud-redis/synth.py | 4 - .../google-cloud-spanner/synth.py | 5 +- .../google-cloud-speech/synth.py | 3 - .../google-cloud-tasks/synth.py | 3 - .../google-cloud-texttospeech/synth.py | 3 - .../google-cloud-trace/synth.py | 3 - .../google-cloud-video-intelligence/synth.py | 3 - .../google-cloud-vision/synth.py | 3 - .../google-cloud-websecurityscanner/synth.py | 3 - 30 files changed, 1 insertion(+), 197 deletions(-) delete mode 100644 google-cloud-clients/google-cloud-compute/synth.py diff --git a/google-cloud-clients/google-cloud-asset/synth.py b/google-cloud-clients/google-cloud-asset/synth.py index e99ee101e8e5..2957fe4a8ee3 100644 --- a/google-cloud-clients/google-cloud-asset/synth.py +++ b/google-cloud-clients/google-cloud-asset/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -33,5 +30,3 @@ s.copy(v1beta1_library / 'gapic-google-cloud-asset-v1beta1/src', 'src') s.copy(v1beta1_library / 'grpc-google-cloud-asset-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-asset-v1beta1/src') s.copy(v1beta1_library / 'proto-google-cloud-asset-v1beta1/src', '../../google-api-grpc/proto-google-cloud-asset-v1beta1/src') - -# s.copy(templates) diff --git a/google-cloud-clients/google-cloud-automl/synth.py b/google-cloud-clients/google-cloud-automl/synth.py index e20607fc6cab..2523b0a08e10 100644 --- a/google-cloud-clients/google-cloud-automl/synth.py +++ b/google-cloud-clients/google-cloud-automl/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-automl-v1beta1/src', 'src') s.copy(library / 'grpc-google-cloud-automl-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-automl-v1beta1/src') s.copy(library / 'proto-google-cloud-automl-v1beta1/src', '../../google-api-grpc/proto-google-cloud-automl-v1beta1/src') - diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.py b/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.py index 16ac544afa8e..ef6490fd7801 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.py +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-bigquerydatatransfer-v1/src', 'src') s.copy(library / 'grpc-google-cloud-bigquerydatatransfer-v1/src', '../../google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/src') s.copy(library / 'proto-google-cloud-bigquerydatatransfer-v1/src', '../../google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src') - diff --git a/google-cloud-clients/google-cloud-bigtable-admin/synth.py b/google-cloud-clients/google-cloud-bigtable-admin/synth.py index 2af4d05d1b1a..7744fc36ddcb 100644 --- a/google-cloud-clients/google-cloud-bigtable-admin/synth.py +++ b/google-cloud-clients/google-cloud-bigtable-admin/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-bigtable-admin-v2/src', 'src') s.copy(library / 'grpc-google-cloud-bigtable-admin-v2/src', '../../google-api-grpc/grpc-google-cloud-bigtable-admin-v2/src') s.copy(library / 'proto-google-cloud-bigtable-admin-v2/src', '../../google-api-grpc/proto-google-cloud-bigtable-admin-v2/src') - diff --git a/google-cloud-clients/google-cloud-bigtable/synth.py b/google-cloud-clients/google-cloud-bigtable/synth.py index c6a145e92742..d613c549c4b2 100644 --- a/google-cloud-clients/google-cloud-bigtable/synth.py +++ b/google-cloud-clients/google-cloud-bigtable/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-bigtable-v2/src', 'src') s.copy(library / 'grpc-google-cloud-bigtable-v2/src', '../../google-api-grpc/grpc-google-cloud-bigtable-v2/src') s.copy(library / 'proto-google-cloud-bigtable-v2/src', '../../google-api-grpc/proto-google-cloud-bigtable-v2/src') - diff --git a/google-cloud-clients/google-cloud-compute/synth.py b/google-cloud-clients/google-cloud-compute/synth.py deleted file mode 100644 index 0b7ebd1d50b1..000000000000 --- a/google-cloud-clients/google-cloud-compute/synth.py +++ /dev/null @@ -1,88 +0,0 @@ -# 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 os -import synthtool as s -import logging - -from synthtool import log -from synthtool import _tracked_paths -from synthtool import shell -from synthtool.sources import git - -logging.basicConfig(level=logging.DEBUG) - -discovery_url = "https://github.com/googleapis/discovery-artifact-manager.git" - -log.debug(f"Cloning {discovery_url}.") -discovery = git.clone(discovery_url, depth=1) - -def generate(config, root_dir): - image = "googleapis/artman:latest" - log.debug("Pulling artman image.") - shell.run(["docker", "pull", image]) - - output_dir = root_dir / "artman-genfiles" - - docker_cmd = [ - "docker", - "run", - "--rm", - "-i", - "-e", - f"HOST_USER_ID={os.getuid()}", - "-e", - f"HOST_GROUP_ID={os.getgid()}", - "-e", - "RUNNING_IN_ARTMAN_DOCKER=True", - "-v", - f"{root_dir}:{root_dir}", - "-v", - f"{output_dir}:{output_dir}", - "-w", - root_dir, - image, - "/bin/bash", - "-c", - ] - - config_yaml = root_dir / config - artman_command = " ".join( - map(str, ["artman", "--local", "--config", config_yaml, "generate", "java_discogapic"]) - ) - - cmd = docker_cmd + [artman_command] - - shell.run(cmd, cwd=root_dir) - - genfiles = output_dir / "java" - - if not genfiles.exists(): - raise FileNotFoundError( - f"Unable to find generated output of artman: {genfiles}." - ) - - log.success(f"Generated code into {genfiles}.") - - _tracked_paths.add(genfiles) - return genfiles - -library = generate('gapic/google/compute/artman_compute.yaml', discovery) - -s.copy(library / 'gapic-google-cloud-compute-v1/src', 'src') -#s.copy(library / 'grpc-google-cloud-compute-v1/src', '../../google-api-grpc/grpc-google-cloud-compute-v1/src') -#s.copy(library / 'proto-google-cloud-compute-v1/src', '../../google-api-grpc/proto-google-cloud-compute-v1/src') - diff --git a/google-cloud-clients/google-cloud-container/synth.py b/google-cloud-clients/google-cloud-container/synth.py index 1ad149f0f28c..c9b1a5f35bb7 100644 --- a/google-cloud-clients/google-cloud-container/synth.py +++ b/google-cloud-clients/google-cloud-container/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-container-v1/src', 'src') s.copy(library / 'grpc-google-cloud-container-v1/src', '../../google-api-grpc/grpc-google-cloud-container-v1/src') s.copy(library / 'proto-google-cloud-container-v1/src', '../../google-api-grpc/proto-google-cloud-container-v1/src') - diff --git a/google-cloud-clients/google-cloud-containeranalysis/synth.py b/google-cloud-clients/google-cloud-containeranalysis/synth.py index 0b652849a310..507371b20c4f 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/synth.py +++ b/google-cloud-clients/google-cloud-containeranalysis/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-containeranalysis-v1beta1/src', 'src') s.copy(library / 'grpc-google-cloud-containeranalysis-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/src') s.copy(library / 'proto-google-cloud-containeranalysis-v1beta1/src', '../../google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/src') - diff --git a/google-cloud-clients/google-cloud-dataproc/synth.py b/google-cloud-clients/google-cloud-dataproc/synth.py index 8fc103d972bc..0eac0f7cf1e3 100644 --- a/google-cloud-clients/google-cloud-dataproc/synth.py +++ b/google-cloud-clients/google-cloud-dataproc/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -33,4 +30,3 @@ s.copy(library / f'gapic-google-cloud-dataproc-{version}/src', 'src') s.copy(library / f'grpc-google-cloud-dataproc-{version}/src', f'../../google-api-grpc/grpc-google-cloud-dataproc-{version}/src') s.copy(library / f'proto-google-cloud-dataproc-{version}/src', f'../../google-api-grpc/proto-google-cloud-dataproc-{version}/src') - diff --git a/google-cloud-clients/google-cloud-datastore/synth.py b/google-cloud-clients/google-cloud-datastore/synth.py index 55ce4dd78097..96cd0cc53051 100644 --- a/google-cloud-clients/google-cloud-datastore/synth.py +++ b/google-cloud-clients/google-cloud-datastore/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -33,4 +30,3 @@ #s.copy(library / 'gapic-google-cloud-datastore-v1/src', 'src') #s.copy(library / 'grpc-google-cloud-datastore-v1/src', '../../google-api-grpc/grpc-google-cloud-datastore-v1/src') s.copy(library / 'proto-google-cloud-datastore-v1/src', '../../google-api-grpc/proto-google-cloud-datastore-v1/src') - diff --git a/google-cloud-clients/google-cloud-dialogflow/synth.py b/google-cloud-clients/google-cloud-dialogflow/synth.py index f4c7d8aa7d52..3a63a84b747e 100644 --- a/google-cloud-clients/google-cloud-dialogflow/synth.py +++ b/google-cloud-clients/google-cloud-dialogflow/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() diff --git a/google-cloud-clients/google-cloud-dlp/synth.py b/google-cloud-clients/google-cloud-dlp/synth.py index a4bc8b6f4d24..3f1fa2ccf42d 100644 --- a/google-cloud-clients/google-cloud-dlp/synth.py +++ b/google-cloud-clients/google-cloud-dlp/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-dlp-v2/src', 'src') s.copy(library / 'grpc-google-cloud-dlp-v2/src', '../../google-api-grpc/grpc-google-cloud-dlp-v2/src') s.copy(library / 'proto-google-cloud-dlp-v2/src', '../../google-api-grpc/proto-google-cloud-dlp-v2/src') - diff --git a/google-cloud-clients/google-cloud-errorreporting/synth.py b/google-cloud-clients/google-cloud-errorreporting/synth.py index a0c286fa580d..2d7ffc246ff9 100644 --- a/google-cloud-clients/google-cloud-errorreporting/synth.py +++ b/google-cloud-clients/google-cloud-errorreporting/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-error-reporting-v1beta1/src', 'src') s.copy(library / 'grpc-google-cloud-error-reporting-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/src') s.copy(library / 'proto-google-cloud-error-reporting-v1beta1/src', '../../google-api-grpc/proto-google-cloud-error-reporting-v1beta1/src') - diff --git a/google-cloud-clients/google-cloud-firestore/synth.py b/google-cloud-clients/google-cloud-firestore/synth.py index 81b5c85f0c59..0d86a493d352 100644 --- a/google-cloud-clients/google-cloud-firestore/synth.py +++ b/google-cloud-clients/google-cloud-firestore/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-firestore-v1beta1/src', 'src') s.copy(library / 'grpc-google-cloud-firestore-v1beta1/src', '../../google-api-grpc/grpc-google-cloud-firestore-v1beta1/src') s.copy(library / 'proto-google-cloud-firestore-v1beta1/src', '../../google-api-grpc/proto-google-cloud-firestore-v1beta1/src') - diff --git a/google-cloud-clients/google-cloud-iot/synth.py b/google-cloud-clients/google-cloud-iot/synth.py index a5d097cfb2f5..dfa0820c6077 100644 --- a/google-cloud-clients/google-cloud-iot/synth.py +++ b/google-cloud-clients/google-cloud-iot/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-iot-v1/src', 'src') s.copy(library / 'grpc-google-cloud-iot-v1/src', '../../google-api-grpc/grpc-google-cloud-iot-v1/src') s.copy(library / 'proto-google-cloud-iot-v1/src', '../../google-api-grpc/proto-google-cloud-iot-v1/src') - diff --git a/google-cloud-clients/google-cloud-kms/synth.py b/google-cloud-clients/google-cloud-kms/synth.py index 3795ffdfd08c..fe1e24b2e91c 100644 --- a/google-cloud-clients/google-cloud-kms/synth.py +++ b/google-cloud-clients/google-cloud-kms/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-kms-v1/src', 'src') s.copy(library / 'grpc-google-cloud-kms-v1/src', '../../google-api-grpc/grpc-google-cloud-kms-v1/src') s.copy(library / 'proto-google-cloud-kms-v1/src', '../../google-api-grpc/proto-google-cloud-kms-v1/src') - diff --git a/google-cloud-clients/google-cloud-language/synth.py b/google-cloud-clients/google-cloud-language/synth.py index a63241e4cd6b..31deeaba0bb9 100644 --- a/google-cloud-clients/google-cloud-language/synth.py +++ b/google-cloud-clients/google-cloud-language/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -33,4 +30,3 @@ s.copy(library / f'gapic-google-cloud-language-{version}/src', 'src') s.copy(library / f'grpc-google-cloud-language-{version}/src', f'../../google-api-grpc/grpc-google-cloud-language-{version}/src') s.copy(library / f'proto-google-cloud-language-{version}/src', f'../../google-api-grpc/proto-google-cloud-language-{version}/src') - diff --git a/google-cloud-clients/google-cloud-logging/synth.py b/google-cloud-clients/google-cloud-logging/synth.py index a2e71a317873..3ef4c9c8296c 100644 --- a/google-cloud-clients/google-cloud-logging/synth.py +++ b/google-cloud-clients/google-cloud-logging/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-logging-v2/src', 'src') s.copy(library / 'grpc-google-cloud-logging-v2/src', '../../google-api-grpc/grpc-google-cloud-logging-v2/src') s.copy(library / 'proto-google-cloud-logging-v2/src', '../../google-api-grpc/proto-google-cloud-logging-v2/src') - diff --git a/google-cloud-clients/google-cloud-monitoring/synth.py b/google-cloud-clients/google-cloud-monitoring/synth.py index c9fe07985a34..f1769da0ef8c 100644 --- a/google-cloud-clients/google-cloud-monitoring/synth.py +++ b/google-cloud-clients/google-cloud-monitoring/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-monitoring-v3/src', 'src') s.copy(library / 'grpc-google-cloud-monitoring-v3/src', '../../google-api-grpc/grpc-google-cloud-monitoring-v3/src') s.copy(library / 'proto-google-cloud-monitoring-v3/src', '../../google-api-grpc/proto-google-cloud-monitoring-v3/src') - diff --git a/google-cloud-clients/google-cloud-os-login/synth.py b/google-cloud-clients/google-cloud-os-login/synth.py index a3666ce7e524..20808c0b9c3c 100644 --- a/google-cloud-clients/google-cloud-os-login/synth.py +++ b/google-cloud-clients/google-cloud-os-login/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-os-login-v1/src', 'src') s.copy(library / 'grpc-google-cloud-os-login-v1/src', '../../google-api-grpc/grpc-google-cloud-os-login-v1/src') s.copy(library / 'proto-google-cloud-os-login-v1/src', '../../google-api-grpc/proto-google-cloud-os-login-v1/src') - diff --git a/google-cloud-clients/google-cloud-pubsub/synth.py b/google-cloud-clients/google-cloud-pubsub/synth.py index e19bb8543111..cadac3a3c528 100644 --- a/google-cloud-clients/google-cloud-pubsub/synth.py +++ b/google-cloud-clients/google-cloud-pubsub/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -32,4 +29,3 @@ s.copy(library / 'gapic-google-cloud-pubsub-v1/src', 'src') s.copy(library / 'grpc-google-cloud-pubsub-v1/src', '../../google-api-grpc/grpc-google-cloud-pubsub-v1/src') s.copy(library / 'proto-google-cloud-pubsub-v1/src', '../../google-api-grpc/proto-google-cloud-pubsub-v1/src') - diff --git a/google-cloud-clients/google-cloud-redis/synth.py b/google-cloud-clients/google-cloud-redis/synth.py index e8a04b92d855..eb329f9ec81e 100644 --- a/google-cloud-clients/google-cloud-redis/synth.py +++ b/google-cloud-clients/google-cloud-redis/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -33,4 +30,3 @@ s.copy(library / f'gapic-google-cloud-redis-{version}/src', 'src') s.copy(library / f'grpc-google-cloud-redis-{version}/src', f'../../google-api-grpc/grpc-google-cloud-redis-{version}/src') s.copy(library / f'proto-google-cloud-redis-{version}/src', f'../../google-api-grpc/proto-google-cloud-redis-{version}/src') - diff --git a/google-cloud-clients/google-cloud-spanner/synth.py b/google-cloud-clients/google-cloud-spanner/synth.py index fc420cc855a3..c40f1f36c16a 100644 --- a/google-cloud-clients/google-cloud-spanner/synth.py +++ b/google-cloud-clients/google-cloud-spanner/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() @@ -52,4 +49,4 @@ s.copy(library / 'gapic-google-cloud-spanner-admin-instance-v1/src', 'src') s.copy(library / 'grpc-google-cloud-spanner-admin-instance-v1/src', '../../google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/src') -s.copy(library / 'proto-google-cloud-spanner-admin-instance-v1/src', '../../google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/src') \ No newline at end of file +s.copy(library / 'proto-google-cloud-spanner-admin-instance-v1/src', '../../google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/src') diff --git a/google-cloud-clients/google-cloud-speech/synth.py b/google-cloud-clients/google-cloud-speech/synth.py index 92cb18fcecb3..0d70e45687ff 100644 --- a/google-cloud-clients/google-cloud-speech/synth.py +++ b/google-cloud-clients/google-cloud-speech/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() diff --git a/google-cloud-clients/google-cloud-tasks/synth.py b/google-cloud-clients/google-cloud-tasks/synth.py index 1d63c00e482a..686b8445a22d 100644 --- a/google-cloud-clients/google-cloud-tasks/synth.py +++ b/google-cloud-clients/google-cloud-tasks/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() diff --git a/google-cloud-clients/google-cloud-texttospeech/synth.py b/google-cloud-clients/google-cloud-texttospeech/synth.py index 66b844387bdc..fba2feb7939a 100644 --- a/google-cloud-clients/google-cloud-texttospeech/synth.py +++ b/google-cloud-clients/google-cloud-texttospeech/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() diff --git a/google-cloud-clients/google-cloud-trace/synth.py b/google-cloud-clients/google-cloud-trace/synth.py index a60a9a2e6dce..0ab28bea0938 100644 --- a/google-cloud-clients/google-cloud-trace/synth.py +++ b/google-cloud-clients/google-cloud-trace/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() diff --git a/google-cloud-clients/google-cloud-video-intelligence/synth.py b/google-cloud-clients/google-cloud-video-intelligence/synth.py index f8753f699fca..e8f06c79dfc4 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/synth.py +++ b/google-cloud-clients/google-cloud-video-intelligence/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() diff --git a/google-cloud-clients/google-cloud-vision/synth.py b/google-cloud-clients/google-cloud-vision/synth.py index 09e1bb2d5921..507894aaa77d 100644 --- a/google-cloud-clients/google-cloud-vision/synth.py +++ b/google-cloud-clients/google-cloud-vision/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() diff --git a/google-cloud-clients/google-cloud-websecurityscanner/synth.py b/google-cloud-clients/google-cloud-websecurityscanner/synth.py index 0c29d9b8d8d7..429fa0222203 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/synth.py +++ b/google-cloud-clients/google-cloud-websecurityscanner/synth.py @@ -16,9 +16,6 @@ import synthtool as s import synthtool.gcp as gcp -import logging - -logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates()