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-01-29 22:32:46 +00:00
|
|
|
APIS=(adexchangebuyer:v1.4 \
|
2015-04-17 00:28:38 +00:00
|
|
|
adexchangeseller:v2.0 \
|
|
|
|
admin:directory_v1 \
|
2016-01-22 19:23:05 +00:00
|
|
|
admin:datatransfer_v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
admin:reports_v1 \
|
|
|
|
adsense:v1.4 \
|
|
|
|
adsensehost:v4.1 \
|
|
|
|
analytics:v3 \
|
|
|
|
androidenterprise:v1 \
|
|
|
|
androidpublisher:v2 \
|
2016-01-29 22:32:46 +00:00
|
|
|
appengine:v1beta5 \
|
2015-04-17 00:28:38 +00:00
|
|
|
appsactivity:v1 \
|
|
|
|
appstate:v1 \
|
|
|
|
autoscaler:v1beta2 \
|
|
|
|
bigquery:v2 \
|
|
|
|
blogger:v3 \
|
|
|
|
books:v1 \
|
|
|
|
calendar:v3 \
|
|
|
|
civicinfo:v2 \
|
2015-12-03 01:10:07 +00:00
|
|
|
classroom:v1 \
|
2016-01-22 19:23:05 +00:00
|
|
|
cloudbilling:v1 \
|
2016-01-29 22:32:46 +00:00
|
|
|
cloudbuild:v1 \
|
2016-01-22 19:23:05 +00:00
|
|
|
clouddebugger:v2 \
|
2016-01-29 22:32:46 +00:00
|
|
|
cloudlatencytest:v2 \
|
2016-01-22 19:23:05 +00:00
|
|
|
cloudmonitoring:v2beta2 \
|
2015-04-17 00:28:38 +00:00
|
|
|
cloudresourcemanager:v1beta1 \
|
2016-03-11 22:41:20 +00:00
|
|
|
cloudresourcemanager:v1 \
|
2016-01-22 19:23:05 +00:00
|
|
|
cloudtrace:v1 \
|
2015-12-03 01:10:07 +00:00
|
|
|
clouduseraccounts:beta \
|
2015-04-17 00:28:38 +00:00
|
|
|
compute:v1 \
|
2015-12-15 01:41:50 +00:00
|
|
|
compute:beta \
|
2015-07-20 21:49:34 +00:00
|
|
|
container:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
content:v2 \
|
|
|
|
coordinate:v1 \
|
|
|
|
customsearch:v1 \
|
2016-01-29 22:32:46 +00:00
|
|
|
dataproc:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
datastore:v1beta2 \
|
2016-01-22 19:23:05 +00:00
|
|
|
deploymentmanager:v2 \
|
|
|
|
dfareporting:v2.3 \
|
2015-04-17 00:28:38 +00:00
|
|
|
discovery:v1 \
|
|
|
|
dns:v1 \
|
|
|
|
doubleclickbidmanager:v1 \
|
|
|
|
doubleclicksearch:v2 \
|
|
|
|
drive:v2 \
|
2015-12-15 00:48:17 +00:00
|
|
|
drive:v3 \
|
2015-04-17 00:28:38 +00:00
|
|
|
fitness:v1 \
|
|
|
|
fusiontables:v2 \
|
|
|
|
games:v1 \
|
|
|
|
gamesConfiguration:v1configuration \
|
2015-12-03 01:10:07 +00:00
|
|
|
gamesManagement:v1management \
|
2015-04-17 00:28:38 +00:00
|
|
|
gan:v1beta1 \
|
2015-07-20 21:49:34 +00:00
|
|
|
genomics:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
gmail:v1 \
|
|
|
|
groupsmigration:v1 \
|
|
|
|
groupssettings:v1 \
|
2016-03-11 22:41:20 +00:00
|
|
|
iam:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
identitytoolkit:v3 \
|
2015-12-16 19:33:13 +00:00
|
|
|
kgsearch:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
licensing:v1 \
|
2016-01-29 22:32:46 +00:00
|
|
|
logging:v2beta1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
manager:v1beta2 \
|
|
|
|
mapsengine:v1 \
|
|
|
|
mirror:v1 \
|
|
|
|
oauth2:v2 \
|
|
|
|
pagespeedonline:v2 \
|
2016-01-22 19:23:05 +00:00
|
|
|
partners:v2 \
|
2016-02-10 21:57:13 +00:00
|
|
|
people:v1 \
|
2016-02-25 23:16:53 +00:00
|
|
|
plus:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
plusDomains:v1 \
|
|
|
|
prediction:v1.6 \
|
2016-01-22 19:23:05 +00:00
|
|
|
proximitybeacon:v1beta1 \
|
2015-12-03 01:10:07 +00:00
|
|
|
pubsub:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
qpxExpress:v1 \
|
|
|
|
replicapool:v1beta2 \
|
|
|
|
replicapoolupdater:v1beta1 \
|
|
|
|
reseller:v1 \
|
|
|
|
resourceviews:v1beta2 \
|
2015-12-03 01:10:07 +00:00
|
|
|
script:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
siteVerification:v1 \
|
|
|
|
sqladmin:v1beta4 \
|
|
|
|
storage:v1 \
|
2015-12-03 01:10:07 +00:00
|
|
|
storagetransfer:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
tagmanager:v1 \
|
|
|
|
taskqueue:v1beta2 \
|
|
|
|
tasks:v1 \
|
|
|
|
translate:v2 \
|
|
|
|
urlshortener:v1 \
|
2016-02-25 23:16:53 +00:00
|
|
|
vision:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
webmasters:v3 \
|
|
|
|
youtube:v3 \
|
|
|
|
youtubeAnalytics:v1 \
|
2015-12-03 01:10:07 +00:00
|
|
|
youtubereporting:v1 \
|
2015-04-17 00:28:38 +00:00
|
|
|
)
|
|
|
|
|
2015-12-15 01:41:50 +00:00
|
|
|
|
|
|
|
echo 'a' | bundle exec bin/generate-api gen generated --from-discovery=true --names_out=$DIR/api_names_out.yaml --url='https://content.googleapis.com/discovery/v1/apis/compute/beta/rest' --id=${APIS[*]}
|