commit | 59e548acc249c7bddd9c884c2af35d582a408c4d | [log] [tgz] |
---|---|---|
author | Yoshi Automation Bot <yoshi-automation@google.com> | Tue Oct 19 12:22:42 2021 -0700 |
committer | GitHub <noreply@github.com> | Tue Oct 19 19:22:42 2021 +0000 |
tree | f6376ab323469158a3809988d72ce147315920e8 | |
parent | 4537b45d2611ce480abfb5d186b59e7258ec872c [diff] |
chore(all): auto-regenerate gapics (#4996) 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/703 Changes: docs(retail): Keep the API doc up-to-date feat: add search mode to search request. If not specified, a single search request triggers both product search and faceted search. feat: update grpc service config settings to reflect correct API deadlines PiperOrigin-RevId: 404039072 Source-Link: https://github.com/googleapis/googleapis/commit/8ef531eaf6e03d709b0dabf1e2202c16685a96d8 chore(osconfig): Update oslogin BUILD.bazel package name to `google-cloud-os-config` PiperOrigin-RevId: 404012408 Source-Link: https://github.com/googleapis/googleapis/commit/451e78310675725b10b803c9e4e360b50d4c0774 docs(servicedirectory): fix docstring formatting Committer: @parthea PiperOrigin-RevId: 404010652 Source-Link: https://github.com/googleapis/googleapis/commit/853c7bcba7a7d15f015820340b74fd5dfa591512 chore(servicedirectory): Update servicedirectory BUILD.bazel package name to google-cloud-service-directory PiperOrigin-RevId: 404010609 Source-Link: https://github.com/googleapis/googleapis/commit/d2f4f46752066afb7865167217ec3179e2da0664 docs(servicecontrol): fix docstring formatting Committer: @parthea PiperOrigin-RevId: 404008335 Source-Link: https://github.com/googleapis/googleapis/commit/4dd603675ff73897600a5a94ec42606a6f83f907 chore(security/privateca): Update servicedirectory BUILD.bazel package name to google-cloud-private-ca PiperOrigin-RevId: 404008248 Source-Link: https://github.com/googleapis/googleapis/commit/9d6bb920939da0dd305c96c7fc9a16567b7b9f82 feat(osconfig): Update osconfig v1 and v1alpha RecurringSchedule.Frequency with DAILY frequency Committer: @coodie PiperOrigin-RevId: 403998997 Source-Link: https://github.com/googleapis/googleapis/commit/0dfce5e78775268bc729bb8276c0e20e66ef2a66 chore(recommendationengine): Enable C# generation in Bazel PiperOrigin-RevId: 403988541 Source-Link: https://github.com/googleapis/googleapis/commit/c5c2cd74181b8f00c1161c439fee3892aa4f1c92 docs(deploy): fix docstring formatting Committer: @parthea PiperOrigin-RevId: 403986035 Source-Link: https://github.com/googleapis/googleapis/commit/bbe8aa1896799a456a90dfda189e9150ed92c310
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.