1
0
Fork 0
mirror of https://github.com/Luzifer/nginx-sso.git synced 2024-12-20 21:01:17 +00:00
nginx-sso/vendor/google.golang.org/api
Knut Ahlers 9b3c895c04
Update dependencies
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-04-22 06:44:07 +02:00
..
abusiveexperiencereport/v1 Update dependencies 2019-04-22 06:44:07 +02:00
acceleratedmobilepageurl/v1 Update dependencies 2019-04-22 06:44:07 +02:00
accesscontextmanager Update dependencies 2019-04-22 06:44:07 +02:00
adexchangebuyer Update dependencies 2019-04-22 06:44:07 +02:00
adexchangebuyer2/v2beta1 Update dependencies 2019-04-22 06:44:07 +02:00
adexchangeseller Update dependencies 2019-04-22 06:44:07 +02:00
adexperiencereport/v1 Update dependencies 2019-04-22 06:44:07 +02:00
admin Update dependencies 2019-04-22 06:44:07 +02:00
adsense Update dependencies 2019-04-22 06:44:07 +02:00
adsensehost/v4.1 Update dependencies 2019-04-22 06:44:07 +02:00
alertcenter/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
analytics Update dependencies 2019-04-22 06:44:07 +02:00
analyticsreporting/v4 Update dependencies 2019-04-22 06:44:07 +02:00
androiddeviceprovisioning/v1 Update dependencies 2019-04-22 06:44:07 +02:00
androidenterprise/v1 Update dependencies 2019-04-22 06:44:07 +02:00
androidmanagement/v1 Update dependencies 2019-04-22 06:44:07 +02:00
androidpublisher Update dependencies 2019-04-22 06:44:07 +02:00
appengine Update dependencies 2019-04-22 06:44:07 +02:00
appsactivity/v1 Update dependencies 2019-04-22 06:44:07 +02:00
appstate/v1 Update dependencies 2019-04-22 06:44:07 +02:00
bigquery/v2 Update dependencies 2019-04-22 06:44:07 +02:00
bigquerydatatransfer/v1 Update dependencies 2019-04-22 06:44:07 +02:00
bigtableadmin Update dependencies 2019-04-22 06:44:07 +02:00
binaryauthorization/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
blogger Update dependencies 2019-04-22 06:44:07 +02:00
books/v1 Update dependencies 2019-04-22 06:44:07 +02:00
calendar/v3 Update dependencies 2019-04-22 06:44:07 +02:00
chat/v1 Update dependencies 2019-04-22 06:44:07 +02:00
civicinfo/v2 Update dependencies 2019-04-22 06:44:07 +02:00
classroom/v1 Update dependencies 2019-04-22 06:44:07 +02:00
cloudasset Update dependencies 2019-04-22 06:44:07 +02:00
cloudbilling/v1 Update dependencies 2019-04-22 06:44:07 +02:00
cloudbuild Update dependencies 2019-04-22 06:44:07 +02:00
clouddebugger/v2 Update dependencies 2019-04-22 06:44:07 +02:00
clouderrorreporting/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
cloudfunctions Update dependencies 2019-04-22 06:44:07 +02:00
cloudidentity Update dependencies 2019-04-22 06:44:07 +02:00
cloudiot/v1 Update dependencies 2019-04-22 06:44:07 +02:00
cloudkms/v1 Update dependencies 2019-04-22 06:44:07 +02:00
cloudprivatecatalog/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
cloudprivatecatalogproducer/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
cloudprofiler/v2 Update dependencies 2019-04-22 06:44:07 +02:00
cloudresourcemanager Update dependencies 2019-04-22 06:44:07 +02:00
cloudscheduler/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
cloudsearch/v1 Update dependencies 2019-04-22 06:44:07 +02:00
cloudshell Update dependencies 2019-04-22 06:44:07 +02:00
cloudtasks Update dependencies 2019-04-22 06:44:07 +02:00
cloudtrace Update dependencies 2019-04-22 06:44:07 +02:00
commentanalyzer/v1alpha1 Update dependencies 2019-04-22 06:44:07 +02:00
composer Update dependencies 2019-04-22 06:44:07 +02:00
compute Update dependencies 2019-04-22 06:44:07 +02:00
consumersurveys/v2 Update dependencies 2019-04-22 06:44:07 +02:00
container Update dependencies 2019-04-22 06:44:07 +02:00
containeranalysis Update dependencies 2019-04-22 06:44:07 +02:00
content Update dependencies 2019-04-22 06:44:07 +02:00
customsearch/v1 Update dependencies 2019-04-22 06:44:07 +02:00
dataflow/v1b3 Update dependencies 2019-04-22 06:44:07 +02:00
dataproc Update dependencies 2019-04-22 06:44:07 +02:00
datastore Update dependencies 2019-04-22 06:44:07 +02:00
deploymentmanager Update dependencies 2019-04-22 06:44:07 +02:00
dfareporting Update dependencies 2019-04-22 06:44:07 +02:00
dialogflow Update dependencies 2019-04-22 06:44:07 +02:00
digitalassetlinks/v1 Update dependencies 2019-04-22 06:44:07 +02:00
discovery/v1 Update dependencies 2019-04-22 06:44:07 +02:00
dlp/v2 Update dependencies 2019-04-22 06:44:07 +02:00
dns Update dependencies 2019-04-22 06:44:07 +02:00
docs/v1 Update dependencies 2019-04-22 06:44:07 +02:00
doubleclickbidmanager/v1 Update dependencies 2019-04-22 06:44:07 +02:00
doubleclicksearch/v2 Update dependencies 2019-04-22 06:44:07 +02:00
drive Update dependencies 2019-04-22 06:44:07 +02:00
driveactivity/v2 Update dependencies 2019-04-22 06:44:07 +02:00
examples Update dependencies 2019-04-22 06:44:07 +02:00
factchecktools/v1alpha1 Update dependencies 2019-04-22 06:44:07 +02:00
file Update dependencies 2019-04-22 06:44:07 +02:00
firebasedynamiclinks/v1 Update dependencies 2019-04-22 06:44:07 +02:00
firebasehosting/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
firebaseremoteconfig/v1 Update dependencies 2019-04-22 06:44:07 +02:00
firebaserules/v1 Update dependencies 2019-04-22 06:44:07 +02:00
firestore Update dependencies 2019-04-22 06:44:07 +02:00
fitness/v1 Update dependencies 2019-04-22 06:44:07 +02:00
fusiontables Update dependencies 2019-04-22 06:44:07 +02:00
games/v1 Update dependencies 2019-04-22 06:44:07 +02:00
gamesconfiguration/v1configuration Update dependencies 2019-04-22 06:44:07 +02:00
gamesmanagement/v1management Update dependencies 2019-04-22 06:44:07 +02:00
genomics Update dependencies 2019-04-22 06:44:07 +02:00
gensupport Update dependencies 2019-04-22 06:44:07 +02:00
gmail/v1 Update dependencies 2019-04-22 06:44:07 +02:00
google-api-go-generator Update dependencies 2019-04-22 06:44:07 +02:00
googleapi Update dependencies 2019-04-22 06:44:07 +02:00
groupsmigration/v1 Update dependencies 2019-04-22 06:44:07 +02:00
groupssettings/v1 Update dependencies 2019-04-22 06:44:07 +02:00
healthcare Update dependencies 2019-04-22 06:44:07 +02:00
iam/v1 Update dependencies 2019-04-22 06:44:07 +02:00
iamcredentials/v1 Update dependencies 2019-04-22 06:44:07 +02:00
iap Update dependencies 2019-04-22 06:44:07 +02:00
identitytoolkit/v3 Update dependencies 2019-04-22 06:44:07 +02:00
indexing/v3 Update dependencies 2019-04-22 06:44:07 +02:00
integration-tests/storage Update dependencies 2019-04-22 06:44:07 +02:00
internal Update dependencies 2019-04-22 06:44:07 +02:00
iterator Update dependencies 2019-04-22 06:44:07 +02:00
jobs Update dependencies 2019-04-22 06:44:07 +02:00
kgsearch/v1 Update dependencies 2019-04-22 06:44:07 +02:00
language Update dependencies 2019-04-22 06:44:07 +02:00
lib/codereview Update dependencies 2019-04-22 06:44:07 +02:00
libraryagent/v1 Update dependencies 2019-04-22 06:44:07 +02:00
licensing/v1 Update dependencies 2019-04-22 06:44:07 +02:00
logging Update dependencies 2019-04-22 06:44:07 +02:00
manufacturers/v1 Update dependencies 2019-04-22 06:44:07 +02:00
mirror/v1 Update dependencies 2019-04-22 06:44:07 +02:00
ml/v1 Update dependencies 2019-04-22 06:44:07 +02:00
monitoring Update dependencies 2019-04-22 06:44:07 +02:00
oauth2 Update dependencies 2019-04-22 06:44:07 +02:00
option Update dependencies 2019-04-22 06:44:07 +02:00
oslogin Update dependencies 2019-04-22 06:44:07 +02:00
pagespeedonline Update dependencies 2019-04-22 06:44:07 +02:00
partners/v2 Update dependencies 2019-04-22 06:44:07 +02:00
people/v1 Update dependencies 2019-04-22 06:44:07 +02:00
photoslibrary/v1 Update dependencies 2019-04-22 06:44:07 +02:00
playcustomapp/v1 Update dependencies 2019-04-22 06:44:07 +02:00
playmoviespartner/v1 Update dependencies 2019-04-22 06:44:07 +02:00
plus/v1 Update dependencies 2019-04-22 06:44:07 +02:00
plusdomains/v1 Update dependencies 2019-04-22 06:44:07 +02:00
poly/v1 Update dependencies 2019-04-22 06:44:07 +02:00
prediction Update dependencies 2019-04-22 06:44:07 +02:00
proximitybeacon/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
pubsub Update dependencies 2019-04-22 06:44:07 +02:00
qpxexpress/v1 Update dependencies 2019-04-22 06:44:07 +02:00
redis Update dependencies 2019-04-22 06:44:07 +02:00
remotebuildexecution Update dependencies 2019-04-22 06:44:07 +02:00
replicapool/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
replicapoolupdater/v1beta1 Update dependencies 2019-04-22 06:44:07 +02:00
reseller/v1 Update dependencies 2019-04-22 06:44:07 +02:00
run Update dependencies 2019-04-22 06:44:07 +02:00
runtimeconfig Update dependencies 2019-04-22 06:44:07 +02:00
safebrowsing/v4 Update dependencies 2019-04-22 06:44:07 +02:00
script/v1 Update dependencies 2019-04-22 06:44:07 +02:00
searchconsole/v1 Update dependencies 2019-04-22 06:44:07 +02:00
securitycenter Update dependencies 2019-04-22 06:44:07 +02:00
servicebroker Update dependencies 2019-04-22 06:44:07 +02:00
serviceconsumermanagement/v1 Update dependencies 2019-04-22 06:44:07 +02:00
servicecontrol/v1 Update dependencies 2019-04-22 06:44:07 +02:00
servicemanagement/v1 Update dependencies 2019-04-22 06:44:07 +02:00
servicenetworking Update dependencies 2019-04-22 06:44:07 +02:00
serviceusage Update dependencies 2019-04-22 06:44:07 +02:00
serviceuser/v1 Update dependencies 2019-04-22 06:44:07 +02:00
sheets/v4 Update dependencies 2019-04-22 06:44:07 +02:00
siteverification/v1 Update dependencies 2019-04-22 06:44:07 +02:00
slides/v1 Update dependencies 2019-04-22 06:44:07 +02:00
sourcerepo/v1 Update dependencies 2019-04-22 06:44:07 +02:00
spanner/v1 Update dependencies 2019-04-22 06:44:07 +02:00
spectrum/v1explorer Update dependencies 2019-04-22 06:44:07 +02:00
speech Update dependencies 2019-04-22 06:44:07 +02:00
sqladmin/v1beta4 Update dependencies 2019-04-22 06:44:07 +02:00
storage Update dependencies 2019-04-22 06:44:07 +02:00
storagetransfer/v1 Update dependencies 2019-04-22 06:44:07 +02:00
streetviewpublish/v1 Update dependencies 2019-04-22 06:44:07 +02:00
support/bundler Update dependencies 2019-04-22 06:44:07 +02:00
surveys/v2 Update dependencies 2019-04-22 06:44:07 +02:00
tagmanager Update dependencies 2019-04-22 06:44:07 +02:00
tasks/v1 Update dependencies 2019-04-22 06:44:07 +02:00
testing/v1 Update dependencies 2019-04-22 06:44:07 +02:00
texttospeech Update dependencies 2019-04-22 06:44:07 +02:00
toolresults/v1beta3 Update dependencies 2019-04-22 06:44:07 +02:00
tpu Update dependencies 2019-04-22 06:44:07 +02:00
tracing/v2 Update dependencies 2019-04-22 06:44:07 +02:00
translate/v2 Update dependencies 2019-04-22 06:44:07 +02:00
transport Update dependencies 2019-04-22 06:44:07 +02:00
urlshortener/v1 Update dependencies 2019-04-22 06:44:07 +02:00
vault/v1 Update dependencies 2019-04-22 06:44:07 +02:00
videointelligence Update dependencies 2019-04-22 06:44:07 +02:00
vision Update dependencies 2019-04-22 06:44:07 +02:00
webfonts/v1 Update dependencies 2019-04-22 06:44:07 +02:00
webmasters/v3 Update dependencies 2019-04-22 06:44:07 +02:00
websecurityscanner Update dependencies 2019-04-22 06:44:07 +02:00
youtube/v3 Update dependencies 2019-04-22 06:44:07 +02:00
youtubeanalytics Update dependencies 2019-04-22 06:44:07 +02:00
youtubereporting/v1 Update dependencies 2019-04-22 06:44:07 +02:00
.gitignore Update dependencies 2019-04-22 06:44:07 +02:00
.hgtags Update dependencies 2019-04-22 06:44:07 +02:00
api-list.json Update dependencies 2019-04-22 06:44:07 +02:00
AUTHORS Update dependencies 2019-04-22 06:44:07 +02:00
CONTRIBUTING.md Update dependencies 2019-04-22 06:44:07 +02:00
CONTRIBUTORS Update dependencies 2019-04-22 06:44:07 +02:00
doc.go Update dependencies 2019-04-22 06:44:07 +02:00
GettingStarted.md Update dependencies 2019-04-22 06:44:07 +02:00
go.mod Update dependencies 2019-04-22 06:44:07 +02:00
go.sum Update dependencies 2019-04-22 06:44:07 +02:00
key.json.enc Update dependencies 2019-04-22 06:44:07 +02:00
LICENSE Update dependencies 2019-04-22 06:44:07 +02:00
NOTES Update dependencies 2019-04-22 06:44:07 +02:00
README.md Update dependencies 2019-04-22 06:44:07 +02:00
TODO Update dependencies 2019-04-22 06:44:07 +02:00
tools.go Update dependencies 2019-04-22 06:44:07 +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

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