2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-27 20:45:19 +00:00
restic/vendor/google.golang.org/api
Alexander Neumann 946c8399e2 Update dependenciess
Exclude minio-go for now (pin to 3.x.y).
2017-12-03 21:22:33 +01:00
..
acceleratedmobilepageurl/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
adexchangebuyer Update dependenciess 2017-12-03 21:22:33 +01:00
adexchangebuyer2/v2beta1 Update dependenciess 2017-12-03 21:22:33 +01:00
adexchangeseller Update dependenciess 2017-12-03 21:22:33 +01:00
adexperiencereport/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
admin Update dependenciess 2017-12-03 21:22:33 +01:00
adsense Update dependenciess 2017-12-03 21:22:33 +01:00
adsensehost/v4.1 Update dependenciess 2017-12-03 21:22:33 +01:00
analytics Update dependenciess 2017-12-03 21:22:33 +01:00
analyticsreporting/v4 Update dependenciess 2017-12-03 21:22:33 +01:00
androiddeviceprovisioning/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
androidenterprise/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
androidmanagement/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
androidpublisher Update dependenciess 2017-12-03 21:22:33 +01:00
appengine Update dependenciess 2017-12-03 21:22:33 +01:00
appsactivity/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
appstate/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
bigquery/v2 Update dependenciess 2017-12-03 21:22:33 +01:00
bigquerydatatransfer/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
blogger Update dependenciess 2017-12-03 21:22:33 +01:00
books/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
calendar/v3 Update dependenciess 2017-12-03 21:22:33 +01:00
civicinfo/v2 Update dependenciess 2017-12-03 21:22:33 +01:00
classroom/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
cloudbilling/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
cloudbuild/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
clouddebugger/v2 Update dependenciess 2017-12-03 21:22:33 +01:00
clouderrorreporting/v1beta1 Update dependenciess 2017-12-03 21:22:33 +01:00
cloudfunctions Update dependenciess 2017-12-03 21:22:33 +01:00
cloudiot Update dependenciess 2017-12-03 21:22:33 +01:00
cloudkms/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
cloudmonitoring/v2beta2 Update vendored dependencies 2017-10-01 10:13:39 +02:00
cloudresourcemanager Update dependenciess 2017-12-03 21:22:33 +01:00
cloudtasks/v2beta2 Update dependenciess 2017-12-03 21:22:33 +01:00
cloudtrace Update dependenciess 2017-12-03 21:22:33 +01:00
clouduseraccounts Update dependenciess 2017-12-03 21:22:33 +01:00
compute Update dependenciess 2017-12-03 21:22:33 +01:00
consumersurveys/v2 Update dependenciess 2017-12-03 21:22:33 +01:00
container Update dependenciess 2017-12-03 21:22:33 +01:00
content Update dependenciess 2017-12-03 21:22:33 +01:00
customsearch/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
dataflow/v1b3 Update dependenciess 2017-12-03 21:22:33 +01:00
dataproc Update dependenciess 2017-12-03 21:22:33 +01:00
datastore Update dependenciess 2017-12-03 21:22:33 +01:00
deploymentmanager Update dependenciess 2017-12-03 21:22:33 +01:00
dfareporting Update dependenciess 2017-12-03 21:22:33 +01:00
dialogflow/v2beta1 Update dependenciess 2017-12-03 21:22:33 +01:00
discovery/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
dlp/v2beta1 Update dependenciess 2017-12-03 21:22:33 +01:00
dns Update dependenciess 2017-12-03 21:22:33 +01:00
doubleclickbidmanager/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
doubleclicksearch/v2 Update dependenciess 2017-12-03 21:22:33 +01:00
drive Update dependenciess 2017-12-03 21:22:33 +01:00
examples Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
firebasedynamiclinks/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
firebaseremoteconfig/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
firebaserules/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
firestore/v1beta1 Update dependenciess 2017-12-03 21:22:33 +01:00
fitness/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
fusiontables Update dependenciess 2017-12-03 21:22:33 +01:00
games/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
gamesconfiguration/v1configuration Update dependenciess 2017-12-03 21:22:33 +01:00
gamesmanagement/v1management Update dependenciess 2017-12-03 21:22:33 +01:00
genomics Update dependenciess 2017-12-03 21:22:33 +01:00
gensupport Update dependenciess 2017-12-03 21:22:33 +01:00
gmail/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
google-api-go-generator Update dependenciess 2017-12-03 21:22:33 +01:00
googleapi Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
groupsmigration/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
groupssettings/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
iam/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
identitytoolkit/v3 Update dependenciess 2017-12-03 21:22:33 +01:00
integration-tests/storage Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
internal Update dependenciess 2017-12-03 21:22:33 +01:00
iterator Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
kgsearch/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
language Update dependenciess 2017-12-03 21:22:33 +01:00
lib/codereview Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
licensing/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
logging Update dependenciess 2017-12-03 21:22:33 +01:00
manufacturers/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
mirror/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
ml/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
monitoring/v3 Update dependenciess 2017-12-03 21:22:33 +01:00
oauth2 Update dependenciess 2017-12-03 21:22:33 +01:00
option Update dependenciess 2017-12-03 21:22:33 +01:00
oslogin Update dependenciess 2017-12-03 21:22:33 +01:00
pagespeedonline Update dependenciess 2017-12-03 21:22:33 +01:00
partners/v2 Update dependenciess 2017-12-03 21:22:33 +01:00
people/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
playcustomapp/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
playmoviespartner/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
plus/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
plusdomains/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
poly/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
prediction Update dependenciess 2017-12-03 21:22:33 +01:00
proximitybeacon/v1beta1 Update dependenciess 2017-12-03 21:22:33 +01:00
pubsub Update dependenciess 2017-12-03 21:22:33 +01:00
qpxexpress/v1 Update vendored dependencies 2017-09-21 17:48:45 +02:00
replicapool Update dependenciess 2017-12-03 21:22:33 +01:00
replicapoolupdater/v1beta1 Update dependenciess 2017-12-03 21:22:33 +01:00
reseller/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
resourceviews Update dependenciess 2017-12-03 21:22:33 +01:00
runtimeconfig Update dependenciess 2017-12-03 21:22:33 +01:00
safebrowsing/v4 Update dependenciess 2017-12-03 21:22:33 +01:00
script/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
searchconsole/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
serviceconsumermanagement/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
servicecontrol/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
servicemanagement/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
serviceuser/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
sheets/v4 Update dependenciess 2017-12-03 21:22:33 +01:00
siteverification/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
slides/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
sourcerepo/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
spanner/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
spectrum/v1explorer Update dependenciess 2017-12-03 21:22:33 +01:00
speech Update dependenciess 2017-12-03 21:22:33 +01:00
sqladmin Update dependenciess 2017-12-03 21:22:33 +01:00
storage Update dependenciess 2017-12-03 21:22:33 +01:00
storagetransfer/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
streetviewpublish/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
support/bundler Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
surveys/v2 Update dependenciess 2017-12-03 21:22:33 +01:00
tagmanager Update dependenciess 2017-12-03 21:22:33 +01:00
taskqueue Update dependenciess 2017-12-03 21:22:33 +01:00
tasks/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
testing/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
toolresults Update dependenciess 2017-12-03 21:22:33 +01:00
tpu/v1alpha1 Update dependenciess 2017-12-03 21:22:33 +01:00
tracing/v2 Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
translate/v2 Update dependenciess 2017-12-03 21:22:33 +01:00
transport Update dependenciess 2017-12-03 21:22:33 +01:00
urlshortener/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
vault/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
videointelligence/v1beta1 Update dependenciess 2017-12-03 21:22:33 +01:00
vision Update dependenciess 2017-12-03 21:22:33 +01:00
webfonts/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
webmasters/v3 Update dependenciess 2017-12-03 21:22:33 +01:00
youtube/v3 Update dependenciess 2017-12-03 21:22:33 +01:00
youtubeanalytics Update dependenciess 2017-12-03 21:22:33 +01:00
youtubereporting/v1 Update dependenciess 2017-12-03 21:22:33 +01:00
.gitignore Update dependencies 2017-09-13 14:09:48 +02:00
.hgtags Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
.travis.yml Update dependenciess 2017-12-03 21:22:33 +01:00
api-list.json Update dependenciess 2017-12-03 21:22:33 +01: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 Update dependenciess 2017-12-03 21:22:33 +01: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
NOTES Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00
README.md Update dependencies 2017-09-13 14:09:48 +02:00
TODO Vendor dependencies for GCS 2017-08-06 21:47:56 +02:00

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.

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.

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.