integration-tests/storage: fix bad format string

Change-Id: I77683da72f01c825ed4eec0b017ae2eb69d9eada
Reviewed-on: https://code-review.googlesource.com/33031
Reviewed-by: Jean de Klerk <deklerk@google.com>
1 file changed
tree: 1c916b64d4fbce8f39c1d0f7102b0d6d8bc4818f
  1. abusiveexperiencereport/
  2. acceleratedmobilepageurl/
  3. adexchangebuyer/
  4. adexchangebuyer2/
  5. adexchangeseller/
  6. adexperiencereport/
  7. admin/
  8. adsense/
  9. adsensehost/
  10. analytics/
  11. analyticsreporting/
  12. androiddeviceprovisioning/
  13. androidenterprise/
  14. androidmanagement/
  15. androidpublisher/
  16. appengine/
  17. appsactivity/
  18. appstate/
  19. bigquery/
  20. bigquerydatatransfer/
  21. binaryauthorization/
  22. blogger/
  23. books/
  24. calendar/
  25. chat/
  26. civicinfo/
  27. classroom/
  28. cloudbilling/
  29. cloudbuild/
  30. clouddebugger/
  31. clouderrorreporting/
  32. cloudfunctions/
  33. cloudiot/
  34. cloudkms/
  35. cloudmonitoring/
  36. cloudprofiler/
  37. cloudresourcemanager/
  38. cloudshell/
  39. cloudtasks/
  40. cloudtrace/
  41. clouduseraccounts/
  42. composer/
  43. compute/
  44. consumersurveys/
  45. container/
  46. content/
  47. customsearch/
  48. dataflow/
  49. dataproc/
  50. datastore/
  51. deploymentmanager/
  52. dfareporting/
  53. dialogflow/
  54. digitalassetlinks/
  55. discovery/
  56. dlp/
  57. dns/
  58. doubleclickbidmanager/
  59. doubleclicksearch/
  60. drive/
  61. examples/
  62. firebasedynamiclinks/
  63. firebaseremoteconfig/
  64. firebaserules/
  65. firestore/
  66. fitness/
  67. fusiontables/
  68. games/
  69. gamesconfiguration/
  70. gamesmanagement/
  71. genomics/
  72. gensupport/
  73. gmail/
  74. google-api-go-generator/
  75. googleapi/
  76. groupsmigration/
  77. groupssettings/
  78. iam/
  79. iamcredentials/
  80. iap/
  81. identitytoolkit/
  82. indexing/
  83. integration-tests/
  84. internal/
  85. iterator/
  86. jobs/
  87. kgsearch/
  88. language/
  89. lib/
  90. licensing/
  91. logging/
  92. manufacturers/
  93. mirror/
  94. ml/
  95. monitoring/
  96. oauth2/
  97. option/
  98. oslogin/
  99. pagespeedonline/
  100. partners/
  101. people/
  102. photoslibrary/
  103. playcustomapp/
  104. playmoviespartner/
  105. plus/
  106. plusdomains/
  107. poly/
  108. prediction/
  109. proximitybeacon/
  110. pubsub/
  111. qpxexpress/
  112. redis/
  113. replicapool/
  114. replicapoolupdater/
  115. reseller/
  116. resourceviews/
  117. runtimeconfig/
  118. safebrowsing/
  119. script/
  120. searchconsole/
  121. servicebroker/
  122. serviceconsumermanagement/
  123. servicecontrol/
  124. servicemanagement/
  125. serviceusage/
  126. serviceuser/
  127. sheets/
  128. siteverification/
  129. slides/
  130. sourcerepo/
  131. spanner/
  132. spectrum/
  133. speech/
  134. sqladmin/
  135. storage/
  136. storagetransfer/
  137. streetviewpublish/
  138. support/
  139. surveys/
  140. tagmanager/
  141. taskqueue/
  142. tasks/
  143. testing/
  144. texttospeech/
  145. toolresults/
  146. tpu/
  147. tracing/
  148. translate/
  149. transport/
  150. urlshortener/
  151. vault/
  152. videointelligence/
  153. vision/
  154. webfonts/
  155. webmasters/
  156. websecurityscanner/
  157. youtube/
  158. youtubeanalytics/
  159. youtubereporting/
  160. .gitignore
  161. .hgtags
  162. .travis.yml
  163. api-list.json
  164. AUTHORS
  165. CONTRIBUTING.md
  166. CONTRIBUTORS
  167. GettingStarted.md
  168. key.json.enc
  169. LICENSE
  170. NOTES
  171. README.md
  172. TODO
README.md

Google APIs Client Library for Go

Getting Started

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

and using:

package main

import (
	"net/http"

	"google.golang.org/api/urlshortener/v1"
)

func main() {
	svc, err := urlshortener.New(http.DefaultClient)
	// ...
}

Status

Build Status GoDoc

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.

These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

If you're working with Google Cloud Platform APIs such as Datastore or Pub/Sub, consider using the Cloud Client Libraries for Go instead. These are the new and idiomatic Go libraries targeted specifically at Google Cloud Platform Services.

The generator itself and the code it produces are beta. Some APIs are alpha/beta, and indicated as such in the import path (e.g., “google.golang.org/api/someapi/v1alpha”).

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.