This repository was archived by the owner on Jul 6, 2023. It is now read-only.
File tree 2 files changed +48
-4
lines changed
google/cloud/resourcesettings_v1/services/resource_settings_service
2 files changed +48
-4
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,17 @@ async def get_setting(
329
329
# and friendly error handling.
330
330
rpc = gapic_v1 .method_async .wrap_method (
331
331
self ._client ._transport .get_setting ,
332
- default_timeout = None ,
332
+ default_retry = retries .Retry (
333
+ initial = 1.0 ,
334
+ maximum = 10.0 ,
335
+ multiplier = 1.3 ,
336
+ predicate = retries .if_exception_type (
337
+ core_exceptions .DeadlineExceeded ,
338
+ core_exceptions .ServiceUnavailable ,
339
+ ),
340
+ deadline = 60.0 ,
341
+ ),
342
+ default_timeout = 60.0 ,
333
343
client_info = DEFAULT_CLIENT_INFO ,
334
344
)
335
345
@@ -390,7 +400,17 @@ async def update_setting(
390
400
# and friendly error handling.
391
401
rpc = gapic_v1 .method_async .wrap_method (
392
402
self ._client ._transport .update_setting ,
393
- default_timeout = None ,
403
+ default_retry = retries .Retry (
404
+ initial = 1.0 ,
405
+ maximum = 10.0 ,
406
+ multiplier = 1.3 ,
407
+ predicate = retries .if_exception_type (
408
+ core_exceptions .DeadlineExceeded ,
409
+ core_exceptions .ServiceUnavailable ,
410
+ ),
411
+ deadline = 60.0 ,
412
+ ),
413
+ default_timeout = 60.0 ,
394
414
client_info = DEFAULT_CLIENT_INFO ,
395
415
)
396
416
Original file line number Diff line number Diff line change @@ -170,10 +170,34 @@ def _prep_wrapped_messages(self, client_info):
170
170
client_info = client_info ,
171
171
),
172
172
self .get_setting : gapic_v1 .method .wrap_method (
173
- self .get_setting , default_timeout = None , client_info = client_info ,
173
+ self .get_setting ,
174
+ default_retry = retries .Retry (
175
+ initial = 1.0 ,
176
+ maximum = 10.0 ,
177
+ multiplier = 1.3 ,
178
+ predicate = retries .if_exception_type (
179
+ core_exceptions .DeadlineExceeded ,
180
+ core_exceptions .ServiceUnavailable ,
181
+ ),
182
+ deadline = 60.0 ,
183
+ ),
184
+ default_timeout = 60.0 ,
185
+ client_info = client_info ,
174
186
),
175
187
self .update_setting : gapic_v1 .method .wrap_method (
176
- self .update_setting , default_timeout = None , client_info = client_info ,
188
+ self .update_setting ,
189
+ default_retry = retries .Retry (
190
+ initial = 1.0 ,
191
+ maximum = 10.0 ,
192
+ multiplier = 1.3 ,
193
+ predicate = retries .if_exception_type (
194
+ core_exceptions .DeadlineExceeded ,
195
+ core_exceptions .ServiceUnavailable ,
196
+ ),
197
+ deadline = 60.0 ,
198
+ ),
199
+ default_timeout = 60.0 ,
200
+ client_info = client_info ,
177
201
),
178
202
}
179
203
You can’t perform that action at this time.
0 commit comments