diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 45c8de7f..3ac65fbe 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -79,6 +79,11 @@ samples) if [[ -f ${SAMPLES_DIR}/pom.xml ]] then + for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do + [[ -f "$FILE" ]] || continue + source "$FILE" + done + pushd ${SAMPLES_DIR} mvn -B \ -Penable-samples \ diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index b4831c84..0b54dad4 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -24,11 +24,6 @@ if [[ -z "${STAGING_BUCKET}" ]]; then exit 1 fi -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - # work from the git root directory pushd $(dirname "$0")/../../ diff --git a/CHANGELOG.md b/CHANGELOG.md index 036d8394..b5916897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.1.8](https://www.github.com/googleapis/java-workflow-executions/compare/v0.1.7...v0.1.8) (2021-04-09) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#87](https://www.github.com/googleapis/java-workflow-executions/issues/87)) ([8a84ab9](https://www.github.com/googleapis/java-workflow-executions/commit/8a84ab96ba166e07d2969df43a0aac58d5863776)) + ### [0.1.7](https://www.github.com/googleapis/java-workflow-executions/compare/v0.1.6...v0.1.7) (2021-03-11) diff --git a/README.md b/README.md index 0dc32b7b..1b3ff87f 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,11 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-workflow-executions:0.1.7' +compile 'com.google.cloud:google-cloud-workflow-executions:0.1.8' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "0.1.7" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "0.1.8" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-workflow-executions-bom/pom.xml b/google-cloud-workflow-executions-bom/pom.xml index 0e3e6f28..d333c58b 100644 --- a/google-cloud-workflow-executions-bom/pom.xml +++ b/google-cloud-workflow-executions-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions-bom - 0.1.7 + 0.1.8 pom com.google.cloud @@ -68,17 +68,17 @@ com.google.cloud google-cloud-workflow-executions - 0.1.7 + 0.1.8 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.1.7 + 0.1.8 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.1.7 + 0.1.8 diff --git a/google-cloud-workflow-executions/pom.xml b/google-cloud-workflow-executions/pom.xml index ab6b89fd..2258e743 100644 --- a/google-cloud-workflow-executions/pom.xml +++ b/google-cloud-workflow-executions/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions - 0.1.7 + 0.1.8 jar Google Cloud Workflow Executions https://github.com/googleapis/java-workflow-executions @@ -11,7 +11,7 @@ com.google.cloud google-cloud-workflow-executions-parent - 0.1.7 + 0.1.8 google-cloud-workflow-executions diff --git a/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java b/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java index 15e8eb41..557dc8b8 100644 --- a/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java +++ b/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java @@ -274,6 +274,13 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re * *
{@code
    * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(WorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(ExecutionView.forNumber(0))
+   *           .build();
    *   while (true) {
    *     ListExecutionsResponse response = executionsClient.listExecutionsCallable().call(request);
    *     for (Execution element : response.getResponsesList()) {
diff --git a/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java b/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java
index 8571efb9..fb79a7d4 100644
--- a/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java
+++ b/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java
@@ -61,7 +61,7 @@ public void reset() {
   @Override
   public void listExecutions(
       ListExecutionsRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListExecutionsResponse) {
       requests.add(request);
       responseObserver.onNext(((ListExecutionsResponse) response));
@@ -73,7 +73,7 @@ public void listExecutions(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListExecutions, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListExecutionsResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -82,7 +82,7 @@ public void listExecutions(
   @Override
   public void createExecution(
       CreateExecutionRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Execution) {
       requests.add(request);
       responseObserver.onNext(((Execution) response));
@@ -94,7 +94,7 @@ public void createExecution(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateExecution, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Execution.class.getName(),
                   Exception.class.getName())));
     }
@@ -103,7 +103,7 @@ public void createExecution(
   @Override
   public void getExecution(
       GetExecutionRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Execution) {
       requests.add(request);
       responseObserver.onNext(((Execution) response));
@@ -115,7 +115,7 @@ public void getExecution(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetExecution, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Execution.class.getName(),
                   Exception.class.getName())));
     }
@@ -124,7 +124,7 @@ public void getExecution(
   @Override
   public void cancelExecution(
       CancelExecutionRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Execution) {
       requests.add(request);
       responseObserver.onNext(((Execution) response));
@@ -136,7 +136,7 @@ public void cancelExecution(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CancelExecution, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Execution.class.getName(),
                   Exception.class.getName())));
     }
diff --git a/grpc-google-cloud-workflow-executions-v1beta/pom.xml b/grpc-google-cloud-workflow-executions-v1beta/pom.xml
index d8fb3e7a..070d19bd 100644
--- a/grpc-google-cloud-workflow-executions-v1beta/pom.xml
+++ b/grpc-google-cloud-workflow-executions-v1beta/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-workflow-executions-v1beta
-  0.1.7
+  0.1.8
   grpc-google-cloud-workflow-executions-v1beta
   GRPC library for google-cloud-workflow-executions
   
     com.google.cloud
     google-cloud-workflow-executions-parent
-    0.1.7
+    0.1.8
   
   
     
diff --git a/pom.xml b/pom.xml
index 48771dcd..8d1d3fe1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-workflow-executions-parent
   pom
-  0.1.7
+  0.1.8
   Google Cloud Workflow Executions Parent
   https://github.com/googleapis/java-
   
@@ -70,23 +70,23 @@
       
         com.google.cloud
         google-cloud-workflow-executions
-        0.1.7
+        0.1.8
       
       
         com.google.api.grpc
         proto-google-cloud-workflow-executions-v1beta
-        0.1.7
+        0.1.8
       
       
         com.google.api.grpc
         grpc-google-cloud-workflow-executions-v1beta
-        0.1.7
+        0.1.8
       
 
       
         com.google.cloud
         google-cloud-shared-dependencies
-        0.20.1
+        0.21.0
         pom
         import
       
diff --git a/proto-google-cloud-workflow-executions-v1beta/pom.xml b/proto-google-cloud-workflow-executions-v1beta/pom.xml
index 72949272..60e9b644 100644
--- a/proto-google-cloud-workflow-executions-v1beta/pom.xml
+++ b/proto-google-cloud-workflow-executions-v1beta/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-workflow-executions-v1beta
-  0.1.7
+  0.1.8
   proto-google-cloud-workflow-executions-v1beta
   Proto library for google-cloud-workflow-executions
   
     com.google.cloud
     google-cloud-workflow-executions-parent
-    0.1.7
+    0.1.8
   
   
     
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 38f4b3a9..6c3fd0a5 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -14,7 +14,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.21
+    1.0.22
   
 
   
@@ -29,7 +29,7 @@
     
       com.google.cloud
       google-cloud-workflow-executions
-      0.1.6
+      0.1.7
     
     
 
diff --git a/samples/pom.xml b/samples/pom.xml
index 1e2e9108..d219a428 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -18,7 +18,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.21
+    1.0.22
   
 
   
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 86fb8685..9a8723a2 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -14,7 +14,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.21
+    1.0.22
   
 
   
@@ -28,7 +28,7 @@
     
       com.google.cloud
       google-cloud-workflow-executions
-      0.1.7
+      0.1.8
     
     
 
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 42901d7d..2e446048 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -14,7 +14,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.21
+    1.0.22
   
 
   
@@ -28,7 +28,7 @@
     
       com.google.cloud
       google-cloud-workflow-executions
-      0.1.6
+      0.1.7
     
 
     
diff --git a/synth.metadata b/synth.metadata
index 8173c160..0535a792 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,22 +4,22 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-workflow-executions.git",
-        "sha": "d1bf19039d9e8afead2aa8b1a2ff7dbe43dedb14"
+        "sha": "997fed1d2e867155eaf80c607fcde887b6c88140"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
-        "internalRef": "361377784"
+        "sha": "1305ca41d554eb0725237561e34129373bb8cbc1",
+        "internalRef": "362856902"
       }
     },
     {
       "git": {
         "name": "synthtool",
         "remote": "https://github.com/googleapis/synthtool.git",
-        "sha": "0b064d767537e0675fc053e53fca473c5c701fb8"
+        "sha": "572ef8f70edd9041f5bcfa71511aed6aecfc2098"
       }
     }
   ],
diff --git a/versions.txt b/versions.txt
index 3400c036..5fa158d6 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
 # Format:
 # module:released-version:current-version
 
-google-cloud-workflow-executions:0.1.7:0.1.7
-proto-google-cloud-workflow-executions-v1beta:0.1.7:0.1.7
-grpc-google-cloud-workflow-executions-v1beta:0.1.7:0.1.7
\ No newline at end of file
+google-cloud-workflow-executions:0.1.8:0.1.8
+proto-google-cloud-workflow-executions-v1beta:0.1.8:0.1.8
+grpc-google-cloud-workflow-executions-v1beta:0.1.8:0.1.8
\ No newline at end of file