all: regenerate APIs

Change-Id: I8ef5e9ef05bb82cae26359d4b472bfd2e4160e8c
Reviewed-on: https://code-review.googlesource.com/11690
Reviewed-by: Victor Chudnovsky <vchudnov@google.com>
234 files changed
tree: 001361138f617c3e6be2d4ca47f4881f01dd226e
  1. acceleratedmobilepageurl/
  2. adexchangebuyer/
  3. adexchangebuyer2/
  4. adexchangeseller/
  5. admin/
  6. adsense/
  7. adsensehost/
  8. analytics/
  9. analyticsreporting/
  10. androidenterprise/
  11. androidpublisher/
  12. appengine/
  13. appsactivity/
  14. appstate/
  15. autoscaler/
  16. bigquery/
  17. blogger/
  18. books/
  19. calendar/
  20. civicinfo/
  21. classroom/
  22. cloudbilling/
  23. cloudbuild/
  24. clouddebugger/
  25. clouderrorreporting/
  26. cloudfunctions/
  27. cloudkms/
  28. cloudlatencytest/
  29. cloudmonitoring/
  30. cloudresourcemanager/
  31. cloudtrace/
  32. clouduseraccounts/
  33. compute/
  34. consumersurveys/
  35. container/
  36. content/
  37. coordinate/
  38. customsearch/
  39. dataflow/
  40. dataproc/
  41. datastore/
  42. deploymentmanager/
  43. dfareporting/
  44. discovery/
  45. dlp/
  46. dns/
  47. doubleclickbidmanager/
  48. doubleclicksearch/
  49. drive/
  50. examples/
  51. firebasedynamiclinks/
  52. firebaserules/
  53. fitness/
  54. freebase/
  55. fusiontables/
  56. games/
  57. gamesconfiguration/
  58. gamesmanagement/
  59. gan/
  60. genomics/
  61. gensupport/
  62. gmail/
  63. google-api-go-generator/
  64. googleapi/
  65. groupsmigration/
  66. groupssettings/
  67. iam/
  68. identitytoolkit/
  69. integration-tests/
  70. internal/
  71. iterator/
  72. kgsearch/
  73. language/
  74. lib/
  75. licensing/
  76. logging/
  77. manager/
  78. manufacturers/
  79. mapsengine/
  80. mirror/
  81. ml/
  82. monitoring/
  83. oauth2/
  84. option/
  85. pagespeedonline/
  86. partners/
  87. people/
  88. playmoviespartner/
  89. plus/
  90. plusdomains/
  91. prediction/
  92. proximitybeacon/
  93. pubsub/
  94. qpxexpress/
  95. replicapool/
  96. replicapoolupdater/
  97. reseller/
  98. resourceviews/
  99. runtimeconfig/
  100. safebrowsing/
  101. script/
  102. searchconsole/
  103. servicecontrol/
  104. servicemanagement/
  105. serviceregistry/
  106. serviceuser/
  107. sheets/
  108. siteverification/
  109. slides/
  110. sourcerepo/
  111. spanner/
  112. spectrum/
  113. speech/
  114. sqladmin/
  115. storage/
  116. storagetransfer/
  117. support/
  118. surveys/
  119. tagmanager/
  120. taskqueue/
  121. tasks/
  122. toolresults/
  123. tracing/
  124. translate/
  125. transport/
  126. urlshortener/
  127. vision/
  128. webfonts/
  129. webmasters/
  130. youtube/
  131. youtubeanalytics/
  132. youtubereporting/
  133. .hgignore
  134. .hgtags
  135. .travis.yml
  136. api-list.json
  137. AUTHORS
  138. CONTRIBUTING.md
  139. CONTRIBUTORS
  140. GettingStarted.md
  141. key.json.enc
  142. LICENSE
  143. Makefile
  144. NOTES
  145. README.md
  146. TODO
README.md

Google APIs Client Library for Go

Status

Build Status

These are auto-generated Go libraries from the Google Discovery Service's JSON description files of the available “new style” Google APIs.

Due to the auto-generated nature of this collection of libraries, complete APIs or specific versions can appear or go away without notice. As a result, you should always locally vendor any API(s) that your code relies upon.

Announcement email:

Getting started documentation:

In summary:

$ go get google.golang.org/api/storage/v1
$ go get google.golang.org/api/tasks/v1
$ go get google.golang.org/api/moderator/v1
... etc ...

For docs, see e.g.:

The package of a given import is the second-to-last component, before the version number.

For examples, see:

For support, use the golang-nuts@ mailing list:

Application Default Credentials Example

Application Default Credentials provide a simplified way to obtain credentials for authenticating with Google APIs.

The Application Default Credentials authenticate as the application itself, which make them great for working with Google Cloud APIs like Storage or Datastore. They are the recommended form of authentication when building applications that run on Google Compute Engine or Google App Engine.

Default credentials are provided by the golang.org/x/oauth2/google package. To use them, add the following import:

import "golang.org/x/oauth2/google"

Some credentials types require you to specify scopes, and service entry points may not inject them. If you encounter this situation you may need to specify scopes as follows:

import (
        "golang.org/x/net/context"
        "golang.org/x/oauth2/google"
        "google.golang.org/api/compute/v1"
)

func main() {
        // Use oauth2.NoContext if there isn't a good context to pass in.
        ctx := context.Background()

        client, err := google.DefaultClient(ctx, compute.ComputeScope)
        if err != nil {
                //...
        }
        computeService, err := compute.New(client)
        if err != nil {
                //...
        }
}

If you need a oauth2.TokenSource, use the DefaultTokenSource function:

ts, err := google.DefaultTokenSource(ctx, scope1, scope2, ...)
if err != nil {
        //...
}
client := oauth2.NewClient(ctx, ts)

See also: golang.org/x/oauth2/google package documentation.