You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 19 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. # Google Cloud Client Libraries for Go
  2. [![GoDoc](https://godoc.org/cloud.google.com/go?status.svg)](https://godoc.org/cloud.google.com/go)
  3. Go packages for [Google Cloud Platform](https://cloud.google.com) services.
  4. ``` go
  5. import "cloud.google.com/go"
  6. ```
  7. To install the packages on your system, *do not clone the repo*. Instead use
  8. ```
  9. $ go get -u cloud.google.com/go/...
  10. ```
  11. **NOTE:** Some of these packages are under development, and may occasionally
  12. make backwards-incompatible changes.
  13. **NOTE:** Github repo is a mirror of [https://code.googlesource.com/gocloud](https://code.googlesource.com/gocloud).
  14. * [News](#news)
  15. * [Supported APIs](#supported-apis)
  16. * [Go Versions Supported](#go-versions-supported)
  17. * [Authorization](#authorization)
  18. * [Cloud Datastore](#cloud-datastore-)
  19. * [Cloud Storage](#cloud-storage-)
  20. * [Cloud Pub/Sub](#cloud-pub-sub-)
  21. * [BigQuery](#cloud-bigquery-)
  22. * [Stackdriver Logging](#stackdriver-logging-)
  23. * [Cloud Spanner](#cloud-spanner-)
  24. ## News
  25. _7 August 2018_
  26. As of November 1, the code in the repo will no longer support Go versions 1.8
  27. and earlier. No one other than AppEngine users should be on those old versions,
  28. and AppEngine
  29. [Standard](https://groups.google.com/forum/#!topic/google-appengine-go/e7oPNomd7ak)
  30. and
  31. [Flex](https://groups.google.com/forum/#!topic/google-appengine-go/wHsYtxvEbXI)
  32. will stop supporting new deployments with those versions on that date.
  33. Changes have been moved to [CHANGES](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/master/CHANGES.md).
  34. ## Supported APIs
  35. Google API | Status | Package
  36. ---------------------------------------------|--------------|-----------------------------------------------------------
  37. [Asset][cloud-asset] | alpha | [`cloud.google.com/go/asset/v1beta`][cloud-asset-ref]
  38. [BigQuery][cloud-bigquery] | stable | [`cloud.google.com/go/bigquery`][cloud-bigquery-ref]
  39. [Bigtable][cloud-bigtable] | stable | [`cloud.google.com/go/bigtable`][cloud-bigtable-ref]
  40. [Cloudtasks][cloud-tasks] | beta | [`cloud.google.com/go/cloudtasks/apiv2beta3`][cloud-tasks-ref]
  41. [Container][cloud-container] | stable | [`cloud.google.com/go/container/apiv1`][cloud-container-ref]
  42. [ContainerAnalysis][cloud-containeranalysis] | beta | [`cloud.google.com/go/containeranalysis/apiv1beta1`][cloud-containeranalysis-ref]
  43. [Dataproc][cloud-dataproc] | stable | [`cloud.google.com/go/dataproc/apiv1`][cloud-dataproc-ref]
  44. [Datastore][cloud-datastore] | stable | [`cloud.google.com/go/datastore`][cloud-datastore-ref]
  45. [Debugger][cloud-debugger] | alpha | [`cloud.google.com/go/debugger/apiv2`][cloud-debugger-ref]
  46. [Dialogflow][cloud-dialogflow] | alpha | [`cloud.google.com/go/dialogflow/apiv2`][cloud-dialogflow-ref]
  47. [Data Loss Prevention][cloud-dlp] | alpha | [`cloud.google.com/go/dlp/apiv2`][cloud-dlp-ref]
  48. [ErrorReporting][cloud-errors] | alpha | [`cloud.google.com/go/errorreporting`][cloud-errors-ref]
  49. [Firestore][cloud-firestore] | beta | [`cloud.google.com/go/firestore`][cloud-firestore-ref]
  50. [IAM][cloud-iam] | stable | [`cloud.google.com/go/iam`][cloud-iam-ref]
  51. [KMS][cloud-kms] | stable | [`cloud.google.com/go/kms`][cloud-kms-ref]
  52. [Natural Language][cloud-natural-language] | stable | [`cloud.google.com/go/language/apiv1`][cloud-natural-language-ref]
  53. [Logging][cloud-logging] | stable | [`cloud.google.com/go/logging`][cloud-logging-ref]
  54. [Monitoring][cloud-monitoring] | alpha | [`cloud.google.com/go/monitoring/apiv3`][cloud-monitoring-ref]
  55. [OS Login][cloud-oslogin] | alpha | [`cloud.google.com/compute/docs/oslogin/rest`][cloud-oslogin-ref]
  56. [Pub/Sub][cloud-pubsub] | stable | [`cloud.google.com/go/pubsub`][cloud-pubsub-ref]
  57. [Memorystore][cloud-memorystore] | stable | [`cloud.google.com/go/redis/apiv1beta1`][cloud-memorystore-ref]
  58. [Spanner][cloud-spanner] | stable | [`cloud.google.com/go/spanner`][cloud-spanner-ref]
  59. [Speech][cloud-speech] | stable | [`cloud.google.com/go/speech/apiv1`][cloud-speech-ref]
  60. [Storage][cloud-storage] | stable | [`cloud.google.com/go/storage`][cloud-storage-ref]
  61. [Text To Speech][cloud-texttospeech] | alpha | [`cloud.google.com/go/texttospeech/apiv1`][cloud-texttospeech-ref]
  62. [Trace][cloud-trace] | alpha | [`cloud.google.com/go/trace/apiv2`][cloud-trace-ref]
  63. [Translation][cloud-translation] | stable | [`cloud.google.com/go/translate`][cloud-translation-ref]
  64. [Video Intelligence][cloud-video] | alpha | [`cloud.google.com/go/videointelligence/apiv1beta1`][cloud-video-ref]
  65. [Vision][cloud-vision] | stable | [`cloud.google.com/go/vision/apiv1`][cloud-vision-ref]
  66. > **Alpha status**: the API is still being actively developed. As a
  67. > result, it might change in backward-incompatible ways and is not recommended
  68. > for production use.
  69. >
  70. > **Beta status**: the API is largely complete, but still has outstanding
  71. > features and bugs to be addressed. There may be minor backwards-incompatible
  72. > changes where necessary.
  73. >
  74. > **Stable status**: the API is mature and ready for production use. We will
  75. > continue addressing bugs and feature requests.
  76. Documentation and examples are available at
  77. https://godoc.org/cloud.google.com/go
  78. Visit or join the
  79. [google-api-go-announce group](https://groups.google.com/forum/#!forum/google-api-go-announce)
  80. for updates on these packages.
  81. ## Go Versions Supported
  82. We support the two most recent major versions of Go. If Google App Engine uses
  83. an older version, we support that as well.
  84. ## Authorization
  85. By default, each API will use [Google Application Default Credentials][default-creds]
  86. for authorization credentials used in calling the API endpoints. This will allow your
  87. application to run in many environments without requiring explicit configuration.
  88. [snip]:# (auth)
  89. ```go
  90. client, err := storage.NewClient(ctx)
  91. ```
  92. To authorize using a
  93. [JSON key file](https://cloud.google.com/iam/docs/managing-service-account-keys),
  94. pass
  95. [`option.WithCredentialsFile`](https://godoc.org/google.golang.org/api/option#WithCredentialsFile)
  96. to the `NewClient` function of the desired package. For example:
  97. [snip]:# (auth-JSON)
  98. ```go
  99. client, err := storage.NewClient(ctx, option.WithCredentialsFile("path/to/keyfile.json"))
  100. ```
  101. You can exert more control over authorization by using the
  102. [`golang.org/x/oauth2`](https://godoc.org/golang.org/x/oauth2) package to
  103. create an `oauth2.TokenSource`. Then pass
  104. [`option.WithTokenSource`](https://godoc.org/google.golang.org/api/option#WithTokenSource)
  105. to the `NewClient` function:
  106. [snip]:# (auth-ts)
  107. ```go
  108. tokenSource := ...
  109. client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))
  110. ```
  111. ## Cloud Datastore [![GoDoc](https://godoc.org/cloud.google.com/go/datastore?status.svg)](https://godoc.org/cloud.google.com/go/datastore)
  112. - [About Cloud Datastore][cloud-datastore]
  113. - [Activating the API for your project][cloud-datastore-activation]
  114. - [API documentation][cloud-datastore-docs]
  115. - [Go client documentation](https://godoc.org/cloud.google.com/go/datastore)
  116. - [Complete sample program](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/datastore/tasks)
  117. ### Example Usage
  118. First create a `datastore.Client` to use throughout your application:
  119. [snip]:# (datastore-1)
  120. ```go
  121. client, err := datastore.NewClient(ctx, "my-project-id")
  122. if err != nil {
  123. log.Fatal(err)
  124. }
  125. ```
  126. Then use that client to interact with the API:
  127. [snip]:# (datastore-2)
  128. ```go
  129. type Post struct {
  130. Title string
  131. Body string `datastore:",noindex"`
  132. PublishedAt time.Time
  133. }
  134. keys := []*datastore.Key{
  135. datastore.NameKey("Post", "post1", nil),
  136. datastore.NameKey("Post", "post2", nil),
  137. }
  138. posts := []*Post{
  139. {Title: "Post 1", Body: "...", PublishedAt: time.Now()},
  140. {Title: "Post 2", Body: "...", PublishedAt: time.Now()},
  141. }
  142. if _, err := client.PutMulti(ctx, keys, posts); err != nil {
  143. log.Fatal(err)
  144. }
  145. ```
  146. ## Cloud Storage [![GoDoc](https://godoc.org/cloud.google.com/go/storage?status.svg)](https://godoc.org/cloud.google.com/go/storage)
  147. - [About Cloud Storage][cloud-storage]
  148. - [API documentation][cloud-storage-docs]
  149. - [Go client documentation](https://godoc.org/cloud.google.com/go/storage)
  150. - [Complete sample programs](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/storage)
  151. ### Example Usage
  152. First create a `storage.Client` to use throughout your application:
  153. [snip]:# (storage-1)
  154. ```go
  155. client, err := storage.NewClient(ctx)
  156. if err != nil {
  157. log.Fatal(err)
  158. }
  159. ```
  160. [snip]:# (storage-2)
  161. ```go
  162. // Read the object1 from bucket.
  163. rc, err := client.Bucket("bucket").Object("object1").NewReader(ctx)
  164. if err != nil {
  165. log.Fatal(err)
  166. }
  167. defer rc.Close()
  168. body, err := ioutil.ReadAll(rc)
  169. if err != nil {
  170. log.Fatal(err)
  171. }
  172. ```
  173. ## Cloud Pub/Sub [![GoDoc](https://godoc.org/cloud.google.com/go/pubsub?status.svg)](https://godoc.org/cloud.google.com/go/pubsub)
  174. - [About Cloud Pubsub][cloud-pubsub]
  175. - [API documentation][cloud-pubsub-docs]
  176. - [Go client documentation](https://godoc.org/cloud.google.com/go/pubsub)
  177. - [Complete sample programs](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/pubsub)
  178. ### Example Usage
  179. First create a `pubsub.Client` to use throughout your application:
  180. [snip]:# (pubsub-1)
  181. ```go
  182. client, err := pubsub.NewClient(ctx, "project-id")
  183. if err != nil {
  184. log.Fatal(err)
  185. }
  186. ```
  187. Then use the client to publish and subscribe:
  188. [snip]:# (pubsub-2)
  189. ```go
  190. // Publish "hello world" on topic1.
  191. topic := client.Topic("topic1")
  192. res := topic.Publish(ctx, &pubsub.Message{
  193. Data: []byte("hello world"),
  194. })
  195. // The publish happens asynchronously.
  196. // Later, you can get the result from res:
  197. ...
  198. msgID, err := res.Get(ctx)
  199. if err != nil {
  200. log.Fatal(err)
  201. }
  202. // Use a callback to receive messages via subscription1.
  203. sub := client.Subscription("subscription1")
  204. err = sub.Receive(ctx, func(ctx context.Context, m *pubsub.Message) {
  205. fmt.Println(m.Data)
  206. m.Ack() // Acknowledge that we've consumed the message.
  207. })
  208. if err != nil {
  209. log.Println(err)
  210. }
  211. ```
  212. ## BigQuery [![GoDoc](https://godoc.org/cloud.google.com/go/bigquery?status.svg)](https://godoc.org/cloud.google.com/go/bigquery)
  213. - [About BigQuery][cloud-bigquery]
  214. - [API documentation][cloud-bigquery-docs]
  215. - [Go client documentation][cloud-bigquery-ref]
  216. - [Complete sample programs](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/bigquery)
  217. ### Example Usage
  218. First create a `bigquery.Client` to use throughout your application:
  219. [snip]:# (bq-1)
  220. ```go
  221. c, err := bigquery.NewClient(ctx, "my-project-ID")
  222. if err != nil {
  223. // TODO: Handle error.
  224. }
  225. ```
  226. Then use that client to interact with the API:
  227. [snip]:# (bq-2)
  228. ```go
  229. // Construct a query.
  230. q := c.Query(`
  231. SELECT year, SUM(number)
  232. FROM [bigquery-public-data:usa_names.usa_1910_2013]
  233. WHERE name = "William"
  234. GROUP BY year
  235. ORDER BY year
  236. `)
  237. // Execute the query.
  238. it, err := q.Read(ctx)
  239. if err != nil {
  240. // TODO: Handle error.
  241. }
  242. // Iterate through the results.
  243. for {
  244. var values []bigquery.Value
  245. err := it.Next(&values)
  246. if err == iterator.Done {
  247. break
  248. }
  249. if err != nil {
  250. // TODO: Handle error.
  251. }
  252. fmt.Println(values)
  253. }
  254. ```
  255. ## Stackdriver Logging [![GoDoc](https://godoc.org/cloud.google.com/go/logging?status.svg)](https://godoc.org/cloud.google.com/go/logging)
  256. - [About Stackdriver Logging][cloud-logging]
  257. - [API documentation][cloud-logging-docs]
  258. - [Go client documentation][cloud-logging-ref]
  259. - [Complete sample programs](https://github.com/GoogleCloudPlatform/golang-samples/tree/master/logging)
  260. ### Example Usage
  261. First create a `logging.Client` to use throughout your application:
  262. [snip]:# (logging-1)
  263. ```go
  264. ctx := context.Background()
  265. client, err := logging.NewClient(ctx, "my-project")
  266. if err != nil {
  267. // TODO: Handle error.
  268. }
  269. ```
  270. Usually, you'll want to add log entries to a buffer to be periodically flushed
  271. (automatically and asynchronously) to the Stackdriver Logging service.
  272. [snip]:# (logging-2)
  273. ```go
  274. logger := client.Logger("my-log")
  275. logger.Log(logging.Entry{Payload: "something happened!"})
  276. ```
  277. Close your client before your program exits, to flush any buffered log entries.
  278. [snip]:# (logging-3)
  279. ```go
  280. err = client.Close()
  281. if err != nil {
  282. // TODO: Handle error.
  283. }
  284. ```
  285. ## Cloud Spanner [![GoDoc](https://godoc.org/cloud.google.com/go/spanner?status.svg)](https://godoc.org/cloud.google.com/go/spanner)
  286. - [About Cloud Spanner][cloud-spanner]
  287. - [API documentation][cloud-spanner-docs]
  288. - [Go client documentation](https://godoc.org/cloud.google.com/go/spanner)
  289. ### Example Usage
  290. First create a `spanner.Client` to use throughout your application:
  291. [snip]:# (spanner-1)
  292. ```go
  293. client, err := spanner.NewClient(ctx, "projects/P/instances/I/databases/D")
  294. if err != nil {
  295. log.Fatal(err)
  296. }
  297. ```
  298. [snip]:# (spanner-2)
  299. ```go
  300. // Simple Reads And Writes
  301. _, err = client.Apply(ctx, []*spanner.Mutation{
  302. spanner.Insert("Users",
  303. []string{"name", "email"},
  304. []interface{}{"alice", "a@example.com"})})
  305. if err != nil {
  306. log.Fatal(err)
  307. }
  308. row, err := client.Single().ReadRow(ctx, "Users",
  309. spanner.Key{"alice"}, []string{"email"})
  310. if err != nil {
  311. log.Fatal(err)
  312. }
  313. ```
  314. ## Contributing
  315. Contributions are welcome. Please, see the
  316. [CONTRIBUTING](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/master/CONTRIBUTING.md)
  317. document for details. We're using Gerrit for our code reviews. Please don't open pull
  318. requests against this repo, new pull requests will be automatically closed.
  319. Please note that this project is released with a Contributor Code of Conduct.
  320. By participating in this project you agree to abide by its terms.
  321. See [Contributor Code of Conduct](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/master/CONTRIBUTING.md#contributor-code-of-conduct)
  322. for more information.
  323. [cloud-datastore]: https://cloud.google.com/datastore/
  324. [cloud-datastore-ref]: https://godoc.org/cloud.google.com/go/datastore
  325. [cloud-datastore-docs]: https://cloud.google.com/datastore/docs
  326. [cloud-datastore-activation]: https://cloud.google.com/datastore/docs/activate
  327. [cloud-firestore]: https://cloud.google.com/firestore/
  328. [cloud-firestore-ref]: https://godoc.org/cloud.google.com/go/firestore
  329. [cloud-firestore-docs]: https://cloud.google.com/firestore/docs
  330. [cloud-firestore-activation]: https://cloud.google.com/firestore/docs/activate
  331. [cloud-pubsub]: https://cloud.google.com/pubsub/
  332. [cloud-pubsub-ref]: https://godoc.org/cloud.google.com/go/pubsub
  333. [cloud-pubsub-docs]: https://cloud.google.com/pubsub/docs
  334. [cloud-storage]: https://cloud.google.com/storage/
  335. [cloud-storage-ref]: https://godoc.org/cloud.google.com/go/storage
  336. [cloud-storage-docs]: https://cloud.google.com/storage/docs
  337. [cloud-storage-create-bucket]: https://cloud.google.com/storage/docs/cloud-console#_creatingbuckets
  338. [cloud-bigtable]: https://cloud.google.com/bigtable/
  339. [cloud-bigtable-ref]: https://godoc.org/cloud.google.com/go/bigtable
  340. [cloud-bigquery]: https://cloud.google.com/bigquery/
  341. [cloud-bigquery-docs]: https://cloud.google.com/bigquery/docs
  342. [cloud-bigquery-ref]: https://godoc.org/cloud.google.com/go/bigquery
  343. [cloud-logging]: https://cloud.google.com/logging/
  344. [cloud-logging-docs]: https://cloud.google.com/logging/docs
  345. [cloud-logging-ref]: https://godoc.org/cloud.google.com/go/logging
  346. [cloud-monitoring]: https://cloud.google.com/monitoring/
  347. [cloud-monitoring-ref]: https://godoc.org/cloud.google.com/go/monitoring/apiv3
  348. [cloud-vision]: https://cloud.google.com/vision
  349. [cloud-vision-ref]: https://godoc.org/cloud.google.com/go/vision/apiv1
  350. [cloud-language]: https://cloud.google.com/natural-language
  351. [cloud-language-ref]: https://godoc.org/cloud.google.com/go/language/apiv1
  352. [cloud-oslogin]: https://cloud.google.com/compute/docs/oslogin/rest
  353. [cloud-oslogin-ref]: https://cloud.google.com/compute/docs/oslogin/rest
  354. [cloud-speech]: https://cloud.google.com/speech
  355. [cloud-speech-ref]: https://godoc.org/cloud.google.com/go/speech/apiv1
  356. [cloud-spanner]: https://cloud.google.com/spanner/
  357. [cloud-spanner-ref]: https://godoc.org/cloud.google.com/go/spanner
  358. [cloud-spanner-docs]: https://cloud.google.com/spanner/docs
  359. [cloud-translation]: https://cloud.google.com/translation
  360. [cloud-translation-ref]: https://godoc.org/cloud.google.com/go/translation
  361. [cloud-video]: https://cloud.google.com/video-intelligence/
  362. [cloud-video-ref]: https://godoc.org/cloud.google.com/go/videointelligence/apiv1beta1
  363. [cloud-errors]: https://cloud.google.com/error-reporting/
  364. [cloud-errors-ref]: https://godoc.org/cloud.google.com/go/errorreporting
  365. [cloud-container]: https://cloud.google.com/containers/
  366. [cloud-container-ref]: https://godoc.org/cloud.google.com/go/container/apiv1
  367. [cloud-debugger]: https://cloud.google.com/debugger/
  368. [cloud-debugger-ref]: https://godoc.org/cloud.google.com/go/debugger/apiv2
  369. [cloud-dlp]: https://cloud.google.com/dlp/
  370. [cloud-dlp-ref]: https://godoc.org/cloud.google.com/go/dlp/apiv2beta1
  371. [default-creds]: https://developers.google.com/identity/protocols/application-default-credentials
  372. [cloud-dataproc]: https://cloud.google.com/dataproc/
  373. [cloud-dataproc-docs]: https://cloud.google.com/dataproc/docs
  374. [cloud-dataproc-ref]: https://godoc.org/cloud.google.com/go/dataproc/apiv1
  375. [cloud-iam]: https://cloud.google.com/iam/
  376. [cloud-iam-docs]: https://cloud.google.com/iam/docs
  377. [cloud-iam-ref]: https://godoc.org/cloud.google.com/go/iam
  378. [cloud-kms]: https://cloud.google.com/kms/
  379. [cloud-kms-docs]: https://cloud.google.com/kms/docs
  380. [cloud-kms-ref]: https://godoc.org/cloud.google.com/go/kms/apiv1
  381. [cloud-natural-language]: https://cloud.google.com/natural-language/
  382. [cloud-natural-language-docs]: https://cloud.google.com/natural-language/docs
  383. [cloud-natural-language-ref]: https://godoc.org/cloud.google.com/go/language/apiv1
  384. [cloud-memorystore]: https://cloud.google.com/memorystore/
  385. [cloud-memorystore-docs]: https://cloud.google.com/memorystore/docs
  386. [cloud-memorystore-ref]: https://godoc.org/cloud.google.com/go/redis/apiv1beta1
  387. [cloud-texttospeech]: https://cloud.google.com/texttospeech/
  388. [cloud-texttospeech-docs]: https://cloud.google.com/texttospeech/docs
  389. [cloud-texttospeech-ref]: https://godoc.org/cloud.google.com/go/texttospeech/apiv1
  390. [cloud-trace]: https://cloud.google.com/trace/
  391. [cloud-trace-docs]: https://cloud.google.com/trace/docs
  392. [cloud-trace-ref]: https://godoc.org/cloud.google.com/go/trace/apiv2
  393. [cloud-dialogflow]: https://cloud.google.com/dialogflow-enterprise/
  394. [cloud-dialogflow-docs]: https://cloud.google.com/dialogflow-enterprise/docs/
  395. [cloud-dialogflow-ref]: https://godoc.org/cloud.google.com/go/dialogflow/apiv2
  396. [cloud-containeranalysis]: https://cloud.google.com/container-registry/docs/container-analysis
  397. [cloud-containeranalysis-docs]: https://cloud.google.com/container-analysis/api/reference/rest/
  398. [cloud-containeranalysis-ref]: https://godoc.org/cloud.google.com/go/devtools/containeranalysis/apiv1beta1
  399. [cloud-asset]: https://cloud.google.com/security-command-center/docs/how-to-asset-inventory
  400. [cloud-asset-docs]: https://cloud.google.com/security-command-center/docs/how-to-asset-inventory
  401. [cloud-asset-ref]: https://godoc.org/cloud.google.com/go/asset/apiv1
  402. [cloud-tasks]: https://cloud.google.com/tasks/
  403. [cloud-tasks-ref]: https://godoc.org/cloud.google.com/go/cloudtasks/apiv2beta3