17 lines
812 B
Bash
Executable File
17 lines
812 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: script/generate
|
|
# Update packaged APIs
|
|
|
|
DIR=$(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))
|
|
|
|
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://developers.google.com/my-business/samples/mybusiness_google_rest_v3.json \
|
|
https://monitoring.googleapis.com/\$discovery/rest?version=v3 \
|
|
https://www.googleapis.com/discovery/v1/apis/admin/datatransfer_v1/rest \
|
|
https://www.googleapis.com/discovery/v1/apis/admin/directory_v1/rest
|
|
)
|
|
|
|
echo 'a' | bundle exec bin/generate-api gen generated --from_discovery=true --names_out=$DIR/api_names_out.yaml --url=${URLS[*]}
|