Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8dd9155
chore: Update generation configuration at Tue Jul 23 02:14:39 UTC 202…
cloud-java-bot Jul 23, 2024
1be23c9
chore: Update generation configuration at Wed Jul 24 02:14:28 UTC 202…
cloud-java-bot Jul 24, 2024
95697dd
fix: update grpc resumable upload error categorization to be more tol…
BenWhitehead Jul 24, 2024
d5ec1e5
chore: Update generation configuration at Thu Jul 25 02:14:38 UTC 202…
cloud-java-bot Jul 25, 2024
dceefe9
test: Turn DirectPath quickstart test back on and fix abandoned stora…
sydney-munro Jul 25, 2024
8196259
deps: update dependency com.google.cloud:sdk-platform-java-config to …
renovate-bot Jul 26, 2024
5c9131d
chore: Update generation configuration at Sat Jul 27 02:13:38 UTC 202…
cloud-java-bot Jul 29, 2024
0555b4a
chore: Update generation configuration at Wed Jul 31 02:02:53 UTC 202…
cloud-java-bot Jul 31, 2024
d153228
feat: enable gRPC client open telemetry metrics reporting (#2590)
JesseLovelace Jul 31, 2024
d0e9af1
chore: temporarily disabled the required status on unmanaged_dependen…
BenWhitehead Jul 31, 2024
18de9fc
fix: add UnknownHostException to set of retriable exception (#2651)
BenWhitehead Jul 31, 2024
d41a348
chore(main): release 2.41.0 (#2621)
release-please[bot] Jul 31, 2024
68c73f6
chore: modify readme's transport support description (#2653)
diegomarquezp Aug 1, 2024
b95ba35
chore: remove storage native image sample in favor of sample hosted i…
mpeddada1 Aug 5, 2024
9af865c
test(deps): update cross product test dependencies (#2658)
renovate-bot Aug 5, 2024
48e7a4c
chore: fix samples pom.xml issues (#2660)
BenWhitehead Aug 5, 2024
b681ee0
feat: enable grpc.lb.locality label for client-side metrics (#2659)
frankyn Aug 8, 2024
1f66dff
deps: update gcr.io/cloud-devrel-public-resources/storage-testbench d…
renovate-bot Aug 13, 2024
643138a
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Aug 13, 2024
ca592e7
chore(main): release 2.41.1-SNAPSHOT (#2655)
release-please[bot] Aug 13, 2024
060ef70
test(deps): update test libraries to v5.11.0 (#2670)
renovate-bot Aug 14, 2024
d375a86
chore: Update generation configuration at Wed Aug 14 02:15:34 UTC 202…
cloud-java-bot Aug 14, 2024
a173c80
chore: Update generation configuration at Thu Aug 15 02:12:34 UTC 202…
cloud-java-bot Aug 15, 2024
e2f5537
fix: update modified field handling for blob and bucket with json tra…
BenWhitehead Aug 15, 2024
7cb6d84
chore: secure hermetic build workflow
diegomarquezp Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ branchProtectionRules:
- 'Kokoro - Test: Java GraalVM Native Image'
- 'Kokoro - Test: Java 17 GraalVM Native Image'
- javadoc
- unmanaged_dependency_check
# TODO: re-enabled once https://github.com/googleapis/sdk-platform-java/pull/3078 is merged and released
# - unmanaged_dependency_check
- pattern: 1.113.14-sp
isAdminEnforced: true
requiredApprovingReviewCount: 1
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/hermetic_library_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
name: Hermetic library generation upon generation config change through pull requests
on:
pull_request:
paths:
- 'generation_config.yaml'

env:
HEAD_REF: ${{ github.head_ref }}

jobs:
library_generation:
# skip pull requests coming from a forked repository
# skip pull requests come from a forked repository
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
Expand All @@ -37,6 +38,6 @@ jobs:
[ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot"
bash .github/scripts/hermetic_library_generation.sh \
--target_branch ${{ github.base_ref }} \
--current_branch ${{ github.head_ref }}
--current_branch $HEAD_REF
env:
GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/unmanaged_dependency_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
# repository
.kokoro/build.sh
- name: Unmanaged dependency check
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.32.0
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.33.0
with:
bom-path: google-cloud-storage-bom/pom.xml
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native-17.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.33.0"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/presubmit/graalvm-native.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0"
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.33.0"
}

env_vars: {
Expand Down
20 changes: 12 additions & 8 deletions .readme-partials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ custom_content: |
The Storage Control API creates one space to perform metadata-specific, control plane, and long-running operations apart from the Storage API. Separating these operations from the Storage API improves API standardization and lets you run faster releases.

If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<!-- {x-version-update-start:libraries-bom:released} -->
```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.37.0</version>
<version>26.44.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -21,30 +22,33 @@ custom_content: |

<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage-control</artifactId>
</dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage-control</artifactId>
</dependency>
</dependencies>
```

If you are using Maven without the BOM, add this to your dependencies:
<!-- {x-version-update-start:google-cloud-storage:released} -->

<!-- {x-version-update-start:google-cloud-storage-control:released} -->

```xml
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage-control</artifactId>
<version>2.40.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-storage-control:current} -->
<version>2.41.0</version>
</dependency>
```

If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
implementation platform('com.google.cloud:libraries-bom:2.40.1')
implementation platform('com.google.cloud:libraries-bom:26.44.0')
implementation 'com.google.cloud:google-cloud-storage-control'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-storage-control:2.40.2-SNAPSHOT' <!-- {x-version-update:google-cloud-storage-control:current} -->
implementation 'com.google.cloud:google-cloud-storage-control:2.41.0'
```

#### Creating an authorized service object
Expand Down
2 changes: 1 addition & 1 deletion .repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"api_description": "is a durable and highly available object storage service. Google Cloud Storage is almost infinitely scalable and guarantees consistency: when a write succeeds, the latest copy of the object will be returned to any GET, globally.",
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/history",
"release_level": "stable",
"transport": "grpc",
"transport": "http",
"language": "java",
"repo": "googleapis/java-storage",
"repo_short": "java-storage",
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## [2.41.0](https://github.com/googleapis/java-storage/compare/v2.40.1...v2.41.0) (2024-07-31)


### Features

* Enable gRPC client open telemetry metrics reporting ([#2590](https://github.com/googleapis/java-storage/issues/2590)) ([d153228](https://github.com/googleapis/java-storage/commit/d153228a301007b5952de9722f370dda0784473a))


### Bug Fixes

* Add UnknownHostException to set of retriable exception ([#2651](https://github.com/googleapis/java-storage/issues/2651)) ([18de9fc](https://github.com/googleapis/java-storage/commit/18de9fcdb831132336eca4112dfe0515174bba7b))
* Update grpc resumable upload error categorization to be more tolerant ([#2644](https://github.com/googleapis/java-storage/issues/2644)) ([95697dd](https://github.com/googleapis/java-storage/commit/95697dd3d744351058c13793c6ae576820f6b638))
* Update Storage#readAllBytes to respect shouldReturnRawInputStream option ([#2635](https://github.com/googleapis/java-storage/issues/2635)) ([dc883cc](https://github.com/googleapis/java-storage/commit/dc883cce5f547def7cfb34c4f8a2d409493e4cb9))
* Update TransferManager downloads to reduce in memory buffering ([#2630](https://github.com/googleapis/java-storage/issues/2630)) ([fc2fd75](https://github.com/googleapis/java-storage/commit/fc2fd750ed60b840e6285a4b1f4ecce739df4c09))
* Use fast calculation for totalRemaining number of bytes from multiple ByteBuffers ([#2633](https://github.com/googleapis/java-storage/issues/2633)) ([758b3dd](https://github.com/googleapis/java-storage/commit/758b3dd3cc4f6dfc2dfc12c3a77472d97c31c5d5))


### Dependencies

* Update dependency com.google.apis:google-api-services-storage to v1-rev20240625-2.0.0 ([#2616](https://github.com/googleapis/java-storage/issues/2616)) ([b22babb](https://github.com/googleapis/java-storage/commit/b22babbe26572d8c4289a65a0b125b2a60e8ef79))
* Update dependency com.google.apis:google-api-services-storage to v1-rev20240706-2.0.0 ([#2634](https://github.com/googleapis/java-storage/issues/2634)) ([1ccaa0c](https://github.com/googleapis/java-storage/commit/1ccaa0c64887a0661438957e9427237ee005ccf1))
* Update dependency com.google.cloud:sdk-platform-java-config to v3.33.0 ([#2647](https://github.com/googleapis/java-storage/issues/2647)) ([8196259](https://github.com/googleapis/java-storage/commit/8196259927330ecfe3e604c24d248f7935e7fe0d))
* Update dependency net.jqwik:jqwik to v1.9.0 ([#2608](https://github.com/googleapis/java-storage/issues/2608)) ([a20eb66](https://github.com/googleapis/java-storage/commit/a20eb660ddfa4b68d79ce04496064f3025676d5a))
* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 ([#2604](https://github.com/googleapis/java-storage/issues/2604)) ([8c79f39](https://github.com/googleapis/java-storage/commit/8c79f39ad78d100065c189bcf8e18644b29ff9ed))
* Update junit-platform.version to v5.10.3 ([#2605](https://github.com/googleapis/java-storage/issues/2605)) ([a532ee4](https://github.com/googleapis/java-storage/commit/a532ee49e2ff5972ea8a2aabbab2dcf6fe0df774))

## [2.40.1](https://github.com/googleapis/java-storage/compare/v2.40.0...v2.40.1) (2024-06-26)


Expand Down
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.43.0</version>
<version>26.44.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -35,6 +35,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage-control</artifactId>
</dependency>
</dependencies>

```

Expand All @@ -46,33 +47,33 @@ If you are using Maven without the BOM, add this to your dependencies:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<version>2.40.1</version>
<version>2.41.0</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage-control</artifactId>
<version>2.40.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-storage:current} -->
<version>2.41.0</version>
</dependency>

```

If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.43.0')
implementation platform('com.google.cloud:libraries-bom:26.44.0')

implementation 'com.google.cloud:google-cloud-storage'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-storage:2.40.1'
implementation 'com.google.cloud:google-cloud-storage:2.41.0'
```

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

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.40.1"
libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.41.0"
```
<!-- {x-version-update-end} -->

Expand Down Expand Up @@ -115,13 +116,14 @@ The [Storage Control API](https://cloud.google.com/storage/docs/reference/rpc/)
The Storage Control API creates one space to perform metadata-specific, control plane, and long-running operations apart from the Storage API. Separating these operations from the Storage API improves API standardization and lets you run faster releases.

If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<!-- {x-version-update-start:libraries-bom:released} -->
```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.37.0</version>
<version>26.44.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -130,30 +132,33 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:

<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage-control</artifactId>
</dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage-control</artifactId>
</dependency>
</dependencies>
```

If you are using Maven without the BOM, add this to your dependencies:
<!-- {x-version-update-start:google-cloud-storage:released} -->

<!-- {x-version-update-start:google-cloud-storage-control:released} -->

```xml
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage-control</artifactId>
<version>2.40.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-storage-control:current} -->
<version>2.41.0</version>
</dependency>
```

If you are using Gradle 5.x or later, add this to your dependencies:
```Groovy
implementation platform('com.google.cloud:libraries-bom:2.40.1')
implementation platform('com.google.cloud:libraries-bom:26.44.0')
implementation 'com.google.cloud:google-cloud-storage-control'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-storage-control:2.40.2-SNAPSHOT' <!-- {x-version-update:google-cloud-storage-control:current} -->
implementation 'com.google.cloud:google-cloud-storage-control:2.41.0'
```

#### Creating an authorized service object
Expand Down Expand Up @@ -277,7 +282,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-storage/tree/

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Native Image Storage Sample | [source code](https://github.com/googleapis/java-storage/blob/main/samples/native-image-sample/src/main/java/com/example/storage/NativeImageStorageSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/native-image-sample/src/main/java/com/example/storage/NativeImageStorageSample.java) |
| Configure Retries | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/ConfigureRetries.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/ConfigureRetries.java) |
| Generate Signed Post Policy V4 | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/GenerateSignedPostPolicyV4.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/GenerateSignedPostPolicyV4.java) |
| Get Service Account | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/GetServiceAccount.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/GetServiceAccount.java) |
Expand Down Expand Up @@ -414,7 +418,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr

## Transport

Cloud Storage uses gRPC for the transport layer.
Cloud Storage uses HTTP/JSON for the transport layer.

## Supported Java Versions

Expand Down Expand Up @@ -508,7 +512,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-storage/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.40.1
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.41.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
4 changes: 2 additions & 2 deletions gapic-google-cloud-storage-v2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.api.grpc</groupId>
<artifactId>gapic-google-cloud-storage-v2</artifactId>
<version>2.40.2-alpha-SNAPSHOT</version><!-- {x-version-update:gapic-google-cloud-storage-v2:current} -->
<version>2.41.1-alpha-SNAPSHOT</version><!-- {x-version-update:gapic-google-cloud-storage-v2:current} -->
<name>gapic-google-cloud-storage-v2</name>
<description>GRPC library for gapic-google-cloud-storage-v2</description>
<parent>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage-parent</artifactId>
<version>2.40.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-storage:current} -->
<version>2.41.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-storage:current} -->
</parent>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -637,6 +638,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}

/** Returns the default service endpoint. */
@ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "storage.googleapis.com:443";
}
Expand Down
7 changes: 4 additions & 3 deletions generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gapic_generator_version: 2.42.0
googleapis_commitish: 19577edb4d439db98d2fb1f6f48f2e1b29fba099
libraries_bom_version: 26.43.0
gapic_generator_version: 2.43.0
googleapis_commitish: 195c051374369ac270384e622f05b2b961dcacd5
libraries_bom_version: 26.44.0
libraries:
- api_shortname: storage
name_pretty: Cloud Storage
Expand All @@ -20,6 +20,7 @@ libraries:
extra_versioned_modules: gapic-google-cloud-storage-v2
excluded_poms: google-cloud-storage-bom,google-cloud-storage
recommended_package: com.google.cloud.storage
transport: rest
GAPICs:
- proto_path: google/storage/v2
- proto_path: google/storage/control/v2
Loading