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

README.md

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.