Re-enable Apigee V1 and make generation more robust against discovery errors
This commit is contained in:
parent
5746a799bf
commit
334a41b6f9
|
@ -1,2 +1 @@
|
|||
exclude:
|
||||
- apigee.v1
|
||||
exclude: []
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue