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

Commit

Permalink
🦉 Updates from OwlBot
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Oct 19, 2021
1 parent fceb6b4 commit 60175bb
Show file tree
Hide file tree
Showing 110 changed files with 21,900 additions and 12,531 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-binary-authorization</artifactId>
<version>0.3.1</version>
<version>0.3.3</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies

```Groovy
implementation 'com.google.cloud:google-cloud-binary-authorization:0.3.1'
implementation 'com.google.cloud:google-cloud-binary-authorization:0.3.3'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "0.3.1"
libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "0.3.3"
```

## Authentication
Expand Down
10 changes: 10 additions & 0 deletions google-cloud-binary-authorization-bom/pom.xml
Expand Up @@ -63,11 +63,21 @@
<artifactId>grpc-google-cloud-binary-authorization-v1beta1</artifactId>
<version>0.3.4-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-binary-authorization-v1beta1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-binary-authorization-v1</artifactId>
<version>0.3.4-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-binary-authorization-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-binary-authorization-v1beta1</artifactId>
<version>0.3.4-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-binary-authorization-v1beta1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-binary-authorization-v1</artifactId>
<version>0.3.4-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-binary-authorization-v1:current} -->
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
9 changes: 9 additions & 0 deletions google-cloud-binary-authorization/pom.xml
Expand Up @@ -42,6 +42,10 @@
<artifactId>proto-google-common-protos</artifactId>
</dependency>

