Skip to content

Commit

Permalink
chore: use gapic-generator-python 1.2.0 (#13)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 1.2.0

PiperOrigin-RevId: 467286830

Source-Link: googleapis/googleapis@e6e875a

Source-Link: googleapis/googleapis-gen@0295ea1
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDI5NWVhMTRkOWNkNGQ0N2RkYjIzYjllYmQzOWEzMWUyMDM1ZTI4ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* workaround issue with docstring

* revert

* workaround issue with docstring

* workaround issue with docstring

* workaround issue with docstring

* regenerate

* workaround issue with docstring

* workaround issue with docstring

* workaround issue with docstring

* workaround issue with docstring

* workaround issue with docstring

* workaround issue with docstring

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored Aug 17, 2022
1 parent 945e919 commit 8add60d
Showing 1 changed file with 79 additions and 5 deletions.
84 changes: 79 additions & 5 deletions packages/google-cloud-gke-backup/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,86 @@
RestorePlans in this location""",
"""be unique within the set of RestorePlans in this location""")

# Workaround generator bug. To be fixed in
# https://github.com/googleapis/gapic-generator-python/pull/1343/files
# workaround issue with docstrings
s.replace(
library / f"tests/unit/gapic/**/*.py",
"""\n transports.BackupForGKERestTransport,""",
"",
library / f"google/cloud/**/*.py",
"""projects/\\\ \*/locations/\*\n""",
"``projects/*/locations/*``\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"""projects/\\\ \*/locations/\*/backupPlans/\\\\\*\n""",
"``projects/*/locations/*/backupPlans/*``\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"""projects/\\\ \*/locations/\*/backupPlans/\*.\n""",
"``projects/*/locations/*/backupPlans/*``.\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"""projects/\\\ \*/locations/\*/backupPlans/\*/backups/\*\n""",
"``projects/*/locations/*/backupPlans/*/backups/*``\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"""projects/\\\ \*/locations/\*/backupPlans/\*/backups/\*.\n""",
"``projects/*/locations/*/backupPlans/*/backups/*``.\n",
)

s.replace(
library / f"google/cloud/**/*.py",
"projects/\\\ \*/locations/\*/backupPlans/\*/backups/\*/volumeBackups/\\\\\*\n",
"``projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*``\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"projects/\\\ \*/locations/\*/backupPlans/\*/backups/\*/volumeBackups/\*.\n",
"``projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*``.\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"projects/\\\ \*/locations/\*/restorePlans/\\\\\*\n",
"``projects/*/locations/*/restorePlans/*``\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"projects/\\\ \*/locations/\*/restorePlans/\*.\n",
"``projects/*/locations/*/restorePlans/*``.\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"projects/\\\ \*/locations/\*/restorePlans/\*/restores/\*\n",
"``projects/*/locations/*/restorePlans/*/restores/*``\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"projects/\\\ \*/locations/\*/restorePlans/\*/restores/\*/volumeRestores/\\\\\*\n",
"``projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*``\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"projects/\\\ \*/locations/\*/restorePlans/\*/restores/\*/volumeRestores/\*.\n",
"``projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*``.\n",
)
s.replace(
library / f"google/cloud/**/*.py",
"""- projects/\\\ \*/locations/\*/clusters/\\\\\*
- projects/\\\ \*/zones/\*/clusters/\\\\\*""",
"""- ``projects/*/locations/*/clusters/*``
- ``projects/*/zones/*/clusters/*``""",
)
s.replace(
library / f"google/cloud/**/*.py",
"""- projects/\\\ \*/locations/\*/clusters/\\\\\*
- projects/\\\ \*/zones/\*/clusters/\\\\\*""",
"""- ``projects/*/locations/*/clusters/*``
- ``projects/*/zones/*/clusters/*``""",
)
s.replace(
library / f"google/cloud/**/*.py",
"""projects/\\\ \*/locations/\*/keyRings/\*/cryptoKeys/\*""",
"""``projects/*/locations/*/keyRings/*/cryptoKeys/*``""",
)

s.move(library, excludes=["google/cloud/gke_backup/", "setup.py"])
Expand Down

0 comments on commit 8add60d

Please sign in to comment.