Skip to content

Commit

Permalink
chore: make package name google-cloud-monitoring-dashboards everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Jan 15, 2020
1 parent a6757d8 commit 8d344b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@


_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution(
"google-monitoring-dashboard"
"google-cloud-monitoring-dashboards"
).version


Expand Down
23 changes: 14 additions & 9 deletions packages/google-cloud-monitoring-dashboards/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@
"monitoring-dashboard", "v1", proto_path="/google/monitoring/dashboard/v1"
)

s.move(library, excludes=[
"google/cloud/monitoring/dashboard_v1/proto", # Protos (pb2s) are copied to the incorrect location
"nox.py",
"README.rst",
"setup.py",
"docs/index.rst",
])
s.move(
library,
excludes=[
"google/cloud/monitoring/dashboard_v1/proto", # Protos (pb2s) are copied to the incorrect location
"nox.py",
"README.rst",
"setup.py",
"docs/index.rst",
],
)

s.move(
library / "google/cloud/monitoring/dashboard_v1/proto",
Expand All @@ -57,11 +60,13 @@
""" Required\. The resource name of the Dashboard\. The format is ``
"projects/\{project\_id\_or\_number\}/dashboards/\{dashboard\_id\}"``""",
""" Required. The resource name of the Dashboard. The format is
``"projects/{project_id_or_number}/dashboards/{dashboard_id}"``"""
``"projects/{project_id_or_number}/dashboards/{dashboard_id}"``""",
)

# Keep cloud in package names for consistency

s.replace(
"google/**/*.py", "google-monitoring-dashboard", "google-cloud-monitoring-dashboards"
)
# ----------------------------------------------------------------------------
# Add templated files
# ----------------------------------------------------------------------------
Expand Down

0 comments on commit 8d344b0

Please sign in to comment.