diff --git a/Bigtable/.OwlBot.yaml b/Bigtable/.OwlBot.yaml index ac8294e9c4b..23450d47144 100644 --- a/Bigtable/.OwlBot.yaml +++ b/Bigtable/.OwlBot.yaml @@ -2,5 +2,5 @@ deep-copy-regex: - source: /google/bigtable/(v2)/.*-php/(.*) dest: /owl-bot-staging/Bigtable/$1/$2 - source: /google/bigtable/admin/(v2)/.*-php/(.*) - dest: /owl-bot-staging/Bigtable/$1/Admin/$2 + dest: /owl-bot-staging/Bigtable/Admin/$1/$2 api-name: Bigtable diff --git a/Bigtable/owlbot.py b/Bigtable/owlbot.py index 00fd9d596e6..a1cbbc3d093 100644 --- a/Bigtable/owlbot.py +++ b/Bigtable/owlbot.py @@ -43,7 +43,7 @@ ) # First copy the Bigtable Admin -admin_library = Path(f"../{php.STAGING_DIR}/Bigtable/v2/Admin").resolve() +admin_library = Path(f"../{php.STAGING_DIR}/Bigtable/Admin/v2").resolve() # copy gapic src, samples, and tests s.move(admin_library / f'src', 'src/Admin', merge=preserve_copyright_year) @@ -54,3 +54,16 @@ s.move(admin_library / f'proto/src/Google/Cloud/Bigtable', f'src/', merge=preserve_copyright_year) s.move(admin_library / f'proto/src/GPBMetadata/Google/Bigtable', f'metadata/', merge=preserve_copyright_year) +# format generated clients +subprocess.run([ + 'npm', + 'exec', + '--yes', + '--package=@prettier/plugin-php@^0.19', + '--', + 'prettier', + '**/Client/*', + '--write', + '--parser=php', + '--single-quote', + '--print-width=120'])