commit | ca989bf6a60548ae1363e42d25832462364e29b7 | [log] [tgz] |
---|---|---|
author | gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com> | Tue May 07 20:44:16 2024 +0000 |
committer | GitHub <noreply@github.com> | Tue May 07 20:44:16 2024 +0000 |
tree | 721fde5252812c6f9c37b74f4fdf89ae0317d660 | |
parent | 37220bdfc4c6a63dc4574f0123a103f29d3477c0 [diff] |
chore(asset): update copyright year (#10126) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 631472873 Source-Link: https://togithub.com/googleapis/googleapis/commit/31ba29f6292cc7c8290fc300b70f3f8b5b9ac306 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/caf2e9dc92d94c9b3da5733d31e4e4555a067e0f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2FmMmU5ZGM5MmQ5NGM5YjNkYTU3MzNkMzFlNGU0NTU1YTA2N2UwZiJ9 BEGIN_NESTED_COMMIT chore(oslogin): Update copyright year PiperOrigin-RevId: 631450785 Source-Link: https://togithub.com/googleapis/googleapis/commit/0842829df747446019e4dcf53030ef84bfc0ad21 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/f63054594bfe529d1040a0cc2a6eb17bc639be0e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjYzMDU0NTk0YmZlNTI5ZDEwNDBhMGNjMmE2ZWIxN2JjNjM5YmUwZSJ9 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.