Skip to content

chore: librarian generate pull request: 20260311T100338Z#16068

Closed
parthea wants to merge 2 commits intomainfrom
librarian-20260311T100338Z
Closed

chore: librarian generate pull request: 20260311T100338Z#16068
parthea wants to merge 2 commits intomainfrom
librarian-20260311T100338Z

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented Mar 11, 2026

PR created by the Librarian CLI to generate Cloud Client Libraries code from protos.

BEGIN_COMMIT

BEGIN_NESTED_COMMIT
feat: Update Compute Engine v1beta API to revision 20260227 (#1164)

PiperOrigin-RevId:
Library-IDs: google-cloud-compute-v1beta
Source-link: googleapis/googleapis@c7dbec55
END_NESTED_COMMIT

END_COMMIT

This pull request is generated with proto changes between
googleapis/googleapis@e8a3d842
(exclusive) and
googleapis/googleapis@c7dbec55
(inclusive).

Librarian Version: v1.0.2-0.20260309131826-42ac5c451239
Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:160860d189ff1c2f7515638478823712fa5b243e27ccc33a2728669fa1e2ed0c

@parthea parthea requested review from a team as code owners March 11, 2026 10:05
@snippet-bot
Copy link

snippet-bot bot commented Mar 11, 2026

Here is the summary of changes.

You are about to add 22 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@parthea parthea closed this Mar 11, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates the latest updates from the Compute Engine v1beta API protos into the Python client libraries. It expands the API surface by introducing new listing and version retrieval functionalities for various resources, along with new data models to support these additions. The changes ensure the client library remains synchronized with the upstream API definitions.

Highlights

  • API Update: Updated the Compute Engine v1beta API to revision 20260227, incorporating the latest proto definitions.
  • New Methods Added: Introduced AggregatedList methods for RegionHealthCheckServices and RegionNotificationEndpoints, and GetVersion methods for ReservationSlots and ReservationSubBlocks.
  • New Data Types: Added several new data types and structures, including BackendServiceDynamicForwardingForwardProxy, GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus, InstanceGroupManagerStatusAcceleratorTopology, NotificationEndpointAggregatedList, HealthCheckServiceAggregatedList, HealthCheckServicesScopedList, HealthSource, HealthSourceAggregatedList, HealthSourceList, HealthSourcesScopedList, CompositeHealthCheck, CompositeHealthCheckAggregatedList, CompositeHealthCheckList, CompositeHealthChecksScopedList, GetVersionOperationMetadata, GetVersionOperationMetadataSbomInfo, GetVersionReservationSlotRequest, and GetVersionReservationSubBlockRequest.
  • New Services: Added new client services, pagers, and transports for RegionCompositeHealthChecks and RegionHealthSources.
Changelog
  • .librarian/state.yaml
    • Updated the last_generated_commit for google-cloud-compute and google-cloud-compute-v1beta to reflect the latest code generation.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/init.py
    • Added new request and response types to the module's __all__ export list.
    • Included new types in the _get_version function's lookup dictionary.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_metadata.json
    • Added AggregatedList RPC methods for RegionHealthCheckServices and RegionNotificationEndpoints.
    • Added GetVersion RPC methods for ReservationSlots and ReservationSubBlocks.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/client.py
    • Implemented the aggregated_list method to retrieve a paginated list of HealthCheckService resources.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/pagers.py
    • Added AggregatedListPager for iterating through aggregated_list responses for RegionHealthCheckServices.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/transports/base.py
    • Added aggregated_list to the list of wrapped methods and properties.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/transports/rest.py
    • Added REST interceptors for aggregated_list operations.
    • Implemented the REST transport for the aggregated_list method.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/transports/rest_base.py
    • Added base REST transport definitions for the aggregated_list method.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/client.py
    • Implemented the aggregated_list method to retrieve a paginated list of NotificationEndpoint resources.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/pagers.py
    • Added AggregatedListPager for iterating through aggregated_list responses for RegionNotificationEndpoints.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/transports/base.py
    • Added aggregated_list to the list of wrapped methods and properties.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/transports/rest.py
    • Added REST interceptors for aggregated_list operations.
    • Implemented the REST transport for the aggregated_list method.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/transports/rest_base.py
    • Added base REST transport definitions for the aggregated_list method.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_slots/client.py
    • Implemented get_version_unary and get_version methods to retrieve SBOM versions of reservation slots.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_slots/transports/base.py
    • Added get_version to the list of wrapped methods and properties.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_slots/transports/rest.py
    • Added REST interceptors for get_version operations.
    • Implemented the REST transport for the get_version method.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_slots/transports/rest_base.py
    • Added base REST transport definitions for the get_version method.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_sub_blocks/client.py
    • Implemented get_version_unary and get_version methods to retrieve SBOM versions of reservation sub-blocks.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_sub_blocks/transports/base.py
    • Added get_version to the list of wrapped methods and properties.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_sub_blocks/transports/rest.py
    • Added REST interceptors for get_version operations.
    • Implemented the REST transport for the get_version method.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_sub_blocks/transports/rest_base.py
    • Added base REST transport definitions for the get_version method.
  • packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/init.py
    • Added new request and response types to the module's __all__ export list.
    • Included new types in the _get_version function's lookup dictionary.
  • packages/google-cloud-compute-v1beta/samples/generated_samples/compute_v1beta_generated_region_health_check_services_aggregated_list_sync.py
    • Added a new sample for RegionHealthCheckServices.AggregatedList.
  • packages/google-cloud-compute-v1beta/samples/generated_samples/compute_v1beta_generated_region_notification_endpoints_aggregated_list_sync.py
    • Added a new sample for RegionNotificationEndpoints.AggregatedList.
  • packages/google-cloud-compute-v1beta/samples/generated_samples/compute_v1beta_generated_reservation_slots_get_version_sync.py
    • Added a new sample for ReservationSlots.GetVersion.
  • packages/google-cloud-compute-v1beta/samples/generated_samples/compute_v1beta_generated_reservation_sub_blocks_get_version_sync.py
    • Added a new sample for ReservationSubBlocks.GetVersion.
  • packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_backend_services.py
    • Updated test data for dynamic_forwarding to include forward_proxy.
  • packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_global_vm_extension_policies.py
    • Updated test data for rollout_status to include location_rollout_status.
  • packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_instance_group_managers.py
    • Updated test data for InstanceGroupManagerStatus to include applied_accelerator_topologies and simplified last_progress_check error structure.
  • packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_backend_services.py
    • Updated test data for dynamic_forwarding to include forward_proxy.
  • packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_health_check_services.py
    • Added new tests for aggregated_list method, including cached RPC usage, required fields, flattened arguments, error handling, interceptors, and empty calls.
  • packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_instance_group_managers.py
    • Updated test data for InstanceGroupManagerStatus to include applied_accelerator_topologies and simplified last_progress_check error structure.
  • packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_notification_endpoints.py
    • Added new tests for aggregated_list method, including cached RPC usage, required fields, flattened arguments, error handling, interceptors, and empty calls.
  • packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_reservation_slots.py
    • Added new tests for get_version and get_version_unary methods, including cached RPC usage, required fields, flattened arguments, error handling, interceptors, and empty calls.
  • packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_reservation_sub_blocks.py
    • Added new tests for get_version and get_version_unary methods, including cached RPC usage, required fields, flattened arguments, error handling, interceptors, and empty calls.
    • Updated existing tests for get and get_iam_policy to reflect changes in method signatures or test data.
  • packages/google-cloud-compute/docs/compute_v1/region_composite_health_checks.rst
    • Added new documentation for the RegionCompositeHealthChecks service.
  • packages/google-cloud-compute/docs/compute_v1/region_health_sources.rst
    • Added new documentation for the RegionHealthSources service.
  • packages/google-cloud-compute/docs/compute_v1/services_.rst
    • Updated the list of services to include region_composite_health_checks and region_health_sources.
  • packages/google-cloud-compute/google/cloud/compute/init.py
    • Imported RegionCompositeHealthChecksClient and RegionHealthSourcesClient.
    • Added new request and response types to the module's __all__ export list.
  • packages/google-cloud-compute/google/cloud/compute_v1/init.py
    • Imported RegionCompositeHealthChecksClient and RegionHealthSourcesClient.
    • Added new request and response types to the module's __all__ export list.
  • packages/google-cloud-compute/google/cloud/compute_v1/gapic_metadata.json
    • Added metadata for the new RegionCompositeHealthChecks and RegionHealthSources services, including their RPC methods.
    • Updated metadata for RegionHealthCheckServices, RegionNotificationEndpoints, ReservationSlots, and ReservationSubBlocks to include new methods.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_composite_health_checks/init.py
    • Added new module for RegionCompositeHealthChecks client.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_composite_health_checks/client.py
    • Added new client for RegionCompositeHealthChecks with aggregated_list, delete, get, insert, list, patch, and test_iam_permissions methods.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_composite_health_checks/pagers.py
    • Added AggregatedListPager and ListPager for RegionCompositeHealthChecks.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_composite_health_checks/transports/README.rst
    • Added README for RegionCompositeHealthChecks transports.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_composite_health_checks/transports/init.py
    • Added RegionCompositeHealthChecks transport initialization.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_composite_health_checks/transports/base.py
    • Added base transport class for RegionCompositeHealthChecks.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_composite_health_checks/transports/rest.py
    • Added REST transport and interceptors for RegionCompositeHealthChecks.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_composite_health_checks/transports/rest_base.py
    • Added base REST transport definitions for RegionCompositeHealthChecks.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_sources/init.py
    • Added new module for RegionHealthSources client.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_sources/client.py
    • Added new client for RegionHealthSources with aggregated_list, delete, get, insert, list, patch, and test_iam_permissions methods.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_sources/pagers.py
    • Added AggregatedListPager and ListPager for RegionHealthSources.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_sources/transports/README.rst
    • Added README for RegionHealthSources transports.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_sources/transports/init.py
    • Added RegionHealthSources transport initialization.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_sources/transports/base.py
    • Added base transport class for RegionHealthSources.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_sources/transports/rest.py
    • Added REST transport and interceptors for RegionHealthSources.
  • packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_sources/transports/rest_base.py
    • Added base REST transport definitions for RegionHealthSources.
Activity
  • The pull request was automatically generated by the Librarian CLI.
  • The primary purpose is to update the Cloud Client Libraries code for Compute Engine v1beta based on recent proto changes.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request contains auto-generated code from protos. The review has identified a few issues in the generated code, including incorrect docstrings for some client methods and a potential bug in the test generator that seems to be overwriting existing tests, leading to a loss of test coverage. These issues should be addressed in the generator to improve the quality of future generated code.

req.return_value = response_value
req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"}
client.get(request)
client.get_iam_policy(request)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The test function test_get_rest_bad_request is incorrectly modified to call client.get_iam_policy(request) instead of client.get(request). This makes the test name misleading and, more importantly, it appears that the test coverage for the get method's bad request scenario has been lost. This seems to be part of a pattern in this file where tests for one method are being overwritten by tests for another, which is a significant issue with the test generation process.

Comment on lines +951 to +953
google.api_core.extended_operation.ExtendedOperation:
An object representing a extended
long-running operation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The docstring for get_version_unary incorrectly states that the method returns a google.api_core.extended_operation.ExtendedOperation. The method's return type hint is compute.Operation, and it indeed returns a raw compute.Operation object. The docstring should be updated to match the actual return type for consistency and clarity.

Comment on lines +1133 to +1135
google.api_core.extended_operation.ExtendedOperation:
An object representing a extended
long-running operation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The docstring for get_version_unary incorrectly states that the method returns a google.api_core.extended_operation.ExtendedOperation. The method's return type hint is compute.Operation, and it indeed returns a raw compute.Operation object. The docstring should be updated to match the actual return type for consistency and clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant