Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: generating GAPIC libraries for Google Cloud Functions v2beta
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 459309277

Source-Link: googleapis/googleapis@2844793

Source-Link: googleapis/googleapis-gen@319987c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzE5OTg3Y2MwZTg3ODlhMzY4ZTM0ODgyMjcxYTkyYjA3MTdjOWM4ZiJ9
  • Loading branch information
gcf-owl-bot[bot] committed Jul 18, 2022
1 parent 3c6f8ac commit 62fd895
Show file tree
Hide file tree
Showing 395 changed files with 77,998 additions and 40,364 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* <li> A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* <li> A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
*
Expand Down Expand Up @@ -927,9 +927,9 @@ public final UnaryCallable<CallFunctionRequest, CallFunctionResponse> callFuncti
* <p>When uploading source code to the generated signed URL, please follow these restrictions:
*
* <ul>
* <li>Source file type should be a zip file.
* <li>Source file size should not exceed 100MB limit.
* <li>No credentials should be attached - the signed URLs provide access to the target bucket
* <li> Source file type should be a zip file.
* <li> Source file size should not exceed 100MB limit.
* <li> 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.
Expand All @@ -938,14 +938,14 @@ public final UnaryCallable<CallFunctionRequest, CallFunctionResponse> callFuncti
* <p>When making a HTTP PUT request, these two headers need to be specified:
*
* <ul>
* <li>`content-type: application/zip`
* <li>`x-goog-content-length-range: 0,104857600`
* <li> `content-type: application/zip`
* <li> `x-goog-content-length-range: 0,104857600`
* </ul>
*
* <p>And this header SHOULD NOT be specified:
*
* <ul>
* <li>`Authorization: Bearer YOUR_TOKEN`
* <li> `Authorization: Bearer YOUR_TOKEN`
* </ul>
*
* <p>Sample code:
Expand Down Expand Up @@ -983,9 +983,9 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
* <p>When uploading source code to the generated signed URL, please follow these restrictions:
*
* <ul>
* <li>Source file type should be a zip file.
* <li>Source file size should not exceed 100MB limit.
* <li>No credentials should be attached - the signed URLs provide access to the target bucket
* <li> Source file type should be a zip file.
* <li> Source file size should not exceed 100MB limit.
* <li> 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.
Expand All @@ -994,14 +994,14 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
* <p>When making a HTTP PUT request, these two headers need to be specified:
*
* <ul>
* <li>`content-type: application/zip`
* <li>`x-goog-content-length-range: 0,104857600`
* <li> `content-type: application/zip`
* <li> `x-goog-content-length-range: 0,104857600`
* </ul>
*
* <p>And this header SHOULD NOT be specified:
*
* <ul>
* <li>`Authorization: Bearer YOUR_TOKEN`
* <li> `Authorization: Bearer YOUR_TOKEN`
* </ul>
*
* <p>Sample code:
Expand Down Expand Up @@ -1291,10 +1291,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListFunctionsPagedResponse
extends AbstractPagedListResponse<
ListFunctionsRequest,
ListFunctionsResponse,
CloudFunction,
ListFunctionsPage,
ListFunctionsRequest, ListFunctionsResponse, CloudFunction, ListFunctionsPage,
ListFunctionsFixedSizeCollection> {

public static ApiFuture<ListFunctionsPagedResponse> createAsync(
Expand Down Expand Up @@ -1344,10 +1341,7 @@ public ApiFuture<ListFunctionsPage> createPageAsync(

public static class ListFunctionsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListFunctionsRequest,
ListFunctionsResponse,
CloudFunction,
ListFunctionsPage,
ListFunctionsRequest, ListFunctionsResponse, CloudFunction, ListFunctionsPage,
ListFunctionsFixedSizeCollection> {

private ListFunctionsFixedSizeCollection(List<ListFunctionsPage> pages, int collectionSize) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.functions.v1.stub.CloudFunctionsServiceStubSettings;
Expand All @@ -50,10 +51,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (cloudfunctions.googleapis.com) and default port (443) are
* <li> The default service address (cloudfunctions.googleapis.com) and default port (443) are
* used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (cloudfunctions.googleapis.com) and default port (443) are
* <li> The default service address (cloudfunctions.googleapis.com) and default port (443) are
* used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
import com.google.api.gax.httpjson.ProtoRestSerializer;
import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub;
import com.google.api.gax.longrunning.OperationSnapshot;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
Expand Down
Loading

0 comments on commit 62fd895

Please sign in to comment.