Skip to content

Commit 4d2dffd

Browse files
authored
Merge branch 'main' into onboard-google-cloud-gke-hub
2 parents 20d37b2 + 531a400 commit 4d2dffd

File tree

227 files changed

+265
-559
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+265
-559
lines changed

.generator/cli.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def handle_configure(
228228
source: str = SOURCE_DIR,
229229
repo: str = REPO_DIR,
230230
input: str = INPUT_DIR,
231+
output: str = OUTPUT_DIR
231232
):
232233
"""Onboards a new library by completing its configuration.
233234
@@ -248,6 +249,8 @@ def handle_configure(
248249
the config.yaml.
249250
input(str): The path to the directory in the container
250251
which contains additional generator input.
252+
output(str): Path to the directory in the container where code
253+
should be generated.
251254
252255
Raises:
253256
ValueError: If configuring a new library fails.
@@ -256,6 +259,12 @@ def handle_configure(
256259
# configure-request.json contains the library definitions.
257260
request_data = _read_json_file(f"{librarian}/{CONFIGURE_REQUEST_FILE}")
258261
new_library_config = _get_new_library_config(request_data)
262+
263+
_update_global_changelog(
264+
f"{repo}/CHANGELOG.md",
265+
f"{output}/CHANGELOG.md",
266+
[new_library_config],
267+
)
259268
prepared_config = _prepare_new_library_config(new_library_config)
260269

261270
# Write the new library configuration to configure-response.json.
@@ -1207,7 +1216,7 @@ def _process_changelog(
12071216

12081217
# Group changes by type (e.g., feat, fix, docs)
12091218
type_key = "type"
1210-
source_commit_hash_key = "source_commit_hash"
1219+
commit_hash_key = "commit_hash"
12111220
subject_key = "subject"
12121221
body_key = "body"
12131222
library_changes.sort(key=lambda x: x[type_key])
@@ -1224,7 +1233,7 @@ def _process_changelog(
12241233
if adjusted_change_type in change_type_map:
12251234
entry_parts.append(f"\n\n### {change_type_map[adjusted_change_type]}\n")
12261235
for change in library_changes:
1227-
commit_link = f"([{change[source_commit_hash_key]}]({_REPO_URL}/commit/{change[source_commit_hash_key]}))"
1236+
commit_link = f"([{change[commit_hash_key]}]({_REPO_URL}/commit/{change[commit_hash_key]}))"
12281237
entry_parts.append(
12291238
f"* {change[subject_key]} {change[body_key]} {commit_link}"
12301239
)
@@ -1418,6 +1427,7 @@ def handle_release_init(
14181427
source=args.source,
14191428
repo=args.repo,
14201429
input=args.input,
1430+
output=args.output,
14211431
)
14221432
elif args.command == "generate":
14231433
args.func(

.generator/test_cli.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,28 +83,28 @@
8383
"subject": "add new UpdateRepository API",
8484
"body": "This adds the ability to update a repository's properties.",
8585
"piper_cl_number": "786353207",
86-
"source_commit_hash": "9461532e7d19c8d71709ec3b502e5d81340fb661",
86+
"commit_hash": "9461532e7d19c8d71709ec3b502e5d81340fb661",
8787
},
8888
{
8989
"type": "fix",
9090
"subject": "some fix",
9191
"body": "some body",
9292
"piper_cl_number": "786353208",
93-
"source_commit_hash": "1231532e7d19c8d71709ec3b502e5d81340fb661",
93+
"commit_hash": "1231532e7d19c8d71709ec3b502e5d81340fb661",
9494
},
9595
{
9696
"type": "fix",
9797
"subject": "another fix",
9898
"body": "",
9999
"piper_cl_number": "786353209",
100-
"source_commit_hash": "1241532e7d19c8d71709ec3b502e5d81340fb661",
100+
"commit_hash": "1241532e7d19c8d71709ec3b502e5d81340fb661",
101101
},
102102
{
103103
"type": "docs",
104104
"subject": "fix typo in BranchRule comment",
105105
"body": "",
106106
"piper_cl_number": "786353210",
107-
"source_commit_hash": "9461532e7d19c8d71709ec3b502e5d81340fb661",
107+
"commit_hash": "9461532e7d19c8d71709ec3b502e5d81340fb661",
108108
},
109109
]
110110

@@ -287,6 +287,7 @@ def mock_state_file(tmp_path, monkeypatch):
287287

288288
def test_handle_configure_success(mock_configure_request_file, mocker):
289289
"""Tests the successful execution path of handle_configure."""
290+
mocker.patch("cli._update_global_changelog", return_value=None)
290291
mock_write_json = mocker.patch("cli._write_json_file")
291292
mock_prepare_config = mocker.patch(
292293
"cli._prepare_new_library_config", return_value={"id": "prepared"}

.librarian/generator-input/client-post-processing/remove-erroneous-client.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.librarian/state.yaml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ libraries:
112112
last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1
113113
apis:
114114
- path: google/apps/card/v1
115-
service_config: ""
115+
service_config: ''
116116
source_roots:
117117
- packages/google-apps-card
118118
preserve_regex:
@@ -271,7 +271,7 @@ libraries:
271271
- path: google/identity/accesscontextmanager/v1
272272
service_config: accesscontextmanager_v1.yaml
273273
- path: google/identity/accesscontextmanager/type
274-
service_config: ""
274+
service_config: ''
275275
source_roots:
276276
- packages/google-cloud-access-context-manager
277277
preserve_regex: []
@@ -463,7 +463,7 @@ libraries:
463463
last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1
464464
apis:
465465
- path: google/appengine/logging/v1
466-
service_config: ""
466+
service_config: ''
467467
source_roots:
468468
- packages/google-cloud-appengine-logging
469469
preserve_regex:
@@ -883,7 +883,7 @@ libraries:
883883
last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1
884884
apis:
885885
- path: google/cloud/bigquery/logging/v1
886-
service_config: ""
886+
service_config: ''
887887
source_roots:
888888
- packages/google-cloud-bigquery-logging
889889
preserve_regex:
@@ -2013,7 +2013,7 @@ libraries:
20132013
last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1
20142014
apis:
20152015
- path: google/iam/v1/logging
2016-
service_config: ""
2016+
service_config: ''
20172017
source_roots:
20182018
- packages/google-cloud-iam-logging
20192019
preserve_regex:
@@ -3228,7 +3228,7 @@ libraries:
32283228
last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1
32293229
apis:
32303230
- path: google/devtools/source/v1
3231-
service_config: ""
3231+
service_config: ''
32323232
source_roots:
32333233
- packages/google-cloud-source-context
32343234
preserve_regex:
@@ -4312,7 +4312,7 @@ libraries:
43124312
last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1
43134313
apis:
43144314
- path: google/shopping/type
4315-
service_config: ""
4315+
service_config: ''
43164316
source_roots:
43174317
- packages/google-shopping-type
43184318
preserve_regex:
@@ -4336,11 +4336,11 @@ libraries:
43364336
- path: google/cloud/location
43374337
service_config: cloud.yaml
43384338
- path: google/logging/type
4339-
service_config: ""
4339+
service_config: ''
43404340
- path: google/rpc
43414341
service_config: rpc_publish.yaml
43424342
- path: google/rpc/context
4343-
service_config: ""
4343+
service_config: ''
43444344
- path: google/type
43454345
service_config: type.yaml
43464346
source_roots:
@@ -4390,6 +4390,26 @@ libraries:
43904390
remove_regex:
43914391
- packages/google-cloud-gke-hub
43924392
tag_format: '{id}-v{version}'
4393+
- id: google-cloud-monitoring-dashboards
4394+
version: 2.19.0
4395+
last_generated_commit: d300b151a973ce0425ae4ad07b3de957ca31bec6
4396+
apis:
4397+
- path: google/monitoring/dashboard/v1
4398+
source_roots:
4399+
- packages/google-cloud-monitoring-dashboards
4400+
preserve_regex:
4401+
- packages/google-cloud-monitoring-dashboards/CHANGELOG.md
4402+
- docs/CHANGELOG.md
4403+
- docs/README.rst
4404+
- samples/README.txt
4405+
- scripts/client-post-processing
4406+
- samples/snippets/README.rst
4407+
- tests/system
4408+
- packages/google-cloud-monitoring-dashboards/google/monitoring
4409+
- tests/unit/gapic/dashboard_v1
4410+
remove_regex:
4411+
- packages/google-cloud-monitoring-dashboards
4412+
tag_format: '{id}-v{version}'
43934413
- id: google-cloud-gke-multicloud
43944414
version: 0.6.22
43954415
last_generated_commit: d300b151a973ce0425ae4ad07b3de957ca31bec6

.release-please-manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"packages/google-cloud-bigquery-storage": "2.33.1",
33
"packages/google-cloud-dialogflow-cx": "2.0.0",
44
"packages/google-cloud-gke-hub": "1.19.0",
5-
"packages/google-cloud-iam": "2.20.0",
65
"packages/google-cloud-monitoring-dashboards": "2.19.0",
76
"packages/google-cloud-org-policy": "1.14.0",
87
"packages/grpc-google-iam-v1": "0.14.3"

packages/google-ads-admanager/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Supported Python Versions
6161
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6262
Python.
6363

64-
Python >= 3.7
64+
Python >= 3.7, including 3.14
6565

6666
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6767
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches

packages/google-ads-marketingplatform-admin/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Supported Python Versions
6161
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6262
Python.
6363

64-
Python >= 3.7
64+
Python >= 3.7, including 3.14
6565

6666
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6767
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches

packages/google-ai-generativelanguage/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Supported Python Versions
6161
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6262
Python.
6363

64-
Python >= 3.7
64+
Python >= 3.7, including 3.14
6565

6666
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6767
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches

packages/google-analytics-admin/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Supported Python Versions
6161
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6262
Python.
6363

64-
Python >= 3.7
64+
Python >= 3.7, including 3.14
6565

6666
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6767
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches

packages/google-analytics-data/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Supported Python Versions
6161
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6262
Python.
6363

64-
Python >= 3.7
64+
Python >= 3.7, including 3.14
6565

6666
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6767
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches

0 commit comments

Comments
 (0)