[java-storage] Improve the example of setClientEndpoint adding how to change oauth endpoint

Open Beginner friendly
#12,644 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
cloud

Research direction

Start with samples/snippets/src/main/java/com/example/storage/bucket/SetClientEndpoint.java and compare it with the request-endpoints documentation. Confirm how a Private Service Connect setup changes the OAuth2 token endpoint, then update the example or document the guidance so users can obtain an access token in that environment.

Written by the indexing model from the issue text.

Description

api: storage priority: p3 type: docs

Currently the code here [1] is being used as a reference here [2] however in an on-prem environment using Private Service Connect is also necessary to change the oauth2 token endpoint in order to get the access token.

Is your feature request related to a problem? Please describe.
setClientEndpoint example is not complete if you would like to use this library on a PSC environment

Describe the solution you'd like
Improve the current setClientEndpoint example [1]

Describe alternatives you've considered
Add a new section on [2], it looks like every library might need this feature as well

[1] https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/bucket/SetClientEndpoint.java
[2] https://cloud.google.com/storage/docs/request-endpoints

Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 21h
Merged PRs (30d)
131

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-cloud-java

All issues in googleapis/google-cloud-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.