GeezerVison is showing github.com — Add service methods for immutable Compute resources and tests by mziccard · Pull Request #696 · googleapis/google-cloud-java
Conversation
This PR adds spi and service methods for manipulating the following resources:
- DiskType
- MachineType
- License
- Zone
- Region
In c18730c integration tests are also added.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I think the coverage drop is the usual one we see when we add the spi layer that is only tested through ITs (which do not concur to compute the coverage).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
ImmutableList.Builder<DiskType> builder = ImmutableList.builder();
|
|
|
Map<String, DiskTypesScopedList> scopedList = aggregatedList.getItems();
|
|
|
if (scopedList != null) {
|
|
|
for (String key : scopedList.keySet()) {
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Nice work! Done with first iteration. Any reason we don't have codacy analysis here?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@aozarov I addressed the comments in ff8feb5
- Add support for filters:
filter method to options + filter classes
- Removed unnecessary fields + added missing ones
- Removed redundant "throws" from method signatures
- Add static method in
DefaultComputeRpc to handle the NOT_FOUND case
I also had to add dedicated option classes for aggregated lists as fields option is not completely supported (see #711).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
private final ComparisonOperator operator;
|
|
|
private final Object value;
|
|
|
|
|
|
enum ComparisonOperator {
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Looks good. Few minor comments. Feel free to merge after they are resolved.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- Add missing resource fields and remove non-needed ones
- Add selector classes and selector options
- Add dedicated option classes for aggregated options
- Remove unnecessary "throws" from method signature
- Add static function to handle 404 exceptions
mziccard
added a commit
that referenced
this pull request
Mar 8, 2016
Add service methods for immutable Compute resources and tests
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 1, 2022
Making CLIRR not required. The version bumps are now controlled by the Release Please and OwlBot. The CL authors create appropriate change description to control major version bumps.
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 11, 2026
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
suztomo
pushed a commit
that referenced
this pull request
Mar 30, 2026
* changes without context
autosynth cannot find the source of changes triggered by earlier changes in this
repository, or by version upgrades to tools such as linters.
* chore(java): remove readme autosynth job config
README generation is now handled by owlbot
Source-Author: Jeff Ching <[email protected]>
Source-Date: Wed Sep 8 12:11:28 2021 -0700
Source-Repo: googleapis/synthtool
Source-Sha: df5093b950d4aafd49a4c7758d74c44485263ada
Source-Link: googleapis/synthtool@df5093b
* chore: remove readme synth.py config
Source-Author: Jeff Ching <[email protected]>
Source-Date: Wed Sep 8 13:23:41 2021 -0700
Source-Repo: googleapis/synthtool
Source-Sha: 2d31a9243781b282202b4f76dc7bbc8b45803196
Source-Link: googleapis/synthtool@2d31a92
* chore: add gcf-owl-bot to list of trusted contributors
Source-Author: Jeff Ching <[email protected]>
Source-Date: Wed Sep 8 13:42:12 2021 -0700
Source-Repo: googleapis/synthtool
Source-Sha: a6b97202771f89a4b76873d43ea9a07d7fc95f91
Source-Link: googleapis/synthtool@a6b9720
* chore(java): update shared-config and shared-dependencies version in pom template
Source-Author: Neenu Shaji <[email protected]>
Source-Date: Wed Sep 8 17:28:48 2021 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 396d9b84a1e93880f5bf88b59ecd38a0a6dffc5e
Source-Link: googleapis/synthtool@396d9b8
lqiu96
pushed a commit
that referenced
this pull request
Apr 1, 2026
* changes without context
autosynth cannot find the source of changes triggered by earlier changes in this
repository, or by version upgrades to tools such as linters.
* chore(java): remove readme autosynth job config
README generation is now handled by owlbot
Source-Author: Jeff Ching <[email protected]>
Source-Date: Wed Sep 8 12:11:28 2021 -0700
Source-Repo: googleapis/synthtool
Source-Sha: df5093b950d4aafd49a4c7758d74c44485263ada
Source-Link: googleapis/synthtool@df5093b
* chore: remove readme synth.py config
Source-Author: Jeff Ching <[email protected]>
Source-Date: Wed Sep 8 13:23:41 2021 -0700
Source-Repo: googleapis/synthtool
Source-Sha: 2d31a9243781b282202b4f76dc7bbc8b45803196
Source-Link: googleapis/synthtool@2d31a92
* chore: add gcf-owl-bot to list of trusted contributors
Source-Author: Jeff Ching <[email protected]>
Source-Date: Wed Sep 8 13:42:12 2021 -0700
Source-Repo: googleapis/synthtool
Source-Sha: a6b97202771f89a4b76873d43ea9a07d7fc95f91
Source-Link: googleapis/synthtool@a6b9720
* chore(java): update shared-config and shared-dependencies version in pom template
Source-Author: Neenu Shaji <[email protected]>
Source-Date: Wed Sep 8 17:28:48 2021 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 396d9b84a1e93880f5bf88b59ecd38a0a6dffc5e
Source-Link: googleapis/synthtool@396d9b8
meltsufin
pushed a commit
that referenced
this pull request
Apr 29, 2026
This PR was generated using Autosynth. 🌈
<details><summary>Log from Synthtool</summary>
```
2021-06-07 19:02:35,177 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-06-07 19:02:36,573 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/adbb05f8-f040-494d-881e-808a85e5c63e/targets
- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
meltsufin
pushed a commit
that referenced
this pull request
May 1, 2026
This PR was generated using Autosynth. 🌈
<details><summary>Log from Synthtool</summary>
```
2021-06-07 19:02:35,177 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-06-07 19:02:36,573 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/adbb05f8-f040-494d-881e-808a85e5c63e/targets
- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
api: compute
Issues related to the Compute Engine API.
cla: yes
This human has signed the Contributor License Agreement.
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.
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.
|