Skip to content

Commit

Permalink
chore: Use latest artman version and remove final keyword (#2274)
Browse files Browse the repository at this point in the history
* chore: Use latest artman version and remove final keyword

* address review
  • Loading branch information
dwsupplee authored Aug 28, 2019
1 parent 92a5dd0 commit f98eaca
Show file tree
Hide file tree
Showing 32 changed files with 192 additions and 64 deletions.
8 changes: 6 additions & 2 deletions Asset/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions AutoMl/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions BigQueryDataTransfer/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Bigtable/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Container/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Dataproc/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down
8 changes: 6 additions & 2 deletions Datastore/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Debugger/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Dialogflow/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Dlp/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions ErrorReporting/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Firestore/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Iot/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Kms/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Language/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Logging/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 6 additions & 2 deletions Monitoring/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down
8 changes: 6 additions & 2 deletions OsLogin/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
Loading

0 comments on commit f98eaca

Please sign in to comment.