commit | fe85be03d1e6ba69182ff1045a3faed15aa00128 | [log] [tgz] |
---|---|---|
author | gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com> | Thu Mar 28 23:12:20 2024 +0000 |
committer | GitHub <noreply@github.com> | Thu Mar 28 23:12:20 2024 +0000 |
tree | 18cbd1848cd07409c5c0070522c0d6e5498c0cd1 | |
parent | d5815da84dfb3fedd67bce4c7a24e2f0ab235811 [diff] |
chore: update Go gapic generator to v0.41.1 (#9654) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 620013984 Source-Link: https://togithub.com/googleapis/googleapis/commit/95d0e8c945db9e012b5438f7ef19e7c5c1a124b5 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/92aab22347776d3673f82453d00dc2d88d4f9072 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTJhYWIyMjM0Nzc3NmQzNjczZjgyNDUzZDAwZGMyZDg4ZDRmOTA3MiJ9 BEGIN_NESTED_COMMIT feat(asset): add tag key id support docs: add tagKeyIds example for ResourceSearchResult.tags PiperOrigin-RevId: 619997195 Source-Link: https://togithub.com/googleapis/googleapis/commit/a585563caf022392e6f3a560b413b349ab32d9f1 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/086562a14d036601cac3d425118b0b2a28ed2a49 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDg2NTYyYTE0ZDAzNjYwMWNhYzNkNDI1MTE4YjBiMmEyOGVkMmE0OSJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs(firestore/apiv1): correct BackupSchedule recurrence docs that mentioned specific time of day chore: fix typo in DeleteBackupScheduleRequest PiperOrigin-RevId: 619912852 Source-Link: https://togithub.com/googleapis/googleapis/commit/8fe68cf33c51264152c321321ee78b8a3197f497 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/1a8186f74665611f485811ac5ab643c9f05655c7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWE4MTg2Zjc0NjY1NjExZjQ4NTgxMWFjNWFiNjQzYzlmMDU2NTVjNyJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs(networkmanagement): update possible firewall rule actions comment PiperOrigin-RevId: 619808134 Source-Link: https://togithub.com/googleapis/googleapis/commit/58017ef35e81f53d80215c5bfb7bfc358b421b36 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/98e6bdffb90bfbe86e2abd791cce70ea665e6943 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOThlNmJkZmZiOTBiZmJlODZlMmFiZDc5MWNjZTcwZWE2NjVlNjk0MyJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat(securitycenter): Add Notebook field to finding's list of attributes PiperOrigin-RevId: 619663717 Source-Link: https://togithub.com/googleapis/googleapis/commit/038629f435226abf4081cb4042c1213ae04718a2 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/90ac380358c55e6d6521d4779128316994263e0d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTBhYzM4MDM1OGM1NWU2ZDY1MjFkNDc3OTEyODMxNjk5NDI2M2UwZCJ9 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.