Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: add minimum wrapper for compute LRO method #618

Merged
merged 13 commits into from
Sep 13, 2021
Merged

Conversation

summer-ji-eng
Copy link
Contributor

@summer-ji-eng summer-ji-eng commented Sep 7, 2021

Owlbot is not ready to use at this moment. Manual copy paste the generated source code.

@google-cloud/gapic-generator v2.5.0
gapic-generator-typescript enables diregapic (compute) library add a minimum wrapper for LRO operation googleapis/gapic-generator-typescript#967

Manually update the surface using the v2.5.0 generator.

System-test failed on the LRO change, because it referred to the google.cloud.compute.v1.Operation.targetLink where we don't expose in the wrapper. To fix it, we refer to insertOp.latestResponse.targetLink
instanceTemplate: insertOp.targetLink, -> instanceTemplate: insertOp.latestResponse.targetLink,

Alternative approach is add targetLink in the wrapper PR. However, the gax Operation has no this field. The downside is we could not remove this field once it publish because it will be a breaking change.

@summer-ji-eng summer-ji-eng requested review from a team as code owners September 7, 2021 23:36
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 7, 2021
@product-auto-label product-auto-label bot added the api: compute Issues related to the googleapis/nodejs-compute API. label Sep 7, 2021
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

With a nit, we don't need to manually update version #s.

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

accidentally checked in google-cloud-compute-3.0.0.tgz.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: compute Issues related to the googleapis/nodejs-compute API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants