• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H18-Oct-2021-336304

accessapproval/H18-Oct-2021-1,5771,177

accesscontextmanager/H18-Oct-2021-3,9332,723

aiplatform/H18-Oct-2021-18,31112,478

analytics/H18-Oct-2021-7,8166,046

apigateway/H18-Oct-2021-2,8702,114

apigeeconnect/H18-Oct-2021-1,4491,071

appengine/H18-Oct-2021-6,0974,019

area120/H18-Oct-2021-1,9191,475

artifactregistry/H18-Oct-2021-3,0292,298

asset/H18-Oct-2021-4,2103,011

assuredworkloads/H18-Oct-2021-1,5251,156

automl/H18-Oct-2021-11,2058,204

bigquery/H18-Oct-2021-71,46460,709

bigtable/H18-Oct-2021-20,42516,413

billing/H18-Oct-2021-3,9462,782

binaryauthorization/H18-Oct-2021-1,5931,218

channel/H18-Oct-2021-5,6333,681

civil/H18-Oct-2021-794608

cloudbuild/H18-Oct-2021-4,0702,888

clouddms/H18-Oct-2021-3,0912,224

cloudtasks/H18-Oct-2021-9,8297,274

cmd/go-cloud-debug-agent/H18-Oct-2021-23,25919,089

compute/H18-Oct-2021-74,94452,897

contactcenterinsights/H18-Oct-2021-3,5402,756

container/H18-Oct-2021-6,1945,005

containeranalysis/H18-Oct-2021-5,3043,970

datacatalog/H18-Oct-2021-8,3195,960

dataflow/H18-Oct-2021-3,4822,402

datafusion/H18-Oct-2021-1,9021,403

datalabeling/H18-Oct-2021-4,2793,264

dataproc/H18-Oct-2021-7,0155,108

dataqna/H18-Oct-2021-1,6571,197

datastore/H03-May-2022-15,43412,122

datastream/H18-Oct-2021-3,5622,599

debugger/apiv2/H18-Oct-2021-1,8881,264

deploy/H18-Oct-2021-3,0482,271

dialogflow/H18-Oct-2021-40,14928,247

dlp/H18-Oct-2021-5,7774,535

documentai/H18-Oct-2021-2,8061,968

domains/H18-Oct-2021-2,3951,701

errorreporting/H18-Oct-2021-3,2702,331

essentialcontacts/H18-Oct-2021-1,5001,188

eventarc/H18-Oct-2021-1,6101,205

filestore/H18-Oct-2021-2,4561,770

firestore/H18-Oct-2021-33,81828,161

functions/H18-Oct-2021-2,3651,731

gaming/H18-Oct-2021-8,7436,011

gkeconnect/H18-Oct-2021-1,275979

gkehub/H18-Oct-2021-1,9291,429

grafeas/H18-Oct-2021-2,7972,215

gsuiteaddons/H18-Oct-2021-1,6731,291

httpreplay/H18-Oct-2021-2,4721,849

iam/H18-Oct-2021-4,4913,263

iap/H18-Oct-2021-2,0311,533

internal/H18-Oct-2021-179,86082,110

iot/H18-Oct-2021-3,8983,090

kms/H18-Oct-2021-5,3014,155

language/H18-Oct-2021-3,3642,516

lifesciences/H18-Oct-2021-1,213894

logging/H18-Oct-2021-11,8378,679

longrunning/H18-Oct-2021-1,7601,143

managedidentities/H18-Oct-2021-2,3031,629

mediatranslation/H18-Oct-2021-1,103842

memcache/H18-Oct-2021-3,3942,297

metastore/H18-Oct-2021-7,4745,121

monitoring/H18-Oct-2021-15,78711,350

networkconnectivity/H18-Oct-2021-3,9142,733

networkmanagement/H18-Oct-2021-1,8111,306

networksecurity/H18-Oct-2021-2,7892,037

notebooks/H18-Oct-2021-3,3842,409

orchestration/H18-Oct-2021-1,9731,427

orgpolicy/H18-Oct-2021-1,6781,277

osconfig/H18-Oct-2021-7,3855,330

oslogin/H18-Oct-2021-3,2152,423

phishingprotection/H18-Oct-2021-1,250944

policytroubleshooter/H18-Oct-2021-1,056827

privatecatalog/H18-Oct-2021-1,4711,085

profiler/H18-Oct-2021-4,2803,416

pubsub/H18-Oct-2021-32,40226,578

pubsublite/H18-Oct-2021-24,30017,509

