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

feat: add new deliver targets and drop causes for Private Service Connect #195

Merged
merged 13 commits into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add fields to support Cloud functions
PiperOrigin-RevId: 460906720

Source-Link: googleapis/googleapis@6f933fe

Source-Link: https://github.com/googleapis/googleapis-gen/commit/6726a0e83c6940a679c58935803aced694ec2e3c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjcyNmEwZTgzYzY5NDBhNjc5YzU4OTM1ODAzYWNlZDY5NGVjMmUzYyJ9
  • Loading branch information
gcf-owl-bot[bot] committed Jul 14, 2022
commit 3a5df76d48e32282bf7a1a7fd391ed17d7bea06d
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,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 @@ -441,11 +441,11 @@ public final ConnectivityTest getConnectivityTest(GetConnectivityTestRequest req
* @param testId Required. The logical name of the Connectivity Test in your project with the
* following restrictions:
* <ul>
* <li>Must contain only lowercase letters, numbers, and hyphens.
* <li>Must start with a letter.
* <li>Must be between 1-40 characters.
* <li>Must end with a number or a letter.
* <li>Must be unique within the customer project
* <li> Must contain only lowercase letters, numbers, and hyphens.
* <li> Must start with a letter.
* <li> Must be between 1-40 characters.
* <li> Must end with a number or a letter.
* <li> Must be unique within the customer project
* </ul>
*
* @param resource Required. A `ConnectivityTest` resource
Expand Down Expand Up @@ -965,11 +965,8 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListConnectivityTestsPagedResponse
extends AbstractPagedListResponse<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ConnectivityTest,
ListConnectivityTestsPage,
ListConnectivityTestsFixedSizeCollection> {
ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest,
ListConnectivityTestsPage, ListConnectivityTestsFixedSizeCollection> {

public static ApiFuture<ListConnectivityTestsPagedResponse> createAsync(
PageContext<ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest>
Expand All @@ -990,9 +987,7 @@ private ListConnectivityTestsPagedResponse(ListConnectivityTestsPage page) {

public static class ListConnectivityTestsPage
extends AbstractPage<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ConnectivityTest,
ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest,
ListConnectivityTestsPage> {

private ListConnectivityTestsPage(
Expand Down Expand Up @@ -1025,11 +1020,8 @@ public ApiFuture<ListConnectivityTestsPage> createPageAsync(

public static class ListConnectivityTestsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ConnectivityTest,
ListConnectivityTestsPage,
ListConnectivityTestsFixedSizeCollection> {
ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest,
ListConnectivityTestsPage, ListConnectivityTestsFixedSizeCollection> {

private ListConnectivityTestsFixedSizeCollection(
List<ListConnectivityTestsPage> 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.networkmanagement.v1.stub.ReachabilityServiceStubSettings;
Expand All @@ -45,10 +46,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (networkmanagement.googleapis.com) and default port (443) are
* <li> The default service address (networkmanagement.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 Expand Up @@ -79,8 +80,7 @@ public class ReachabilityServiceSettings extends ClientSettings<ReachabilityServ

/** Returns the object with the settings used for calls to listConnectivityTests. */
public PagedCallSettings<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return ((ReachabilityServiceStubSettings) getStubSettings()).listConnectivityTestsSettings();
Expand Down Expand Up @@ -261,8 +261,7 @@ public Builder applyToAllUnaryMethods(

/** Returns the builder for the settings used for calls to listConnectivityTests. */
public PagedCallSettings.Builder<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return getStubSettingsBuilder().listConnectivityTestsSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,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
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (networkmanagement.googleapis.com) and default port (443) are
* <li> The default service address (networkmanagement.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 Expand Up @@ -110,8 +110,7 @@ public class ReachabilityServiceStubSettings extends StubSettings<ReachabilitySe
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();

private final PagedCallSettings<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings;
private final UnaryCallSettings<GetConnectivityTestRequest, ConnectivityTest>
Expand Down Expand Up @@ -178,13 +177,11 @@ public Iterable<ConnectivityTest> extractResources(
};

private static final PagedListResponseFactory<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
LIST_CONNECTIVITY_TESTS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>() {
@Override
public ApiFuture<ListConnectivityTestsPagedResponse> getFuturePagedResponse(
Expand All @@ -203,8 +200,7 @@ public ApiFuture<ListConnectivityTestsPagedResponse> getFuturePagedResponse(

/** Returns the object with the settings used for calls to listConnectivityTests. */
public PagedCallSettings<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return listConnectivityTestsSettings;
Expand Down Expand Up @@ -391,8 +387,7 @@ public static class Builder
extends StubSettings.Builder<ReachabilityServiceStubSettings, Builder> {
private final ImmutableList<UnaryCallSettings.Builder<?, ?>> unaryMethodSettingsBuilders;
private final PagedCallSettings.Builder<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings;
private final UnaryCallSettings.Builder<GetConnectivityTestRequest, ConnectivityTest>
Expand Down Expand Up @@ -675,8 +670,7 @@ public Builder applyToAllUnaryMethods(

/** Returns the builder for the settings used for calls to listConnectivityTests. */
public PagedCallSettings.Builder<
ListConnectivityTestsRequest,
ListConnectivityTestsResponse,
ListConnectivityTestsRequest, ListConnectivityTestsResponse,
ListConnectivityTestsPagedResponse>
listConnectivityTestsSettings() {
return listConnectivityTestsSettings;
Expand Down
Loading