Skip to content
Permalink
Browse files
feat: new generated features
* changes without context

        autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.

* feat: Deprecated SearchAssignments in favor of SearchAllAssignments feat: Reservation objects now contain a creation time and an update time feat: Added commitment_start_time to capacity commitments feat: Force deleting capacity commitments is allowed while reservations with active assignments exist feat: ML_EXTERNAL job type is supported feat: Optional id can be passed into CreateCapacityCommitment and CreateAssignment docs: Clarified docs for None assignments fix!: Fixed pattern for BiReservation object BREAKING_CHANGE: Changed from `bireservation` to `biReservation`

PiperOrigin-RevId: 394129271

Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Aug 31 18:31:20 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 2c7f233a072ce7acf72a1db871a94a7c3e8ad36e
Source-Link: googleapis/googleapis@2c7f233

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
yoshi-automation and gcf-owl-bot[bot] committed Sep 1, 2021
1 parent 448c9d3 commit 9f89c0ff63876d02b30acfa3b03d9460ea488a94
Showing with 5,608 additions and 328 deletions.
  1. +3 −3 README.md
  2. +380 −12 ...yreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java
  3. +31 −2 ...eservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java
  4. +3 −0 ...ud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/gapic_metadata.json
  5. +3 −1 ...loud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/package-info.java
  6. +52 −0 ...ation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/GrpcReservationServiceStub.java
  7. +15 −0 ...servation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStub.java
  8. +123 −5 ...n/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java
  9. +22 −0 ...eservation/src/test/java/com/google/cloud/bigquery/reservation/v1/MockReservationServiceImpl.java
  10. +116 −0 ...ervation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java
  11. +212 −7 ...reservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceGrpc.java
  12. +24 −0 ...oud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Assignment.java
  13. +7 −7 ...-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/BiReservation.java
  14. +2 −2 ...queryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/BiReservationName.java
  15. +2 −2 ...reservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/BiReservationOrBuilder.java
  16. +312 −0 ...ueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitment.java
  17. +44 −0 ...vation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitmentOrBuilder.java
  18. +200 −0 ...eservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CreateAssignmentRequest.java
  19. +31 −0 ...n-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CreateAssignmentRequestOrBuilder.java
  20. +207 −0 ...on-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CreateCapacityCommitmentRequest.java
  21. +33 −0 .../main/java/com/google/cloud/bigquery/reservation/v1/CreateCapacityCommitmentRequestOrBuilder.java
  22. +98 −0 ...on-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/DeleteCapacityCommitmentRequest.java
  23. +15 −0 .../main/java/com/google/cloud/bigquery/reservation/v1/DeleteCapacityCommitmentRequestOrBuilder.java
  24. +7 −7 ...eservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/GetBiReservationRequest.java
  25. +2 −2 ...n-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/GetBiReservationRequestOrBuilder.java
  26. +609 −12 ...ud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java
  27. +83 −3 ...ryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationOrBuilder.java
  28. +299 −252 ...gqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java
  29. +1,158 −0 ...vation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/SearchAllAssignmentsRequest.java
  30. +129 −0 .../src/main/java/com/google/cloud/bigquery/reservation/v1/SearchAllAssignmentsRequestOrBuilder.java
  31. +1,160 −0 ...ation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/SearchAllAssignmentsResponse.java
  32. +104 −0 ...src/main/java/com/google/cloud/bigquery/reservation/v1/SearchAllAssignmentsResponseOrBuilder.java
  33. +115 −8 ...loud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto
  34. +7 −3 synth.metadata
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-bigqueryreservation</artifactId>
<version>2.0.2</version>
<version>2.0.3</version>
</dependency>
```

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

```Groovy
implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.0.2'
implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.0.3'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.0.2"
libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.0.3"
```

## Authentication

Large diffs are not rendered by default.

@@ -19,6 +19,7 @@
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListAssignmentsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListCapacityCommitmentsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListReservationsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.SearchAllAssignmentsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.SearchAssignmentsPagedResponse;

import com.google.api.core.ApiFunction;
@@ -164,13 +165,27 @@ public UnaryCallSettings<DeleteAssignmentRequest, Empty> deleteAssignmentSetting
return ((ReservationServiceStubSettings) getStubSettings()).deleteAssignmentSettings();
}

/** Returns the object with the settings used for calls to searchAssignments. */
/**
* Returns the object with the settings used for calls to searchAssignments.
*
* @deprecated This method is deprecated and will be removed in the next major version update.
*/
@Deprecated
public PagedCallSettings<
SearchAssignmentsRequest, SearchAssignmentsResponse, SearchAssignmentsPagedResponse>
searchAssignmentsSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).searchAssignmentsSettings();
}

/** Returns the object with the settings used for calls to searchAllAssignments. */
public PagedCallSettings<
SearchAllAssignmentsRequest,
SearchAllAssignmentsResponse,
SearchAllAssignmentsPagedResponse>
searchAllAssignmentsSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).searchAllAssignmentsSettings();
}

/** Returns the object with the settings used for calls to moveAssignment. */
public UnaryCallSettings<MoveAssignmentRequest, Assignment> moveAssignmentSettings() {
return ((ReservationServiceStubSettings) getStubSettings()).moveAssignmentSettings();
@@ -377,13 +392,27 @@ public UnaryCallSettings.Builder<DeleteAssignmentRequest, Empty> deleteAssignmen
return getStubSettingsBuilder().deleteAssignmentSettings();
}

/** Returns the builder for the settings used for calls to searchAssignments. */
/**
* Returns the builder for the settings used for calls to searchAssignments.
*
* @deprecated This method is deprecated and will be removed in the next major version update.
*/
@Deprecated
public PagedCallSettings.Builder<
SearchAssignmentsRequest, SearchAssignmentsResponse, SearchAssignmentsPagedResponse>
searchAssignmentsSettings() {
return getStubSettingsBuilder().searchAssignmentsSettings();
}

/** Returns the builder for the settings used for calls to searchAllAssignments. */
public PagedCallSettings.Builder<
SearchAllAssignmentsRequest,
SearchAllAssignmentsResponse,
SearchAllAssignmentsPagedResponse>
searchAllAssignmentsSettings() {
return getStubSettingsBuilder().searchAllAssignmentsSettings();
}

/** Returns the builder for the settings used for calls to moveAssignment. */
public UnaryCallSettings.Builder<MoveAssignmentRequest, Assignment> moveAssignmentSettings() {
return getStubSettingsBuilder().moveAssignmentSettings();
@@ -52,6 +52,9 @@
"MoveAssignment": {
"methods": ["moveAssignment", "moveAssignment", "moveAssignment", "moveAssignment", "moveAssignment", "moveAssignmentCallable"]
},
"SearchAllAssignments": {
"methods": ["searchAllAssignments", "searchAllAssignments", "searchAllAssignments", "searchAllAssignmentsPagedCallable", "searchAllAssignmentsCallable"]
},
"SearchAssignments": {
"methods": ["searchAssignments", "searchAssignments", "searchAssignments", "searchAssignmentsPagedCallable", "searchAssignmentsCallable"]
},
@@ -15,7 +15,9 @@
*/

/**
* The interfaces provided are listed below, along with usage samples.
* A client to BigQuery Reservation API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= ReservationServiceClient =======================
*
@@ -19,6 +19,7 @@
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListAssignmentsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListCapacityCommitmentsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListReservationsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.SearchAllAssignmentsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.SearchAssignmentsPagedResponse;

import com.google.api.gax.core.BackgroundResource;
@@ -48,6 +49,8 @@
import com.google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest;
import com.google.cloud.bigquery.reservation.v1.MoveAssignmentRequest;
import com.google.cloud.bigquery.reservation.v1.Reservation;
import com.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest;
import com.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse;
import com.google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest;
import com.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse;
import com.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest;
@@ -257,6 +260,18 @@ public class GrpcReservationServiceStub extends ReservationServiceStub {
ProtoUtils.marshaller(SearchAssignmentsResponse.getDefaultInstance()))
.build();

private static final MethodDescriptor<SearchAllAssignmentsRequest, SearchAllAssignmentsResponse>
searchAllAssignmentsMethodDescriptor =
MethodDescriptor.<SearchAllAssignmentsRequest, SearchAllAssignmentsResponse>newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.bigquery.reservation.v1.ReservationService/SearchAllAssignments")
.setRequestMarshaller(
ProtoUtils.marshaller(SearchAllAssignmentsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(SearchAllAssignmentsResponse.getDefaultInstance()))
.build();

private static final MethodDescriptor<MoveAssignmentRequest, Assignment>
moveAssignmentMethodDescriptor =
MethodDescriptor.<MoveAssignmentRequest, Assignment>newBuilder()
@@ -324,6 +339,10 @@ public class GrpcReservationServiceStub extends ReservationServiceStub {
searchAssignmentsCallable;
private final UnaryCallable<SearchAssignmentsRequest, SearchAssignmentsPagedResponse>
searchAssignmentsPagedCallable;
private final UnaryCallable<SearchAllAssignmentsRequest, SearchAllAssignmentsResponse>
searchAllAssignmentsCallable;
private final UnaryCallable<SearchAllAssignmentsRequest, SearchAllAssignmentsPagedResponse>
searchAllAssignmentsPagedCallable;
private final UnaryCallable<MoveAssignmentRequest, Assignment> moveAssignmentCallable;
private final UnaryCallable<GetBiReservationRequest, BiReservation> getBiReservationCallable;
private final UnaryCallable<UpdateBiReservationRequest, BiReservation>
@@ -548,6 +567,17 @@ protected GrpcReservationServiceStub(
return params.build();
})
.build();
GrpcCallSettings<SearchAllAssignmentsRequest, SearchAllAssignmentsResponse>
searchAllAssignmentsTransportSettings =
GrpcCallSettings.<SearchAllAssignmentsRequest, SearchAllAssignmentsResponse>newBuilder()
.setMethodDescriptor(searchAllAssignmentsMethodDescriptor)
.setParamsExtractor(
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
})
.build();
GrpcCallSettings<MoveAssignmentRequest, Assignment> moveAssignmentTransportSettings =
GrpcCallSettings.<MoveAssignmentRequest, Assignment>newBuilder()
.setMethodDescriptor(moveAssignmentMethodDescriptor)
@@ -668,6 +698,16 @@ protected GrpcReservationServiceStub(
searchAssignmentsTransportSettings,
settings.searchAssignmentsSettings(),
clientContext);
this.searchAllAssignmentsCallable =
callableFactory.createUnaryCallable(
searchAllAssignmentsTransportSettings,
settings.searchAllAssignmentsSettings(),
clientContext);
this.searchAllAssignmentsPagedCallable =
callableFactory.createPagedCallable(
searchAllAssignmentsTransportSettings,
settings.searchAllAssignmentsSettings(),
clientContext);
this.moveAssignmentCallable =
callableFactory.createUnaryCallable(
moveAssignmentTransportSettings, settings.moveAssignmentSettings(), clientContext);
@@ -800,6 +840,18 @@ public UnaryCallable<DeleteAssignmentRequest, Empty> deleteAssignmentCallable()
return searchAssignmentsPagedCallable;
}

@Override
public UnaryCallable<SearchAllAssignmentsRequest, SearchAllAssignmentsResponse>
searchAllAssignmentsCallable() {
return searchAllAssignmentsCallable;
}

@Override
public UnaryCallable<SearchAllAssignmentsRequest, SearchAllAssignmentsPagedResponse>
searchAllAssignmentsPagedCallable() {
return searchAllAssignmentsPagedCallable;
}

@Override
public UnaryCallable<MoveAssignmentRequest, Assignment> moveAssignmentCallable() {
return moveAssignmentCallable;
@@ -19,6 +19,7 @@
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListAssignmentsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListCapacityCommitmentsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListReservationsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.SearchAllAssignmentsPagedResponse;
import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.SearchAssignmentsPagedResponse;

import com.google.api.gax.core.BackgroundResource;
@@ -44,6 +45,8 @@
import com.google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest;
import com.google.cloud.bigquery.reservation.v1.MoveAssignmentRequest;
import com.google.cloud.bigquery.reservation.v1.Reservation;
import com.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRequest;
import com.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse;
import com.google.cloud.bigquery.reservation.v1.SearchAssignmentsRequest;
import com.google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse;
import com.google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentRequest;
@@ -146,16 +149,28 @@ public UnaryCallable<DeleteAssignmentRequest, Empty> deleteAssignmentCallable()
throw new UnsupportedOperationException("Not implemented: deleteAssignmentCallable()");
}

@Deprecated
public UnaryCallable<SearchAssignmentsRequest, SearchAssignmentsPagedResponse>
searchAssignmentsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: searchAssignmentsPagedCallable()");
}

@Deprecated
public UnaryCallable<SearchAssignmentsRequest, SearchAssignmentsResponse>
searchAssignmentsCallable() {
throw new UnsupportedOperationException("Not implemented: searchAssignmentsCallable()");
}

public UnaryCallable<SearchAllAssignmentsRequest, SearchAllAssignmentsPagedResponse>
searchAllAssignmentsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllAssignmentsPagedCallable()");
}

public UnaryCallable<SearchAllAssignmentsRequest, SearchAllAssignmentsResponse>
searchAllAssignmentsCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllAssignmentsCallable()");
}

public UnaryCallable<MoveAssignmentRequest, Assignment> moveAssignmentCallable() {
throw new UnsupportedOperationException("Not implemented: moveAssignmentCallable()");
}

0 comments on commit 9f89c0f

Please sign in to comment.