GeezerVison is showing github.com — chore: librarian generate pull request: 20260311T101114Z by parthea · Pull Request #16069 · googleapis/google-cloud-python
Conversation
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
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
gemini-code-assist[bot] reacted with eyes emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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 Google Cloud Compute Engine v1beta API into the client library. It expands the API's capabilities by adding methods for aggregated listing of regional health check services and notification endpoints, as well as methods to retrieve software bill of materials (SBOM) versions for reservation slots and sub-blocks. These changes enhance resource management and visibility within the Compute Engine environment.
Highlights
- API Update: The Google Cloud Compute Engine v1beta API has been updated to revision 20260227, introducing new functionalities and types.
- New Aggregated List Methods: Added
aggregated_list methods for RegionHealthCheckServices and RegionNotificationEndpoints clients, allowing retrieval of all resources across regions and globally.
- New Get Version Methods: Introduced
get_version methods for ReservationSlots and ReservationSubBlocks clients, enabling retrieval of SBOM versions for these resources.
- New Data Types and Structures: Several new data types and structures were added, including
BackendServiceDynamicForwardingForwardProxy, GetVersionOperationMetadata, InstanceGroupManagerStatusAcceleratorTopology, and various AggregatedList and ScopedList types.
- Client Library Generation: The client library was automatically regenerated by the Librarian CLI to incorporate these API changes, updating configuration and source files.
- New Sample Code: New synchronous sample code snippets were added for the newly introduced
aggregated_list and get_version methods.
- Expanded Test Coverage: Unit tests were expanded to cover the new API methods and updated data structures, ensuring the correctness and functionality of the generated client.
Changelog
- .librarian/state.yaml
- Updated the
last_generated_commit for the google-cloud-compute-v1beta library to reflect the latest generation.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/init.py
- Added imports for new types:
AggregatedListRegionHealthCheckServicesRequest, AggregatedListRegionNotificationEndpointsRequest, BackendServiceDynamicForwardingForwardProxy, GetVersionOperationMetadata, GetVersionOperationMetadataSbomInfo, GetVersionReservationSlotRequest, GetVersionReservationSubBlockRequest, GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus, HealthCheckServiceAggregatedList, HealthCheckServicesScopedList, NotificationEndpointAggregatedList, NotificationEndpointsScopedList, InstanceGroupManagerStatusAcceleratorTopology, InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails, ReservationSlotsGetVersionRequest, and ReservationSubBlocksGetVersionRequest.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/gapic_metadata.json
- Added REST method configurations for
RegionHealthCheckServicesClient.AggregatedList and RegionNotificationEndpointsClient.AggregatedList.
- Added REST method configurations for
ReservationSlotsClient.GetVersion and ReservationSubBlocksClient.GetVersion.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/client.py
- Implemented the
aggregated_list method to retrieve all HealthCheckService resources.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/pagers.py
- Added
AggregatedListPager for iterating through paginated aggregated_list responses.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/transports/base.py
- Registered the
aggregated_list method in the base transport for RegionHealthCheckServices.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/transports/rest.py
- Added REST transport implementation for the
aggregated_list method, including pre- and post-RPC interceptors.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_health_check_services/transports/rest_base.py
- Defined the
_BaseAggregatedList class for the REST transport of RegionHealthCheckServices.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/client.py
- Implemented the
aggregated_list method to retrieve all NotificationEndpoint resources.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/pagers.py
- Added
AggregatedListPager for iterating through paginated aggregated_list responses.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/transports/base.py
- Registered the
aggregated_list method in the base transport for RegionNotificationEndpoints.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/transports/rest.py
- Added REST transport implementation for the
aggregated_list method, including pre- and post-RPC interceptors.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/region_notification_endpoints/transports/rest_base.py
- Defined the
_BaseAggregatedList class for the REST transport of RegionNotificationEndpoints.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_slots/client.py
- Implemented the
get_version method to retrieve SBOM versions of reservation slots.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_slots/transports/base.py
- Registered the
get_version method in the base transport for ReservationSlots.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_slots/transports/rest.py
- Added REST transport implementation for the
get_version method, including pre- and post-RPC interceptors.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_slots/transports/rest_base.py
- Defined the
_BaseGetVersion class for the REST transport of ReservationSlots.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_sub_blocks/client.py
- Implemented the
get_version method to retrieve SBOM versions of reservation sub-blocks.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_sub_blocks/transports/base.py
- Registered the
get_version method in the base transport for ReservationSubBlocks.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_sub_blocks/transports/rest.py
- Added REST transport implementation for the
get_version method, including pre- and post-RPC interceptors.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/services/reservation_sub_blocks/transports/rest_base.py
- Defined the
_BaseGetVersion class for the REST transport of ReservationSubBlocks.
- packages/google-cloud-compute-v1beta/google/cloud/compute_v1beta/types/init.py
- Added imports for new types:
AggregatedListRegionHealthCheckServicesRequest, AggregatedListRegionNotificationEndpointsRequest, BackendServiceDynamicForwardingForwardProxy, GetVersionOperationMetadata, GetVersionOperationMetadataSbomInfo, GetVersionReservationSlotRequest, GetVersionReservationSubBlockRequest, GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus, HealthCheckServiceAggregatedList, HealthCheckServicesScopedList, NotificationEndpointAggregatedList, NotificationEndpointsScopedList, ReservationSlotsGetVersionRequest, and ReservationSubBlocksGetVersionRequest.
- 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 to include
BackendServiceDynamicForwardingForwardProxy in dynamic_forwarding for insert, patch, and update REST calls.
- packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_global_vm_extension_policies.py
- Updated test data to include
location_rollout_status within rollout_status.current_rollouts for insert and update REST calls.
- packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_instance_group_managers.py
- Updated test data to include
applied_accelerator_topologies and simplified last_progress_check for insert, patch, and update REST calls.
- packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_backend_services.py
- Updated test data to include
BackendServiceDynamicForwardingForwardProxy in dynamic_forwarding for insert, patch, and update REST calls.
- packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_health_check_services.py
- Added comprehensive unit tests for the new
aggregated_list method, covering caching, required fields, flattening, pagination, error handling, and interceptors.
- Updated
test_region_health_check_services_base_transport to include aggregated_list.
- packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_instance_group_managers.py
- Updated test data to include
applied_accelerator_topologies and simplified last_progress_check for insert, patch, and update REST calls.
- packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_region_notification_endpoints.py
- Added comprehensive unit tests for the new
aggregated_list method, covering caching, required fields, flattening, pagination, error handling, and interceptors.
- Updated
test_region_notification_endpoints_base_transport to include aggregated_list.
- packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_reservation_slots.py
- Added comprehensive unit tests for the new
get_version method, covering caching, required fields, flattening, error handling, and interceptors for both unary and extended operations.
- Updated
test_reservation_slots_base_transport to include get_version.
- packages/google-cloud-compute-v1beta/tests/unit/gapic/compute_v1beta/test_reservation_sub_blocks.py
- Added comprehensive unit tests for the new
get_version method, covering caching, required fields, flattening, error handling, and interceptors for both unary and extended operations.
- Updated
test_reservation_sub_blocks_base_transport to include get_version.
- Modified existing
get_iam_policy test cases to align with the new method additions and ensure correct testing of the get_version functionality.
Activity
- The pull request was automatically generated by the Librarian CLI, indicating an automated update process based on new proto definitions.
- No human comments or reviews have been recorded for this pull request yet.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request introduces new API methods and corresponding client library code for google-cloud-compute-v1beta. This includes new aggregated_list methods for RegionHealthCheckServices and RegionNotificationEndpoints, and get_version methods for ReservationSlots and ReservationSubBlocks. The changes also involve updating __init__.py files to expose new types, modifying gapic_metadata.json to reflect the new RPCs, and adding comprehensive unit tests for the new functionality. The generated code appears consistent with standard client library patterns and includes appropriate handling for request parameters, routing, and response paging/extended operations. The test updates are thorough, covering various scenarios including cached RPCs, required fields, flattened parameters, error handling, and interceptors, which is crucial for maintaining code quality and robustness.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
ohmayr
ohmayr approved these changes
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|