Skip to content

Commit eaf0262

Browse files
committed
Merge remote-tracking branch 'origin/main' into observability/tracing-attr/status-code
2 parents 50352e6 + ac1f0f4 commit eaf0262

File tree

3,297 files changed

+118842
-2612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,297 files changed

+118842
-2612
lines changed

.github/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
requests==2.32.4
1+
requests==2.33.0

.github/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ idna==3.7 \
104104
--hash=sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc \
105105
--hash=sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0
106106
# via requests
107-
requests==2.32.4 \
108-
--hash=sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c \
109-
--hash=sha256:27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422
107+
requests==2.33.0 \
108+
--hash=sha256:3324635456fa185245e24865e810cecec7b4caf933d7eb133dcde67d48cee69b \
109+
--hash=sha256:c7ebc5e8b0f21837386ad0e1c8fe8b829fa5f544d8df3b2253bff14ef29d7652
110110
# via -r requirements.in
111111
urllib3==2.6.3 \
112112
--hash=sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed \

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ jobs:
237237
run: |
238238
mvn install -B -ntp -T 1C -DskipTests -Dclirr.skip -Dcheckstyle.skip -Denforcer.skip
239239
- name: Validate gapic-libraries-bom
240-
uses: googleapis/java-cloud-bom/tests/validate-bom@v26.54.0
240+
uses: googleapis/java-cloud-bom/tests/validate-bom@v26.79.0
241241
with:
242242
bom-path: gapic-libraries-bom/pom.xml
243243
generation-config-check:

.github/workflows/sdk-platform-java-dependency_compatibility_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ jobs:
8888
# Need to cd out of the directory to get the scripts as this step is run inside the java-showcase directory
8989
run: |
9090
if [[ -n "${{ env.DEPENDENCIES_LIST }}" ]]; then
91-
../sdk-platform-java/.github/scripts/test_dependency_compatibility.sh -l ${{ env.DEPENDENCIES_LIST }}
91+
../.github/scripts/test_dependency_compatibility.sh -l ${{ env.DEPENDENCIES_LIST }}
9292
else
93-
../sdk-platform-java/.github/scripts/test_dependency_compatibility.sh -f ../dependencies.txt
93+
../.github/scripts/test_dependency_compatibility.sh -f ../dependencies.txt
9494
fi
9595
working-directory: sdk-platform-java/java-showcase

.github/workflows/sdk-platform-java-verify_library_generation.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
git checkout -b "${head_ref}" fork/${head_ref}
4444
changed_directories="$(git diff --name-only "fork/${head_ref}" "origin/${base_ref}")"
4545
fi
46-
if [[ ${changed_directories} =~ "hermetic_build/" ]] || [[ ${changed_directories} =~ ".cloudbuild/library_generation/" ]]; then
46+
if [[ ${changed_directories} =~ "sdk-platform-java/hermetic_build/" ]] || [[ ${changed_directories} =~ "sdk-platform-java/.cloudbuild/library_generation/" ]]; then
4747
echo "should_run=true" >> $GITHUB_OUTPUT
4848
else
4949
echo "should_run=false" >> $GITHUB_OUTPUT
@@ -58,6 +58,9 @@ jobs:
5858
needs: [filter, should-run-library-generation-tests]
5959
if: needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true'
6060
runs-on: ubuntu-22.04
61+
defaults:
62+
run:
63+
working-directory: sdk-platform-java
6164
steps:
6265
- uses: actions/checkout@v4
6366
- uses: actions/setup-python@v5
@@ -86,12 +89,15 @@ jobs:
8689
needs: [filter, should-run-library-generation-tests]
8790
if: needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true'
8891
runs-on: ubuntu-22.04
92+
defaults:
93+
run:
94+
working-directory: sdk-platform-java
8995
steps:
9096
- uses: actions/checkout@v4
9197
- name: Run ShellCheck
9298
uses: ludeeus/action-shellcheck@2.0.0
9399
with:
94-
scandir: 'hermetic_build'
100+
scandir: 'sdk-platform-java/hermetic_build'
95101
format: tty
96102
severity: error
97103
ignore_paths:
@@ -100,6 +106,9 @@ jobs:
100106
needs: [filter, should-run-library-generation-tests]
101107
if: needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true'
102108
runs-on: ubuntu-22.04
109+
defaults:
110+
run:
111+
working-directory: sdk-platform-java
103112
steps:
104113
- uses: actions/checkout@v4
105114
- uses: actions/setup-python@v5

