commit | ba23673da7707c31292e4aa29d65b7ac1446d4a6 | [log] [tgz] |
---|---|---|
author | gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com> | Thu Nov 09 23:30:18 2023 +0000 |
committer | GitHub <noreply@github.com> | Thu Nov 09 23:30:18 2023 +0000 |
tree | 2bce246317890f4ead82dfe2ba516d7862cf0277 | |
parent | 57491ae3b7bbcee2abe1064dfb4f18cb3a511265 [diff] |
chore(redis/cluster): Configure clients for google-cloud-redis-cluster (#8980) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 580715682 Source-Link: https://togithub.com/googleapis/googleapis/commit/b6f1e15dfd15bb4fca2a7e7a1238a0ace0d7bb73 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4f0930ea360cf5d5ed4111bd29fe400eadb21ea6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGYwOTMwZWEzNjBjZjVkNWVkNDExMWJkMjlmZTQwMGVhZGIyMWVhNiJ9 BEGIN_NESTED_COMMIT docs(scheduler): correct timezone/offset information for Cloud Scheduler headers PiperOrigin-RevId: 580635787 Source-Link: https://togithub.com/googleapis/googleapis/commit/72f179600170dfde33df5775c730b189962f5ddc Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/0aa0f8d0564548a72335d718361f357fcb73dbe8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGFhMGY4ZDA1NjQ1NDhhNzIzMzVkNzE4MzYxZjM1N2ZjYjczZGJlOCJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT chore: update Go generator to v0.39.3 PiperOrigin-RevId: 580293585 Source-Link: https://togithub.com/googleapis/googleapis/commit/0c9912b3783e732f2a52b843cdcf908e76ea41c9 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/005dee7952e24f8296fbc27453faba76341b77f5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA1ZGVlNzk1MmUyNGY4Mjk2ZmJjMjc0NTNmYWJhNzYzNDFiNzdmNSJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT fix(recaptchaenterprise): added required annotations docs: updated comments explaining if a field is optional or required CreateKeyRequest.display_name and PrivatePasswordLeakVerification.lookup_hash_prefix are now required. PiperOrigin-RevId: 580254588 Source-Link: https://togithub.com/googleapis/googleapis/commit/22df66c961f2468c7f09742c658221274e63ea03 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/488324dfc157101c764b110f58d945bcc28600be Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDg4MzI0ZGZjMTU3MTAxYzc2NGIxMTBmNThkOTQ1YmNjMjg2MDBiZSJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs(dataplex): updated comments for `DataQualityResult.dimensions` field PiperOrigin-RevId: 579907849 Source-Link: https://togithub.com/googleapis/googleapis/commit/418208c1d1442d978a8b24b43338adcedcaa8305 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/67528c1f0e388b165ecac910ac56fe687c43290f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjc1MjhjMWYwZTM4OGIxNjVlY2FjOTEwYWM1NmZlNjg3YzQzMjkwZiJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT fix(storage): rename aux.go to auxiliary.go fixing windows build END_NESTED_COMMIT
Go packages for Google Cloud Platform services.
import "cloud.google.com/go"
To install the packages on your system, do not clone the repo. Instead:
cd /my/cloud/project
go get
the package(s) you want to use:go get cloud.google.com/go/firestore # Replace with the package you want to use.
NOTE: Some of these packages are under development, and may occasionally make backwards-incompatible changes.
For an updated list of all of our released APIs please see our reference docs.
Our libraries are compatible with at least the three most recent, major Go releases. They are currently compatible with:
By default, each API will use Google Application Default Credentials for authorization credentials used in calling the API endpoints. This will allow your application to run in many environments without requiring explicit configuration.
client, err := storage.NewClient(ctx)
To authorize using a JSON key file, pass option.WithCredentialsFile
to the NewClient
function of the desired package. For example:
client, err := storage.NewClient(ctx, option.WithCredentialsFile("path/to/keyfile.json"))
You can exert more control over authorization by using the golang.org/x/oauth2
package to create an oauth2.TokenSource
. Then pass option.WithTokenSource
to the NewClient
function:
tokenSource := ...
client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))
Contributions are welcome. Please, see the CONTRIBUTING document for details.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See Contributor Code of Conduct for more information.