commit | 30794e70050b55ff87d6a80d0b4075065e9d271d | [log] [tgz] |
---|---|---|
author | Yoshi Automation Bot <yoshi-automation@google.com> | Thu Oct 14 16:56:13 2021 -0700 |
committer | GitHub <noreply@github.com> | Thu Oct 14 23:56:13 2021 +0000 |
tree | 5779f3796e8b92e6a8bbc2758f31d64bcc0f3645 | |
parent | 4ec9eed76b7f06c91703590fb25c596fc9536d5d [diff] |
chore(all): auto-regenerate gapics (#4979) This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/698 Changes: fix(video/transcoder): update nodejs package name to video-transcoder PiperOrigin-RevId: 402666373 Source-Link: https://github.com/googleapis/googleapis/commit/7bfeecb83a0ab5f76f60b6c33414b089ba04bcf0 fix(accesscontextmanager): nodejs package name access-context-manager PiperOrigin-RevId: 402653782 Source-Link: https://github.com/googleapis/googleapis/commit/48111618923fbff7ec6d56221f1f361c92d5b529 build(datastore/admin): update package name for datastore PiperOrigin-RevId: 402634944 Source-Link: https://github.com/googleapis/googleapis/commit/29de512cce92f10b182287c2fb9116a4fd38f668 feat(dataproc): add Dataproc Serverless for Spark Batches API Committer: @medb PiperOrigin-RevId: 402631995 Source-Link: https://github.com/googleapis/googleapis/commit/95af2e435b5e5ae0a405e2b6a469d12e807d99d0 feat(aiplatform): add featurestore service to aiplatform v1 feat: add metadata service to aiplatform v1 Committer: @dizcology PiperOrigin-RevId: 402573132 Source-Link: https://github.com/googleapis/googleapis/commit/d706102a095ad8b5b7e0a22872842c99fe71b59a docs(monitoring/apiv3): fix typo in alert.proto PiperOrigin-RevId: 402570091 Source-Link: https://github.com/googleapis/googleapis/commit/f0d5f7fffd7538fb84718de6e0dd66474926f009 chore(monitoring/metricsscope): use `google-cloud-monitoring-metrics-scopes` as python package name PiperOrigin-RevId: 402526480 Source-Link: https://github.com/googleapis/googleapis/commit/566f3d16b72097f4d9a4a6c0396b22ea7f78bcc6
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:
Change to your project directory:
cd /my/cloud/project
Get the package you want to use. Some products have their own module, so it's best to 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.
We currently support Go versions 1.11 and newer.
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: snip:# (auth-ts)
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.