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

docs: add a code snippet for the sync api #24

Merged
merged 24 commits into from
Apr 8, 2022

Conversation

changsongd
Copy link
Contributor

  • Added a sync api code snippet

@changsongd changsongd requested a review from a team as a code owner April 7, 2022 19:34
@snippet-bot
Copy link

snippet-bot bot commented Apr 7, 2022

Here is the summary of possible violations 😱

There is a possible violation for not having product prefix.

The end of the violation section. All the stuff below is FYI purposes only.


Here is the summary of changes.

You are about to add 1 region tag.
You are about to delete 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@product-auto-label product-auto-label bot added the api: cloudoptimization Issues related to the googleapis/java-optimization API. label Apr 7, 2022
@suztomo
Copy link
Member

suztomo commented Apr 7, 2022

[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ -snapshot ---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.example.optimizationai.SyncApiTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.119 s <<< FAILURE! - in com.example.optimizationai.SyncApiTest
[ERROR] com.example.optimizationai.SyncApiTest.testSyncApi  Time elapsed: 0.027 s  <<< ERROR!
java.io.FileNotFoundException: resources/sync_request.textproto (No such file or directory)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at java.io.FileInputStream.<init>(FileInputStream.java:93)
	at com.example.optimizationai.SyncApi.callSyncApi(SyncApi.java:48)
	at com.example.optimizationai.SyncApiTest.testSyncApi(SyncApiTest.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

@eaball35 eaball35 added kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Apr 7, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 7, 2022
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Apr 8, 2022
@eaball35 eaball35 added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 8, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 8, 2022
@eaball35 eaball35 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 8, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 8, 2022
@Neenu1995 Neenu1995 added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 8, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 8, 2022
@Neenu1995 Neenu1995 added the automerge Merge the pull request once unit tests and other checks pass. label Apr 8, 2022
@gcf-merge-on-green gcf-merge-on-green bot merged commit 4dc1dd8 into googleapis:main Apr 8, 2022
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Apr 8, 2022
gcf-merge-on-green bot pushed a commit that referenced this pull request Apr 19, 2022
🤖 I have created a release *beep* *boop*
---


### [0.1.2](v0.1.1...v0.1.2) (2022-04-18)


### Documentation

* add a code snippet for the sync api ([#24](#24)) ([4dc1dd8](4dc1dd8))
* add async api code snippet ([#25](#25)) ([fb23c17](fb23c17))
* add get operation code snippet ([#28](#28)) ([9f23fe2](9f23fe2))


### Dependencies

* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#29](#29)) ([4db5464](4db5464))
* update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#30](#30)) ([faf4a15](faf4a15))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: cloudoptimization Issues related to the googleapis/java-optimization API. size: l Pull request size is large.
Projects
None yet
5 participants