recaptchaenterprise/H18-Oct-2021-3,0172,257

recommendationengine/H18-Oct-2021-3,2462,354

recommender/H18-Oct-2021-3,2492,381

redis/H18-Oct-2021-5,9104,302

resourcemanager/H18-Oct-2021-8,5265,688

resourcesettings/H18-Oct-2021-1,3261,009

retail/H18-Oct-2021-4,7083,194

rpcreplay/H18-Oct-2021-2,8622,166

scheduler/H18-Oct-2021-3,9712,991

secretmanager/H18-Oct-2021-3,5862,600

security/H18-Oct-2021-7,5485,550

securitycenter/H18-Oct-2021-11,6138,843

servicecontrol/H18-Oct-2021-1,4261,023

servicedirectory/H18-Oct-2021-4,8133,619

servicemanagement/H18-Oct-2021-2,7291,956

serviceusage/H18-Oct-2021-1,7221,271

shell/H18-Oct-2021-1,6711,229

spanner/H18-Oct-2021-57,78645,071

speech/H18-Oct-2021-3,8532,805

storage/H18-Oct-2021-50,49345,513

storagetransfer/H18-Oct-2021-1,6201,235

talent/H18-Oct-2021-11,0658,002

texttospeech/H18-Oct-2021-1,4481,116

third_party/H18-Oct-2021-4,4132,894

tpu/H18-Oct-2021-2,2821,693

trace/H18-Oct-2021-2,5871,826

translate/H18-Oct-2021-3,5032,661

video/H18-Oct-2021-2,5691,887

videointelligence/H18-Oct-2021-2,2091,530

vision/H18-Oct-2021-7,0935,231

vpcaccess/H18-Oct-2021-1,4911,120

webrisk/H18-Oct-2021-2,1591,576

websecurityscanner/H18-Oct-2021-2,1111,669

workflows/H18-Oct-2021-2,9742,021

.gitignoreH A D18-Oct-202192 1310

CHANGES.mdH A D18-Oct-2021128.8 KiB2,2731,744

CODE_OF_CONDUCT.mdH A D18-Oct-20211.9 KiB4535

CONTRIBUTING.mdH A D18-Oct-202113.3 KiB328257

LICENSEH A D18-Oct-202111.1 KiB203169

README.mdH A D18-Oct-20215.6 KiB133108

RELEASING.mdH A D18-Oct-20216.5 KiB142121

SECURITY.mdH A D18-Oct-2021329 84

doc.goH A D18-Oct-20217.9 KiB2021

go.modH A D18-Oct-2021532 1916

go.sumH A D18-Oct-202154.2 KiB554553

header_test.goH A D18-Oct-20212.5 KiB9263

testing.mdH A D18-Oct-20218.9 KiB237199

README.md

