chore(redis/cluster): Configure clients for google-cloud-redis-cluster (#8980)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 580715682

Source-Link: https://togithub.com/googleapis/googleapis/commit/b6f1e15dfd15bb4fca2a7e7a1238a0ace0d7bb73

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4f0930ea360cf5d5ed4111bd29fe400eadb21ea6
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGYwOTMwZWEzNjBjZjVkNWVkNDExMWJkMjlmZTQwMGVhZGIyMWVhNiJ9
BEGIN_NESTED_COMMIT
docs(scheduler): correct timezone/offset information for Cloud Scheduler headers

PiperOrigin-RevId: 580635787

Source-Link: https://togithub.com/googleapis/googleapis/commit/72f179600170dfde33df5775c730b189962f5ddc

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/0aa0f8d0564548a72335d718361f357fcb73dbe8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGFhMGY4ZDA1NjQ1NDhhNzIzMzVkNzE4MzYxZjM1N2ZjYjczZGJlOCJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
chore: update Go generator to v0.39.3

PiperOrigin-RevId: 580293585

Source-Link: https://togithub.com/googleapis/googleapis/commit/0c9912b3783e732f2a52b843cdcf908e76ea41c9

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/005dee7952e24f8296fbc27453faba76341b77f5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA1ZGVlNzk1MmUyNGY4Mjk2ZmJjMjc0NTNmYWJhNzYzNDFiNzdmNSJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
fix(recaptchaenterprise): added required annotations
docs: updated comments explaining if a field is optional or required

CreateKeyRequest.display_name and PrivatePasswordLeakVerification.lookup_hash_prefix are now required.

PiperOrigin-RevId: 580254588

Source-Link: https://togithub.com/googleapis/googleapis/commit/22df66c961f2468c7f09742c658221274e63ea03

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/488324dfc157101c764b110f58d945bcc28600be
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDg4MzI0ZGZjMTU3MTAxYzc2NGIxMTBmNThkOTQ1YmNjMjg2MDBiZSJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
docs(dataplex): updated comments for `DataQualityResult.dimensions` field

PiperOrigin-RevId: 579907849

Source-Link: https://togithub.com/googleapis/googleapis/commit/418208c1d1442d978a8b24b43338adcedcaa8305

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/67528c1f0e388b165ecac910ac56fe687c43290f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjc1MjhjMWYwZTM4OGIxNjVlY2FjOTEwYWM1NmZlNjg3YzQzMjkwZiJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
fix(storage): rename aux.go to auxiliary.go fixing windows build
END_NESTED_COMMIT
290 files changed
tree: 2bce246317890f4ead82dfe2ba516d7862cf0277
  1. .devcontainer/
  2. .github/
  3. accessapproval/
  4. accesscontextmanager/
  5. advisorynotifications/
  6. ai/
  7. aiplatform/
  8. alloydb/
  9. analytics/
  10. apigateway/
  11. apigeeconnect/
  12. apigeeregistry/
  13. apikeys/
  14. appengine/
  15. area120/
  16. artifactregistry/
  17. asset/
  18. assuredworkloads/
  19. auth/
  20. automl/
  21. baremetalsolution/
  22. batch/
  23. beyondcorp/
  24. bigquery/
  25. bigtable/
  26. billing/
  27. binaryauthorization/
  28. certificatemanager/
  29. channel/
  30. civil/
  31. cloudbuild/
  32. clouddms/
  33. cloudtasks/
  34. commerce/
  35. compute/
  36. confidentialcomputing/
  37. config/
  38. contactcenterinsights/
  39. container/
  40. containeranalysis/
  41. datacatalog/
  42. dataflow/
  43. dataform/
  44. datafusion/
  45. datalabeling/
  46. dataplex/
  47. dataproc/
  48. dataqna/
  49. datastore/
  50. datastream/
  51. debugger/
  52. deploy/
  53. dialogflow/
  54. discoveryengine/
  55. dlp/
  56. documentai/
  57. domains/
  58. edgecontainer/
  59. edgenetwork/
  60. errorreporting/
  61. essentialcontacts/
  62. eventarc/
  63. filestore/
  64. firestore/
  65. functions/
  66. gkebackup/
  67. gkeconnect/
  68. gkehub/
  69. gkemulticloud/
  70. grafeas/
  71. gsuiteaddons/
  72. httpreplay/
  73. iam/
  74. iap/
  75. ids/
  76. internal/
  77. iot/
  78. kms/
  79. language/
  80. lifesciences/
  81. logging/
  82. longrunning/
  83. managedidentities/
  84. maps/
  85. mediatranslation/
  86. memcache/
  87. metastore/
  88. migrationcenter/
  89. monitoring/
  90. netapp/
  91. networkconnectivity/
  92. networkmanagement/
  93. networksecurity/
  94. notebooks/
  95. optimization/
  96. orchestration/
  97. orgpolicy/
  98. osconfig/
  99. oslogin/
  100. phishingprotection/
  101. policysimulator/
  102. policytroubleshooter/
  103. privatecatalog/
  104. profiler/
  105. pubsub/
  106. pubsublite/
  107. rapidmigrationassessment/
  108. recaptchaenterprise/
  109. recommendationengine/
  110. recommender/
  111. redis/
  112. resourcemanager/
  113. resourcesettings/
  114. retail/
  115. rpcreplay/
  116. run/
  117. scheduler/
  118. secretmanager/
  119. securesourcemanager/
  120. security/
  121. securitycenter/
  122. servicecontrol/
  123. servicedirectory/
  124. servicemanagement/
  125. serviceusage/
  126. shell/
  127. shopping/
  128. spanner/
  129. speech/
  130. storage/
  131. storageinsights/
  132. storagetransfer/
  133. support/
  134. talent/
  135. texttospeech/
  136. third_party/
  137. tpu/
  138. trace/
  139. translate/
  140. video/
  141. videointelligence/
  142. vision/
  143. vmmigration/
  144. vmwareengine/
  145. vpcaccess/
  146. webrisk/
  147. websecurityscanner/
  148. workflows/
  149. workstations/
  150. .gitignore
  151. .release-please-manifest-individual.json
  152. .release-please-manifest-submodules.json
  153. .release-please-manifest.json
  154. CHANGES.md
  155. CODE_OF_CONDUCT.md
  156. CONTRIBUTING.md
  157. debug.md
  158. doc.go
  159. go.mod
  160. go.sum
  161. go.work
  162. go.work.sum
  163. LICENSE
  164. migration.md
  165. README.md
  166. release-please-config-individual.json
  167. release-please-config-yoshi-submodules.json
  168. release-please-config.json
  169. RELEASING.md
  170. SECURITY.md
  171. 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.21
  • Go 1.20
  • Go 1.19

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:

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