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

Commit

Permalink
chore: regenerate README samples (#197)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/c7d53254-5b4e-45c6-9d3d-99cfa62398c0/targets

- [ ] To automatically regenerate this PR, check this box.
  • Loading branch information
yoshi-automation committed Aug 4, 2020
1 parent f961302 commit 6e3f583
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .kokoro/populate-secrets.sh
Expand Up @@ -19,6 +19,7 @@ function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;}
function msg { println "$*" >&2 ;}
function println { printf '%s\n' "$(now) $*" ;}


# Populates requested secrets set in SECRET_MANAGER_KEYS from service account:
# kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com
SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager"
Expand Down
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -86,6 +86,20 @@ use this Cloud Tasks Client Library.



## Samples

Samples are in the [`samples/`](https://github.com/googleapis/java-tasks/tree/master/samples) directory. The samples' `README.md`
has instructions for running the samples.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Create Http Task | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) |
| Create Http Task With Token | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) |
| Create Queue | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/CreateQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateQueue.java) |
| Delete Queue | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/DeleteQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/DeleteQueue.java) |
| List Queues | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/ListQueues.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/ListQueues.java) |



## Troubleshooting

Expand Down
3 changes: 1 addition & 2 deletions synth.metadata
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-tasks.git",
"sha": "d3d5ef1effb1f1f61ee8a24ec8db9dd2a775e327"
"sha": "f9613027fbe0acc65653668fd22c0c3e92f2e7cd"
}
},
{
Expand Down Expand Up @@ -62,7 +62,6 @@
".github/trusted-contribution.yml",
".github/workflows/ci.yaml",
".kokoro/build.bat",
".kokoro/build.sh",
".kokoro/coerce_logs.sh",
".kokoro/common.cfg",
".kokoro/common.sh",
Expand Down
4 changes: 3 additions & 1 deletion synth.py
Expand Up @@ -85,4 +85,6 @@
java.format_code(f'grpc-google-cloud-{service}-{version}/src')
java.format_code(f'proto-google-cloud-{service}-{version}/src')

java.common_templates()
java.common_templates(excludes=[
'.kokoro/build.sh',
])

0 comments on commit 6e3f583

Please sign in to comment.