.kokoro/presubmit/storage-integration.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java11"
77
}
88

99
env_vars: {

generation_config.yaml

Lines changed: 184 additions & 98 deletions
Large diffs are not rendered by default.

java-accessapproval/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.78.0</version>
23+
<version>26.79.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
4242
<dependency>
4343
<groupId>com.google.cloud</groupId>
4444
<artifactId>google-cloud-accessapproval</artifactId>
45-
<version>2.88.0</version>
45+
<version>2.89.0</version>
4646
</dependency>
4747
```
4848

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

5151
```Groovy
52-
implementation 'com.google.cloud:google-cloud-accessapproval:2.88.0'
52+
implementation 'com.google.cloud:google-cloud-accessapproval:2.89.0'
5353
```
5454

5555
If you are using SBT, add this to your dependencies:
5656

5757
```Scala
58-
libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.88.0"
58+
libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.89.0"
5959
```
6060

6161
## Authentication
@@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
175175
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-accessapproval/latest/overview
176176
[stability-image]: https://img.shields.io/badge/stability-stable-green
177177
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg
178-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.88.0
178+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.89.0
179179
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
180180
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
181181
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ protected LibraryMetadata getLibraryMetadata() {
400400
return LibraryMetadata.newBuilder()
401401
.setArtifactName("com.google.cloud:google-cloud-accessapproval")
402402
.setRepository("googleapis/google-cloud-java")
403+
.setVersion(Version.VERSION)
403404
.build();
404405
}
405406

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/GrpcAccessApprovalStub.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ protected GrpcAccessApprovalStub(
243243
builder.add("parent", String.valueOf(request.getParent()));
244244
return builder.build();
245245
})
246+
.setResourceNameExtractor(request -> request.getParent())
246247
.build();
247248
GrpcCallSettings<GetApprovalRequestMessage, ApprovalRequest>
248249
getApprovalRequestTransportSettings =
@@ -254,6 +255,7 @@ protected GrpcAccessApprovalStub(
254255
builder.add("name", String.valueOf(request.getName()));
255256
return builder.build();
256257
})
258+
.setResourceNameExtractor(request -> request.getName())
257259
.build();
258260
GrpcCallSettings<ApproveApprovalRequestMessage, ApprovalRequest>
259261
approveApprovalRequestTransportSettings =
@@ -265,6 +267,7 @@ protected GrpcAccessApprovalStub(
265267
builder.add("name", String.valueOf(request.getName()));
266268
return builder.build();
267269
})
270+
.setResourceNameExtractor(request -> request.getName())
268271
.build();
269272
GrpcCallSettings<DismissApprovalRequestMessage, ApprovalRequest>
270273
dismissApprovalRequestTransportSettings =
@@ -276,6 +279,7 @@ protected GrpcAccessApprovalStub(
276279
builder.add("name", String.valueOf(request.getName()));
277280
return builder.build();
278281
})
282+
.setResourceNameExtractor(request -> request.getName())
279283
.build();
280284
GrpcCallSettings<InvalidateApprovalRequestMessage, ApprovalRequest>
281285
invalidateApprovalRequestTransportSettings =
@@ -287,6 +291,7 @@ protected GrpcAccessApprovalStub(
287291
builder.add("name", String.valueOf(request.getName()));
288292
return builder.build();
289293
})
294+
.setResourceNameExtractor(request -> request.getName())
290295
.build();
291296
GrpcCallSettings<GetAccessApprovalSettingsMessage, AccessApprovalSettings>
292297
getAccessApprovalSettingsTransportSettings =
@@ -298,6 +303,7 @@ protected GrpcAccessApprovalStub(
298303
builder.add("name", String.valueOf(request.getName()));
299304
return builder.build();
300305
})
306+
.setResourceNameExtractor(request -> request.getName())
301307
.build();
302308
GrpcCallSettings<UpdateAccessApprovalSettingsMessage, AccessApprovalSettings>
303309
updateAccessApprovalSettingsTransportSettings =
@@ -321,6 +327,7 @@ protected GrpcAccessApprovalStub(
321327
builder.add("name", String.valueOf(request.getName()));
322328
return builder.build();
323329
})
330+
.setResourceNameExtractor(request -> request.getName())
324331
.build();
325332
GrpcCallSettings<GetAccessApprovalServiceAccountMessage, AccessApprovalServiceAccount>
326333
getAccessApprovalServiceAccountTransportSettings =

0 commit comments

Comments
 (0)