chore: release main (#6238)

85 files changed
tree: 83d35760d0508cf4cdf78e2e5f2242ccf7e12a32
  1. .github/
  2. accessapproval/
  3. accesscontextmanager/
  4. aiplatform/
  5. analytics/
  6. apigateway/
  7. apigeeconnect/
  8. appengine/
  9. area120/
  10. artifactregistry/
  11. asset/
  12. assuredworkloads/
  13. automl/
  14. baremetalsolution/
  15. batch/
  16. bigquery/
  17. bigtable/
  18. billing/
  19. binaryauthorization/
  20. certificatemanager/
  21. channel/
  22. civil/
  23. cloudbuild/
  24. clouddms/
  25. cloudtasks/
  26. cmd/
  27. compute/
  28. contactcenterinsights/
  29. container/
  30. containeranalysis/
  31. datacatalog/
  32. dataflow/
  33. datafusion/
  34. datalabeling/
  35. dataplex/
  36. dataproc/
  37. dataqna/
  38. datastore/
  39. datastream/
  40. debugger/
  41. deploy/
  42. dialogflow/
  43. dlp/
  44. documentai/
  45. domains/
  46. errorreporting/
  47. essentialcontacts/
  48. eventarc/
  49. filestore/
  50. firestore/
  51. functions/
  52. gaming/
  53. gkebackup/
  54. gkeconnect/
  55. gkehub/
  56. gkemulticloud/
  57. grafeas/
  58. gsuiteaddons/
  59. httpreplay/
  60. iam/
  61. iap/
  62. ids/
  63. internal/
  64. iot/
  65. kms/
  66. language/
  67. lifesciences/
  68. logging/
  69. longrunning/
  70. managedidentities/
  71. mediatranslation/
  72. memcache/
  73. metastore/
  74. monitoring/
  75. networkconnectivity/
  76. networkmanagement/
  77. networksecurity/
  78. notebooks/
  79. optimization/
  80. orchestration/
  81. orgpolicy/
  82. osconfig/
  83. oslogin/
  84. phishingprotection/
  85. policytroubleshooter/
  86. privatecatalog/
  87. profiler/
  88. pubsub/
  89. pubsublite/
  90. recaptchaenterprise/
  91. recommendationengine/
  92. recommender/
  93. redis/
  94. resourcemanager/
  95. resourcesettings/
  96. retail/
  97. rpcreplay/
  98. run/
  99. scheduler/
  100. secretmanager/
  101. security/
  102. securitycenter/
  103. servicecontrol/
  104. servicedirectory/
  105. servicemanagement/
  106. serviceusage/
  107. shell/
  108. spanner/
  109. speech/
  110. storage/
  111. storagetransfer/
  112. talent/
  113. texttospeech/
  114. third_party/
  115. tpu/
  116. trace/
  117. translate/
  118. video/
  119. videointelligence/
  120. vision/
  121. vmmigration/
  122. vpcaccess/
  123. webrisk/
  124. websecurityscanner/
  125. workflows/
  126. .gitignore
  127. .release-please-manifest-submodules.json
  128. .release-please-manifest.json
  129. CHANGES.md
  130. CODE_OF_CONDUCT.md
  131. CONTRIBUTING.md
  132. doc.go
  133. go.mod
  134. go.sum
  135. header_test.go
  136. LICENSE
  137. README.md
  138. release-please-config-yoshi-submodules.json
  139. release-please-config.json
  140. RELEASING.md
  141. SECURITY.md
  142. testing.md
README.md

Google Cloud Client Libraries for Go

Go Reference

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:

  1. Change to your project directory:

    cd /my/cloud/project
    
  2. 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.

Supported APIs

For an updated list of all of our released APIs please see our reference docs.

Go Versions Supported

Our libraries are compatible with at least the three most recent, major Go releases. They are currently compatible with:

  • Go 1.18
  • Go 1.17
  • Go 1.16
  • Go 1.15

Authorization

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))

Contributing

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.

Links