1# Google Cloud Client Libraries for Go
2
3[![Go Reference](https://pkg.go.dev/badge/cloud.google.com/go.svg)](https://pkg.go.dev/cloud.google.com/go)
4
5Go packages for [Google Cloud Platform](https://cloud.google.com) services.
6
7``` go
8import "cloud.google.com/go"
9```
10
11To install the packages on your system, *do not clone the repo*. Instead:
12
131. Change to your project directory:
14
15   ```bash
16   cd /my/cloud/project
17   ```
181. Get the package you want to use. Some products have their own module, so it's
19   best to `go get` the package(s) you want to use:
20
21   ```
22   $ go get cloud.google.com/go/firestore # Replace with the package you want to use.
23   ```
24
25**NOTE:** Some of these packages are under development, and may occasionally
26make backwards-incompatible changes.
27
28## Supported APIs
29
30For an updated list of all of our released APIs please see our
31[reference docs](https://cloud.google.com/go/docs/reference).
32
33## [Go Versions Supported](#supported-versions)
34
35We currently support Go versions 1.11 and newer.
36
37## Authorization
38
39By default, each API will use [Google Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials)
40for authorization credentials used in calling the API endpoints. This will allow your
41application to run in many environments without requiring explicit configuration.
42
43[snip]:# (auth)
44```go
45client, err := storage.NewClient(ctx)
46```
47
48To authorize using a
49[JSON key file](https://cloud.google.com/iam/docs/managing-service-account-keys),
50pass
51[`option.WithCredentialsFile`](https://pkg.go.dev/google.golang.org/api/option#WithCredentialsFile)
52to the `NewClient` function of the desired package. For example:
53
54[snip]:# (auth-JSON)
55```go
56client, err := storage.NewClient(ctx, option.WithCredentialsFile("path/to/keyfile.json"))
57```
58
59You can exert more control over authorization by using the
60[`golang.org/x/oauth2`](https://pkg.go.dev/golang.org/x/oauth2) package to
61create an `oauth2.TokenSource`. Then pass
62[`option.WithTokenSource`](https://pkg.go.dev/google.golang.org/api/option#WithTokenSource)
63to the `NewClient` function:
64[snip]:# (auth-ts)
65```go
66tokenSource := ...
67client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))
68```
69
70## Contributing
71
72Contributions are welcome. Please, see the
73[CONTRIBUTING](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/master/CONTRIBUTING.md)
74document for details.
75
76Please note that this project is released with a Contributor Code of Conduct.
77By participating in this project you agree to abide by its terms.
78See [Contributor Code of Conduct](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/master/CONTRIBUTING.md#contributor-code-of-conduct)
79for more information.
80
81[cloud-asset]: https://cloud.google.com/security-command-center/docs/how-to-asset-inventory
82[cloud-automl]: https://cloud.google.com/automl
83[cloud-build]: https://cloud.google.com/cloud-build/
84[cloud-bigquery]: https://cloud.google.com/bigquery/
85[cloud-bigtable]: https://cloud.google.com/bigtable/
86[cloud-compute]: https://cloud.google.com/compute
87[cloud-container]: https://cloud.google.com/containers/
88[cloud-containeranalysis]: https://cloud.google.com/container-registry/docs/container-analysis
89[cloud-dataproc]: https://cloud.google.com/dataproc/
90[cloud-datastore]: https://cloud.google.com/datastore/
91[cloud-dialogflow]: https://cloud.google.com/dialogflow-enterprise/
92[cloud-debugger]: https://cloud.google.com/debugger/
93[cloud-dlp]: https://cloud.google.com/dlp/
94[cloud-errors]: https://cloud.google.com/error-reporting/
95[cloud-firestore]: https://cloud.google.com/firestore/
96[cloud-iam]: https://cloud.google.com/iam/
97[cloud-iot]: https://cloud.google.com/iot-core/
98[cloud-irm]: https://cloud.google.com/incident-response/docs/concepts
99[cloud-kms]: https://cloud.google.com/kms/
100[cloud-pubsub]: https://cloud.google.com/pubsub/
101[cloud-pubsublite]: https://cloud.google.com/pubsub/lite
102[cloud-storage]: https://cloud.google.com/storage/
103[cloud-language]: https://cloud.google.com/natural-language
104[cloud-logging]: https://cloud.google.com/logging/
105[cloud-natural-language]: https://cloud.google.com/natural-language/
106[cloud-memorystore]: https://cloud.google.com/memorystore/
107[cloud-monitoring]: https://cloud.google.com/monitoring/
108[cloud-oslogin]: https://cloud.google.com/compute/docs/oslogin/rest
109[cloud-phishingprotection]: https://cloud.google.com/phishing-protection/
110[cloud-securitycenter]: https://cloud.google.com/security-command-center/
111[cloud-scheduler]: https://cloud.google.com/scheduler
112[cloud-spanner]: https://cloud.google.com/spanner/
113[cloud-speech]: https://cloud.google.com/speech
114[cloud-talent]: https://cloud.google.com/solutions/talent-solution/
115[cloud-tasks]: https://cloud.google.com/tasks/
116[cloud-texttospeech]: https://cloud.google.com/texttospeech/
117[cloud-talent]: https://cloud.google.com/solutions/talent-solution/
118[cloud-trace]: https://cloud.google.com/trace/
119[cloud-translate]: https://cloud.google.com/translate
120[cloud-recaptcha]: https://cloud.google.com/recaptcha-enterprise/
121[cloud-recommender]: https://cloud.google.com/recommendations/
122[cloud-video]: https://cloud.google.com/video-intelligence/
123[cloud-vision]: https://cloud.google.com/vision
124[cloud-webrisk]: https://cloud.google.com/web-risk/
125
126## Links
127
128- [Go on Google Cloud](https://cloud.google.com/go/home)
129- [Getting started with Go on Google Cloud](https://cloud.google.com/go/getting-started)
130- [App Engine Quickstart](https://cloud.google.com/appengine/docs/standard/go/quickstart)
131- [Cloud Functions Quickstart](https://cloud.google.com/functions/docs/quickstart-go)
132- [Cloud Run Quickstart](https://cloud.google.com/run/docs/quickstarts/build-and-deploy#go)
133