Skip to content

Commit 7255bd1

Browse files
authored
Assorted synth fixups / cleanups (#6400)
* Asset: Replace 'stable' -> 'latest' in docs links, caused by out-of-date synth. * AutoML: fix copying generated docs. * Bigtable: remove now-spurious fixup from 'synth.py'. * DLP: remove now-spurious fixups from 'synth.py'. * Monitoring: remove now-spurious fixups from 'synth.py'. * Redis: remove now-spurious fixups from 'synth.py'. * Speech: remove now-spurious fixups from 'synth.py'.
1 parent 83db4cd commit 7255bd1

File tree

1 file changed

+0
-20
lines changed
  • packages/google-cloud-monitoring

1 file changed

+0
-20
lines changed

packages/google-cloud-monitoring/synth.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@
3737
]
3838
s.copy(v3_library, excludes=excludes)
3939

40-
# Correct calls to routing_header
41-
# https://github.com/googleapis/gapic-generator/issues/2016
42-
s.replace(
43-
"google/cloud/*/gapic/*_client.py",
44-
"routing_header\(",
45-
"routing_header.to_grpc_metadata(")
46-
4740
# metadata in tests in none but should be empty list.
4841
# https://github.com/googleapis/gapic-generator/issues/2014
4942
s.replace(
@@ -54,19 +47,6 @@
5447
' metadata = []\n'
5548
' metadata = list(metadata)\n')
5649

57-
58-
# empty objects trying to get attrs
59-
# https://github.com/googleapis/gapic-generator/issues/2015
60-
s.replace(
61-
"google/cloud/*/gapic/*_client.py",
62-
"(^ )(routing_header = google.api_core.gapic_v1.routing_header"
63-
".to_grpc_metadata\(\n)"
64-
"(\s+)(\[\('[a-z\_]*?\.name', )([a-z\_]*?)(.name\)\], \)\n)"
65-
"(\s+metadata.append\(routing_header\)\n)",
66-
"\g<1>if hasattr(\g<5>, 'name'):\n"
67-
"\g<1> \g<2>\g<3> \g<4>\g<5>\g<6> \g<7>"
68-
)
69-
7050
# Issues exist where python files should defined the source encoding
7151
# https://github.com/googleapis/gapic-generator/issues/2097
7252
files = ['google/cloud/monitoring_v3/proto/common_pb2.py']

0 commit comments

Comments
 (0)