google-api-ruby-client/script/generate

14 lines
581 B
Plaintext
Raw Normal View History

#!/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 \
https://content.googleapis.com/discovery/v1/apis/compute/beta/rest \
https://monitoring.googleapis.com/\$discovery/rest?version=v3
)
echo 'a' | bundle exec bin/generate-api gen generated --from-discovery --no-preferred-only --names-out=$DIR/api_names_out.yaml --url=${URLS[*]}