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

This commit is contained in:
Daniel Azuma authored and GitHub committed 2020-05-05 11:23:46 -07:00
1 parent 5746a799bf
commit 334a41b6f9
3 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -1,2 +1 @@
exclude:
- apigee.v1
exclude: []
+1 -1
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
-1
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
)