Date: Mon, 8 Feb 2021 16:46:12 -0800
Subject: [PATCH 09/20] docs: generate sample code in the Java microgenerator
(#135)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/83d27b1b-599d-4795-9959-95d65d1baad5/targets
- [ ] To automatically regenerate this PR, check this box.
PiperOrigin-RevId: 356341083
Source-Link: https://github.com/googleapis/googleapis/commit/8d8c008e56f1af31d57f75561e0f1848ffb29eeb
---
.../v1/CloudFunctionsServiceClient.java | 484 ++++++++++++++++++
.../cloud/functions/v1/package-info.java | 8 +
synth.metadata | 6 +-
3 files changed, 495 insertions(+), 3 deletions(-)
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java
index 6b1f8071..e54bdb68 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java
@@ -51,6 +51,14 @@
* This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
*
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CloudFunctionName name = CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
+ * CloudFunction response = cloudFunctionsServiceClient.getFunction(name);
+ * }
+ * }
+ *
* Note: close() needs to be called on the CloudFunctionsServiceClient object to clean up
* resources such as threads. In the example above, try-with-resources is used, which automatically
* calls close().
@@ -168,6 +176,24 @@ public final OperationsClient getOperationsClient() {
/**
* Returns a list of functions that belong to the requested project.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * ListFunctionsRequest request =
+ * ListFunctionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (CloudFunction element :
+ * cloudFunctionsServiceClient.listFunctions(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -180,6 +206,24 @@ public final ListFunctionsPagedResponse listFunctions(ListFunctionsRequest reque
* Returns a list of functions that belong to the requested project.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * ListFunctionsRequest request =
+ * ListFunctionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.listFunctionsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (CloudFunction element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
*/
public final UnaryCallable
listFunctionsPagedCallable() {
@@ -191,6 +235,25 @@ public final ListFunctionsPagedResponse listFunctions(ListFunctionsRequest reque
* Returns a list of functions that belong to the requested project.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * while (true) {
+ * ListFunctionsResponse response =
+ * cloudFunctionsServiceClient.listFunctionsCallable().call(request);
+ * for (CloudFunction element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
*/
public final UnaryCallable listFunctionsCallable() {
return stub.listFunctionsCallable();
@@ -200,6 +263,16 @@ public final UnaryCallable listFunc
/**
* Returns a function with the given name from the requested project.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CloudFunctionName name = CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
+ * CloudFunction response = cloudFunctionsServiceClient.getFunction(name);
+ * }
+ * }
+ *
* @param name Required. The name of the function which details should be obtained.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -213,6 +286,16 @@ public final CloudFunction getFunction(CloudFunctionName name) {
/**
* Returns a function with the given name from the requested project.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * String name = CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString();
+ * CloudFunction response = cloudFunctionsServiceClient.getFunction(name);
+ * }
+ * }
+ *
* @param name Required. The name of the function which details should be obtained.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -225,6 +308,19 @@ public final CloudFunction getFunction(String name) {
/**
* Returns a function with the given name from the requested project.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * GetFunctionRequest request =
+ * GetFunctionRequest.newBuilder()
+ * .setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .build();
+ * CloudFunction response = cloudFunctionsServiceClient.getFunction(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -237,6 +333,20 @@ public final CloudFunction getFunction(GetFunctionRequest request) {
* Returns a function with the given name from the requested project.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * GetFunctionRequest request =
+ * GetFunctionRequest.newBuilder()
+ * .setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.getFunctionCallable().futureCall(request);
+ * // Do something.
+ * CloudFunction response = future.get();
+ * }
+ * }
*/
public final UnaryCallable getFunctionCallable() {
return stub.getFunctionCallable();
@@ -247,6 +357,18 @@ public final UnaryCallable getFunctionCallabl
* Creates a new function. If a function with the given name already exists in the specified
* project, the long running operation will return `ALREADY_EXISTS` error.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
+ * CloudFunction function = CloudFunction.newBuilder().build();
+ * CloudFunction response =
+ * cloudFunctionsServiceClient.createFunctionAsync(location, function).get();
+ * }
+ * }
+ *
* @param location Required. The project and location in which the function should be created,
* specified in the format `projects/*/locations/*`
* @param function Required. Function to be created.
@@ -267,6 +389,18 @@ public final OperationFuture createFunctionA
* Creates a new function. If a function with the given name already exists in the specified
* project, the long running operation will return `ALREADY_EXISTS` error.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * CloudFunction function = CloudFunction.newBuilder().build();
+ * CloudFunction response =
+ * cloudFunctionsServiceClient.createFunctionAsync(location, function).get();
+ * }
+ * }
+ *
* @param location Required. The project and location in which the function should be created,
* specified in the format `projects/*/locations/*`
* @param function Required. Function to be created.
@@ -284,6 +418,20 @@ public final OperationFuture createFunctionA
* Creates a new function. If a function with the given name already exists in the specified
* project, the long running operation will return `ALREADY_EXISTS` error.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CreateFunctionRequest request =
+ * CreateFunctionRequest.newBuilder()
+ * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFunction(CloudFunction.newBuilder().build())
+ * .build();
+ * CloudFunction response = cloudFunctionsServiceClient.createFunctionAsync(request).get();
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -298,6 +446,21 @@ public final OperationFuture createFunctionA
* project, the long running operation will return `ALREADY_EXISTS` error.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CreateFunctionRequest request =
+ * CreateFunctionRequest.newBuilder()
+ * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFunction(CloudFunction.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * cloudFunctionsServiceClient.createFunctionOperationCallable().futureCall(request);
+ * // Do something.
+ * CloudFunction response = future.get();
+ * }
+ * }
*/
public final OperationCallable
createFunctionOperationCallable() {
@@ -310,6 +473,21 @@ public final OperationFuture createFunctionA
* project, the long running operation will return `ALREADY_EXISTS` error.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CreateFunctionRequest request =
+ * CreateFunctionRequest.newBuilder()
+ * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFunction(CloudFunction.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.createFunctionCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
*/
public final UnaryCallable createFunctionCallable() {
return stub.createFunctionCallable();
@@ -319,6 +497,16 @@ public final UnaryCallable createFunctionCalla
/**
* Updates existing function.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CloudFunction function = CloudFunction.newBuilder().build();
+ * CloudFunction response = cloudFunctionsServiceClient.updateFunctionAsync(function).get();
+ * }
+ * }
+ *
* @param function Required. New version of the function.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -333,6 +521,20 @@ public final OperationFuture updateFunctionA
/**
* Updates existing function.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * UpdateFunctionRequest request =
+ * UpdateFunctionRequest.newBuilder()
+ * .setFunction(CloudFunction.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * CloudFunction response = cloudFunctionsServiceClient.updateFunctionAsync(request).get();
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -346,6 +548,21 @@ public final OperationFuture updateFunctionA
* Updates existing function.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * UpdateFunctionRequest request =
+ * UpdateFunctionRequest.newBuilder()
+ * .setFunction(CloudFunction.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * cloudFunctionsServiceClient.updateFunctionOperationCallable().futureCall(request);
+ * // Do something.
+ * CloudFunction response = future.get();
+ * }
+ * }
*/
public final OperationCallable
updateFunctionOperationCallable() {
@@ -357,6 +574,21 @@ public final OperationFuture updateFunctionA
* Updates existing function.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * UpdateFunctionRequest request =
+ * UpdateFunctionRequest.newBuilder()
+ * .setFunction(CloudFunction.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.updateFunctionCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
*/
public final UnaryCallable updateFunctionCallable() {
return stub.updateFunctionCallable();
@@ -367,6 +599,16 @@ public final UnaryCallable updateFunctionCalla
* Deletes a function with the given name from the specified project. If the given function is
* used by some trigger, the trigger will be updated to remove this function.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CloudFunctionName name = CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
+ * cloudFunctionsServiceClient.deleteFunctionAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the function which should be deleted.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -382,6 +624,16 @@ public final OperationFuture deleteFunctionAsync(
* Deletes a function with the given name from the specified project. If the given function is
* used by some trigger, the trigger will be updated to remove this function.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * String name = CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString();
+ * cloudFunctionsServiceClient.deleteFunctionAsync(name).get();
+ * }
+ * }
+ *
* @param name Required. The name of the function which should be deleted.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -395,6 +647,19 @@ public final OperationFuture deleteFunctionAsync(Str
* Deletes a function with the given name from the specified project. If the given function is
* used by some trigger, the trigger will be updated to remove this function.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * DeleteFunctionRequest request =
+ * DeleteFunctionRequest.newBuilder()
+ * .setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .build();
+ * cloudFunctionsServiceClient.deleteFunctionAsync(request).get();
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -409,6 +674,20 @@ public final OperationFuture deleteFunctionAsync(
* used by some trigger, the trigger will be updated to remove this function.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * DeleteFunctionRequest request =
+ * DeleteFunctionRequest.newBuilder()
+ * .setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .build();
+ * OperationFuture future =
+ * cloudFunctionsServiceClient.deleteFunctionOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
*/
public final OperationCallable
deleteFunctionOperationCallable() {
@@ -421,6 +700,20 @@ public final OperationFuture deleteFunctionAsync(
* used by some trigger, the trigger will be updated to remove this function.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * DeleteFunctionRequest request =
+ * DeleteFunctionRequest.newBuilder()
+ * .setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.deleteFunctionCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
*/
public final UnaryCallable deleteFunctionCallable() {
return stub.deleteFunctionCallable();
@@ -432,6 +725,17 @@ public final UnaryCallable deleteFunctionCalla
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CloudFunctionName name = CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
+ * String data = "data3076010";
+ * CallFunctionResponse response = cloudFunctionsServiceClient.callFunction(name, data);
+ * }
+ * }
+ *
* @param name Required. The name of the function to be called.
* @param data Required. Input to be passed to the function.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -451,6 +755,17 @@ public final CallFunctionResponse callFunction(CloudFunctionName name, String da
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * String name = CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString();
+ * String data = "data3076010";
+ * CallFunctionResponse response = cloudFunctionsServiceClient.callFunction(name, data);
+ * }
+ * }
+ *
* @param name Required. The name of the function to be called.
* @param data Required. Input to be passed to the function.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -467,6 +782,20 @@ public final CallFunctionResponse callFunction(String name, String data) {
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CallFunctionRequest request =
+ * CallFunctionRequest.newBuilder()
+ * .setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .setData("data3076010")
+ * .build();
+ * CallFunctionResponse response = cloudFunctionsServiceClient.callFunction(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -481,6 +810,21 @@ public final CallFunctionResponse callFunction(CallFunctionRequest request) {
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CallFunctionRequest request =
+ * CallFunctionRequest.newBuilder()
+ * .setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .setData("data3076010")
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.callFunctionCallable().futureCall(request);
+ * // Do something.
+ * CallFunctionResponse response = future.get();
+ * }
+ * }
*/
public final UnaryCallable callFunctionCallable() {
return stub.callFunctionCallable();
@@ -517,6 +861,17 @@ public final UnaryCallable callFuncti
* `Authorization: Bearer YOUR_TOKEN`
*
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * GenerateUploadUrlRequest request =
+ * GenerateUploadUrlRequest.newBuilder().setParent("parent-995424086").build();
+ * GenerateUploadUrlResponse response = cloudFunctionsServiceClient.generateUploadUrl(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -556,6 +911,18 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
*
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * GenerateUploadUrlRequest request =
+ * GenerateUploadUrlRequest.newBuilder().setParent("parent-995424086").build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.generateUploadUrlCallable().futureCall(request);
+ * // Do something.
+ * GenerateUploadUrlResponse response = future.get();
+ * }
+ * }
*/
public final UnaryCallable
generateUploadUrlCallable() {
@@ -568,6 +935,21 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
* limited period and should be used within minutes after generation. For more information about
* the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * GenerateDownloadUrlRequest request =
+ * GenerateDownloadUrlRequest.newBuilder()
+ * .setName("name3373707")
+ * .setVersionId(-670497310)
+ * .build();
+ * GenerateDownloadUrlResponse response =
+ * cloudFunctionsServiceClient.generateDownloadUrl(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -582,6 +964,21 @@ public final GenerateDownloadUrlResponse generateDownloadUrl(GenerateDownloadUrl
* the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * GenerateDownloadUrlRequest request =
+ * GenerateDownloadUrlRequest.newBuilder()
+ * .setName("name3373707")
+ * .setVersionId(-670497310)
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.generateDownloadUrlCallable().futureCall(request);
+ * // Do something.
+ * GenerateDownloadUrlResponse response = future.get();
+ * }
+ * }
*/
public final UnaryCallable
generateDownloadUrlCallable() {
@@ -592,6 +989,20 @@ public final GenerateDownloadUrlResponse generateDownloadUrl(GenerateDownloadUrl
/**
* Sets the IAM access control policy on the specified function. Replaces any existing policy.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .build();
+ * Policy response = cloudFunctionsServiceClient.setIamPolicy(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -604,6 +1015,21 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* Sets the IAM access control policy on the specified function. Replaces any existing policy.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.setIamPolicyCallable().futureCall(request);
+ * // Do something.
+ * Policy response = future.get();
+ * }
+ * }
*/
public final UnaryCallable setIamPolicyCallable() {
return stub.setIamPolicyCallable();
@@ -614,6 +1040,20 @@ public final UnaryCallable setIamPolicyCallable() {
* Gets the IAM access control policy for a function. Returns an empty policy if the function
* exists and does not have a policy set.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = cloudFunctionsServiceClient.getIamPolicy(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -627,6 +1067,21 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* exists and does not have a policy set.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.getIamPolicyCallable().futureCall(request);
+ * // Do something.
+ * Policy response = future.get();
+ * }
+ * }
*/
public final UnaryCallable getIamPolicyCallable() {
return stub.getIamPolicyCallable();
@@ -637,6 +1092,20 @@ public final UnaryCallable getIamPolicyCallable() {
* Tests the specified permissions against the IAM access control policy for a function. If the
* function does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .addAllPermissions(new ArrayList())
+ * .build();
+ * TestIamPermissionsResponse response = cloudFunctionsServiceClient.testIamPermissions(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -650,6 +1119,21 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* function does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
*
* Sample code:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
+ * .addAllPermissions(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * cloudFunctionsServiceClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something.
+ * TestIamPermissionsResponse response = future.get();
+ * }
+ * }
*/
public final UnaryCallable
testIamPermissionsCallable() {
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java
index 5e9e48c0..414df439 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java
@@ -22,6 +22,14 @@
* Service Description: A service that application uses to manipulate triggers and functions.
*
*
Sample for CloudFunctionsServiceClient:
+ *
+ *
{@code
+ * try (CloudFunctionsServiceClient cloudFunctionsServiceClient =
+ * CloudFunctionsServiceClient.create()) {
+ * CloudFunctionName name = CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
+ * CloudFunction response = cloudFunctionsServiceClient.getFunction(name);
+ * }
+ * }
*/
@Generated("by gapic-generator-java")
package com.google.cloud.functions.v1;
diff --git a/synth.metadata b/synth.metadata
index ea12b581..c56b64f0 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
- "sha": "cd3684ab4ac4f2eba3c9a5dc300a4114d3a7b5ac"
+ "sha": "fad1c8c02950103b09488de6c106aa51124f9508"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3",
- "internalRef": "350949863"
+ "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb",
+ "internalRef": "356341083"
}
},
{
From 306fcec2af7e7d0b1f100998c745fd4e3d524452 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Mon, 8 Feb 2021 16:56:05 -0800
Subject: [PATCH 10/20] chore: regenerate README (#137)
This PR was generated using Autosynth. :rainbow:
Log from Synthtool
```
2021-02-09 00:48:30,824 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-functions/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-02-09 00:48:31,688 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
Full log will be available here:
https://source.cloud.google.com/results/invocations/5446df85-a3c6-4a73-a603-528fa4b349c3/targets
- [ ] To automatically regenerate this PR, check this box.
---
.github/readme/synth.metadata/synth.metadata | 4 ++--
README.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata
index 590b3ce5..556b633d 100644
--- a/.github/readme/synth.metadata/synth.metadata
+++ b/.github/readme/synth.metadata/synth.metadata
@@ -4,14 +4,14 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
- "sha": "deb9710ae39296cc9d3dd8659fd47f8efd2661ae"
+ "sha": "77440a61a1a25c72cf3ce4dda0b50e41801371b6"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "67f09bf301083798e7220137723222eb00b8f88a"
+ "sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e"
}
}
]
diff --git a/README.md b/README.md
index 4b3e6213..8fe000bb 100644
--- a/README.md
+++ b/README.md
@@ -24,12 +24,12 @@ If you are using Maven, add this to your pom.xml file:
If you are using Gradle without BOM, add this to your dependencies
```Groovy
-compile 'com.google.cloud:google-cloud-functions:1.0.5'
+compile 'com.google.cloud:google-cloud-functions:1.0.6'
```
If you are using SBT, add this to your dependencies
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "1.0.5"
+libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "1.0.6"
```
## Authentication
From ee58b025d1b235c469fb783e8545d4fdca3ab5ef Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Wed, 10 Feb 2021 09:03:19 -0800
Subject: [PATCH 11/20] build(java): update autorelease script (#138)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/77d0a1df-06aa-4fa7-a078-e372ada4f092/targets
- [ ] To automatically regenerate this PR, check this box.
Source-Link: https://github.com/googleapis/synthtool/commit/2414b817065726eae0bc525346c7e874f969369d
---
.github/workflows/auto-release.yaml | 4 ++--
synth.metadata | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml
index 76e6404b..7c8816a7 100644
--- a/.github/workflows/auto-release.yaml
+++ b/.github/workflows/auto-release.yaml
@@ -4,7 +4,7 @@ name: auto-release
jobs:
approve:
runs-on: ubuntu-latest
- if: contains(github.head_ref, 'release-v')
+ if: contains(github.head_ref, 'release-please')
steps:
- uses: actions/github-script@v3
with:
@@ -16,7 +16,7 @@ jobs:
return;
}
- // only approve PRs like "chore: release "
+ // only approve PRs like "chore(master): release "
if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) {
return;
}
diff --git a/synth.metadata b/synth.metadata
index c56b64f0..b549e983 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
- "sha": "fad1c8c02950103b09488de6c106aa51124f9508"
+ "sha": "306fcec2af7e7d0b1f100998c745fd4e3d524452"
}
},
{
@@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5"
+ "sha": "2414b817065726eae0bc525346c7e874f969369d"
}
}
],
From 0dbe9872b0e4f34c5734a1ab646148d771fe6d68 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Tue, 16 Feb 2021 19:04:45 +0100
Subject: [PATCH 12/20] test(deps): update dependency junit:junit to v4.13.2
(#139)
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Renovate configuration
:date: **Schedule**: At any time (no schedule defined).
:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-functions).
---
pom.xml | 2 +-
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
samples/snippets/pom.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 2fc73486..43c79f5b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -94,7 +94,7 @@
junit
junit
- 4.13.1
+ 4.13.2
test
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 7ab55470..719f9d5d 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -36,7 +36,7 @@
junit
junit
- 4.13.1
+ 4.13.2
test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 3874c5a1..2cd8d0f1 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -35,7 +35,7 @@
junit
junit
- 4.13.1
+ 4.13.2
test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 4f4d7f78..4d75109f 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -34,7 +34,7 @@
junit
junit
- 4.13.1
+ 4.13.2
test
From 8faaa3bbcbef7f3ef90d9d5be3c4b32e75dbb82d Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Tue, 16 Feb 2021 16:18:24 -0800
Subject: [PATCH 13/20] ci: linkage monitor CI job to use build.sh (#141)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/81e20533-a99a-4385-a4b8-1fa62df8278a/targets
- [ ] To automatically regenerate this PR, check this box.
Source-Link: https://github.com/googleapis/synthtool/commit/f327d3b657a63ae4a8efd7f011a15eacae36b59c
---
.github/workflows/ci.yaml | 13 +++----------
synth.metadata | 4 ++--
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 98a472e1..def8b3a2 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -55,17 +55,10 @@ jobs:
java-version: 8
- run: java -version
- name: Install artifacts to local Maven repository
- run: |
- source .kokoro/common.sh
- retry_with_backoff 3 10 \
- mvn install -B -V \
- -Dmaven.test.skip -DskipTests=true \
- -Dclirr.skip=true \
- -Denforcer.skip=true \
- -Dmaven.javadoc.skip=true \
- -Dgcloud.download.skip=true
+ run: .kokoro/build.sh
shell: bash
- - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
+ - name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release)
+ uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
lint:
runs-on: ubuntu-latest
steps:
diff --git a/synth.metadata b/synth.metadata
index b549e983..e43c431c 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
- "sha": "306fcec2af7e7d0b1f100998c745fd4e3d524452"
+ "sha": "0dbe9872b0e4f34c5734a1ab646148d771fe6d68"
}
},
{
@@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "2414b817065726eae0bc525346c7e874f969369d"
+ "sha": "f327d3b657a63ae4a8efd7f011a15eacae36b59c"
}
}
],
From 6b88c62ebf1408c809b94f45c49c4556ffd58685 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Wed, 17 Feb 2021 08:58:19 -0800
Subject: [PATCH 14/20] chore: update gapic-generator-java to 0.0.20 (#140)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/81e20533-a99a-4385-a4b8-1fa62df8278a/targets
- [ ] To automatically regenerate this PR, check this box.
PiperOrigin-RevId: 357800868
Source-Link: https://github.com/googleapis/googleapis/commit/e8bc4471a88ac5f60defe3ed436f517174e59ba0
---
.../stub/GrpcCloudFunctionsServiceStub.java | 15 ++++
.../v1/CloudFunctionsServiceClientTest.java | 5 ++
.../v1/MockCloudFunctionsServiceImpl.java | 88 ++++++++++++++++---
synth.metadata | 4 +-
4 files changed, 99 insertions(+), 13 deletions(-)
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java
index 90d93531..cfa1c317 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java
@@ -459,68 +459,83 @@ public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
+ @Override
public UnaryCallable listFunctionsCallable() {
return listFunctionsCallable;
}
+ @Override
public UnaryCallable
listFunctionsPagedCallable() {
return listFunctionsPagedCallable;
}
+ @Override
public UnaryCallable getFunctionCallable() {
return getFunctionCallable;
}
+ @Override
public UnaryCallable createFunctionCallable() {
return createFunctionCallable;
}
+ @Override
public OperationCallable
createFunctionOperationCallable() {
return createFunctionOperationCallable;
}
+ @Override
public UnaryCallable updateFunctionCallable() {
return updateFunctionCallable;
}
+ @Override
public OperationCallable
updateFunctionOperationCallable() {
return updateFunctionOperationCallable;
}
+ @Override
public UnaryCallable deleteFunctionCallable() {
return deleteFunctionCallable;
}
+ @Override
public OperationCallable
deleteFunctionOperationCallable() {
return deleteFunctionOperationCallable;
}
+ @Override
public UnaryCallable callFunctionCallable() {
return callFunctionCallable;
}
+ @Override
public UnaryCallable
generateUploadUrlCallable() {
return generateUploadUrlCallable;
}
+ @Override
public UnaryCallable
generateDownloadUrlCallable() {
return generateDownloadUrlCallable;
}
+ @Override
public UnaryCallable setIamPolicyCallable() {
return setIamPolicyCallable;
}
+ @Override
public UnaryCallable getIamPolicyCallable() {
return getIamPolicyCallable;
}
+ @Override
public UnaryCallable
testIamPermissionsCallable() {
return testIamPermissionsCallable;
diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java
index 03118c8f..0907d4af 100644
--- a/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java
+++ b/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java
@@ -158,6 +158,7 @@ public void getFunctionTest() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
+ .setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
@@ -210,6 +211,7 @@ public void getFunctionTest2() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
+ .setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
@@ -262,6 +264,7 @@ public void createFunctionTest() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
+ .setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
@@ -325,6 +328,7 @@ public void createFunctionTest2() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
+ .setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
@@ -388,6 +392,7 @@ public void updateFunctionTest() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
+ .setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java
index c6115e71..220f12d3 100644
--- a/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java
+++ b/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java
@@ -75,7 +75,13 @@ public void listFunctions(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method ListFunctions, expected %s or %s",
+ response.getClass().getName(),
+ ListFunctionsResponse.class.getName(),
+ Exception.class.getName())));
}
}
@@ -90,7 +96,13 @@ public void getFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method GetFunction, expected %s or %s",
+ response.getClass().getName(),
+ CloudFunction.class.getName(),
+ Exception.class.getName())));
}
}
@@ -105,7 +117,13 @@ public void createFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method CreateFunction, expected %s or %s",
+ response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
}
}
@@ -120,7 +138,13 @@ public void updateFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method UpdateFunction, expected %s or %s",
+ response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
}
}
@@ -135,7 +159,13 @@ public void deleteFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method DeleteFunction, expected %s or %s",
+ response.getClass().getName(),
+ Operation.class.getName(),
+ Exception.class.getName())));
}
}
@@ -150,7 +180,13 @@ public void callFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method CallFunction, expected %s or %s",
+ response.getClass().getName(),
+ CallFunctionResponse.class.getName(),
+ Exception.class.getName())));
}
}
@@ -166,7 +202,13 @@ public void generateUploadUrl(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method GenerateUploadUrl, expected %s or %s",
+ response.getClass().getName(),
+ GenerateUploadUrlResponse.class.getName(),
+ Exception.class.getName())));
}
}
@@ -182,7 +224,13 @@ public void generateDownloadUrl(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method GenerateDownloadUrl, expected %s or %s",
+ response.getClass().getName(),
+ GenerateDownloadUrlResponse.class.getName(),
+ Exception.class.getName())));
}
}
@@ -196,7 +244,13 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method SetIamPolicy, expected %s or %s",
+ response.getClass().getName(),
+ Policy.class.getName(),
+ Exception.class.getName())));
}
}
@@ -210,7 +264,13 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method GetIamPolicy, expected %s or %s",
+ response.getClass().getName(),
+ Policy.class.getName(),
+ Exception.class.getName())));
}
}
@@ -226,7 +286,13 @@ public void testIamPermissions(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method TestIamPermissions, expected %s or %s",
+ response.getClass().getName(),
+ TestIamPermissionsResponse.class.getName(),
+ Exception.class.getName())));
}
}
}
diff --git a/synth.metadata b/synth.metadata
index e43c431c..85e7189c 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -11,8 +11,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb",
- "internalRef": "356341083"
+ "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0",
+ "internalRef": "357800868"
}
},
{
From d98842449707f8d694ffecd2906f8d863bdb0733 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Wed, 17 Feb 2021 09:06:43 -0800
Subject: [PATCH 15/20] chore: update cloud-rad buckets (#142)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/e869dee2-5514-4ac4-89bb-f174fbb34819/targets
- [ ] To automatically regenerate this PR, check this box.
Source-Link: https://github.com/googleapis/synthtool/commit/b416a7befcdbc42de41cf387dcf428f894fb812b
---
.kokoro/release/publish_javadoc.cfg | 4 ++--
.kokoro/release/publish_javadoc.sh | 2 +-
.kokoro/release/publish_javadoc11.cfg | 2 +-
.kokoro/release/publish_javadoc11.sh | 2 +-
synth.metadata | 4 ++--
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg
index d2d69b73..6c200fd8 100644
--- a/.kokoro/release/publish_javadoc.cfg
+++ b/.kokoro/release/publish_javadoc.cfg
@@ -7,10 +7,10 @@ env_vars: {
value: "docs-staging"
}
+# cloud-rad staging
env_vars: {
key: "STAGING_BUCKET_V2"
- value: "docs-staging-v2"
- # Production will be at: docs-staging-v2
+ value: "docs-staging-v2-staging"
}
env_vars: {
diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh
index 3789eac4..4030b7d3 100755
--- a/.kokoro/release/publish_javadoc.sh
+++ b/.kokoro/release/publish_javadoc.sh
@@ -71,7 +71,7 @@ python3 -m docuploader create-metadata \
--version ${VERSION} \
--language java
-# upload docs
+# upload docs to staging bucket
python3 -m docuploader upload . \
--credentials ${CREDENTIALS} \
--staging-bucket ${STAGING_BUCKET_V2}
diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg
index 54aae52e..05c4998e 100644
--- a/.kokoro/release/publish_javadoc11.cfg
+++ b/.kokoro/release/publish_javadoc11.cfg
@@ -1,9 +1,9 @@
# Format: //devtools/kokoro/config/proto/build.proto
+# cloud-rad production
env_vars: {
key: "STAGING_BUCKET_V2"
value: "docs-staging-v2"
- # Production will be at: docs-staging-v2
}
# Configure the docker image for kokoro-trampoline
diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh
index 8c5a98d0..2f4bd1c7 100755
--- a/.kokoro/release/publish_javadoc11.sh
+++ b/.kokoro/release/publish_javadoc11.sh
@@ -48,7 +48,7 @@ python3 -m docuploader create-metadata \
--version ${VERSION} \
--language java
-# upload yml
+# upload yml to production bucket
python3 -m docuploader upload . \
--credentials ${CREDENTIALS} \
--staging-bucket ${STAGING_BUCKET_V2} \
diff --git a/synth.metadata b/synth.metadata
index 85e7189c..8a92abf3 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
- "sha": "0dbe9872b0e4f34c5734a1ab646148d771fe6d68"
+ "sha": "8faaa3bbcbef7f3ef90d9d5be3c4b32e75dbb82d"
}
},
{
@@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "f327d3b657a63ae4a8efd7f011a15eacae36b59c"
+ "sha": "b416a7befcdbc42de41cf387dcf428f894fb812b"
}
}
],
From 1b7464865ea4c7f6f5660ce8a34621fb6c821bfa Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Thu, 18 Feb 2021 16:42:13 -0800
Subject: [PATCH 16/20] build: skip Maven download logs (#143)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/9220b79b-a945-4af3-acda-a18d81d8e09a/targets
- [ ] To automatically regenerate this PR, check this box.
Source-Link: https://github.com/googleapis/synthtool/commit/1aeca92e4a38f47134cb955f52ea76f84f09ff88
---
.kokoro/build.sh | 2 ++
synth.metadata | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index 675c0afe..b792eebf 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -60,6 +60,7 @@ javadoc)
;;
integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
+ -ntp \
-Penable-integration-tests \
-DtrimStackTrace=false \
-Dclirr.skip=true \
@@ -81,6 +82,7 @@ samples)
pushd ${SAMPLES_DIR}
mvn -B \
-Penable-samples \
+ -ntp \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
diff --git a/synth.metadata b/synth.metadata
index 8a92abf3..633f7c04 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
- "sha": "8faaa3bbcbef7f3ef90d9d5be3c4b32e75dbb82d"
+ "sha": "d98842449707f8d694ffecd2906f8d863bdb0733"
}
},
{
@@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "b416a7befcdbc42de41cf387dcf428f894fb812b"
+ "sha": "1aeca92e4a38f47134cb955f52ea76f84f09ff88"
}
}
],
From 71b2f4027481a0e4181cfe05eb67c1c0c87ad1e5 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Fri, 19 Feb 2021 07:48:07 -0800
Subject: [PATCH 17/20] build: reduce download junk in log files (#144)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/682cf367-d29a-4ee1-a7e2-16a6514bb004/targets
- [ ] To automatically regenerate this PR, check this box.
Source-Link: https://github.com/googleapis/synthtool/commit/6946fd71ae9215b0e7ae188f5057df765ee6d7d2
---
.kokoro/build.sh | 2 +-
.kokoro/dependencies.sh | 4 ++--
synth.metadata | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index b792eebf..f9876228 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -29,7 +29,7 @@ echo ${JOB_TYPE}
# attempt to install 3 times with exponential backoff (starting with 10 seconds)
retry_with_backoff 3 10 \
- mvn install -B -V \
+ mvn install -B -V -ntp \
-DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh
index c91e5a56..0fb8c843 100755
--- a/.kokoro/dependencies.sh
+++ b/.kokoro/dependencies.sh
@@ -31,7 +31,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
# this should run maven enforcer
retry_with_backoff 3 10 \
- mvn install -B -V \
+ mvn install -B -V -ntp \
-DskipTests=true \
-Dclirr.skip=true
@@ -86,4 +86,4 @@ then
else
msg "Errors found. See log statements above."
exit 1
-fi
\ No newline at end of file
+fi
diff --git a/synth.metadata b/synth.metadata
index 633f7c04..26f49851 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
- "sha": "d98842449707f8d694ffecd2906f8d863bdb0733"
+ "sha": "1b7464865ea4c7f6f5660ce8a34621fb6c821bfa"
}
},
{
@@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "1aeca92e4a38f47134cb955f52ea76f84f09ff88"
+ "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2"
}
}
],
From 3034804aa7bf022f8763ca6db12a92d2d2bdba14 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Fri, 19 Feb 2021 22:52:10 +0100
Subject: [PATCH 18/20] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v0.19.0 (#145)
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.18.0` -> `0.19.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-shared-dependencies
### [`v0.19.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#0190-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0180v0190-2021-02-19)
[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.18.0...v0.19.0)
##### Bug Fixes
- update repo name ([#274](https://www.github.com/googleapis/java-shared-dependencies/issues/274)) ([4a98470](https://www.github.com/googleapis/java-shared-dependencies/commit/4a98470b7493c98137191b7bb3cabca23f98628f))
##### Dependencies
- downgrade opencensus version back to 0.28.0 ([#265](https://www.github.com/googleapis/java-shared-dependencies/issues/265)) ([f37025c](https://www.github.com/googleapis/java-shared-dependencies/commit/f37025c70f951b1e34904ee983815c0ed8ec4086))
- update dependency com.google.api-client:google-api-client-bom to v1.31.2 ([#254](https://www.github.com/googleapis/java-shared-dependencies/issues/254)) ([1b0b4a6](https://www.github.com/googleapis/java-shared-dependencies/commit/1b0b4a637cae0c22cd0336c527002025780317d5))
- update dependency com.google.auth:google-auth-library-bom to v0.23.0 ([#261](https://www.github.com/googleapis/java-shared-dependencies/issues/261)) ([1c0b7bd](https://www.github.com/googleapis/java-shared-dependencies/commit/1c0b7bd60b3d73c16cc6c19ab90d8ccedece3706))
- update dependency com.google.cloud:google-cloud-core to v1.94.1 ([#272](https://www.github.com/googleapis/java-shared-dependencies/issues/272)) ([44fd4c3](https://www.github.com/googleapis/java-shared-dependencies/commit/44fd4c3c6cae98bd514525f03462b830050828a8))
- update dependency com.google.errorprone:error_prone_annotations to v2.5.1 ([#255](https://www.github.com/googleapis/java-shared-dependencies/issues/255)) ([6367023](https://www.github.com/googleapis/java-shared-dependencies/commit/63670233424e8f24c3924bba5e2cb6ca97525795))
- update dependency com.google.http-client:google-http-client-bom to v1.38.1 ([#253](https://www.github.com/googleapis/java-shared-dependencies/issues/253)) ([ad87c74](https://www.github.com/googleapis/java-shared-dependencies/commit/ad87c74d9d893726042156d65850806d92e79952))
- update dependency com.google.protobuf:protobuf-bom to v3.15.0 ([#278](https://www.github.com/googleapis/java-shared-dependencies/issues/278)) ([989efbd](https://www.github.com/googleapis/java-shared-dependencies/commit/989efbd29bcf4135f7abce49a697303df2cf1a60))
- update dependency io.grpc:grpc-bom to v1.35.0 ([#248](https://www.github.com/googleapis/java-shared-dependencies/issues/248)) ([7a28c6e](https://www.github.com/googleapis/java-shared-dependencies/commit/7a28c6e7053c181993b1288adcae56de89312113))
- update gax.version to v1.61.0 ([#277](https://www.github.com/googleapis/java-shared-dependencies/issues/277)) ([f1c3fb9](https://www.github.com/googleapis/java-shared-dependencies/commit/f1c3fb9295f2e1c130b9fc329faa60f4f8474ba6))
- update iam.version to v1.0.7 ([#252](https://www.github.com/googleapis/java-shared-dependencies/issues/252)) ([5cb3ed9](https://www.github.com/googleapis/java-shared-dependencies/commit/5cb3ed906537269cd7f8d9ccf4b065754b5f5b48))
- update iam.version to v1.0.8 ([#273](https://www.github.com/googleapis/java-shared-dependencies/issues/273)) ([4d5e7f7](https://www.github.com/googleapis/java-shared-dependencies/commit/4d5e7f720d847918b307a83c95cea10c244ba595))
---
### Renovate configuration
:date: **Schedule**: At any time (no schedule defined).
:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-functions).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 43c79f5b..33f17897 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,7 +86,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 0.18.0
+ 0.19.0
pom
import
From c21f7d11352739512adffb64f6ef4ec1ba3e5353 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Mon, 22 Feb 2021 10:12:04 -0800
Subject: [PATCH 19/20] chore: release gapic-generator-java v0.0.21 with
gapic_metadata.json support (#146)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/22a7be92-b776-449e-a494-48e8e7d7e91c/targets
- [ ] To automatically regenerate this PR, check this box.
PiperOrigin-RevId: 358516065
Source-Link: https://github.com/googleapis/googleapis/commit/af8f71dae961ee036a0ac52a1965270149a6b2c9
---
.../cloud/functions/v1/gapic_metadata.json | 51 +++++++++++++++++++
synth.metadata | 7 +--
2 files changed, 55 insertions(+), 3 deletions(-)
create mode 100644 google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json
new file mode 100644
index 00000000..8da09403
--- /dev/null
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json
@@ -0,0 +1,51 @@
+{
+ "schema": "1.0",
+ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
+ "language": "java",
+ "protoPackage": "google.cloud.functions.v1",
+ "libraryPackage": "com.google.cloud.functions.v1",
+ "services": {
+ "CloudFunctionsService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "CloudFunctionsServiceClient",
+ "rpcs": {
+ "CallFunction": {
+ "methods": ["callFunction", "callFunction", "callFunction", "callFunctionCallable"]
+ },
+ "CreateFunction": {
+ "methods": ["createFunctionAsync", "createFunctionAsync", "createFunctionAsync", "createFunctionOperationCallable", "createFunctionCallable"]
+ },
+ "DeleteFunction": {
+ "methods": ["deleteFunctionAsync", "deleteFunctionAsync", "deleteFunctionAsync", "deleteFunctionOperationCallable", "deleteFunctionCallable"]
+ },
+ "GenerateDownloadUrl": {
+ "methods": ["generateDownloadUrl", "generateDownloadUrlCallable"]
+ },
+ "GenerateUploadUrl": {
+ "methods": ["generateUploadUrl", "generateUploadUrlCallable"]
+ },
+ "GetFunction": {
+ "methods": ["getFunction", "getFunction", "getFunction", "getFunctionCallable"]
+ },
+ "GetIamPolicy": {
+ "methods": ["getIamPolicy", "getIamPolicyCallable"]
+ },
+ "ListFunctions": {
+ "methods": ["listFunctions", "listFunctionsPagedCallable", "listFunctionsCallable"]
+ },
+ "SetIamPolicy": {
+ "methods": ["setIamPolicy", "setIamPolicyCallable"]
+ },
+ "TestIamPermissions": {
+ "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+ },
+ "UpdateFunction": {
+ "methods": ["updateFunctionAsync", "updateFunctionAsync", "updateFunctionOperationCallable", "updateFunctionCallable"]
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/synth.metadata b/synth.metadata
index 26f49851..e6a1e22e 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
- "sha": "1b7464865ea4c7f6f5660ce8a34621fb6c821bfa"
+ "sha": "3034804aa7bf022f8763ca6db12a92d2d2bdba14"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0",
- "internalRef": "357800868"
+ "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
+ "internalRef": "358516065"
}
},
{
@@ -103,6 +103,7 @@
"codecov.yaml",
"google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java",
"google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java",
+ "google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json",
"google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java",
"google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java",
"google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java",
From c601cd54a2d7040b3a27926b89f9142faa87b405 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Mon, 22 Feb 2021 20:36:15 +0000
Subject: [PATCH 20/20] chore(master): release 1.0.7 (#136)
:robot: I have created a release \*beep\* \*boop\*
---
### [1.0.7](https://www.github.com/googleapis/java-functions/compare/v1.0.6...v1.0.7) (2021-02-22)
### Documentation
* generate sample code in the Java microgenerator ([#135](https://www.github.com/googleapis/java-functions/issues/135)) ([77440a6](https://www.github.com/googleapis/java-functions/commit/77440a61a1a25c72cf3ce4dda0b50e41801371b6))
### Dependencies
* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#145](https://www.github.com/googleapis/java-functions/issues/145)) ([3034804](https://www.github.com/googleapis/java-functions/commit/3034804aa7bf022f8763ca6db12a92d2d2bdba14))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 12 ++++++++++++
google-cloud-functions-bom/pom.xml | 8 ++++----
google-cloud-functions/pom.xml | 4 ++--
grpc-google-cloud-functions-v1/pom.xml | 4 ++--
pom.xml | 8 ++++----
proto-google-cloud-functions-v1/pom.xml | 4 ++--
versions.txt | 6 +++---
7 files changed, 29 insertions(+), 17 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a368c424..500038d9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog
+### [1.0.7](https://www.github.com/googleapis/java-functions/compare/v1.0.6...v1.0.7) (2021-02-22)
+
+
+### Documentation
+
+* generate sample code in the Java microgenerator ([#135](https://www.github.com/googleapis/java-functions/issues/135)) ([77440a6](https://www.github.com/googleapis/java-functions/commit/77440a61a1a25c72cf3ce4dda0b50e41801371b6))
+
+
+### Dependencies
+
+* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#145](https://www.github.com/googleapis/java-functions/issues/145)) ([3034804](https://www.github.com/googleapis/java-functions/commit/3034804aa7bf022f8763ca6db12a92d2d2bdba14))
+
### [1.0.6](https://www.github.com/googleapis/java-functions/compare/v1.0.5...v1.0.6) (2021-01-14)
diff --git a/google-cloud-functions-bom/pom.xml b/google-cloud-functions-bom/pom.xml
index ff28367c..ac2a9bc2 100644
--- a/google-cloud-functions-bom/pom.xml
+++ b/google-cloud-functions-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-functions-bom
- 1.0.7-SNAPSHOT
+ 1.0.7
pom
com.google.cloud
@@ -68,17 +68,17 @@
com.google.cloud
google-cloud-functions
- 1.0.7-SNAPSHOT
+ 1.0.7
com.google.api.grpc
proto-google-cloud-functions-v1
- 1.0.7-SNAPSHOT
+ 1.0.7
com.google.api.grpc
grpc-google-cloud-functions-v1
- 1.0.7-SNAPSHOT
+ 1.0.7
diff --git a/google-cloud-functions/pom.xml b/google-cloud-functions/pom.xml
index 06b9b921..877ab6c4 100644
--- a/google-cloud-functions/pom.xml
+++ b/google-cloud-functions/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-functions
- 1.0.7-SNAPSHOT
+ 1.0.7
jar
Google Cloud Functions
https://github.com/googleapis/java-functions
@@ -11,7 +11,7 @@
com.google.cloud
google-cloud-functions-parent
- 1.0.7-SNAPSHOT
+ 1.0.7
google-cloud-functions
diff --git a/grpc-google-cloud-functions-v1/pom.xml b/grpc-google-cloud-functions-v1/pom.xml
index 1aae5b2d..89f7dc87 100644
--- a/grpc-google-cloud-functions-v1/pom.xml
+++ b/grpc-google-cloud-functions-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-functions-v1
- 1.0.7-SNAPSHOT
+ 1.0.7
grpc-google-cloud-functions-v1
GRPC library for grpc-google-cloud-functions-v1
com.google.cloud
google-cloud-functions-parent
- 1.0.7-SNAPSHOT
+ 1.0.7
diff --git a/pom.xml b/pom.xml
index 33f17897..a098f462 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-functions-parent
pom
- 1.0.7-SNAPSHOT
+ 1.0.7
Google Cloud Functions Parent
https://github.com/googleapis/java-functions
@@ -70,17 +70,17 @@
com.google.cloud
google-cloud-functions
- 1.0.7-SNAPSHOT
+ 1.0.7
com.google.api.grpc
proto-google-cloud-functions-v1
- 1.0.7-SNAPSHOT
+ 1.0.7
com.google.api.grpc
grpc-google-cloud-functions-v1
- 1.0.7-SNAPSHOT
+ 1.0.7
diff --git a/proto-google-cloud-functions-v1/pom.xml b/proto-google-cloud-functions-v1/pom.xml
index 82dd9a7a..b198a489 100644
--- a/proto-google-cloud-functions-v1/pom.xml
+++ b/proto-google-cloud-functions-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-functions-v1
- 1.0.7-SNAPSHOT
+ 1.0.7
proto-google-cloud-functions-v1
PROTO library for proto-google-cloud-functions-v1
com.google.cloud
google-cloud-functions-parent
- 1.0.7-SNAPSHOT
+ 1.0.7
diff --git a/versions.txt b/versions.txt
index c04e375d..3d478752 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-google-cloud-functions:1.0.6:1.0.7-SNAPSHOT
-proto-google-cloud-functions-v1:1.0.6:1.0.7-SNAPSHOT
-grpc-google-cloud-functions-v1:1.0.6:1.0.7-SNAPSHOT
+google-cloud-functions:1.0.7:1.0.7
+proto-google-cloud-functions-v1:1.0.7:1.0.7
+grpc-google-cloud-functions-v1:1.0.7:1.0.7