diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata
index cf1a9f06..16f1f7e4 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": "c7a188a5a6c1c897120156219542a7618e559e6c"
+ "sha": "80170a344a82b50fa7c256b54b8273d49705d73d"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58"
+ "sha": "996775eca5fd934edac3c2ae34b80ff0395b1717"
}
}
]
diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh
index e4749a64..3789eac4 100755
--- a/.kokoro/release/publish_javadoc.sh
+++ b/.kokoro/release/publish_javadoc.sh
@@ -38,8 +38,8 @@ python3 -m pip install gcp-docuploader
# compile all packages
mvn clean install -B -q -DskipTests=true
-NAME=google-cloud-functions
-VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
+export NAME=google-cloud-functions
+export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
# build the docs
mvn site -B -q
@@ -59,7 +59,8 @@ python3 -m docuploader upload . \
popd
-# V2
+# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates.
+
mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/"
pushd target/devsite/reference
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a9cd9802..4934e70c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+### [1.0.4](https://www.github.com/googleapis/java-functions/compare/v1.0.3...v1.0.4) (2020-12-14)
+
+
+### Dependencies
+
+* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#104](https://www.github.com/googleapis/java-functions/issues/104)) ([b2aeafe](https://www.github.com/googleapis/java-functions/commit/b2aeafe9c9fb6fa6ad688fd2fe6b43b0f52c54aa))
+
### [1.0.3](https://www.github.com/googleapis/java-functions/compare/v1.0.2...v1.0.3) (2020-12-02)
diff --git a/README.md b/README.md
index ee9b85e0..cc5d21c0 100644
--- a/README.md
+++ b/README.md
@@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file:
com.google.cloudgoogle-cloud-functions
- 1.0.2
+ 1.0.3
```
If you are using Gradle, add this to your dependencies
```Groovy
-compile 'com.google.cloud:google-cloud-functions:1.0.2'
+compile 'com.google.cloud:google-cloud-functions:1.0.3'
```
If you are using SBT, add this to your dependencies
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "1.0.2"
+libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "1.0.3"
```
## Authentication
@@ -106,6 +106,8 @@ Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3]
Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4]
Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5]
+Java is a registered trademark of Oracle and/or its affiliates.
+
[product-docs]: https://cloud.google.com/functions
[javadocs]: https://googleapis.dev/java/google-cloud-functions/latest/index.html
[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-functions/java7.svg
diff --git a/google-cloud-functions-bom/pom.xml b/google-cloud-functions-bom/pom.xml
index 12c30763..35892d66 100644
--- a/google-cloud-functions-bom/pom.xml
+++ b/google-cloud-functions-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0com.google.cloudgoogle-cloud-functions-bom
- 1.0.3
+ 1.0.4pomcom.google.cloud
@@ -68,17 +68,17 @@
com.google.cloudgoogle-cloud-functions
- 1.0.3
+ 1.0.4com.google.api.grpcproto-google-cloud-functions-v1
- 1.0.3
+ 1.0.4com.google.api.grpcgrpc-google-cloud-functions-v1
- 1.0.3
+ 1.0.4
diff --git a/google-cloud-functions/pom.xml b/google-cloud-functions/pom.xml
index 7b348501..5e8505d7 100644
--- a/google-cloud-functions/pom.xml
+++ b/google-cloud-functions/pom.xml
@@ -3,7 +3,7 @@
4.0.0com.google.cloudgoogle-cloud-functions
- 1.0.3
+ 1.0.4jarGoogle Cloud Functionshttps://github.com/googleapis/java-functions
@@ -11,7 +11,7 @@
com.google.cloudgoogle-cloud-functions-parent
- 1.0.3
+ 1.0.4google-cloud-functions
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 a719edc4..67716b05 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
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.functions.v1;
import com.google.api.core.ApiFunction;
@@ -43,23 +44,14 @@
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND SERVICE
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: A service that application uses to manipulate triggers and functions.
*
*
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:
*
- *
Note: close() needs to be called on the cloudFunctionsServiceClient object to clean up
+ *
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().
*
@@ -88,30 +80,28 @@
*
*
Please refer to the GitHub repository's samples for more quickstart code snippets.
*/
-@Generated("by gapic-generator")
@BetaApi
+@Generated("by gapic-generator")
public class CloudFunctionsServiceClient implements BackgroundResource {
private final CloudFunctionsServiceSettings settings;
private final CloudFunctionsServiceStub stub;
@@ -133,7 +123,7 @@ public static final CloudFunctionsServiceClient create(CloudFunctionsServiceSett
/**
* Constructs an instance of CloudFunctionsServiceClient, using the given stub for making calls.
- * This is for advanced usage - prefer to use CloudFunctionsServiceSettings}.
+ * This is for advanced usage - prefer using create(CloudFunctionsServiceSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final CloudFunctionsServiceClient create(CloudFunctionsServiceStub stub) {
@@ -171,27 +161,14 @@ public CloudFunctionsServiceStub getStub() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationsClient getOperationsClient() {
return operationsClient;
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a list of functions that belong to the requested project.
*
- *
- *
* @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
*/
@@ -199,69 +176,31 @@ public final ListFunctionsPagedResponse listFunctions(ListFunctionsRequest reque
return listFunctionsPagedCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a list of functions that belong to the requested project.
*
*
*/
public final UnaryCallable
listFunctionsPagedCallable() {
return stub.listFunctionsPagedCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a list of functions that belong to the requested project.
*
*
*/
public final UnaryCallable listFunctionsCallable() {
return stub.listFunctionsCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a function with the given name from the requested project.
*
- *
- *
* @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
*/
@@ -271,19 +210,10 @@ public final CloudFunction getFunction(CloudFunctionName name) {
return getFunction(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a function with the given name from the requested project.
*
- *
- *
* @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
*/
@@ -292,22 +222,10 @@ public final CloudFunction getFunction(String name) {
return getFunction(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a function with the given name from the requested project.
*
- *
- *
* @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
*/
@@ -315,50 +233,26 @@ public final CloudFunction getFunction(GetFunctionRequest request) {
return getFunctionCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a function with the given name from the requested project.
*
*
*/
public final UnaryCallable getFunctionCallable() {
return stub.getFunctionCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
- *
- *
* @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.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture createFunctionAsync(
LocationName location, CloudFunction function) {
CreateFunctionRequest request =
@@ -369,28 +263,16 @@ public final OperationFuture createFunctionA
return createFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
- *
- *
* @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.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture createFunctionAsync(
String location, CloudFunction function) {
CreateFunctionRequest request =
@@ -398,105 +280,49 @@ public final OperationFuture createFunctionA
return createFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
- *
- *
* @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
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture createFunctionAsync(
CreateFunctionRequest request) {
return createFunctionOperationCallable().futureCall(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
*
*/
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable
createFunctionOperationCallable() {
return stub.createFunctionOperationCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
*
- *
* @param function Required. New version of the function.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture updateFunctionAsync(
CloudFunction function) {
UpdateFunctionRequest request =
@@ -504,97 +330,47 @@ public final OperationFuture updateFunctionA
return updateFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates existing function.
*
- *
- *
* @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
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture updateFunctionAsync(
UpdateFunctionRequest request) {
return updateFunctionOperationCallable().futureCall(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates existing function.
*
*
*/
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable
updateFunctionOperationCallable() {
return stub.updateFunctionOperationCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates existing function.
*
*
*/
public final UnaryCallable updateFunctionCallable() {
return stub.updateFunctionCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
- *
- *
* @param name Required. The name of the function which should be deleted.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture deleteFunctionAsync(
CloudFunctionName name) {
DeleteFunctionRequest request =
@@ -602,121 +378,61 @@ public final OperationFuture deleteFunctionAsync(
return deleteFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
- *
- *
* @param name Required. The name of the function which should be deleted.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture deleteFunctionAsync(String name) {
DeleteFunctionRequest request = DeleteFunctionRequest.newBuilder().setName(name).build();
return deleteFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
- *
- *
* @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
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture deleteFunctionAsync(
DeleteFunctionRequest request) {
return deleteFunctionOperationCallable().futureCall(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
*
*/
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable
deleteFunctionOperationCallable() {
return stub.deleteFunctionOperationCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
*
*/
public final UnaryCallable deleteFunctionCallable() {
return stub.deleteFunctionCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
- *
- *
* @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
@@ -730,22 +446,12 @@ public final CallFunctionResponse callFunction(CloudFunctionName name, String da
return callFunction(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
- *
- *
* @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
@@ -756,26 +462,12 @@ public final CallFunctionResponse callFunction(String name, String data) {
return callFunction(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
- *
- *
* @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
*/
@@ -783,33 +475,19 @@ public final CallFunctionResponse callFunction(CallFunctionRequest request) {
return callFunctionCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
*
*/
public final UnaryCallable callFunctionCallable() {
return stub.callFunctionCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a signed URL for uploading a function source code. For more information about the
* signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once
@@ -818,28 +496,27 @@ public final UnaryCallable callFuncti
*
*
When uploading source code to the generated signed URL, please follow these restrictions:
*
- *
* Source file type should be a zip file. * Source file size should not exceed 100MB
- * limit. * No credentials should be attached - the signed URLs provide access to the target
- * bucket using internal service identity; if credentials were attached, the identity from the
- * credentials would be used, but that identity does not have permissions to upload files to the
- * URL.
+ *
+ *
Source file type should be a zip file.
+ *
Source file size should not exceed 100MB limit.
+ *
No credentials should be attached - the signed URLs provide access to the target bucket
+ * using internal service identity; if credentials were attached, the identity from the
+ * credentials would be used, but that identity does not have permissions to upload files to
+ * the URL.
+ *
*
*
When making a HTTP PUT request, these two headers need to be specified:
*
- *
*
* @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
@@ -848,7 +525,7 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
return generateUploadUrlCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a signed URL for uploading a function source code. For more information about the
* signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once
@@ -857,51 +534,41 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
*
*
When uploading source code to the generated signed URL, please follow these restrictions:
*
- *
* Source file type should be a zip file. * Source file size should not exceed 100MB
- * limit. * No credentials should be attached - the signed URLs provide access to the target
- * bucket using internal service identity; if credentials were attached, the identity from the
- * credentials would be used, but that identity does not have permissions to upload files to the
- * URL.
+ *
+ *
Source file type should be a zip file.
+ *
Source file size should not exceed 100MB limit.
+ *
No credentials should be attached - the signed URLs provide access to the target bucket
+ * using internal service identity; if credentials were attached, the identity from the
+ * credentials would be used, but that identity does not have permissions to upload files to
+ * the URL.
+ *
*
*
When making a HTTP PUT request, these two headers need to be specified:
*
- *
*/
public final UnaryCallable
generateUploadUrlCallable() {
return stub.generateUploadUrlCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a signed URL for downloading deployed function source code. The URL is only valid for a
* 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
*
- *
- *
* @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
*/
@@ -909,46 +576,23 @@ public final GenerateDownloadUrlResponse generateDownloadUrl(GenerateDownloadUrl
return generateDownloadUrlCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a signed URL for downloading deployed function source code. The URL is only valid for a
* 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
*
*
*/
public final UnaryCallable
generateDownloadUrlCallable() {
return stub.generateDownloadUrlCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the IAM access control policy on the specified function. Replaces any existing policy.
*
- *
- *
* @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
*/
@@ -956,47 +600,21 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
return setIamPolicyCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the IAM access control policy on the specified function. Replaces any existing policy.
*
*
*/
public final UnaryCallable setIamPolicyCallable() {
return stub.setIamPolicyCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the IAM access control policy for a function. Returns an empty policy if the function
* exists and does not have a policy set.
*
- *
- *
* @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
*/
@@ -1004,48 +622,22 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
return getIamPolicyCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the IAM access control policy for a function. Returns an empty policy if the function
* exists and does not have a policy set.
*
*
*/
public final UnaryCallable getIamPolicyCallable() {
return stub.getIamPolicyCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
- *
- *
* @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
*/
@@ -1053,26 +645,12 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
return testIamPermissionsCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.
*
*
*/
public final UnaryCallable
testIamPermissionsCallable() {
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java
index 39892158..cccf008c 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.functions.v1;
import static com.google.cloud.functions.v1.CloudFunctionsServiceClient.ListFunctionsPagedResponse;
@@ -41,7 +42,7 @@
import java.util.List;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link CloudFunctionsServiceClient}.
*
@@ -59,23 +60,25 @@
*
*
For example, to set the total timeout of getFunction to 30 seconds:
*
- *
+ * CloudFunctionsServiceSettings cloudFunctionsServiceSettings =
+ * cloudFunctionsServiceSettingsBuilder.build();
+ * }
*/
-@Generated("by gapic-generator")
-@BetaApi
+@Generated("by gapic-generator-java")
public class CloudFunctionsServiceSettings extends ClientSettings {
+
/** Returns the object with the settings used for calls to listFunctions. */
public PagedCallSettings
listFunctionsSettings() {
@@ -93,8 +96,6 @@ public UnaryCallSettings createFunctionSetting
}
/** Returns the object with the settings used for calls to createFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings
createFunctionOperationSettings() {
return ((CloudFunctionsServiceStubSettings) getStubSettings())
@@ -107,8 +108,6 @@ public UnaryCallSettings updateFunctionSetting
}
/** Returns the object with the settings used for calls to updateFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings
updateFunctionOperationSettings() {
return ((CloudFunctionsServiceStubSettings) getStubSettings())
@@ -121,8 +120,6 @@ public UnaryCallSettings deleteFunctionSetting
}
/** Returns the object with the settings used for calls to deleteFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings
deleteFunctionOperationSettings() {
return ((CloudFunctionsServiceStubSettings) getStubSettings())
@@ -223,18 +220,15 @@ protected CloudFunctionsServiceSettings(Builder settingsBuilder) throws IOExcept
/** Builder for CloudFunctionsServiceSettings. */
public static class Builder
extends ClientSettings.Builder {
+
protected Builder() throws IOException {
- this((ClientContext) null);
+ this(((ClientContext) null));
}
protected Builder(ClientContext clientContext) {
super(CloudFunctionsServiceStubSettings.newBuilder(clientContext));
}
- private static Builder createDefault() {
- return new Builder(CloudFunctionsServiceStubSettings.newBuilder());
- }
-
protected Builder(CloudFunctionsServiceSettings settings) {
super(settings.getStubSettings().toBuilder());
}
@@ -243,11 +237,15 @@ protected Builder(CloudFunctionsServiceStubSettings.Builder stubSettings) {
super(stubSettings);
}
+ private static Builder createDefault() {
+ return new Builder(CloudFunctionsServiceStubSettings.newBuilder());
+ }
+
public CloudFunctionsServiceStubSettings.Builder getStubSettingsBuilder() {
return ((CloudFunctionsServiceStubSettings.Builder) getStubSettings());
}
- // NEXT_MAJOR_VER: remove 'throws Exception'
+ // NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
@@ -278,8 +276,6 @@ public UnaryCallSettings.Builder createFunctio
}
/** Returns the builder for the settings used for calls to createFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder
createFunctionOperationSettings() {
return getStubSettingsBuilder().createFunctionOperationSettings();
@@ -291,8 +287,6 @@ public UnaryCallSettings.Builder updateFunctio
}
/** Returns the builder for the settings used for calls to updateFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder
updateFunctionOperationSettings() {
return getStubSettingsBuilder().updateFunctionOperationSettings();
@@ -304,8 +298,6 @@ public UnaryCallSettings.Builder deleteFunctio
}
/** Returns the builder for the settings used for calls to deleteFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder
deleteFunctionOperationSettings() {
return getStubSettingsBuilder().deleteFunctionOperationSettings();
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 a99e00a5..5e9e48c0 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
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,26 +15,15 @@
*/
/**
- * A client to Cloud Functions API.
+ * The interfaces provided are listed below, along with usage samples.
*
- *
The interfaces provided are listed below, along with usage samples.
- *
- *
*/
-@Generated("by gapic-generator")
+@Generated("by gapic-generator-java")
package com.google.cloud.functions.v1;
import javax.annotation.Generated;
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java
index 68272c3c..ad064508 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.functions.v1.stub;
import static com.google.cloud.functions.v1.CloudFunctionsServiceClient.ListFunctionsPagedResponse;
-import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
@@ -45,17 +45,15 @@
import com.google.protobuf.Empty;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
- * Base stub class for Cloud Functions API.
+ * Base stub class for the CloudFunctionsService service API.
*
*
This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator")
-@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class CloudFunctionsServiceStub implements BackgroundResource {
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationsStub getOperationsStub() {
throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
}
@@ -73,7 +71,6 @@ public UnaryCallable getFunctionCallable() {
throw new UnsupportedOperationException("Not implemented: getFunctionCallable()");
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
createFunctionOperationCallable() {
throw new UnsupportedOperationException("Not implemented: createFunctionOperationCallable()");
@@ -83,7 +80,6 @@ public UnaryCallable createFunctionCallable()
throw new UnsupportedOperationException("Not implemented: createFunctionCallable()");
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
updateFunctionOperationCallable() {
throw new UnsupportedOperationException("Not implemented: updateFunctionOperationCallable()");
@@ -93,7 +89,6 @@ public UnaryCallable updateFunctionCallable()
throw new UnsupportedOperationException("Not implemented: updateFunctionCallable()");
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
deleteFunctionOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteFunctionOperationCallable()");
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java
index 59ac3e98..80de0147 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.functions.v1.stub;
import static com.google.cloud.functions.v1.CloudFunctionsServiceClient.ListFunctionsPagedResponse;
@@ -73,7 +74,7 @@
import javax.annotation.Generated;
import org.threeten.bp.Duration;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link CloudFunctionsServiceStub}.
*
@@ -91,22 +92,24 @@
*
*
For example, to set the total timeout of getFunction to 30 seconds:
*
- *