Skip to content

Commit d033789

Browse files
authored
chore: complete migration of google-cloud-monitoring-dashboards (#16692)
This requires a new string replacement to avoid a diff in docs/index.rst. (When we audit all the post-processing later, we may decide that the diff is actually beneficial; that's outside the scope of migration.) Fixes googleapis/librarian#5339 Note that this has an approach of "minimal diff" - #11858 suggests that we remove a stale directory, and we can do that separately from the migration.
1 parent bdd1cc5 commit d033789

File tree

3 files changed

+48
-48
lines changed

3 files changed

+48
-48
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
description: Preserve original index.rst
15+
# Note that we may want to remove the stale directory entirely, at which point
16+
# this file can be deleted too.
17+
url: https://github.com/googleapis/google-cloud-python/issues/11858
18+
replacements:
19+
- paths: [
20+
packages/google-cloud-monitoring-dashboards/docs/index.rst
21+
]
22+
before: |
23+
.. toctree::
24+
:maxdepth: 2
25+
26+
dashboard_v1/services_
27+
dashboard_v1/types_
28+
after: |
29+
.. toctree::
30+
:maxdepth: 2
31+
32+
monitoring_dashboard_v1/services_
33+
monitoring_dashboard_v1/types_
34+
count: 1

librarian.yaml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,41 +2675,8 @@ libraries:
26752675
keep:
26762676
- CHANGELOG.md
26772677
- docs/CHANGELOG.md
2678-
- google/monitoring
2679-
- google/monitoring/dashboard
2680-
- google/monitoring/dashboard/__init__.py
2681-
- google/monitoring/dashboard/py.typed
2682-
- google/monitoring/dashboard_v1
2683-
- google/monitoring/dashboard_v1/__init__.py
2684-
- google/monitoring/dashboard_v1/gapic_version.py
2685-
- google/monitoring/dashboard_v1/py.typed
2686-
- google/monitoring/dashboard_v1/services
2687-
- google/monitoring/dashboard_v1/services/__init__.py
2688-
- google/monitoring/dashboard_v1/services/dashboards_service
2689-
- google/monitoring/dashboard_v1/services/dashboards_service/__init__.py
2690-
- google/monitoring/dashboard_v1/services/dashboards_service/async_client.py
2691-
- google/monitoring/dashboard_v1/services/dashboards_service/client.py
2692-
- google/monitoring/dashboard_v1/services/dashboards_service/pagers.py
2693-
- google/monitoring/dashboard_v1/services/dashboards_service/transports
2694-
- google/monitoring/dashboard_v1/services/dashboards_service/transports/__init__.py
2695-
- google/monitoring/dashboard_v1/services/dashboards_service/transports/base.py
2696-
- google/monitoring/dashboard_v1/services/dashboards_service/transports/grpc.py
2697-
- google/monitoring/dashboard_v1/services/dashboards_service/transports/grpc_asyncio.py
2698-
- google/monitoring/dashboard_v1/types
2699-
- google/monitoring/dashboard_v1/types/__init__.py
2700-
- google/monitoring/dashboard_v1/types/common.py
2701-
- google/monitoring/dashboard_v1/types/dashboard.py
2702-
- google/monitoring/dashboard_v1/types/dashboards_service.py
2703-
- google/monitoring/dashboard_v1/types/layouts.py
2704-
- google/monitoring/dashboard_v1/types/metrics.py
2705-
- google/monitoring/dashboard_v1/types/scorecard.py
2706-
- google/monitoring/dashboard_v1/types/text.py
2707-
- google/monitoring/dashboard_v1/types/widget.py
2708-
- google/monitoring/dashboard_v1/types/xychart.py
2709-
- tests/unit/gapic/dashboard_v1
27102678
- tests/unit/gapic/dashboard_v1/__init__.py
27112679
- tests/unit/gapic/dashboard_v1/test_dashboards_service.py
2712-
skip_generate: true
27132680
python:
27142681
opt_args_by_api:
27152682
google/monitoring/dashboard/v1:
Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
2-
"api_description": "are one way for you to view and analyze metric data. The Cloud Console provides predefined dashboards that require no setup or configuration. You can also define custom dashboards. With custom dashboards, you have complete control over the charts that are displayed and their configuration.",
3-
"api_id": "monitoring.googleapis.com",
4-
"api_shortname": "monitoring",
5-
"client_documentation": "https://cloud.google.com/python/docs/reference/monitoring-dashboards/latest",
6-
"default_version": "v1",
7-
"distribution_name": "google-cloud-monitoring-dashboards",
8-
"issue_tracker": "https://issuetracker.google.com/savedsearches/559785",
9-
"language": "python",
10-
"library_type": "GAPIC_AUTO",
11-
"name": "monitoring-dashboards",
12-
"name_pretty": "Monitoring Dashboards",
13-
"product_documentation": "https://cloud.google.com/monitoring/dashboards/",
14-
"release_level": "stable",
15-
"repo": "googleapis/google-cloud-python",
16-
"requires_billing": true
2+
"api_description": "are one way for you to view and analyze metric data. The Cloud Console provides predefined dashboards that require no setup or configuration. You can also define custom dashboards. With custom dashboards, you have complete control over the charts that are displayed and their configuration.",
3+
"api_id": "monitoring.googleapis.com",
4+
"api_shortname": "monitoring",
5+
"client_documentation": "https://cloud.google.com/python/docs/reference/monitoring-dashboards/latest",
6+
"default_version": "v1",
7+
"distribution_name": "google-cloud-monitoring-dashboards",
8+
"issue_tracker": "https://issuetracker.google.com/savedsearches/559785",
9+
"language": "python",
10+
"library_type": "GAPIC_AUTO",
11+
"name": "monitoring-dashboards",
12+
"name_pretty": "Monitoring Dashboards",
13+
"product_documentation": "https://cloud.google.com/monitoring/dashboards/",
14+
"release_level": "stable",
15+
"repo": "googleapis/google-cloud-python"
1716
}

0 commit comments

Comments
 (0)