2015-04-17 00:28:38 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Usage: script/generate
|
|
|
|
# Update packaged APIs
|
|
|
|
|
|
|
|
DIR=$(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))
|
|
|
|
|
2016-04-14 18:15:27 +00:00
|
|
|
API_IDS=(adexchangebuyer:v1.4 \
|
2016-10-14 22:48:26 +00:00
|
|
|
adexchangebuyer2:v2beta1 \
|
2017-01-28 03:38:40 +00:00
|
|
|
adexchangeseller:v2.0 \
|
|
|
|
admin:directory_v1 \
|
|
|
|
admin:datatransfer_v1 \
|
|
|
|
admin:reports_v1 \
|
|
|
|
adsense:v1.4 \
|
|
|
|
adsensehost:v4.1 \
|
|
|
|
analytics:v3 \
|
|
|
|
analyticsreporting:v4 \
|
|
|
|
androidenterprise:v1 \
|
|
|
|
androidpublisher:v2 \
|
|
|
|
appengine:v1beta5 \
|
|
|
|
appsactivity:v1 \
|
|
|
|
appstate:v1 \
|
|
|
|
autoscaler:v1beta2 \
|
|
|
|
bigquery:v2 \
|
|
|
|
blogger:v3 \
|
|
|
|
books:v1 \
|
|
|
|
calendar:v3 \
|
|
|
|
civicinfo:v2 \
|
|
|
|
classroom:v1 \
|
|
|
|
cloudbilling:v1 \
|
|
|
|
cloudbuild:v1 \
|
|
|
|
clouddebugger:v2 \
|
2017-03-10 21:11:09 +00:00
|
|
|
cloudkms:v1 \
|
2017-01-28 03:38:40 +00:00
|
|
|
cloudkms:v1beta1 \
|
|
|
|
cloudlatencytest:v2 \
|
|
|
|
cloudmonitoring:v2beta2 \
|
|
|
|
cloudresourcemanager:v1beta1 \
|
|
|
|
cloudresourcemanager:v1 \
|
|
|
|
cloudtrace:v1 \
|
|
|
|
clouduseraccounts:beta \
|
|
|
|
compute:v1 \
|
|
|
|
compute:beta \
|
|
|
|
container:v1 \
|
|
|
|
content:v2 \
|
|
|
|
coordinate:v1 \
|
|
|
|
customsearch:v1 \
|
|
|
|
dataflow:v1b3 \
|
2016-10-04 00:30:46 +00:00
|
|
|
dataproc:v1 \
|
2017-01-28 03:38:40 +00:00
|
|
|
datastore:v1 \
|
|
|
|
deploymentmanager:v2 \
|
|
|
|
dfareporting:v2.6 \
|
|
|
|
dfareporting:v2.7 \
|
|
|
|
discovery:v1 \
|
|
|
|
dns:v1 \
|
|
|
|
dns:v2beta1 \
|
|
|
|
doubleclickbidmanager:v1 \
|
|
|
|
doubleclicksearch:v2 \
|
|
|
|
drive:v2 \
|
|
|
|
drive:v3 \
|
|
|
|
fitness:v1 \
|
|
|
|
fusiontables:v2 \
|
|
|
|
games:v1 \
|
|
|
|
gamesConfiguration:v1configuration \
|
|
|
|
gamesManagement:v1management \
|
|
|
|
gan:v1beta1 \
|
|
|
|
genomics:v1 \
|
|
|
|
gmail:v1 \
|
|
|
|
groupsmigration:v1 \
|
|
|
|
groupssettings:v1 \
|
|
|
|
iam:v1 \
|
|
|
|
identitytoolkit:v3 \
|
|
|
|
kgsearch:v1 \
|
|
|
|
language:v1beta1 \
|
|
|
|
licensing:v1 \
|
|
|
|
logging:v2beta1 \
|
|
|
|
manager:v1beta2 \
|
|
|
|
manufacturers:v1 \
|
|
|
|
mapsengine:v1 \
|
|
|
|
mirror:v1 \
|
|
|
|
oauth2:v2 \
|
|
|
|
pagespeedonline:v2 \
|
|
|
|
partners:v2 \
|
|
|
|
people:v1 \
|
|
|
|
plus:v1 \
|
|
|
|
plusDomains:v1 \
|
|
|
|
prediction:v1.6 \
|
|
|
|
proximitybeacon:v1beta1 \
|
|
|
|
pubsub:v1 \
|
|
|
|
qpxExpress:v1 \
|
|
|
|
replicapool:v1beta2 \
|
|
|
|
replicapoolupdater:v1beta1 \
|
|
|
|
reseller:v1 \
|
|
|
|
resourceviews:v1beta2 \
|
|
|
|
script:v1 \
|
|
|
|
sheets:v4 \
|
|
|
|
siteVerification:v1 \
|
|
|
|
slides:v1 \
|
|
|
|
speech:v1beta1 \
|
|
|
|
sqladmin:v1beta4 \
|
|
|
|
storage:v1 \
|
|
|
|
storagetransfer:v1 \
|
|
|
|
tagmanager:v1 \
|
|
|
|
taskqueue:v1beta2 \
|
|
|
|
tasks:v1 \
|
|
|
|
translate:v2 \
|
|
|
|
urlshortener:v1 \
|
|
|
|
vision:v1 \
|
|
|
|
webmasters:v3 \
|
|
|
|
youtube:v3 \
|
|
|
|
youtubeAnalytics:v1 \
|
|
|
|
youtubereporting:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
)
|
|
|
|
|
2016-04-14 18:15:27 +00:00
|
|
|
URLS=(https://content.googleapis.com/discovery/v1/apis/youtubePartner/v1/rest \
|
|
|
|
https://content.googleapis.com/discovery/v1/apis/compute/beta/rest \
|
2016-05-25 16:16:15 +00:00
|
|
|
https://developers.google.com/my-business/samples/mybusiness_google_rest_v3.json \
|
2016-06-09 20:22:21 +00:00
|
|
|
https://monitoring.googleapis.com/\$discovery/rest?version=v3 \
|
2016-04-14 18:15:27 +00:00
|
|
|
)
|
2015-12-15 01:41:50 +00:00
|
|
|
|
2017-02-14 18:43:08 +00:00
|
|
|
echo 'a' | bundle exec bin/generate-api gen generated --from_discovery=true --names_out=$DIR/api_names_out.yaml --url=${URLS[*]} --id=${API_IDS[*]}
|