Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate library for google/devtools/cloudbuild/v1 #780

Closed
3 tasks done
coryan opened this issue Jan 22, 2025 · 0 comments · Fixed by #878
Closed
3 tasks done

Generate library for google/devtools/cloudbuild/v1 #780

coryan opened this issue Jan 22, 2025 · 0 comments · Fixed by #878
Assignees
Labels
api: cloudbuild Issues related to the Cloud Build API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@coryan
Copy link
Contributor

coryan commented Jan 22, 2025

Blocked by


Generate with:

cargo new --lib --vcs none src/generated/devtools/cloudbuild/v1
taplo fmt Cargo.toml
go -C generator/ run ./cmd/sidekick generate     -project-root ..     -specification-source google/devtools/cloudbuild/v1     -service-config google/devtools/cloudbuild/v1/cloudbuild_v1.yaml -output src/generated/devtools/cloudbuild/v1
cargo fmt

The library has LRO-looking things, but the code does not compile:

$ cargo build
   Compiling gcp-sdk-devtools-cloudbuild-v1 v0.1.0 (/Users/coryan/google-cloud-rust/src/generated/devtools/cloudbuild/v1)
error[E0433]: failed to resolve: use of undeclared type `GetOperation`
  --> src/generated/devtools/cloudbuild/v1/src/builders.rs:92:30
   |
92 |                     let op = GetOperation::new(stub)
   |                              ^^^^^^^^^^^^ use of undeclared type `GetOperation`
   |
help: a type alias with a similar name exists
   |
92 |                     let op = Operation::new(stub)
   |                              ~~~~~~~~~
help: consider importing this struct
   |
18 +     use longrunning::builders::operations::GetOperation;
   |
@coryan coryan added api: cloudbuild Issues related to the Cloud Build API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jan 22, 2025
@coryan coryan assigned coryan and unassigned coryan Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudbuild Issues related to the Cloud Build API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant