GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: librarian generate pull request: 20260225T153855Z by parthea · Pull Request #15610 · googleapis/google-cloud-python

Conversation

@parthea

@parthea parthea commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

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

BEGIN_COMMIT

BEGIN_NESTED_COMMIT
feat: Update Compute Engine v1 API to revision 20260106 (#1148)

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

END_COMMIT

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

Librarian Version: v0.7.0
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.

All reactions
@parthea
feat: generate libraries
92f136a
@parthea
parthea requested review from a team as code owners February 25, 2026 15:40
@gemini-code-assist

gemini-code-assist Bot commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @parthea, 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 updates the Google Cloud Compute Engine client library to align with the latest API revision. The primary impact is the introduction of new instance flexibility policy types, which are now exposed in the client library and covered by an updated unit test. This ensures that the client library remains current with the underlying service API.

Highlights

  • Compute Engine API Update: The Google Cloud Compute Engine v1 API has been updated to revision 20260106, incorporating the latest changes from the upstream Google APIs repository.
  • New Instance Flexibility Policies: New types InstanceFlexibilityPolicy and InstanceFlexibilityPolicyInstanceSelection have been introduced across the google-cloud-compute and google-cloud-compute_v1 client libraries, enhancing instance management capabilities.
  • Automated Client Library Generation: This pull request was automatically generated by the Librarian CLI tool to reflect the updated API definitions in the client libraries.
  • Unit Test Coverage: A unit test for RegionInstances was updated to include the new instance_flexibility_policy in a bulk_insert_instance_resource_resource request, ensuring proper functionality.
Changelog
  • .librarian/state.yaml
    • Updated the last_generated_commit hash for the google-cloud-compute library to reflect the latest API generation.
  • packages/google-cloud-compute/google/cloud/compute/init.py
    • Added InstanceFlexibilityPolicy to the module's __all__ export list.
    • Added InstanceFlexibilityPolicyInstanceSelection to the module's __all__ export list.
  • packages/google-cloud-compute/google/cloud/compute_v1/init.py
    • Added InstanceFlexibilityPolicy to the module's __all__ export list.
    • Added InstanceFlexibilityPolicyInstanceSelection to the module's __all__ export list.
  • packages/google-cloud-compute/google/cloud/compute_v1/types/init.py
    • Added InstanceFlexibilityPolicy to the module's __all__ export list.
    • Added InstanceFlexibilityPolicyInstanceSelection to the module's __all__ export list.
  • packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instances.py
    • Updated the test_bulk_insert_rest_call_success test to include instance_flexibility_policy in the bulk_insert_instance_resource_resource payload.
Activity
  • The pull request was created by the Librarian CLI, an automated tool for generating Cloud Client Libraries code from protocol buffer definitions.
  • The generation process incorporated proto changes between googleapis/googleapis@cfe62b3c and googleapis/googleapis@d1e59aa2.
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. ↩

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gemini-code-assist[bot]
gemini-code-assist Bot reviewed Feb 25, 2026
View reviewed changes

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

Copy link
Copy Markdown
Contributor

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

This pull request contains automated changes from the Librarian CLI to update the Compute Engine v1 API client. The changes introduce new types (InstanceFlexibilityPolicy, InstanceFlexibilityPolicyInstanceSelection) and update a corresponding unit test. The changes are generally good, but I have one suggestion to improve maintainability in a test file by adhering to repository conventions for dictionary sorting.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instances.py
@@ -1693,6 +1693,7 @@ def test_bulk_insert_rest_call_success(request_type):
request_init = {"project": "sample1", "region": "sample2"}
request_init["bulk_insert_instance_resource_resource"] = {

@gemini-code-assist gemini-code-assist Bot Feb 25, 2026

Copy link
Copy Markdown
Contributor

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.

medium

The dictionary assigned to bulk_insert_instance_resource_resource relies on manual key ordering. While the new key has been inserted in the correct alphabetical position, this approach is fragile. A general rule in this repository is to prefer programmatic sorting to ensure consistency and reduce manual effort.

Consider defining the dictionary and then assigning a programmatically sorted version of it. For example:

data = {
    'count': 553,
    'instance_flexibility_policy': {'instance_selections': {}},
    'instance_properties': { ... },
    # ... other keys
}
request_init['bulk_insert_instance_resource_resource'] = dict(sorted(data.items()))

This would make the key order robust against future modifications.

References
  1. To ensure dictionary keys remain sorted without manual effort, programmatically sort the dictionary before returning it (e.g., using dict(sorted(metadata.items()))) instead of relying on manual ordering in the code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@parthea parthea assigned ohmayr Feb 25, 2026
daniel-sanche
daniel-sanche approved these changes Feb 25, 2026
View reviewed changes
@parthea
parthea merged commit d1ce4d3 into main Feb 25, 2026
23 of 24 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@parthea
parthea deleted the librarian-20260225T153855Z branch February 25, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@daniel-sanche daniel-sanche daniel-sanche approved these changes
+1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@ohmayr ohmayr

Labels

None yet

Projects

None yet

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.

3 participants

@parthea @daniel-sanche @ohmayr
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.