Skip to content

Commit e8aec00

Browse files
fix(deps): update dependency com.google.cloud:libraries-bom to v26.67.0 (#4104)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://redirect.github.com/googleapis/java-cloud-bom)) | `26.66.0` -> `26.67.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:libraries-bom/26.67.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:libraries-bom/26.66.0/26.67.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>googleapis/java-cloud-bom (com.google.cloud:libraries-bom)</summary> ### [`v26.67.0`](https://redirect.github.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#26670-2025-08-28) [Compare Source](https://redirect.github.com/googleapis/java-cloud-bom/compare/v26.66.0...v26.67.0) ##### Dependencies - update dependency com.google.cloud:first-party-dependencies to v3.52.0 ([#&#8203;7165](https://redirect.github.com/googleapis/java-cloud-bom/issues/7165)) ([da61960](https://redirect.github.com/googleapis/java-cloud-bom/commit/da619607960c09b48c9ad4889797230ae47744e9)) - update dependency com.google.cloud:gapic-libraries-bom to v1.67.0 ([#&#8203;7171](https://redirect.github.com/googleapis/java-cloud-bom/issues/7171)) ([57845be](https://redirect.github.com/googleapis/java-cloud-bom/commit/57845be3b8c8b84fd097bcd11b49b2fe74f6fb13)) - update dependency com.google.cloud:google-cloud-bigquery to v2.54.2 ([#&#8203;7178](https://redirect.github.com/googleapis/java-cloud-bom/issues/7178)) ([4493901](https://redirect.github.com/googleapis/java-cloud-bom/commit/449390107c85622da8c0c419bdbed0097cfb8a42)) - update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3.16.3 ([#&#8203;7175](https://redirect.github.com/googleapis/java-cloud-bom/issues/7175)) ([2ff000c](https://redirect.github.com/googleapis/java-cloud-bom/commit/2ff000c4e7737d725bdaa666f560a3b6a5ea2ae0)) - update dependency com.google.cloud:google-cloud-bigtable-bom to v2.65.1 ([#&#8203;7179](https://redirect.github.com/googleapis/java-cloud-bom/issues/7179)) ([d7c41c8](https://redirect.github.com/googleapis/java-cloud-bom/commit/d7c41c8242f4d32e6802fd1035cace0f4e3ddaa5)) - update dependency com.google.cloud:google-cloud-datastore-bom to v2.31.4 ([#&#8203;7166](https://redirect.github.com/googleapis/java-cloud-bom/issues/7166)) ([eae10f2](https://redirect.github.com/googleapis/java-cloud-bom/commit/eae10f2cca565c108d0065d3f5d083181563a8bb)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.32.2 ([#&#8203;7176](https://redirect.github.com/googleapis/java-cloud-bom/issues/7176)) ([530394e](https://redirect.github.com/googleapis/java-cloud-bom/commit/530394edd75c7906d5a2a987f543560daa89b3e1)) - update dependency com.google.cloud:google-cloud-logging-bom to v3.23.3 ([#&#8203;7167](https://redirect.github.com/googleapis/java-cloud-bom/issues/7167)) ([77f3de5](https://redirect.github.com/googleapis/java-cloud-bom/commit/77f3de56d55bd58afb95b08bd31b457dcf233102)) - update dependency com.google.cloud:google-cloud-logging-logback to v0.132.14-alpha ([#&#8203;7168](https://redirect.github.com/googleapis/java-cloud-bom/issues/7168)) ([8450c8d](https://redirect.github.com/googleapis/java-cloud-bom/commit/8450c8d38e073370dfb25de6ae2e2d5471a67f0a)) - update dependency com.google.cloud:google-cloud-nio to v0.128.3 ([#&#8203;7177](https://redirect.github.com/googleapis/java-cloud-bom/issues/7177)) ([4717586](https://redirect.github.com/googleapis/java-cloud-bom/commit/4717586faeaa679c50d0af4f80c58921cd2b6338)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.141.3 ([#&#8203;7169](https://redirect.github.com/googleapis/java-cloud-bom/issues/7169)) ([cb947c9](https://redirect.github.com/googleapis/java-cloud-bom/commit/cb947c9b1f7d31553e4692c0acf503f7a3fe0e5f)) - update dependency com.google.cloud:google-cloud-pubsublite-bom to v1.15.14 ([#&#8203;7170](https://redirect.github.com/googleapis/java-cloud-bom/issues/7170)) ([14fc0f3](https://redirect.github.com/googleapis/java-cloud-bom/commit/14fc0f358a1e8f3651a7608c697bfa69a182c809)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.99.0 ([#&#8203;7180](https://redirect.github.com/googleapis/java-cloud-bom/issues/7180)) ([487b56d](https://redirect.github.com/googleapis/java-cloud-bom/commit/487b56df17a768f29df2fb63da4ac687769bcf81)) - update dependency com.google.cloud:google-cloud-spanner-jdbc to v2.32.2 ([#&#8203;7181](https://redirect.github.com/googleapis/java-cloud-bom/issues/7181)) ([d4193bf](https://redirect.github.com/googleapis/java-cloud-bom/commit/d4193bf206c813b57f9a50b38241c576eec764f7)) - update dependency com.google.cloud:google-cloud-storage-bom to v2.56.0 ([#&#8203;7172](https://redirect.github.com/googleapis/java-cloud-bom/issues/7172)) ([57c3dda](https://redirect.github.com/googleapis/java-cloud-bom/commit/57c3ddaf2d2d0281b2720f4d8286d81b411f9bdd)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/GoogleCloudPlatform/spring-cloud-gcp). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi43IiwidXBkYXRlZEluVmVyIjoiNDEuODIuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --------- Co-authored-by: Cloud Java Bot <[email protected]>
1 parent 8a91c2c commit e8aec00

File tree

6 files changed

+549
-109
lines changed

6 files changed

+549
-109
lines changed

spring-cloud-gcp-dependencies/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</distributionManagement>
3535

3636
<properties>
37-
<gcp-libraries-bom.version>26.66.0</gcp-libraries-bom.version>
37+
<gcp-libraries-bom.version>26.67.0</gcp-libraries-bom.version>
3838
<cloud-sql-socket-factory.version>1.25.0</cloud-sql-socket-factory.version>
3939
<r2dbc-postgres-driver.version>1.0.7.RELEASE</r2dbc-postgres-driver.version>
4040
<cloud-spanner-r2dbc.version>1.3.0</cloud-spanner-r2dbc.version>

spring-cloud-previews/README.md

Lines changed: 108 additions & 108 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,283 @@
1+
/*
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.aiplatform.v1.spring;
18+
19+
import com.google.api.core.BetaApi;
20+
import com.google.api.gax.core.CredentialsProvider;
21+
import com.google.api.gax.core.ExecutorProvider;
22+
import com.google.api.gax.retrying.RetrySettings;
23+
import com.google.api.gax.rpc.HeaderProvider;
24+
import com.google.api.gax.rpc.TransportChannelProvider;
25+
import com.google.cloud.aiplatform.v1.DataFoundryServiceClient;
26+
import com.google.cloud.aiplatform.v1.DataFoundryServiceSettings;
27+
import com.google.cloud.spring.autoconfigure.core.GcpContextAutoConfiguration;
28+
import com.google.cloud.spring.core.DefaultCredentialsProvider;
29+
import com.google.cloud.spring.core.Retry;
30+
import com.google.cloud.spring.core.util.RetryUtil;
31+
import java.io.IOException;
32+
import java.util.Collections;
33+
import javax.annotation.Generated;
34+
import org.apache.commons.logging.Log;
35+
import org.apache.commons.logging.LogFactory;
36+
import org.springframework.beans.factory.annotation.Qualifier;
37+
import org.springframework.boot.autoconfigure.AutoConfiguration;
38+
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
39+
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
40+
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
41+
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
42+
import org.springframework.boot.context.properties.EnableConfigurationProperties;
43+
import org.springframework.context.annotation.Bean;
44+
45+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
46+
/**
47+
* Auto-configuration for {@link DataFoundryServiceClient}.
48+
*
49+
* <p>Provides auto-configuration for Spring Boot
50+
*
51+
* <p>The default instance has everything set to sensible defaults:
52+
*
53+
* <ul>
54+
* <li>The default transport provider is used.
55+
* <li>Credentials are acquired automatically through Application Default Credentials.
56+
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
57+
* </ul>
58+
*/
59+
@Generated("by google-cloud-spring-generator")
60+
@BetaApi("Autogenerated Spring autoconfiguration is not yet stable")
61+
@AutoConfiguration
62+
@AutoConfigureAfter(GcpContextAutoConfiguration.class)
63+
@ConditionalOnClass(DataFoundryServiceClient.class)
64+
@ConditionalOnProperty(
65+
value = "com.google.cloud.aiplatform.v1.data-foundry-service.enabled",
66+
matchIfMissing = true)
67+
@EnableConfigurationProperties(DataFoundryServiceSpringProperties.class)
68+
public class DataFoundryServiceSpringAutoConfiguration {
69+
private final DataFoundryServiceSpringProperties clientProperties;
70+
private final CredentialsProvider credentialsProvider;
71+
private static final Log LOGGER =
72+
LogFactory.getLog(DataFoundryServiceSpringAutoConfiguration.class);
73+
74+
protected DataFoundryServiceSpringAutoConfiguration(
75+
DataFoundryServiceSpringProperties clientProperties, CredentialsProvider credentialsProvider)
76+
throws IOException {
77+
this.clientProperties = clientProperties;
78+
if (this.clientProperties.getCredentials().hasKey()) {
79+
if (LOGGER.isTraceEnabled()) {
80+
LOGGER.trace("Using credentials from DataFoundryService-specific configuration");
81+
}
82+
this.credentialsProvider =
83+
((CredentialsProvider) new DefaultCredentialsProvider(this.clientProperties));
84+
} else {
85+
this.credentialsProvider = credentialsProvider;
86+
}
87+
}
88+
89+
/**
90+
* Provides a default transport channel provider bean, corresponding to the client library's
91+
* default transport channel provider. If the library supports both GRPC and REST transport, and
92+
* the useRest property is configured, the HTTP/JSON transport provider will be used instead of
93+
* GRPC.
94+
*
95+
* @return a default transport channel provider.
96+
*/
97+
@Bean
98+
@ConditionalOnMissingBean(name = "defaultDataFoundryServiceTransportChannelProvider")
99+
public TransportChannelProvider defaultDataFoundryServiceTransportChannelProvider() {
100+
return DataFoundryServiceSettings.defaultTransportChannelProvider();
101+
}
102+
103+
/**
104+
* Provides a DataFoundryServiceSettings bean configured to use a DefaultCredentialsProvider and
105+
* the client library's default transport channel provider
106+
* (defaultDataFoundryServiceTransportChannelProvider()). It also configures the quota project ID
107+
* and executor thread count, if provided through properties.
108+
*
109+
* <p>Retry settings are also configured from service-level and method-level properties specified
110+
* in DataFoundryServiceSpringProperties. Method-level properties will take precedence over
111+
* service-level properties if available, and client library defaults will be used if neither are
112+
* specified.
113+
*
114+
* @param defaultTransportChannelProvider TransportChannelProvider to use in the settings.
115+
* @return a {@link DataFoundryServiceSettings} bean configured with {@link
116+
* TransportChannelProvider} bean.
117+
*/
118+
@Bean
119+
@ConditionalOnMissingBean
120+
public DataFoundryServiceSettings dataFoundryServiceSettings(
121+
@Qualifier("defaultDataFoundryServiceTransportChannelProvider")
122+
TransportChannelProvider defaultTransportChannelProvider)
123+
throws IOException {
124+
DataFoundryServiceSettings.Builder clientSettingsBuilder =
125+
DataFoundryServiceSettings.newBuilder();
126+
clientSettingsBuilder
127+
.setCredentialsProvider(this.credentialsProvider)
128+
.setTransportChannelProvider(defaultTransportChannelProvider)
129+
.setEndpoint(DataFoundryServiceSettings.getDefaultEndpoint())
130+
.setHeaderProvider(this.userAgentHeaderProvider());
131+
if (this.clientProperties.getQuotaProjectId() != null) {
132+
clientSettingsBuilder.setQuotaProjectId(this.clientProperties.getQuotaProjectId());
133+
if (LOGGER.isTraceEnabled()) {
134+
LOGGER.trace(
135+
"Quota project id set to "
136+
+ this.clientProperties.getQuotaProjectId()
137+
+ ", this overrides project id from credentials.");
138+
}
139+
}
140+
if (this.clientProperties.getExecutorThreadCount() != null) {
141+
ExecutorProvider executorProvider =
142+
DataFoundryServiceSettings.defaultExecutorProviderBuilder()
143+
.setExecutorThreadCount(this.clientProperties.getExecutorThreadCount())
144+
.build();
145+
clientSettingsBuilder.setBackgroundExecutorProvider(executorProvider);
146+
if (LOGGER.isTraceEnabled()) {
147+
LOGGER.trace(
148+
"Background executor thread count is "
149+
+ this.clientProperties.getExecutorThreadCount());
150+
}
151+
}
152+
Retry serviceRetry = clientProperties.getRetry();
153+
if (serviceRetry != null) {
154+
RetrySettings generateSyntheticDataRetrySettings =
155+
RetryUtil.updateRetrySettings(
156+
clientSettingsBuilder.generateSyntheticDataSettings().getRetrySettings(),
157+
serviceRetry);
158+
clientSettingsBuilder
159+
.generateSyntheticDataSettings()
160+
.setRetrySettings(generateSyntheticDataRetrySettings);
161+
162+
RetrySettings listLocationsRetrySettings =
163+
RetryUtil.updateRetrySettings(
164+
clientSettingsBuilder.listLocationsSettings().getRetrySettings(), serviceRetry);
165+
clientSettingsBuilder.listLocationsSettings().setRetrySettings(listLocationsRetrySettings);
166+
167+
RetrySettings getLocationRetrySettings =
168+
RetryUtil.updateRetrySettings(
169+
clientSettingsBuilder.getLocationSettings().getRetrySettings(), serviceRetry);
170+
clientSettingsBuilder.getLocationSettings().setRetrySettings(getLocationRetrySettings);
171+
172+
RetrySettings setIamPolicyRetrySettings =
173+
RetryUtil.updateRetrySettings(
174+
clientSettingsBuilder.setIamPolicySettings().getRetrySettings(), serviceRetry);
175+
clientSettingsBuilder.setIamPolicySettings().setRetrySettings(setIamPolicyRetrySettings);
176+
177+
RetrySettings getIamPolicyRetrySettings =
178+
RetryUtil.updateRetrySettings(
179+
clientSettingsBuilder.getIamPolicySettings().getRetrySettings(), serviceRetry);
180+
clientSettingsBuilder.getIamPolicySettings().setRetrySettings(getIamPolicyRetrySettings);
181+
182+
RetrySettings testIamPermissionsRetrySettings =
183+
RetryUtil.updateRetrySettings(
184+
clientSettingsBuilder.testIamPermissionsSettings().getRetrySettings(), serviceRetry);
185+
clientSettingsBuilder
186+
.testIamPermissionsSettings()
187+
.setRetrySettings(testIamPermissionsRetrySettings);
188+
189+
if (LOGGER.isTraceEnabled()) {
190+
LOGGER.trace("Configured service-level retry settings from properties.");
191+
}
192+
}
193+
Retry generateSyntheticDataRetry = clientProperties.getGenerateSyntheticDataRetry();
194+
if (generateSyntheticDataRetry != null) {
195+
RetrySettings generateSyntheticDataRetrySettings =
196+
RetryUtil.updateRetrySettings(
197+
clientSettingsBuilder.generateSyntheticDataSettings().getRetrySettings(),
198+
generateSyntheticDataRetry);
199+
clientSettingsBuilder
200+
.generateSyntheticDataSettings()
201+
.setRetrySettings(generateSyntheticDataRetrySettings);
202+
if (LOGGER.isTraceEnabled()) {
203+
LOGGER.trace(
204+
"Configured method-level retry settings for generateSyntheticData from properties.");
205+
}
206+
}
207+
Retry listLocationsRetry = clientProperties.getListLocationsRetry();
208+
if (listLocationsRetry != null) {
209+
RetrySettings listLocationsRetrySettings =
210+
RetryUtil.updateRetrySettings(
211+
clientSettingsBuilder.listLocationsSettings().getRetrySettings(), listLocationsRetry);
212+
clientSettingsBuilder.listLocationsSettings().setRetrySettings(listLocationsRetrySettings);
213+
if (LOGGER.isTraceEnabled()) {
214+
LOGGER.trace("Configured method-level retry settings for listLocations from properties.");
215+
}
216+
}
217+
Retry getLocationRetry = clientProperties.getGetLocationRetry();
218+
if (getLocationRetry != null) {
219+
RetrySettings getLocationRetrySettings =
220+
RetryUtil.updateRetrySettings(
221+
clientSettingsBuilder.getLocationSettings().getRetrySettings(), getLocationRetry);
222+
clientSettingsBuilder.getLocationSettings().setRetrySettings(getLocationRetrySettings);
223+
if (LOGGER.isTraceEnabled()) {
224+
LOGGER.trace("Configured method-level retry settings for getLocation from properties.");
225+
}
226+
}
227+
Retry setIamPolicyRetry = clientProperties.getSetIamPolicyRetry();
228+
if (setIamPolicyRetry != null) {
229+
RetrySettings setIamPolicyRetrySettings =
230+
RetryUtil.updateRetrySettings(
231+
clientSettingsBuilder.setIamPolicySettings().getRetrySettings(), setIamPolicyRetry);
232+
clientSettingsBuilder.setIamPolicySettings().setRetrySettings(setIamPolicyRetrySettings);
233+
if (LOGGER.isTraceEnabled()) {
234+
LOGGER.trace("Configured method-level retry settings for setIamPolicy from properties.");
235+
}
236+
}
237+
Retry getIamPolicyRetry = clientProperties.getGetIamPolicyRetry();
238+
if (getIamPolicyRetry != null) {
239+
RetrySettings getIamPolicyRetrySettings =
240+
RetryUtil.updateRetrySettings(
241+
clientSettingsBuilder.getIamPolicySettings().getRetrySettings(), getIamPolicyRetry);
242+
clientSettingsBuilder.getIamPolicySettings().setRetrySettings(getIamPolicyRetrySettings);
243+
if (LOGGER.isTraceEnabled()) {
244+
LOGGER.trace("Configured method-level retry settings for getIamPolicy from properties.");
245+
}
246+
}
247+
Retry testIamPermissionsRetry = clientProperties.getTestIamPermissionsRetry();
248+
if (testIamPermissionsRetry != null) {
249+
RetrySettings testIamPermissionsRetrySettings =
250+
RetryUtil.updateRetrySettings(
251+
clientSettingsBuilder.testIamPermissionsSettings().getRetrySettings(),
252+
testIamPermissionsRetry);
253+
clientSettingsBuilder
254+
.testIamPermissionsSettings()
255+
.setRetrySettings(testIamPermissionsRetrySettings);
256+
if (LOGGER.isTraceEnabled()) {
257+
LOGGER.trace(
258+
"Configured method-level retry settings for testIamPermissions from properties.");
259+
}
260+
}
261+
return clientSettingsBuilder.build();
262+
}
263+
264+
/**
265+
* Provides a DataFoundryServiceClient bean configured with DataFoundryServiceSettings.
266+
*
267+
* @param dataFoundryServiceSettings settings to configure an instance of client bean.
268+
* @return a {@link DataFoundryServiceClient} bean configured with {@link
269+
* DataFoundryServiceSettings}
270+
*/
271+
@Bean
272+
@ConditionalOnMissingBean
273+
public DataFoundryServiceClient dataFoundryServiceClient(
274+
DataFoundryServiceSettings dataFoundryServiceSettings) throws IOException {
275+
return DataFoundryServiceClient.create(dataFoundryServiceSettings);
276+
}
277+
278+
private HeaderProvider userAgentHeaderProvider() {
279+
String springLibrary = "spring-autogen-data-foundry-service";
280+
String version = this.getClass().getPackage().getImplementationVersion();
281+
return () -> Collections.singletonMap("user-agent", springLibrary + "/" + version);
282+
}
283+
}

0 commit comments

Comments
 (0)