Skip to content

Commit 728b62b

Browse files
feat: update bucket encryption enforcement config samples
- Update copyright headers to 2026 for GetEncryptionEnforcementConfig and SetBucketEncryptionEnforcementConfig - Delete RemoveAllEncryptionEnforcementConfig - Add UpdateBucketEncryptionEnforcementConfig to demonstrate updating encryption enforcement policies Co-authored-by: nidhiii-27 <224584462+nidhiii-27@users.noreply.github.com>
1 parent 8b6e3b6 commit 728b62b

343 files changed

Lines changed: 16907 additions & 21410 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# For syntax help see:
55
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
66

7-
# The @googleapis/gcs-team is the default owner for changes in this repo
8-
* @googleapis/cloud-sdk-java-team @googleapis/gcs-team
7+
# The @googleapis/gcs-sdk-team is the default owner for changes in this repo
8+
* @googleapis/yoshi-java @googleapis/gcs-sdk-team
99

1010
# for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner
11-
**/*.java @googleapis/gcs-team
11+
**/*.java @googleapis/gcs-sdk-team
1212

1313

1414
# The java-samples-reviewers team is the default owner for samples changes
1515
samples/**/*.java @googleapis/java-samples-reviewers
1616

1717
# Generated snippets should not be owned by samples reviewers
18-
samples/snippets/generated/ @googleapis/cloud-sdk-java-team
18+
samples/snippets/generated/ @googleapis/yoshi-java

.github/release-please.yml

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,64 @@ extraFiles:
55
- README.md
66
- .readme-partials.yaml
77
branches:
8-
- branch: 1.113.14-sp
8+
- bumpMinorPreMajor: true
9+
handleGHRelease: true
910
releaseType: java-lts
10-
- branch: 1.106.1-patch
11-
- branch: 1.111.3-patch
12-
- branch: java7
13-
- branch: 2.1.x
14-
- branch: 2.6.x
15-
releaseType: java-backport
16-
- branch: 2.15.x
11+
branch: 1.113.14-sp
12+
- bumpMinorPreMajor: true
13+
handleGHRelease: true
14+
releaseType: java-yoshi
15+
branch: 1.106.1-patch
16+
- bumpMinorPreMajor: true
17+
handleGHRelease: true
18+
releaseType: java-yoshi
19+
branch: 1.111.3-patch
20+
- bumpMinorPreMajor: true
21+
handleGHRelease: true
22+
releaseType: java-yoshi
23+
branch: java7
24+
- bumpMinorPreMajor: true
25+
handleGHRelease: true
26+
releaseType: java-yoshi
27+
branch: 2.1.x
28+
- bumpMinorPreMajor: true
29+
handleGHRelease: true
1730
releaseType: java-backport
18-
- branch: 2.22.x
31+
branch: 2.6.x
32+
- bumpMinorPreMajor: true
33+
handleGHRelease: true
1934
releaseType: java-backport
20-
- branch: 2.30.x
35+
branch: 2.15.x
36+
- bumpMinorPreMajor: true
37+
handleGHRelease: true
2138
releaseType: java-backport
22-
- branch: 2.38.x
39+
extraFiles:
40+
- README.md
41+
branch: 2.22.x
42+
- bumpMinorPreMajor: true
43+
handleGHRelease: true
2344
releaseType: java-backport
24-
- branch: 2.47.x
45+
extraFiles:
46+
- README.md
47+
branch: 2.30.x
48+
- bumpMinorPreMajor: true
49+
handleGHRelease: true
2550
releaseType: java-backport
26-
- branch: 2.49.x
51+
extraFiles:
52+
- README.md
53+
- .readme-partials.yaml
54+
branch: 2.38.x
55+
- bumpMinorPreMajor: true
56+
handleGHRelease: true
2757
releaseType: java-backport
28-
- branch: protobuf-4.x-rc
29-
manifest: true
58+
extraFiles:
59+
- README.md
60+
- .readme-partials.yaml
61+
branch: 2.47.x
3062
- bumpMinorPreMajor: true
3163
handleGHRelease: true
3264
releaseType: java-backport
3365
extraFiles:
3466
- README.md
3567
- .readme-partials.yaml
36-
branch: 2.62.x
68+
branch: 2.49.x

