restic/vendor/google.golang.org/api
2017-08-06 21:47:56 +02:00
..
acceleratedmobilepageurl/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
adexchangebuyer Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
adexchangebuyer2/v2beta1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
adexchangeseller Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
adexperiencereport/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
admin Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
adsense Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
adsensehost/v4.1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
analytics Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
analyticsreporting/v4 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
androiddeviceprovisioning/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
androidenterprise/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
androidmanagement/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
androidpublisher Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
appengine Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
appsactivity/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
appstate/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
bigquery/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
bigquerydatatransfer/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
blogger Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
books/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
calendar/v3 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
civicinfo/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
classroom/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
cloudbilling/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
cloudbuild/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
clouddebugger/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
clouderrorreporting/v1beta1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
cloudfunctions Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
cloudkms/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
cloudmonitoring/v2beta2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
cloudresourcemanager Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
cloudtrace Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
clouduseraccounts Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
compute Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
consumersurveys/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
container/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
content Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
customsearch/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
dataflow/v1b3 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
dataproc Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
datastore Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
deploymentmanager Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
dfareporting Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
discovery/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
dlp/v2beta1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
dns Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
doubleclickbidmanager/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
doubleclicksearch/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
drive Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
examples Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
firebasedynamiclinks/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
firebaserules/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
fitness/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
fusiontables Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
games/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
gamesconfiguration/v1configuration Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
gamesmanagement/v1management Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
genomics Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
gensupport Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
gmail/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
google-api-go-generator Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
googleapi Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
groupsmigration/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
groupssettings/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
iam/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
identitytoolkit/v3 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
integration-tests/storage Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
internal Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
iterator Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
kgsearch/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
language Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
lib/codereview Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
licensing/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
logging Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
manufacturers/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
mirror/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
ml Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
monitoring/v3 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
oauth2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
option Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
oslogin/v1alpha Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
pagespeedonline Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
partners/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
people/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
playcustomapp/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
playmoviespartner/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
plus/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
plusdomains/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
prediction Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
proximitybeacon/v1beta1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
pubsub Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
qpxexpress/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
replicapool Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
replicapoolupdater/v1beta1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
reseller/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
resourceviews Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
runtimeconfig Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
safebrowsing/v4 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
script/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
searchconsole/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
servicecontrol/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
servicemanagement/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
serviceuser/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
sheets/v4 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
siteverification/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
slides/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
sourcerepo/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
spanner/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
spectrum/v1explorer Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
speech Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
sqladmin Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
storage Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
storagetransfer/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
streetviewpublish/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
support/bundler Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
surveys/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
tagmanager Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
taskqueue Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
tasks/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
toolresults Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
tracing/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
translate/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
transport Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
urlshortener/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
vault/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
videointelligence/v1beta1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
vision/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
webfonts/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
webmasters/v3 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
youtube/v3 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
youtubeanalytics Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
youtubereporting/v1 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
.hgignore Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
.hgtags Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
.travis.yml Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
api-list.json Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
AUTHORS Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
CONTRIBUTING.md Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
CONTRIBUTORS Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
GettingStarted.md Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
key.json.enc Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
LICENSE Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
Makefile Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
NOTES Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
README.md Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
TODO Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00

Google APIs Client Library for Go

Library maintenance

This client library is supported, but in maintenance mode only. We are fixing necessary bugs and adding essential features to ensure this library continues to meet your needs for accessing Google APIs. Non-critical issues will be closed. Any issue may be reopened if it is causing ongoing problems.

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.

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").

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.