From f98eaca9c14f84753c40e11e043bf8173c00dd57 Mon Sep 17 00:00:00 2001 From: David Supplee Date: Wed, 28 Aug 2019 14:20:35 -0700 Subject: [PATCH] chore: Use latest artman version and remove final keyword (#2274) * chore: Use latest artman version and remove final keyword * address review --- Asset/synth.py | 8 ++++++-- AutoMl/synth.py | 8 ++++++-- BigQueryDataTransfer/synth.py | 8 ++++++-- Bigtable/synth.py | 8 ++++++-- Container/synth.py | 8 ++++++-- Dataproc/synth.py | 8 ++++++-- Datastore/synth.py | 8 ++++++-- Debugger/synth.py | 8 ++++++-- Dialogflow/synth.py | 8 ++++++-- Dlp/synth.py | 8 ++++++-- ErrorReporting/synth.py | 8 ++++++-- Firestore/synth.py | 8 ++++++-- Iot/synth.py | 8 ++++++-- Kms/synth.py | 8 ++++++-- Language/synth.py | 8 ++++++-- Logging/synth.py | 8 ++++++-- Monitoring/synth.py | 8 ++++++-- OsLogin/synth.py | 8 ++++++-- PubSub/synth.py | 8 ++++++-- Redis/synth.py | 8 ++++++-- Scheduler/synth.py | 8 ++++++-- SecurityCenter/synth.py | 8 ++++++-- Spanner/synth.py | 8 ++++++-- Speech/synth.py | 8 ++++++-- Talent/synth.py | 8 ++++++-- Tasks/synth.py | 8 ++++++-- TextToSpeech/synth.py | 8 ++++++-- Trace/synth.py | 8 ++++++-- VideoIntelligence/synth.py | 8 ++++++-- Vision/synth.py | 8 ++++++-- WebRisk/synth.py | 8 ++++++-- WebSecurityScanner/synth.py | 8 ++++++-- 32 files changed, 192 insertions(+), 64 deletions(-) diff --git a/Asset/synth.py b/Asset/synth.py index bd53830c0a97..e35d1b748cf3 100644 --- a/Asset/synth.py +++ b/Asset/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -62,6 +60,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( 'src/V1beta1/**/*.php', diff --git a/AutoMl/synth.py b/AutoMl/synth.py index 549e51f3e407..238fedff8db5 100644 --- a/AutoMl/synth.py +++ b/AutoMl/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/BigQueryDataTransfer/synth.py b/BigQueryDataTransfer/synth.py index c88abc7ae474..a666ea64b619 100644 --- a/BigQueryDataTransfer/synth.py +++ b/BigQueryDataTransfer/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Bigtable/synth.py b/Bigtable/synth.py index cd10bc21208e..67152e91d1bf 100644 --- a/Bigtable/synth.py +++ b/Bigtable/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -79,6 +77,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + ["src/Admin/**/*.php", "src/V*/**/*.php"], + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Container/synth.py b/Container/synth.py index c756ed1aa783..67e3a191cc2e 100644 --- a/Container/synth.py +++ b/Container/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Dataproc/synth.py b/Dataproc/synth.py index a54dd853be2c..d2faa76e65fb 100644 --- a/Dataproc/synth.py +++ b/Dataproc/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -68,6 +66,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year for client in ['ClusterController', 'JobController']: s.replace( diff --git a/Datastore/synth.py b/Datastore/synth.py index a20f961f9a69..f120f66b903e 100644 --- a/Datastore/synth.py +++ b/Datastore/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Debugger/synth.py b/Debugger/synth.py index cd4cd94550ac..d9e4e18aeb59 100644 --- a/Debugger/synth.py +++ b/Debugger/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Dialogflow/synth.py b/Dialogflow/synth.py index d09d7afbe1a2..ae502dd293bb 100644 --- a/Dialogflow/synth.py +++ b/Dialogflow/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -59,6 +57,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Dlp/synth.py b/Dlp/synth.py index f396c6e37e3b..b82e650b8dfc 100644 --- a/Dlp/synth.py +++ b/Dlp/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/ErrorReporting/synth.py b/ErrorReporting/synth.py index bd9271904eb9..40272af003eb 100644 --- a/ErrorReporting/synth.py +++ b/ErrorReporting/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Firestore/synth.py b/Firestore/synth.py index 5b1ac53385fb..c38fac6f71ec 100644 --- a/Firestore/synth.py +++ b/Firestore/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -86,6 +84,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + ["src/Admin/**/*.php", "src/V*/**/*.php"], + r"final class", + r"class") + # fix year s.replace( '**/V1beta1/Gapic/*GapicClient.php', diff --git a/Iot/synth.py b/Iot/synth.py index aa986a57887d..9d9ccf69a6f4 100644 --- a/Iot/synth.py +++ b/Iot/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -61,6 +59,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Kms/synth.py b/Kms/synth.py index 5662b800c339..c26c928a7d5a 100644 --- a/Kms/synth.py +++ b/Kms/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -55,6 +53,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix copyright year s.replace( 'src/V1/**/*Client.php', diff --git a/Language/synth.py b/Language/synth.py index 58c0f40b53c4..f61ac1d1629d 100644 --- a/Language/synth.py +++ b/Language/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -61,6 +59,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( 'src/V1beta2/**/*.php', diff --git a/Logging/synth.py b/Logging/synth.py index d8f1dd65e4ee..f30f9adf2afd 100644 --- a/Logging/synth.py +++ b/Logging/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Monitoring/synth.py b/Monitoring/synth.py index 2b822990e125..dcfcdeb79ce5 100644 --- a/Monitoring/synth.py +++ b/Monitoring/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year for client in ['GroupService', 'MetricService', 'UptimeCheckService']: s.replace( diff --git a/OsLogin/synth.py b/OsLogin/synth.py index 7f692d8b2500..812f9d8261f9 100644 --- a/OsLogin/synth.py +++ b/OsLogin/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -69,6 +67,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/**/*.php", + r"final class", + r"class") + # fix copyright year s.replace( 'src/V1beta/**/*.php', diff --git a/PubSub/synth.py b/PubSub/synth.py index a27f8146a651..d3b3ff435872 100644 --- a/PubSub/synth.py +++ b/PubSub/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Redis/synth.py b/Redis/synth.py index b0b37fd41055..15ab23ae0f16 100644 --- a/Redis/synth.py +++ b/Redis/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -76,6 +74,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Scheduler/synth.py b/Scheduler/synth.py index 43c40942b13d..d5d9fc2b3b13 100644 --- a/Scheduler/synth.py +++ b/Scheduler/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -63,6 +61,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( 'src/**/**/*.php', diff --git a/SecurityCenter/synth.py b/SecurityCenter/synth.py index 7a16ba5f4873..c641e80e2708 100644 --- a/SecurityCenter/synth.py +++ b/SecurityCenter/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( 'src/**/**/*.php', diff --git a/Spanner/synth.py b/Spanner/synth.py index 73892176c20d..b1b7d790035f 100644 --- a/Spanner/synth.py +++ b/Spanner/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -97,6 +95,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + ["src/Admin/**/*.php", "src/V*/**/*.php"], + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Speech/synth.py b/Speech/synth.py index d058d9bcec22..128160ac087a 100644 --- a/Speech/synth.py +++ b/Speech/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -63,6 +61,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Talent/synth.py b/Talent/synth.py index c3f8d979fecc..23d820d7868b 100644 --- a/Talent/synth.py +++ b/Talent/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Tasks/synth.py b/Tasks/synth.py index cde12676b5eb..c86b6a662921 100644 --- a/Tasks/synth.py +++ b/Tasks/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -61,6 +59,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( 'src/V2beta*/**/*.php', diff --git a/TextToSpeech/synth.py b/TextToSpeech/synth.py index 7dcce1beead7..c1679399c2b7 100644 --- a/TextToSpeech/synth.py +++ b/TextToSpeech/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -54,6 +52,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix copyright year s.replace( 'src/V1/**/*Client.php', diff --git a/Trace/synth.py b/Trace/synth.py index 1a3b00725f99..aefe046ce23e 100644 --- a/Trace/synth.py +++ b/Trace/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/VideoIntelligence/synth.py b/VideoIntelligence/synth.py index fd8bffbfe9d5..5ce56057cd60 100644 --- a/VideoIntelligence/synth.py +++ b/VideoIntelligence/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -62,6 +60,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/Vision/synth.py b/Vision/synth.py index d7ca25290e04..721edaca7a63 100644 --- a/Vision/synth.py +++ b/Vision/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/WebRisk/synth.py b/WebRisk/synth.py index 3221a44c71d9..66af6d5f72bb 100644 --- a/WebRisk/synth.py +++ b/WebRisk/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -59,6 +57,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( '**/Gapic/*GapicClient.php', diff --git a/WebSecurityScanner/synth.py b/WebSecurityScanner/synth.py index 62b18a629490..56ac80e3922c 100644 --- a/WebSecurityScanner/synth.py +++ b/WebSecurityScanner/synth.py @@ -15,8 +15,6 @@ """This script is used to synthesize generated parts of this library.""" import os -# https://github.com/googleapis/artman/pull/655#issuecomment-507784277 -os.environ["SYNTHTOOL_ARTMAN_VERSION"] = "0.29.1" import synthtool as s import synthtool.gcp as gcp import logging @@ -60,6 +58,12 @@ r"\$transportConfig, and any \$serviceAddress", r"$transportConfig, and any `$apiEndpoint`") +# prevent proto messages from being marked final +s.replace( + "src/V*/**/*.php", + r"final class", + r"class") + # fix year s.replace( 'src/**/**/*.php',