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

fix: update gapic-generator-java with mock service generation fixes #118

Merged
merged 10 commits into from
Jun 30, 2022
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-deploy</artifactId>
<version>1.0.4</version>
<version>1.1.0</version>
</dependency>
```

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

```Groovy
implementation 'com.google.cloud:google-cloud-deploy:1.0.4'
implementation 'com.google.cloud:google-cloud-deploy:1.1.0'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.0.4"
libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.1.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
Expand Down Expand Up @@ -130,7 +129,6 @@ public static final CloudDeployClient create(CloudDeploySettings settings) throw
* Constructs an instance of CloudDeployClient, using the given stub for making calls. This is for
* advanced usage - prefer using create(CloudDeploySettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final CloudDeployClient create(CloudDeployStub stub) {
return new CloudDeployClient(stub);
}
Expand All @@ -146,7 +144,6 @@ protected CloudDeployClient(CloudDeploySettings settings) throws IOException {
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
protected CloudDeployClient(CloudDeployStub stub) {
this.settings = null;
this.stub = stub;
Expand All @@ -157,7 +154,6 @@ public final CloudDeploySettings getSettings() {
return settings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public CloudDeployStub getStub() {
return stub;
}
Expand Down Expand Up @@ -314,7 +310,7 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines(
* while (true) {
* ListDeliveryPipelinesResponse response =
* cloudDeployClient.listDeliveryPipelinesCallable().call(request);
* for (DeliveryPipeline element : response.getResponsesList()) {
* for (DeliveryPipeline element : response.getDeliveryPipelinesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1020,7 +1016,7 @@ public final ListTargetsPagedResponse listTargets(ListTargetsRequest request) {
* .build();
* while (true) {
* ListTargetsResponse response = cloudDeployClient.listTargetsCallable().call(request);
* for (Target element : response.getResponsesList()) {
* for (Target element : response.getTargetsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -1689,7 +1685,7 @@ public final ListReleasesPagedResponse listReleases(ListReleasesRequest request)
* .build();
* while (true) {
* ListReleasesResponse response = cloudDeployClient.listReleasesCallable().call(request);
* for (Release element : response.getResponsesList()) {
* for (Release element : response.getReleasesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -2241,7 +2237,7 @@ public final ListRolloutsPagedResponse listRollouts(ListRolloutsRequest request)
* .build();
* while (true) {
* ListRolloutsResponse response = cloudDeployClient.listRolloutsCallable().call(request);
* for (Rollout element : response.getResponsesList()) {
* for (Rollout element : response.getRolloutsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ public UnaryCallSettings<GetConfigRequest, Config> getConfigSettings() {
return getConfigSettings;
}

@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public CloudDeployStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
Expand Down