lib/google/cloud/compute/v1/image_family_views/rest/client.rb in google-cloud-compute-v1-0.4.0 vs lib/google/cloud/compute/v1/image_family_views/rest/client.rb in google-cloud-compute-v1-0.5.0
- old
+ new
@@ -62,9 +62,14 @@
break parent_const.configure if parent_const.respond_to? :configure
namespace.pop
end
default_config = Client::Configuration.new parent_config
+ default_config.rpcs.get.timeout = 600.0
+ default_config.rpcs.get.retry_policy = {
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
+ }
+
default_config
end
yield @configure if block_given?
@configure
end