<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-binary-authorization-v1</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-binary-authorization-v1beta1</artifactId>
Expand Down Expand Up @@ -76,6 +80,11 @@
<artifactId>grpc-google-cloud-binary-authorization-v1beta1</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-binary-authorization-v1</artifactId>
<scope>test</scope>
</dependency>
<!-- Need testing utility classes for generated gRPC clients tests -->
<dependency>
<groupId>com.google.api</groupId>
Expand Down
Expand Up @@ -42,8 +42,8 @@
* <p>This API implements a REST model with the following objects:
*
* <ul>
* <li> [Policy][google.cloud.binaryauthorization.v1beta1.Policy]
* <li> [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
* <li>[Policy][google.cloud.binaryauthorization.v1beta1.Policy]
* <li>[Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
* </ul>
*
* <p>This class provides the ability to make remote calls to the backing service through method
Expand All @@ -65,13 +65,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 @@ -967,7 +967,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListAttestorsPagedResponse
extends AbstractPagedListResponse<
ListAttestorsRequest, ListAttestorsResponse, Attestor, ListAttestorsPage,
ListAttestorsRequest,
ListAttestorsResponse,
Attestor,
ListAttestorsPage,
ListAttestorsFixedSizeCollection> {

public static ApiFuture<ListAttestorsPagedResponse> createAsync(
Expand Down Expand Up @@ -1017,7 +1020,10 @@ public ApiFuture<ListAttestorsPage> createPageAsync(

public static class ListAttestorsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListAttestorsRequest, ListAttestorsResponse, Attestor, ListAttestorsPage,
ListAttestorsRequest,
ListAttestorsResponse,
Attestor,
ListAttestorsPage,
ListAttestorsFixedSizeCollection> {

private ListAttestorsFixedSizeCollection(List<ListAttestorsPage> pages, int collectionSize) {
Expand Down
Expand Up @@ -27,7 +27,6 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
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.binaryauthorization.v1beta1.stub.BinauthzManagementServiceV1Beta1StubSettings;
Expand All @@ -43,10 +42,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (binaryauthorization.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>The default service address (binaryauthorization.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.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
Expand Up @@ -25,8 +25,8 @@
* <p>This API implements a REST model with the following objects:
*
* <ul>
* <li> [Policy][google.cloud.binaryauthorization.v1beta1.Policy]
* <li> [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
* <li>[Policy][google.cloud.binaryauthorization.v1beta1.Policy]
* <li>[Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
* </ul>
*
* <p>Sample for BinauthzManagementServiceV1Beta1Client:
Expand Down
Expand Up @@ -67,10 +67,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (binaryauthorization.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>The default service address (binaryauthorization.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.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
Expand Up @@ -41,7 +41,6 @@
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
Expand Up @@ -42,8 +42,8 @@
* <p>This API implements a REST model with the following objects:
*
* <ul>
* <li> [Policy][google.cloud.binaryauthorization.v1.Policy]
* <li> [Attestor][google.cloud.binaryauthorization.v1.Attestor]
* <li>[Policy][google.cloud.binaryauthorization.v1.Policy]
* <li>[Attestor][google.cloud.binaryauthorization.v1.Attestor]
* </ul>
*
* <p>This class provides the ability to make remote calls to the backing service through method
Expand All @@ -65,13 +65,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 @@ -979,8 +979,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListAttestorsPagedResponse
extends AbstractPagedListResponse<
Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor,
ListAttestorsPage, ListAttestorsFixedSizeCollection> {
Service.ListAttestorsRequest,
Service.ListAttestorsResponse,
Resources.Attestor,
ListAttestorsPage,
ListAttestorsFixedSizeCollection> {

public static ApiFuture<ListAttestorsPagedResponse> createAsync(
PageContext<Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor>
Expand All @@ -1001,7 +1004,9 @@ private ListAttestorsPagedResponse(ListAttestorsPage page) {

public static class ListAttestorsPage
extends AbstractPage<
Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor,
Service.ListAttestorsRequest,
Service.ListAttestorsResponse,
Resources.Attestor,
ListAttestorsPage> {

private ListAttestorsPage(
Expand Down Expand Up @@ -1034,8 +1039,11 @@ public ApiFuture<ListAttestorsPage> createPageAsync(

public static class ListAttestorsFixedSizeCollection
extends AbstractFixedSizeCollection<
Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor,
ListAttestorsPage, ListAttestorsFixedSizeCollection> {
Service.ListAttestorsRequest,
Service.ListAttestorsResponse,
Resources.Attestor,
ListAttestorsPage,
ListAttestorsFixedSizeCollection> {

private ListAttestorsFixedSizeCollection(List<ListAttestorsPage> pages, int collectionSize) {
super(pages, collectionSize);
Expand Down
Expand Up @@ -27,7 +27,6 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
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.protobuf.Empty;
Expand All @@ -43,10 +42,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (binaryauthorization.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>The default service address (binaryauthorization.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.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
Expand Up @@ -46,13 +46,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 @@ -24,7 +24,6 @@
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.protos.google.cloud.binaryauthorization.v1.stub.SystemPolicyV1StubSettings;
Expand All @@ -39,10 +38,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (binaryauthorization.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>The default service address (binaryauthorization.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.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
Expand Up @@ -54,13 +54,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 @@ -24,7 +24,6 @@
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.protos.google.cloud.binaryauthorization.v1.stub.ValidationHelperV1StubSettings;
Expand All @@ -39,10 +38,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (binaryauthorization.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>The default service address (binaryauthorization.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.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
Expand Up @@ -27,8 +27,8 @@
* <p>This API implements a REST model with the following objects:
*
* <ul>
* <li> [Policy][google.cloud.binaryauthorization.v1.Policy]
* <li> [Attestor][google.cloud.binaryauthorization.v1.Attestor]
* <li>[Policy][google.cloud.binaryauthorization.v1.Policy]
* <li>[Attestor][google.cloud.binaryauthorization.v1.Attestor]
* </ul>
*
* <p>Sample for BinauthzManagementServiceV1Client:
Expand Down
Expand Up @@ -59,10 +59,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (binaryauthorization.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>The default service address (binaryauthorization.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.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -152,7 +152,8 @@ public Iterable<Resources.Attestor> extractResources(
Service.ListAttestorsRequest, Service.ListAttestorsResponse, ListAttestorsPagedResponse>
LIST_ATTESTORS_PAGE_STR_FACT =
new PagedListResponseFactory<
Service.ListAttestorsRequest, Service.ListAttestorsResponse,
Service.ListAttestorsRequest,
Service.ListAttestorsResponse,
ListAttestorsPagedResponse>() {
@Override
public ApiFuture<ListAttestorsPagedResponse> getFuturePagedResponse(
Expand All @@ -161,7 +162,8 @@ public ApiFuture<ListAttestorsPagedResponse> getFuturePagedResponse(
ApiCallContext context,
ApiFuture<Service.ListAttestorsResponse> futureResponse) {
PageContext<
Service.ListAttestorsRequest, Service.ListAttestorsResponse,
Service.ListAttestorsRequest,
Service.ListAttestorsResponse,
Resources.Attestor>
pageContext =
PageContext.create(callable, LIST_ATTESTORS_PAGE_STR_DESC, request, context);
Expand Down

0 comments on commit 60175bb

Please sign in to comment.