From 2522228557538dda9ca7d34e7028e0eae7de5720 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Mon, 3 Feb 2020 09:50:06 -0500 Subject: [PATCH] chore: fix breaking change in errorreporting gapic --- ErrorReporting/synth.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ErrorReporting/synth.py b/ErrorReporting/synth.py index 94e4c78aa640..8b90e47a5742 100644 --- a/ErrorReporting/synth.py +++ b/ErrorReporting/synth.py @@ -73,6 +73,28 @@ r'Copyright \d{4}', 'Copyright 2018') +# fix renamed gapic formatting method. +s.replace( + 'src/V1beta1/Gapic/ErrorGroupServiceGapicClient.php', + r'\/\*\*\n\s{5}\* Formats a string containing the fully-qualified path to represent\n\s{5}\* a error_group resource.', + """/** + * Formats a string containing the fully-qualified path to represent + * an error_group resource. + * + * @deprecated use {@see Google\\\\Cloud\\\\ErrorReporting\\\\V1beta1\\\\Gapic\\\\ErrorGroupServiceGapicClient::errorGroupName()}. + * @param string $project + * @param string $group + * @return string the formatted error_group resource. + */ + public static function groupName($project, $group) { + return self::errorGroupName($project, $group); + } + + /** + * Formats a string containing the fully-qualified path to represent + * a error_group resource.""" +) + ### [START] protoc backwards compatibility fixes # roll back to private properties.