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 ))
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
URLS=(https://content.googleapis.com/discovery/v1/apis/appsmarket/v2/rest \
|
|
|
|
https://content.googleapis.com/discovery/v1/apis/youtubePartner/v1/rest \
|
2016-04-14 18:15:27 +00:00
|
|
|
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 \
|
2017-08-25 20:17:06 +00:00
|
|
|
https://www.googleapis.com/discovery/v1/apis/admin/datatransfer_v1/rest \
|
|
|
|
https://www.googleapis.com/discovery/v1/apis/admin/directory_v1/rest
|
2016-04-14 18:15:27 +00:00
|
|
|
)
|
2015-12-15 01:41:50 +00:00
|
|
|
|
2017-08-25 18:31:03 +00:00
|
|
|
echo 'a' | bundle exec bin/generate-api gen generated --from_discovery=true --names_out=$DIR/api_names_out.yaml --url=${URLS[*]}
|