From 7255bd1024aa33de585a026a63921de52d463860 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Wed, 7 Nov 2018 11:50:54 -0500 Subject: [PATCH] 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'. --- packages/google-cloud-monitoring/synth.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/packages/google-cloud-monitoring/synth.py b/packages/google-cloud-monitoring/synth.py index bd37e6554674..fe47809a6ee5 100644 --- a/packages/google-cloud-monitoring/synth.py +++ b/packages/google-cloud-monitoring/synth.py @@ -37,13 +37,6 @@ ] s.copy(v3_library, excludes=excludes) -# Correct calls to routing_header -# https://github.com/googleapis/gapic-generator/issues/2016 -s.replace( - "google/cloud/*/gapic/*_client.py", - "routing_header\(", - "routing_header.to_grpc_metadata(") - # metadata in tests in none but should be empty list. # https://github.com/googleapis/gapic-generator/issues/2014 s.replace( @@ -54,19 +47,6 @@ ' metadata = []\n' ' metadata = list(metadata)\n') - -# empty objects trying to get attrs -# https://github.com/googleapis/gapic-generator/issues/2015 -s.replace( - "google/cloud/*/gapic/*_client.py", - "(^ )(routing_header = google.api_core.gapic_v1.routing_header" - ".to_grpc_metadata\(\n)" - "(\s+)(\[\('[a-z\_]*?\.name', )([a-z\_]*?)(.name\)\], \)\n)" - "(\s+metadata.append\(routing_header\)\n)", - "\g<1>if hasattr(\g<5>, 'name'):\n" - "\g<1> \g<2>\g<3> \g<4>\g<5>\g<6> \g<7>" -) - # Issues exist where python files should defined the source encoding # https://github.com/googleapis/gapic-generator/issues/2097 files = ['google/cloud/monitoring_v3/proto/common_pb2.py']