From 6e3f583d9fc9bdb429f68636153e75c4104a5ec3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 4 Aug 2020 00:26:03 -0700 Subject: [PATCH] chore: regenerate README samples (#197) This PR was generated using Autosynth. :rainbow: 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. --- .kokoro/populate-secrets.sh | 1 + README.md | 14 ++++++++++++++ synth.metadata | 3 +-- synth.py | 4 +++- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh index 6f1fe6c9..f5251425 100755 --- a/.kokoro/populate-secrets.sh +++ b/.kokoro/populate-secrets.sh @@ -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" diff --git a/README.md b/README.md index c1581515..3b18d281 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/synth.metadata b/synth.metadata index 12f9cc6e..7b7243ec 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "d3d5ef1effb1f1f61ee8a24ec8db9dd2a775e327" + "sha": "f9613027fbe0acc65653668fd22c0c3e92f2e7cd" } }, { @@ -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", diff --git a/synth.py b/synth.py index 6cf70fc6..c46edd15 100644 --- a/synth.py +++ b/synth.py @@ -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', +])