Skip to content

Commit e5596f4

Browse files
authored
impl(compute/v1): add Operation::to_result() (#3581)
We cannot convert `Operation` to `gax::error::Error` without data loss. This introduces a new error type to handle "the operation completed with an error", and a helper function to convert such as operation to errors.
1 parent 6867c87 commit e5596f4

File tree

5 files changed

+435
-4
lines changed

5 files changed

+435
-4
lines changed

.github/workflows/sdk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ jobs:
595595
sudo unzip -x /tmp/protoc.zip
596596
protoc --version
597597
- name: Regenerate all the code
598-
run: go run github.com/googleapis/librarian/cmd/[email protected].20251017142006-14a148302470 refreshall
598+
run: go run github.com/googleapis/librarian/cmd/[email protected].20251020204149-2c94a53f0fb5 refreshall
599599
- run: cargo fmt
600600
# If there is any difference between the generated code and the
601601
# committed code that is an error. All the inputs should be pinned,

src/generated/cloud/compute/v1/.sidekick.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ version = '0.2.0'
4444
copyright-year = '2025'
4545
package-name-override = 'google-cloud-compute-v1'
4646
per-service-features = 'true'
47-
default-features = 'instances'
48-
extra-modules = 'operation'
47+
default-features = 'instances,projects'
48+
extra-modules = 'errors,operation'
4949
'package:lro' = 'force-used=true,package=google-cloud-lro'
5050
'package:rpc' = 'force-used=true,package=google-cloud-rpc'
5151
disabled-rustdoc-warnings = "bare_urls,broken_intra_doc_links,redundant_explicit_links"

src/generated/cloud/compute/v1/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ rust-version.workspace = true
2929
[features]
3030
default = [
3131
"instances",
32+
"projects",
3233
]
3334
# Enables `client::AcceleratorTypes` and all the types it depends on.
3435
accelerator-types = []

0 commit comments

Comments
 (0)