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..2957fe4a8ee3 --- /dev/null +++ b/google-cloud-clients/google-cloud-asset/synth.py @@ -0,0 +1,32 @@ +# 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.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +# tasks has two product names, and a poorly named artman yaml +v1beta1_library = gapic.java_library( + service='asset', + version='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') 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..2523b0a08e10 --- /dev/null +++ b/google-cloud-clients/google-cloud-automl/synth.py @@ -0,0 +1,31 @@ +# 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.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='automl', + version='v1beta1', + config_path='artman_automl_v1beta1.yaml', + artman_output_name='') + +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 new file mode 100644 index 000000000000..ef6490fd7801 --- /dev/null +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..7744fc36ddcb --- /dev/null +++ b/google-cloud-clients/google-cloud-bigtable-admin/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..d613c549c4b2 --- /dev/null +++ b/google-cloud-clients/google-cloud-bigtable/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..c9b1a5f35bb7 --- /dev/null +++ b/google-cloud-clients/google-cloud-container/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..507371b20c4f --- /dev/null +++ b/google-cloud-clients/google-cloud-containeranalysis/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..0eac0f7cf1e3 --- /dev/null +++ b/google-cloud-clients/google-cloud-dataproc/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..96cd0cc53051 --- /dev/null +++ b/google-cloud-clients/google-cloud-datastore/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..3a63a84b747e --- /dev/null +++ b/google-cloud-clients/google-cloud-dialogflow/synth.py @@ -0,0 +1,42 @@ +# 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.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') 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..3f1fa2ccf42d --- /dev/null +++ b/google-cloud-clients/google-cloud-dlp/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..2d7ffc246ff9 --- /dev/null +++ b/google-cloud-clients/google-cloud-errorreporting/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..0d86a493d352 --- /dev/null +++ b/google-cloud-clients/google-cloud-firestore/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..dfa0820c6077 --- /dev/null +++ b/google-cloud-clients/google-cloud-iot/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..fe1e24b2e91c --- /dev/null +++ b/google-cloud-clients/google-cloud-kms/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..31deeaba0bb9 --- /dev/null +++ b/google-cloud-clients/google-cloud-language/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..3ef4c9c8296c --- /dev/null +++ b/google-cloud-clients/google-cloud-logging/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..f1769da0ef8c --- /dev/null +++ b/google-cloud-clients/google-cloud-monitoring/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..20808c0b9c3c --- /dev/null +++ b/google-cloud-clients/google-cloud-os-login/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..cadac3a3c528 --- /dev/null +++ b/google-cloud-clients/google-cloud-pubsub/synth.py @@ -0,0 +1,31 @@ +# 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.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') 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..eb329f9ec81e --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..c40f1f36c16a --- /dev/null +++ b/google-cloud-clients/google-cloud-spanner/synth.py @@ -0,0 +1,52 @@ +# 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.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') 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..0d70e45687ff --- /dev/null +++ b/google-cloud-clients/google-cloud-speech/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..686b8445a22d --- /dev/null +++ b/google-cloud-clients/google-cloud-tasks/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..fba2feb7939a --- /dev/null +++ b/google-cloud-clients/google-cloud-texttospeech/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..0ab28bea0938 --- /dev/null +++ b/google-cloud-clients/google-cloud-trace/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..e8f06c79dfc4 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..507894aaa77d --- /dev/null +++ b/google-cloud-clients/google-cloud-vision/synth.py @@ -0,0 +1,32 @@ +# 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.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') 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..429fa0222203 --- /dev/null +++ b/google-cloud-clients/google-cloud-websecurityscanner/synth.py @@ -0,0 +1,31 @@ +# 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.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')