commit | 41fabef044e08d5296140a1c336f55265a73cb5b | [log] [tgz] |
---|---|---|
author | Yoshi Automation Bot <yoshi-automation@google.com> | Wed Sep 30 08:36:03 2020 -0700 |
committer | GitHub <noreply@github.com> | Wed Sep 30 15:36:03 2020 +0000 |
tree | 9a4b3fb7ef99a2ad0ad07093fcf9f5a770b85bb8 | |
parent | 9f54a9f777b4b6d4bbd19b23c4c44290a8763497 [diff] |
feat(all): auto-regenerate discovery clients (#681) This PR was generated using Autosynth. :rainbow: <details><summary>Log from Synthtool</summary> ``` 2020-09-26 04:37:20,788 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-go-client/synth.py. On branch autosynth-regen nothing to commit, working tree clean ++ dirname ./internal/kokoro/synth/synth.sh + cd ./internal/kokoro/synth/../../.. ++ mktemp -d + tempdir=/tmpfs/tmp/tmp.YpOBPDdpcy + curl -o /tmp/go.tgz https://dl.google.com/go/go1.15.1.linux-amd64.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 115M 100 115M 0 0 397M 0 --:--:-- --:--:-- --:--:-- 398M + tar -C /tmpfs/tmp/tmp.YpOBPDdpcy -xzf /tmp/go.tgz + rm /tmp/go.tgz + export PATH=/tmpfs/tmp/tmp.YpOBPDdpcy/go/bin:/tmpfs/src/github/synthtool/env/bin:/home/kbuilder/bazel:/opt/google-cloud-sdk/bin:/home/kbuilder/.pyenv/plugins/pyenv-virtualenv/shims:/home/kbuilder/.pyenv/shims:/home/kbuilder/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/local/rvm/bin:/opt/android-sdk/current/bin:/usr/local/go/bin:/usr/local/go/packages/bin:/opt/android-sdk/current/bin:/usr/local/go/bin:/usr/local/go/packages/bin:/opt/kubernetes/client/bin:/opt/android-studio/bin:/usr/local/apache-maven/bin + PATH=/tmpfs/tmp/tmp.YpOBPDdpcy/go/bin:/tmpfs/src/github/synthtool/env/bin:/home/kbuilder/bazel:/opt/google-cloud-sdk/bin:/home/kbuilder/.pyenv/plugins/pyenv-virtualenv/shims:/home/kbuilder/.pyenv/shims:/home/kbuilder/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/local/rvm/bin:/opt/android-sdk/current/bin:/usr/local/go/bin:/usr/local/go/packages/bin:/opt/android-sdk/current/bin:/usr/local/go/bin:/usr/local/go/packages/bin:/opt/kubernetes/client/bin:/opt/android-studio/bin:/usr/local/apache-maven/bin + export GOROOT=/tmpfs/tmp/tmp.YpOBPDdpcy/go + GOROOT=/tmpfs/tmp/tmp.YpOBPDdpcy/go + go version go version go1.15.1 linux/amd64 + go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/kbuilder/.cache/go-build" GOENV="/home/kbuilder/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/usr/local/go/packages/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/usr/local/go/packages" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/tmpfs/tmp/tmp.YpOBPDdpcy/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/tmpfs/tmp/tmp.YpOBPDdpcy/go/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/kbuilder/.cache/synthtool/google-api-go-client/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmpfs/tmp/go-build159854844=/tmp/go-build -gno-record-gcc-switches" + pushd google-api-go-generator ~/.cache/synthtool/google-api-go-client/google-api-go-generator ~/.cache/synthtool/google-api-go-client + make all go build -o google-api-go-generator cd ../internal/version; go generate ./google-api-go-generator -cache=false -install -api=* -gendir=.. 2020/09/26 04:37:26 Generating API abusiveexperiencereport:v1 2020/09/26 04:37:34 Generating API acceleratedmobilepageurl:v1 2020/09/26 04:37:34 Old revision found for acceleratedmobilepageurl:v1, skipping generation 2020/09/26 04:37:34 Generating API accessapproval:v1 2020/09/26 04:37:35 Generating API accesscontextmanager:v1beta 2020/09/26 04:37:36 Generating API accesscontextmanager:v1 2020/09/26 04:37:36 Generating API adexchangebuyer:v1.2 2020/09/26 04:37:37 Generating API adexchangebuyer:v1.3 2020/09/26 04:37:37 Generating API adexchangebuyer:v1.4 2020/09/26 04:37:38 Generating API adexchangebuyer2:v2beta1 2020/09/26 04:37:39 Generating API adexperiencereport:v1 2020/09/26 04:37:40 Generating API admin:datatransfer_v1 2020/09/26 04:37:40 Generating API admin:directory_v1 2020/09/26 04:37:41 Generating API admin:reports_v1 2020/09/26 04:37:42 Generating API admob:v1 2020/09/26 04:37:42 Generating API adsense:v1.4 2020/09/26 04:37:43 TODO writeSchemaCode for arrays for AdsenseReportsGenerateResponseRows 2020/09/26 04:37:43 Generating API adsensehost:v4.1 2020/09/26 04:37:43 TODO writeSchemaCode for arrays for ReportRows 2020/09/26 04:37:44 Generating API alertcenter:v1beta1 2020/09/26 04:37:45 Generating API analytics:v3 2020/09/26 04:37:45 TODO writeSchemaCode for arrays for GaDataRows 2020/09/26 04:37:45 TODO writeSchemaCode for arrays for McfDataRows 2020/09/26 04:37:45 TODO writeSchemaCode for arrays for RealtimeDataRows 2020/09/26 04:37:46 Generating API analyticsadmin:v1alpha 2020/09/26 04:37:47 Generating API analyticsdata:v1alpha 2020/09/26 04:37:48 Generating API analyticsreporting:v4 2020/09/26 04:37:48 Generating API androiddeviceprovisioning:v1 2020/09/26 04:37:49 Generating API androidenterprise:v1 2020/09/26 04:37:50 Generating API androidmanagement:v1 2020/09/26 04:37:50 Generating API androidpublisher:v3 2020/09/26 04:37:51 Generating API apigateway:v1alpha1 2020/09/26 04:37:52 Generating API apigateway:v1alpha2 2020/09/26 04:37:53 Generating API apigateway:v1beta 2020/09/26 04:37:53 Generating API apigee:v1 2020/09/26 04:37:55 Generating API appengine:v1alpha 2020/09/26 04:37:56 Generating API appengine:v1beta 2020/09/26 04:37:57 Generating API appengine:v1 2020/09/26 04:37:57 Generating API appengine:v1beta4 2020/09/26 04:37:57 WARNING: URL https://appengine.googleapis.com/$discovery/rest?version=v1beta4 served status code 404 2020/09/26 04:37:57 Generating API appengine:v1beta5 2020/09/26 04:37:57 WARNING: URL https://appengine.googleapis.com/$discovery/rest?version=v1beta5 served status code 404 2020/09/26 04:37:57 Generating API appsactivity:v1 2020/09/26 04:37:58 Generating API artifactregistry:v1beta1 2020/09/26 04:37:58 Generating API assuredworkloads:v1beta1 2020/09/26 04:37:59 Generating API bigquery:v2 2020/09/26 04:37:59 Generating API bigqueryconnection:v1beta1 2020/09/26 04:38:00 Generating API bigquerydatatransfer:v1 2020/09/26 04:38:01 Generating API bigqueryreservation:v1alpha2 2020/09/26 04:38:01 Generating API bigqueryreservation:v1 2020/09/26 04:38:02 Generating API bigqueryreservation:v1beta1 2020/09/26 04:38:03 Generating API bigtableadmin:v1 2020/09/26 04:38:03 Generating API bigtableadmin:v2 2020/09/26 04:38:04 Generating API billingbudgets:v1beta1 2020/09/26 04:38:04 TODO writeSchemaCode for arrays for GoogleCloudBillingBudgetsV1beta1FilterLabels 2020/09/26 04:38:04 Generating API binaryauthorization:v1 2020/09/26 04:38:05 Generating API binaryauthorization:v1beta1 2020/09/26 04:38:05 Generating API blogger:v2 2020/09/26 04:38:06 Generating API blogger:v3 2020/09/26 04:38:06 Generating API books:v1 2020/09/26 04:38:07 Generating API calendar:v3 2020/09/26 04:38:08 Generating API chat:v1 2020/09/26 04:38:09 Generating API chromeuxreport:v1 2020/09/26 04:38:09 Generating API civicinfo:v2 2020/09/26 04:38:09 Generating API classroom:v1 2020/09/26 04:38:10 Generating API cloudasset:v1p1beta1 2020/09/26 04:38:11 Generating API cloudasset:v1p4beta1 2020/09/26 04:38:11 Generating API cloudasset:v1p5beta1 2020/09/26 04:38:11 Generating API cloudasset:v1 2020/09/26 04:38:12 Generating API cloudasset:v1beta1 2020/09/26 04:38:12 Generating API cloudbilling:v1 2020/09/26 04:38:13 Generating API cloudbuild:v1alpha1 2020/09/26 04:38:13 Generating API cloudbuild:v1alpha2 2020/09/26 04:38:14 Generating API cloudbuild:v1 2020/09/26 04:38:15 Generating API clouddebugger:v2 2020/09/26 04:38:15 Generating API clouderrorreporting:v1beta1 2020/09/26 04:38:16 Generating API cloudfunctions:v1 2020/09/26 04:38:16 Generating API cloudidentity:v1 2020/09/26 04:38:17 Generating API cloudidentity:v1beta1 2020/09/26 04:38:18 Generating API cloudiot:v1alpha1 2020/09/26 04:38:18 WARNING: URL https://cloudiot.googleapis.com/$discovery/rest?version=v1alpha1 served status code 404 2020/09/26 04:38:18 Generating API cloudiot:v1 2020/09/26 04:38:19 Generating API cloudkms:v1 2020/09/26 04:38:19 Generating API cloudprofiler:v2 2020/09/26 04:38:20 Generating API cloudresourcemanager:v1 2020/09/26 04:38:20 Generating API cloudresourcemanager:v1beta1 2020/09/26 04:38:21 Generating API cloudresourcemanager:v2 2020/09/26 04:38:21 Generating API cloudresourcemanager:v2beta1 2020/09/26 04:38:22 Generating API cloudscheduler:v1 2020/09/26 04:38:22 Generating API cloudscheduler:v1beta1 2020/09/26 04:38:23 Generating API cloudsearch:v1 2020/09/26 04:38:24 Generating API cloudshell:v1alpha1 2020/09/26 04:38:24 Generating API cloudshell:v1 2020/09/26 04:38:25 Generating API cloudtasks:v2 2020/09/26 04:38:25 Generating API cloudtasks:v2beta2 2020/09/26 04:38:26 Generating API cloudtasks:v2beta3 2020/09/26 04:38:26 Generating API cloudtrace:v1 2020/09/26 04:38:27 Generating API cloudtrace:v2 2020/09/26 04:38:27 Generating API cloudtrace:v2beta1 2020/09/26 04:38:28 Generating API composer:v1 2020/09/26 04:38:28 Generating API composer:v1beta1 2020/09/26 04:38:29 Generating API compute:alpha 2020/09/26 04:38:37 Generating API compute:beta 2020/09/26 04:38:44 Generating API compute:v1 2020/09/26 04:38:51 Generating API container:v1 2020/09/26 04:38:52 Generating API container:v1beta1 2020/09/26 04:38:53 Generating API containeranalysis:v1alpha1 2020/09/26 04:38:54 Generating API containeranalysis:v1beta1 2020/09/26 04:38:55 Generating API content:v2 2020/09/26 04:38:56 Generating API content:v2.1 2020/09/26 04:38:57 Generating API customsearch:v1 2020/09/26 04:38:58 Generating API datacatalog:v1beta1 2020/09/26 04:38:58 Old revision found for datacatalog:v1beta1, skipping generation 2020/09/26 04:38:58 Generating API dataflow:v1b3 2020/09/26 04:38:59 Generating API datafusion:v1 2020/09/26 04:39:00 Generating API datafusion:v1beta1 2020/09/26 04:39:00 Generating API dataproc:v1 2020/09/26 04:39:01 Generating API dataproc:v1beta2 2020/09/26 04:39:02 Generating API datastore:v1 2020/09/26 04:39:03 Generating API datastore:v1beta1 2020/09/26 04:39:03 Generating API datastore:v1beta3 2020/09/26 04:39:03 Generating API deploymentmanager:alpha 2020/09/26 04:39:04 Generating API deploymentmanager:v2beta 2020/09/26 04:39:05 Generating API deploymentmanager:v2 2020/09/26 04:39:05 Generating API dfareporting:v3.3 2020/09/26 04:39:08 Generating API dfareporting:v3.4 2020/09/26 04:39:11 Generating API dialogflow:v2 2020/09/26 04:39:12 Generating API dialogflow:v2beta1 2020/09/26 04:39:14 Generating API dialogflow:v3beta1 2020/09/26 04:39:15 Generating API digitalassetlinks:v1 2020/09/26 04:39:15 Generating API discovery:v1 2020/09/26 04:39:16 Generating API displayvideo:v1beta 2020/09/26 04:39:16 Generating API displayvideo:v1dev 2020/09/26 04:39:17 Generating API displayvideo:v1 2020/09/26 04:39:19 Generating API displayvideo:v1beta2 2020/09/26 04:39:19 Generating API dlp:v2 2020/09/26 04:39:21 Generating API dns:v1 2020/09/26 04:39:21 Generating API dns:v1beta2 2020/09/26 04:39:22 Generating API docs:v1 2020/09/26 04:39:23 Generating API documentai:v1beta2 2020/09/26 04:39:23 Generating API domainsrdap:v1 2020/09/26 04:39:24 Generating API doubleclickbidmanager:v1 2020/09/26 04:39:25 Generating API doubleclickbidmanager:v1.1 2020/09/26 04:39:25 Generating API doubleclicksearch:v2 2020/09/26 04:39:26 Generating API drive:v2 2020/09/26 04:39:27 Generating API drive:v3 2020/09/26 04:39:27 TODO writeSchemaCode for arrays for AboutExportFormats 2020/09/26 04:39:27 TODO writeSchemaCode for arrays for AboutImportFormats 2020/09/26 04:39:28 Generating API driveactivity:v2 2020/09/26 04:39:28 Generating API factchecktools:v1alpha1 2020/09/26 04:39:29 Generating API fcm:v1 2020/09/26 04:39:29 Generating API file:v1 2020/09/26 04:39:30 Generating API file:v1beta1 2020/09/26 04:39:30 Generating API firebase:v1beta1 2020/09/26 04:39:31 Generating API firebasedynamiclinks:v1 2020/09/26 04:39:31 Generating API firebasehosting:v1 2020/09/26 04:39:32 Generating API firebasehosting:v1beta1 2020/09/26 04:39:32 Generating API firebaseml:v1 2020/09/26 04:39:33 Generating API firebaseml:v1beta2 2020/09/26 04:39:33 Generating API firebaserules:v1 2020/09/26 04:39:34 Generating API firestore:v1 2020/09/26 04:39:35 Generating API firestore:v1beta1 2020/09/26 04:39:35 Generating API firestore:v1beta2 2020/09/26 04:39:36 Generating API fitness:v1 2020/09/26 04:39:36 Generating API games:v1 2020/09/26 04:39:37 Generating API gamesConfiguration:v1configuration 2020/09/26 04:39:37 Generating API gamesManagement:v1management 2020/09/26 04:39:38 Generating API gameservices:v1beta 2020/09/26 04:39:38 Generating API gameservices:v1 2020/09/26 04:39:39 Generating API genomics:v1alpha2 2020/09/26 04:39:40 Generating API genomics:v2alpha1 2020/09/26 04:39:40 Generating API genomics:v1 2020/09/26 04:39:40 Generating API gmail:v1 2020/09/26 04:39:41 Generating API gmailpostmastertools:v1beta1 2020/09/26 04:39:42 Generating API groupsmigration:v1 2020/09/26 04:39:43 Generating API groupssettings:v1 2020/09/26 04:39:43 Generating API healthcare:v1 2020/09/26 04:39:44 Generating API healthcare:v1beta1 2020/09/26 04:39:46 Generating API homegraph:v1 2020/09/26 04:39:47 Generating API iam:v1 2020/09/26 04:39:48 Generating API iamcredentials:v1 2020/09/26 04:39:48 Generating API iap:v1 2020/09/26 04:39:49 Generating API iap:v1beta1 2020/09/26 04:39:49 Generating API identitytoolkit:v3 2020/09/26 04:39:50 Generating API indexing:v3 2020/09/26 04:39:50 Generating API jobs:v3p1beta1 2020/09/26 04:39:51 Generating API jobs:v2 2020/09/26 04:39:52 Generating API jobs:v3 2020/09/26 04:39:52 Generating API kgsearch:v1 2020/09/26 04:39:53 Generating API language:v1 2020/09/26 04:39:53 Generating API language:v1beta1 2020/09/26 04:39:54 Generating API language:v1beta2 2020/09/26 04:39:54 Generating API libraryagent:v1 2020/09/26 04:39:55 Generating API licensing:v1 2020/09/26 04:39:56 Generating API lifesciences:v2beta 2020/09/26 04:39:56 Generating API localservices:v1 2020/09/26 04:39:57 Generating API logging:v2 2020/09/26 04:39:58 Generating API managedidentities:v1alpha1 2020/09/26 04:39:59 Generating API managedidentities:v1 2020/09/26 04:40:00 Generating API managedidentities:v1beta1 2020/09/26 04:40:00 Generating API manufacturers:v1 2020/09/26 04:40:01 Generating API memcache:v1beta2 2020/09/26 04:40:02 Generating API ml:v1 2020/09/26 04:40:03 Generating API monitoring:v3p1alpha1 2020/09/26 04:40:03 WARNING: URL https://monitoring.googleapis.com/$discovery/rest?version=v3p1alpha1 served status code 404 2020/09/26 04:40:03 Generating API monitoring:v1 2020/09/26 04:40:03 Generating API monitoring:v3 2020/09/26 04:40:04 Generating API networkmanagement:v1 2020/09/26 04:40:05 Generating API networkmanagement:v1beta1 2020/09/26 04:40:06 Generating API osconfig:v1alpha2 2020/09/26 04:40:06 WARNING: URL https://osconfig.googleapis.com/$discovery/rest?version=v1alpha2 served status code 404 2020/09/26 04:40:06 Generating API osconfig:v1beta 2020/09/26 04:40:06 Generating API osconfig:v1 2020/09/26 04:40:07 Generating API oslogin:v1alpha 2020/09/26 04:40:07 Generating API oslogin:v1beta 2020/09/26 04:40:08 Generating API oslogin:v1 2020/09/26 04:40:08 Generating API pagespeedonline:v5 2020/09/26 04:40:09 Generating API people:v1 2020/09/26 04:40:09 Generating API playablelocations:v3 2020/09/26 04:40:10 Generating API playcustomapp:v1 2020/09/26 04:40:10 Generating API policytroubleshooter:v1beta 2020/09/26 04:40:11 Generating API policytroubleshooter:v1 2020/09/26 04:40:12 Generating API poly:v1 2020/09/26 04:40:13 Generating API prod_tt_sasportal:v1alpha1 2020/09/26 04:40:14 Generating API pubsub:v1beta1a 2020/09/26 04:40:14 Generating API pubsub:v1 2020/09/26 04:40:15 Generating API pubsub:v1beta2 2020/09/26 04:40:16 Generating API pubsublite:v1 2020/09/26 04:40:16 Generating API realtimebidding:v1 2020/09/26 04:40:17 Generating API recommendationengine:v1beta1 2020/09/26 04:40:18 Generating API recommender:v1 2020/09/26 04:40:18 Generating API recommender:v1beta1 2020/09/26 04:40:19 Generating API redis:v1 2020/09/26 04:40:19 Generating API redis:v1beta1 2020/09/26 04:40:20 Generating API remotebuildexecution:v1alpha 2020/09/26 04:40:21 Generating API remotebuildexecution:v1 2020/09/26 04:40:22 Generating API remotebuildexecution:v2 2020/09/26 04:40:22 Generating API reseller:v1 2020/09/26 04:40:22 Old revision found for reseller:v1, skipping generation 2020/09/26 04:40:22 Generating API run:v1alpha1 2020/09/26 04:40:24 Generating API run:v1 2020/09/26 04:40:25 Generating API run:v1beta1 2020/09/26 04:40:25 Generating API runtimeconfig:v1 2020/09/26 04:40:26 Generating API runtimeconfig:v1beta1 2020/09/26 04:40:26 Generating API safebrowsing:v4 2020/09/26 04:40:27 Generating API sasportal:v1alpha1 2020/09/26 04:40:28 Generating API script:v1 2020/09/26 04:40:29 Generating API searchconsole:v1 2020/09/26 04:40:29 Generating API secretmanager:v1 2020/09/26 04:40:30 Generating API secretmanager:v1beta1 2020/09/26 04:40:30 Generating API securitycenter:v1 2020/09/26 04:40:31 Generating API securitycenter:v1beta1 2020/09/26 04:40:32 Generating API securitycenter:v1beta2 2020/09/26 04:40:33 Generating API serviceconsumermanagement:v1 2020/09/26 04:40:34 Generating API serviceconsumermanagement:v1beta1 2020/09/26 04:40:34 Generating API servicecontrol:v1 2020/09/26 04:40:35 Generating API servicecontrol:v2 2020/09/26 04:40:35 Generating API servicedirectory:v1beta1 2020/09/26 04:40:36 Generating API servicemanagement:v1 2020/09/26 04:40:37 Generating API servicenetworking:v1beta 2020/09/26 04:40:38 Generating API servicenetworking:v1 2020/09/26 04:40:39 Generating API serviceusage:v1 2020/09/26 04:40:40 Generating API serviceusage:v1beta1 2020/09/26 04:40:41 Generating API sheets:v4 2020/09/26 04:40:41 TODO writeSchemaCode for arrays for DataFilterValueRangeValues 2020/09/26 04:40:41 TODO writeSchemaCode for arrays for ValueRangeValues 2020/09/26 04:40:42 Generating API siteVerification:v1 2020/09/26 04:40:42 Generating API slides:v1 2020/09/26 04:40:43 Generating API smartdevicemanagement:v1 2020/09/26 04:40:44 Generating API sourcerepo:v1 2020/09/26 04:40:45 Generating API spanner:v1 2020/09/26 04:40:45 TODO writeSchemaCode for arrays for KeySetKeys 2020/09/26 04:40:45 TODO writeSchemaCode for arrays for ResultSetRows 2020/09/26 04:40:45 TODO writeSchemaCode for arrays for WriteValues 2020/09/26 04:40:46 Generating API speech:v1p1beta1 2020/09/26 04:40:46 Generating API speech:v1 2020/09/26 04:40:47 Generating API speech:v2beta1 2020/09/26 04:40:47 Generating API sqladmin:v1beta4 2020/09/26 04:40:48 Generating API storage:v1 2020/09/26 04:40:48 Old revision found for storage:v1, skipping generation 2020/09/26 04:40:48 Generating API storagetransfer:v1 2020/09/26 04:40:49 Generating API streetviewpublish:v1 2020/09/26 04:40:50 Generating API sts:v1beta 2020/09/26 04:40:50 Generating API sts:v1 2020/09/26 04:40:50 Generating API tagmanager:v1 2020/09/26 04:40:51 Generating API tagmanager:v2 2020/09/26 04:40:53 Generating API tasks:v1 2020/09/26 04:40:53 Generating API testing:v1 2020/09/26 04:40:54 Generating API texttospeech:v1 2020/09/26 04:40:54 Generating API texttospeech:v1beta1 2020/09/26 04:40:55 Generating API toolresults:v1beta3 2020/09/26 04:40:56 Generating API tpu:v1alpha1 2020/09/26 04:40:56 Generating API tpu:v1 2020/09/26 04:40:57 Generating API trafficdirector:v2 2020/09/26 04:40:57 Generating API translate:v2 2020/09/26 04:40:58 TODO writeSchemaCode for arrays for DetectionsResource 2020/09/26 04:40:58 Generating API translate:v3 2020/09/26 04:40:59 Generating API translate:v3beta1 2020/09/26 04:40:59 Generating API vault:v1 2020/09/26 04:41:00 Generating API vectortile:v1 2020/09/26 04:41:01 Generating API verifiedaccess:v1 2020/09/26 04:41:01 Generating API videointelligence:v1p1beta1 2020/09/26 04:41:02 Generating API videointelligence:v1p2beta1 2020/09/26 04:41:02 Generating API videointelligence:v1p3beta1 2020/09/26 04:41:03 Generating API videointelligence:v1 2020/09/26 04:41:04 Generating API videointelligence:v1beta2 2020/09/26 04:41:04 Generating API vision:v1p1beta1 2020/09/26 04:41:05 Generating API vision:v1p2beta1 2020/09/26 04:41:06 Generating API vision:v1 2020/09/26 04:41:08 Generating API webfonts:v1 2020/09/26 04:41:08 Generating API webmasters:v3 2020/09/26 04:41:08 Generating API websecurityscanner:v1alpha 2020/09/26 04:41:09 Generating API websecurityscanner:v1beta 2020/09/26 04:41:09 Generating API websecurityscanner:v1 2020/09/26 04:41:10 Generating API workflowexecutions:v1beta 2020/09/26 04:41:11 Generating API workflows:v1beta 2020/09/26 04:41:11 Generating API youtube:v3 2020/09/26 04:41:13 Generating API youtubeAnalytics:v1 2020/09/26 04:41:13 Generating API youtubeAnalytics:v2 2020/09/26 04:41:13 TODO writeSchemaCode for arrays for QueryResponseRows 2020/09/26 04:41:14 Generating API youtubereporting:v1 go test . -v === RUN TestMedia --- PASS: TestMedia (0.00s) === RUN TestResumableMedia --- PASS: TestResumableMedia (0.00s) === RUN TestNoMedia --- PASS: TestNoMedia (0.00s) === RUN TestMediaErrHandling --- PASS: TestMediaErrHandling (0.01s) === RUN TestUserAgent --- PASS: TestUserAgent (0.01s) === RUN TestParams --- PASS: TestParams (0.00s) === RUN TestUnmarshalSpecialFloats --- PASS: TestUnmarshalSpecialFloats (0.00s) === RUN TestAPIs === RUN TestAPIs/any === RUN TestAPIs/arrayofarray-1 2020/09/26 04:41:23 TODO writeSchemaCode for arrays for GeoJsonMultiPolygonCoordinates 2020/09/26 04:41:23 TODO writeSchemaCode for arrays for GeoJsonMultiPolygonCoordinatesItem === RUN TestAPIs/arrayofenum === RUN TestAPIs/arrayofmapofobjects === RUN TestAPIs/arrayofmapofstrings === RUN TestAPIs/blogger-3 === RUN TestAPIs/floats === RUN TestAPIs/getwithoutbody === RUN TestAPIs/http-body === RUN TestAPIs/json-body === RUN TestAPIs/mapofany === RUN TestAPIs/mapofarrayofobjects 2020/09/26 04:41:23 TODO writeSchemaCode for arrays for TimeseriesDescriptorTags === RUN TestAPIs/mapofint64strings === RUN TestAPIs/mapofobjects === RUN TestAPIs/mapofstrings-1 2020/09/26 04:41:23 TODO writeSchemaCode for arrays for TimeseriesDescriptorTags === RUN TestAPIs/param-rename === RUN TestAPIs/quotednum === RUN TestAPIs/repeated === RUN TestAPIs/required-query === RUN TestAPIs/resource-named-service === RUN TestAPIs/unfortunatedefaults === RUN TestAPIs/variants 2020/09/26 04:41:23 TODO writeSchemaCode for arrays for GeoJsonMultiLineStringCoordinates 2020/09/26 04:41:23 TODO writeSchemaCode for arrays for GeoJsonMultiPolygonCoordinates 2020/09/26 04:41:23 TODO writeSchemaCode for arrays for GeoJsonPolygonCoordinates 2020/09/26 04:41:23 TODO writeSchemaCode for arrays for GeoJsonPosition === RUN TestAPIs/wrapnewlines --- PASS: TestAPIs (0.17s) --- PASS: TestAPIs/any (0.02s) --- PASS: TestAPIs/arrayofarray-1 (0.00s) --- PASS: TestAPIs/arrayofenum (0.00s) --- PASS: TestAPIs/arrayofmapofobjects (0.00s) --- PASS: TestAPIs/arrayofmapofstrings (0.00s) --- PASS: TestAPIs/blogger-3 (0.03s) --- PASS: TestAPIs/floats (0.00s) --- PASS: TestAPIs/getwithoutbody (0.00s) --- PASS: TestAPIs/http-body (0.00s) --- PASS: TestAPIs/json-body (0.05s) --- PASS: TestAPIs/mapofany (0.00s) --- PASS: TestAPIs/mapofarrayofobjects (0.00s) --- PASS: TestAPIs/mapofint64strings (0.00s) --- PASS: TestAPIs/mapofobjects (0.00s) --- PASS: TestAPIs/mapofstrings-1 (0.00s) --- PASS: TestAPIs/param-rename (0.00s) --- PASS: TestAPIs/quotednum (0.00s) --- PASS: TestAPIs/repeated (0.00s) --- PASS: TestAPIs/required-query (0.00s) --- PASS: TestAPIs/resource-named-service (0.04s) --- PASS: TestAPIs/unfortunatedefaults (0.00s) --- PASS: TestAPIs/variants (0.00s) --- PASS: TestAPIs/wrapnewlines (0.00s) === RUN TestScope --- PASS: TestScope (0.00s) === RUN TestDepunct --- PASS: TestDepunct (0.00s) === RUN TestRenameVersion --- PASS: TestRenameVersion (0.00s) === RUN TestSupportsPaging --- PASS: TestSupportsPaging (0.00s) === RUN TestIsNewerRevision --- PASS: TestIsNewerRevision (0.00s) === RUN TestPagesParam --- PASS: TestPagesParam (0.00s) === RUN TestPagesRequestField --- PASS: TestPagesRequestField (0.00s) === RUN TestDeprecatedPkgs === RUN TestDeprecatedPkgs/replacement_found === RUN TestDeprecatedPkgs/replacemet_found_with_no_versions_specified === RUN TestDeprecatedPkgs/no_replacement_found,_package_not_in_map === RUN TestDeprecatedPkgs/no_replacement_found,_version_mismatch --- PASS: TestDeprecatedPkgs (0.00s) --- PASS: TestDeprecatedPkgs/replacement_found (0.00s) --- PASS: TestDeprecatedPkgs/replacemet_found_with_no_versions_specified (0.00s) --- PASS: TestDeprecatedPkgs/no_replacement_found,_package_not_in_map (0.00s) --- PASS: TestDeprecatedPkgs/no_replacement_found,_version_mismatch (0.00s) PASS ok google.golang.org/api/google-api-go-generator 0.216s + popd ~/.cache/synthtool/google-api-go-client 2020-09-26 04:41:24,031 synthtool [DEBUG] > Wrote metadata to synth.metadata. DEBUG:synthtool:Wrote metadata to synth.metadata. RUN TestRenameVersion --- PASS: TestRenameVersion (0.00s) === RUN TestSupportsPaging --- PASS: TestSupportsPaging (0.00s) === RUN TestIsNewerRevision --- PASS: TestIsNewerRevision (0.00s) === RUN TestPagesParam --- PASS: TestPagesParam (0.00s) === RUN TestPagesRequestField --- PASS: TestPagesRequestField (0.00s) === RUN TestDeprecatedPkgs === RUN TestDeprecatedPkgs/replacement_found === RUN TestDeprecatedPkgs/replacemet_found_with_no_versions_specified === RUN TestDeprecatedPkgs/no_replacement_found,_package_not_in_map === RUN TestDeprecatedPkgs/no_replacement_found,_version_mismatch --- PASS: TestDeprecatedPkgs (0.00s) --- PASS: TestDeprecatedPkgs/replacement_found (0.00s) --- PASS: TestDeprecatedPkgs/replacemet_found_with_no_versions_specified (0.00s) --- PASS: TestDeprecatedPkgs/no_replacement_found,_package_not_in_map (0.00s) --- PASS: TestDeprecatedPkgs/no_replacement_found,_version_mismatch (0.00s) PASS ok google.golang.org/api/google-api-go-generator 0.216s + popd ~/.cache/synthtool/google-api-go-client 2020-09-26 04:41:24,031 synthtool [DEBUG] > Wrote metadata to synth.metadata. DEBUG:synthtool:Wrote metadata to synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/f0772ef7-dee7-4f22-89e1-944cb2774fb0/targets - [ ] To automatically regenerate this PR, check this box.
$ 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) // ... }
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 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.