From dce91f4f65360cfc35d03364aa32eab03f49401f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 10 Aug 2021 01:42:19 +0000 Subject: [PATCH] fix: Updating behavior of source_upload_url during Get/List function calls (#265) Regenerating cloud functions docs PiperOrigin-RevId: 388967811 Source-Link: https://github.com/googleapis/googleapis/commit/909c3adecc663893b2eaecd3c2f9b2528a2c6bea Source-Link: https://github.com/googleapis/googleapis-gen/commit/13181e495b2878975896de174f4a0ccd41fe2bc4 --- .../cloud/functions/v1/CloudFunction.java | 45 +++++++++++++++---- .../functions/v1/CloudFunctionOrBuilder.java | 15 +++++-- .../google/cloud/functions/v1/functions.proto | 8 +++- 3 files changed, 54 insertions(+), 14 deletions(-) diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java index 33d2374d..824f91d5 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java @@ -1022,7 +1022,10 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito * *
* The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -1037,7 +1040,10 @@ public boolean hasSourceUploadUrl() {
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -1065,7 +1071,10 @@ public java.lang.String getSourceUploadUrl() {
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -3462,7 +3471,10 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -3478,7 +3490,10 @@ public boolean hasSourceUploadUrl() {
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -3507,7 +3522,10 @@ public java.lang.String getSourceUploadUrl() {
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -3536,7 +3554,10 @@ public com.google.protobuf.ByteString getSourceUploadUrlBytes() {
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -3558,7 +3579,10 @@ public Builder setSourceUploadUrl(java.lang.String value) {
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -3578,7 +3602,10 @@ public Builder clearSourceUploadUrl() {
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java
index 0d084ab8..58a80df7 100644
--- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java
+++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java
@@ -158,7 +158,10 @@ public interface CloudFunctionOrBuilder
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -171,7 +174,10 @@ public interface CloudFunctionOrBuilder
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
@@ -184,7 +190,10 @@ public interface CloudFunctionOrBuilder
*
* * The Google Cloud Storage signed URL used for source uploading, generated - * by [google.cloud.functions.v1.GenerateUploadUrl][] + * by calling [google.cloud.functions.v1.GenerateUploadUrl]. + * The signature is validated on write methods {Create, Update} + * The signature is stripped from the Function object on read methods {Get, + * List} ** *
string source_upload_url = 16;
diff --git a/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto b/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto
index aa3dd5de..6523c7db 100644
--- a/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto
+++ b/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -243,7 +243,11 @@ message CloudFunction {
SourceRepository source_repository = 4;
// The Google Cloud Storage signed URL used for source uploading, generated
- // by [google.cloud.functions.v1.GenerateUploadUrl][]
+ // by calling [google.cloud.functions.v1.GenerateUploadUrl].
+ //
+ // The signature is validated on write methods {Create, Update}
+ // The signature is stripped from the Function object on read methods {Get,
+ // List}
string source_upload_url = 16;
}