kops/vendor/google.golang.org/api
Justin Santa Barbara 0143be7c4f autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
..
acceleratedmobilepageurl/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
adexchangebuyer autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
adexchangebuyer2/v2beta1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
adexchangeseller autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
adexperiencereport/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
admin autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
adsense autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
adsensehost/v4.1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
analytics autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
analyticsreporting/v4 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
androiddeviceprovisioning/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
androidenterprise/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
androidmanagement/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
androidpublisher autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
appengine autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
appsactivity/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
appstate/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
bigquery/v2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
bigquerydatatransfer/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
blogger autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
books/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
calendar/v3 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
civicinfo/v2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
classroom/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
cloudbilling/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
cloudbuild/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
clouddebugger/v2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
clouderrorreporting/v1beta1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
cloudfunctions autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
cloudkms/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
cloudmonitoring/v2beta2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
cloudresourcemanager autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
cloudtrace autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
clouduseraccounts autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
compute autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
consumersurveys/v2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
container/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
content autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
customsearch/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
dataflow/v1b3 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
dataproc autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
datastore autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
deploymentmanager autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
dfareporting autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
discovery/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
dlp/v2beta1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
dns autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
doubleclickbidmanager/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
doubleclicksearch/v2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
drive autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
examples autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
firebasedynamiclinks/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
firebaserules/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
fitness/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
fusiontables autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
games/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
gamesconfiguration/v1configuration autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
gamesmanagement/v1management autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
genomics autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
gensupport autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
gmail/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
google-api-go-generator autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
googleapi autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
groupsmigration/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
groupssettings/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
iam/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
identitytoolkit/v3 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
integration-tests/storage Update vendor for k8s 1.8 2017-10-01 13:16:44 -04:00
internal autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
iterator autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
kgsearch/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
language autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
lib/codereview Include vendored dependencies 2016-07-05 00:03:07 -04:00
licensing/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
logging autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
manufacturers/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
mirror/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
ml autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
monitoring/v3 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
oauth2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
option autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
oslogin/v1alpha autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
pagespeedonline autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
partners/v2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
people/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
playcustomapp/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
playmoviespartner/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
plus/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
plusdomains/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
prediction autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
proximitybeacon/v1beta1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
pubsub autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
qpxexpress/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
replicapool autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
replicapoolupdater/v1beta1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
reseller/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
resourceviews autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
runtimeconfig autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
safebrowsing/v4 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
script/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
searchconsole/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
servicecontrol/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
servicemanagement/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
serviceuser/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
sheets/v4 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
siteverification/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
slides/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
sourcerepo/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
spanner/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
spectrum/v1explorer autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
speech autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
sqladmin autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
storage autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
storagetransfer/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
streetviewpublish/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
support/bundler autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
surveys/v2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
tagmanager autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
taskqueue autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
tasks/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
toolresults autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
tracing/v2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
translate/v2 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
transport autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
urlshortener/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
vault/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
videointelligence/v1beta1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
vision/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
webfonts/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
webmasters/v3 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
youtube/v3 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
youtubeanalytics autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
youtubereporting/v1 autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04: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.