all: regenerate all APIs

Change-Id: Ide8c30bc16fab68b1031de4e79a32d98cefece8e
Reviewed-on: https://code-review.googlesource.com/9435
Reviewed-by: Chris Broadfoot <cbro@google.com>
251 files changed
tree: 859c0b8a31ade11e809c467329643733f376bbb0
  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. cloudlatencytest/
  27. cloudmonitoring/
  28. cloudresourcemanager/
  29. cloudtrace/
  30. clouduseraccounts/
  31. compute/
  32. consumersurveys/
  33. container/
  34. content/
  35. coordinate/
  36. customsearch/
  37. dataflow/
  38. dataproc/
  39. datastore/
  40. deploymentmanager/
  41. dfareporting/
  42. discovery/
  43. dns/
  44. doubleclickbidmanager/
  45. doubleclicksearch/
  46. drive/
  47. examples/
  48. firebasedynamiclinks/
  49. firebaserules/
  50. fitness/
  51. freebase/
  52. fusiontables/
  53. games/
  54. gamesconfiguration/
  55. gamesmanagement/
  56. gan/
  57. genomics/
  58. gensupport/
  59. gmail/
  60. google-api-go-generator/
  61. googleapi/
  62. groupsmigration/
  63. groupssettings/
  64. iam/
  65. identitytoolkit/
  66. integration-tests/
  67. internal/
  68. iterator/
  69. kgsearch/
  70. language/
  71. lib/
  72. licensing/
  73. logging/
  74. manager/
  75. manufacturers/
  76. mapsengine/
  77. mirror/
  78. ml/
  79. monitoring/
  80. oauth2/
  81. option/
  82. pagespeedonline/
  83. partners/
  84. people/
  85. playmoviespartner/
  86. plus/
  87. plusdomains/
  88. prediction/
  89. proximitybeacon/
  90. pubsub/
  91. qpxexpress/
  92. replicapool/
  93. replicapoolupdater/
  94. reseller/
  95. resourceviews/
  96. runtimeconfig/
  97. safebrowsing/
  98. script/
  99. servicecontrol/
  100. servicemanagement/
  101. serviceregistry/
  102. sheets/
  103. siteverification/
  104. slides/
  105. spectrum/
  106. speech/
  107. sqladmin/
  108. storage/
  109. storagetransfer/
  110. support/
  111. surveys/
  112. tagmanager/
  113. taskqueue/
  114. tasks/
  115. toolresults/
  116. translate/
  117. transport/
  118. urlshortener/
  119. vision/
  120. webfonts/
  121. webmasters/
  122. youtube/
  123. youtubeanalytics/
  124. youtubereporting/
  125. .hgignore
  126. .hgtags
  127. .travis.yml
  128. api-list.json
  129. AUTHORS
  130. CONTRIBUTING.md
  131. CONTRIBUTORS
  132. GettingStarted.md
  133. key.json.enc
  134. LICENSE
  135. Makefile
  136. NOTES
  137. README.md
  138. 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.