.github/scripts/update_generation_config.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,7 @@ function get_latest_released_version() {
1818
group_id_url_path="$(sed 's|\.|/|g' <<< "${group_id}")"
1919
url="https://repo1.maven.org/maven2/${group_id_url_path}/${artifact_id}/maven-metadata.xml"
2020
xml_content=$(curl -s --fail "${url}")
21-
22-
# 1. Extract all version tags
23-
# 2. Strip the XML tags to leave just the version numbers
24-
# 3. Filter for strictly numbers.numbers.numbers (e.g., 2.54.0)
25-
# 4. Sort by version (V) and take the last one (tail -n 1)
26-
latest=$(echo "${xml_content}" \
27-
| grep -oE '<version>[0-9]+\.[0-9]+\.[0-9]+</version>' \
28-
| sed -E 's/<[^>]+>//g' \
29-
| sort -V \
30-
| tail -n 1)
31-
21+
latest=$(xmllint --xpath 'metadata/versioning/latest/text()' - <<< "${xml_content}")
3222
if [[ -z "${latest}" ]]; then
3323
echo "The latest version of ${group_id}:${artifact_id} is empty."
3424
echo "The returned json from maven.org is invalid: ${json_content}"

.github/sync-repo-settings.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -197,27 +197,10 @@ branchProtectionRules:
197197
- 'Kokoro - Test: Java 17 GraalVM Native Image'
198198
- javadoc
199199
- unmanaged_dependency_check
200-
- pattern: 2.62.x
201-
isAdminEnforced: true
202-
requiredApprovingReviewCount: 1
203-
requiresCodeOwnerReviews: true
204-
requiresStrictStatusChecks: false
205-
requiredStatusCheckContexts:
206-
- dependencies (17)
207-
- lint
208-
- clirr
209-
- units (8)
210-
- units (11)
211-
- 'Kokoro - Test: Integration'
212-
- cla/google
213-
- 'Kokoro - Test: Java GraalVM Native Image'
214-
- 'Kokoro - Test: Java 17 GraalVM Native Image'
215-
- javadoc
216-
- unmanaged_dependency_check
217200
permissionRules:
218201
- team: yoshi-admins
219202
permission: admin
220203
- team: yoshi-java-admins
221204
permission: admin
222-
- team: cloud-sdk-java-team
205+
- team: yoshi-java
223206
permission: push

.github/workflows/hermetic_library_generation.yaml

Lines changed: 10 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
name: Hermetic library generation upon generation config change through pull requests
1717
on:
1818
pull_request:
19+
paths:
20+
- 'generation_config.yaml'
21+
- '.readme-partials.yaml'
22+
- 'owlbot.py'
23+
- 'versions.txt'
24+
- '.github/.OwlBot-hermetic.yaml'
1925

2026
env:
2127
REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}
@@ -32,55 +38,14 @@ jobs:
3238
else
3339
echo "SHOULD_RUN=true" >> $GITHUB_ENV
3440
fi
35-
- uses: actions/checkout@v6
41+
- uses: actions/checkout@v5
3642
if: env.SHOULD_RUN == 'true'
3743
with:
3844
fetch-depth: 0
39-
token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
40-
- name: is applicable
41-
if: env.SHOULD_RUN == 'true'
42-
env:
43-
# set our branch names to be the names in the "origin" remote since we aren't actually checking these branches out
44-
base_ref: origin/${{ github.base_ref }}
45-
head_ref: origin/${{ github.head_ref }}
46-
run: |
47-
#!/bin/bash -x
48-
49-
# verify we have refs so error messages are clearer
50-
git rev-parse --verify "$base_ref"
51-
git rev-parse --verify "$head_ref"
52-
53-
# list all paths that are changed between before and after
54-
changed_paths=$(git diff --name-only "$base_ref" "$head_ref")
55-
56-
# define our array of paths that are included
57-
include_list=()
58-
59-
# push our include regex values onto the array
60-
include_list+=("^.github/workflows/hermetic_library_generation.yaml$")
61-
include_list+=("^generation_config.yaml$")
62-
include_list+=("^.readme-partials.yaml$")
63-
include_list+=("^owlbot.py$")
64-
include_list+=("^versions.txt$")
65-
include_list+=("^.github/.OwlBot-hermetic.yaml$")
66-
67-
# join all the paths into a single regex
68-
pattern="$(IFS=$'|' ; echo "${include_list[*]}")"
69-
70-
# check if we have any paths that match our include list
71-
match=0
72-
echo -e "${changed_paths}" | grep -E "${pattern}" 2>&1 || match=1
73-
74-
if [[ $match == 0 ]]; then
75-
echo "SHOULD_RUN=true" >> $GITHUB_ENV
76-
else
77-
echo "This PR does not match the include list"
78-
echo "SHOULD_RUN=false" >> $GITHUB_ENV
79-
fi
80-
81-
- uses: googleapis/sdk-platform-java/.github/scripts@v2.67.0
45+
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
46+
- uses: googleapis/sdk-platform-java/.github/scripts@v2.64.0
8247
if: env.SHOULD_RUN == 'true'
8348
with:
8449
base_ref: ${{ github.base_ref }}
8550
head_ref: ${{ github.head_ref }}
86-
token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
51+
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}

.github/workflows/unmanaged_dependency_check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
unmanaged_dependency_check:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v6
8+
- uses: actions/checkout@v5
99
- uses: actions/setup-java@v3
1010
with:
1111
distribution: temurin
@@ -17,6 +17,6 @@ jobs:
1717
# repository
1818
.kokoro/build.sh
1919
- name: Unmanaged dependency check
20-
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.57.0
20+
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.53.0
2121
with:
2222
bom-path: google-cloud-storage-bom/pom.xml

.github/workflows/update_generation_config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
32-
token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
32+
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
3333
- name: Install Dependencies
3434
shell: bash
3535
run: sudo apt-get update && sudo apt-get install -y libxml2-utils
@@ -43,5 +43,5 @@ jobs:
4343
--base_branch "${base_branch}" \
4444
--repo ${{ github.repository }}
4545
env:
46-
GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
46+
GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
4747

.kokoro/presubmit/graalvm-native-a.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-public-resources/graalvm_sdk_platform_a:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current}
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current}
77
}
88

99
env_vars: {

.kokoro/presubmit/graalvm-native-b.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-public-resources/graalvm_sdk_platform_b:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current}
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current}
77
}
88

99
env_vars: {

.kokoro/presubmit/graalvm-native-c.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-public-resources/graalvm_sdk_platform_c:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current}
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current}
77
}
88

99
env_vars: {

0 commit comments

Comments
 (0)