Re-enable Apigee V1 and make generation more robust against discovery errors

This commit is contained in:
Daniel Azuma 2020-05-05 11:23:46 -07:00 committed by GitHub
parent 5746a799bf
commit 334a41b6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -1,2 +1 @@
exclude:
- apigee.v1
exclude: []

View File

@ -59,7 +59,7 @@ module Google
Array(urls).each do |url|
begin
json = discovery.http(:get, url)
rescue Google::Apis::ClientError
rescue Google::Apis::Error
warn sprintf('Failed request, skipping %s', url)
next
end

View File

@ -7,7 +7,6 @@ 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
)