Skip to content

fix(sidekick/swift): note Discovery LRO return type - #7763

Merged
chingor13 merged 1 commit into
mainfrom
fix-issue-991
Oct 7, 2026
Merged

chingor13 merged 1 commit into
mainfrom
fix-issue-991

Conversation

@chingor13

@chingor13 chingor13 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

This change adds a standardized DocC - Note: callout to Discovery-based long-running operation polling methods in the Swift generator templates.

Unlike standard gRPC LROs which unwrap and return the target resource directly upon polling completion, Discovery-based APIs (e.g. Compute Engine) return the terminal Operation status record. The note informs developers to call the corresponding get method to obtain the modified or created resource.

Towards googleapis/google-cloud-swift#991
Generated PR: googleapis/google-cloud-swift#1373

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

Copy link
Copy Markdown
Contributor

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 updates the Swift templates (client_protocol.gotmpl and service.swift.gotmpl) to include a documentation note for Discovery-based long-running operations (LROs), clarifying that they return the terminal status object rather than the resulting resource. It also adds a comprehensive unit test, TestGenerateService_DiscoveryLRODocComments, to verify that these notes are correctly generated in both the method and protocol documentation. There are no review comments, and I have no additional feedback to provide.

@chingor13
chingor13 marked this pull request as ready for review October 6, 2026 21:11
@chingor13
chingor13 requested a review from a team as a code owner October 6, 2026 21:11
@chingor13 chingor13 changed the title docs(sidekick/swift): note Discovery LRO return type fix(sidekick/swift): note Discovery LRO return type Oct 6, 2026
Add a DocC - Note: callout to Discovery LRO methods in Swift client templates clarifying that polling returns the terminal Operation status object rather than the created resource.

Towards googleapis/google-cloud-swift#991
@chingor13
chingor13 merged commit a6ef617 into main Oct 7, 2026
83 checks passed
@chingor13
chingor13 deleted the fix-issue-991 branch October 7, 2026 16:24
hj690 pushed a commit that referenced this pull request Oct 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.48.0](v0.47.0...v0.48.0)
(2026-10-09)


### Features

* **sidekick/swift:** add doc comments for init(fromAny:)
([#7767](#7767))
([effccd5](effccd5))
* **sidekick/swift:** support ExistentialAny
([#7762](#7762))
([d8be62b](d8be62b))


### Bug Fixes

* **python:** force using tools installed pandoc binary
([#7765](#7765))
([d264768](d264768))
* **sidekick/swift:** note Discovery LRO return type
([#7763](#7763))
([a6ef617](a6ef617))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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.

2 participants