commit | 06a54a16a5866cce966547c51e203b9e09a25bc0 | [log] [tgz] |
---|---|---|
author | Cody Oss <6331106+codyoss@users.noreply.github.com> | Wed Jan 04 21:11:54 2023 +0000 |
committer | GitHub <noreply@github.com> | Wed Jan 04 15:11:54 2023 -0600 |
tree | 16410dcfbed8ec4c10b33bc70572851478c2098e | |
parent | fd71cba7b6d5a015dcdb24b9eacc7fae1aa54c89 [diff] |
chore: fixup commit messages (#7210) Changes: docs(notebooks): Minor formatting fixes to reference documentation PiperOrigin-RevId: 499362676 Source-Link: https://github.com/googleapis/googleapis/commit/870a5ed7e141b4faf70e2a0858854e9b5bb18612 chore(gsuiteaddons): Configure Ruby client library generation for gsuiteaddons PiperOrigin-RevId: 499356666 Source-Link: https://github.com/googleapis/googleapis/commit/c3845dd3b8e9361486943f119813bf6279a0ffd5 feat(batch): support secret and encrypted environment variables in v1 PiperOrigin-RevId: 499338464 Source-Link: https://github.com/googleapis/googleapis/commit/af050dcf9b72d192ef20b79149a6655a9afee870 feat(bigquery/datatransfer): Add location methods PiperOrigin-RevId: 499272288 Source-Link: https://github.com/googleapis/googleapis/commit/62c5867e6adcd7910203ae6adc10f2b1533c29e6 feat(artifactregistry): Add location methods PiperOrigin-RevId: 499263614 Source-Link: https://github.com/googleapis/googleapis/commit/ba2db0d89a145c14ef11c0ec2eda0c80fe16f17e feat(container): add etags for cluster and node pool update operations Clients may now optionally specify the previously read etag for a cluster or node pool during update requests. The etag is regenerated every time the object is updated. If an etag is provided, it will be checked against the current etag, and the request will be rejected on mismatch. This is particularly useful for allowing two clients to concurrently update a repeated field without overwriting each other. PiperOrigin-RevId: 498249600 Source-Link: https://github.com/googleapis/googleapis/commit/9a294bf14b3343b3f144aa6e80fa858332d21274 feat(accessapproval): add REST client feat(accesscontextmanager): add REST client feat(aiplatform): add REST client feat(analytics): add REST client feat(apigateway): add REST client feat(apigeeconnect): add REST client feat(apigeeregistry): add REST client feat(apikeys): add REST client feat(appengine): add REST client feat(area120): add REST client feat(artifactregistry): add REST client feat(asset): add REST client feat(assuredworkloads): add REST client feat(automl): add REST client feat(baremetalsolution): add REST client feat(batch): add REST client feat(beyondcorp): add REST client feat(bigquery): add REST client feat(billing): add REST client feat(binaryauthorization): add REST client feat(certificatemanager): add REST client feat(channel): add REST client feat(cloudbuild): add REST client feat(clouddms): add REST client feat(cloudtasks): add REST client feat(compute): add REST client feat(contactcenterinsights): add REST client feat(container): add REST client feat(containeranalysis): add REST client feat(datacatalog): add REST client feat(dataflow): add REST client feat(dataform): add REST client feat(datafusion): add REST client feat(datalabeling): add REST client feat(dataplex): add REST client feat(dataproc): add REST client feat(dataqna): add REST client feat(datastore): add REST client feat(datastream): add REST client feat(debugger): add REST client feat(deploy): add REST client feat(dialogflow): add REST client feat(dlp): add REST client feat(documentai): add REST client feat(domains): add REST client feat(edgecontainer): add REST client feat(errorreporting): add REST client feat(essentialcontacts): add REST client feat(eventarc): add REST client feat(filestore): add REST client feat(firestore): add REST client feat(functions): add REST client feat(gaming): add REST client feat(gkebackup): add REST client feat(gkeconnect): add REST client feat(gkehub): add REST client feat(gkemulticloud): add REST client feat(gsuiteaddons): add REST client feat(iam): add REST client feat(iap): add REST client feat(ids): add REST client feat(iot): add REST client feat(kms): add REST client feat(language): add REST client feat(lifesciences): add REST client feat(logging): add REST client feat(longrunning): add REST client feat(managedidentities): add REST client feat(maps): add REST client feat(mediatranslation): add REST client feat(memcache): add REST client feat(metastore): add REST client feat(monitoring): add REST client feat(networkconnectivity): add REST client feat(networkmanagement): add REST client feat(networksecurity): add REST client feat(notebooks): add REST client feat(optimization): add REST client feat(orchestration): add REST client feat(orgpolicy): add REST client feat(osconfig): add REST client feat(oslogin): add REST client feat(phishingprotection): add REST client feat(policytroubleshooter): add REST client feat(privatecatalog): add REST client feat(pubsub): add REST client feat(pubsublite): add REST client feat(recaptchaenterprise/v2): add REST client feat(recommendationengine): add REST client feat(recommender): add REST client feat(redis): add REST client feat(resourcemanager): add REST client feat(resourcesettings): add REST client feat(retail): add REST client feat(run): add REST client feat(scheduler): add REST client feat(secretmanager): add REST client feat(security): add REST client feat(securitycenter): add REST client feat(servicecontrol): add REST client feat(servicedirectory): add REST client feat(servicemanagement): add REST client feat(serviceusage): add REST client feat(shell): add REST client feat(spanner): add REST client feat(speech): add REST client feat(storage): add REST client feat(storagetransfer): add REST client feat(talent): add REST client feat(texttospeech): add REST client feat(tpu): add REST client feat(trace): add REST client feat(translate): add REST client feat(video): add REST client feat(videointelligence): add REST client feat(vision/v2): add REST client feat(vmmigration): add REST client feat(vmwareengine): add REST client feat(vpcaccess): add REST client feat(webrisk): add REST client feat(websecurityscanner): add REST client feat(workflows): add REST client
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.
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: 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.