@@ -194,13 +194,14 @@ func resourceNetworkServicesEdgeCacheKeysetCreate(d *schema.ResourceData, meta i
194
194
}
195
195
196
196
res , err := transport_tpg .SendRequest (transport_tpg.SendRequestOptions {
197
- Config : config ,
198
- Method : "POST" ,
199
- Project : billingProject ,
200
- RawURL : url ,
201
- UserAgent : userAgent ,
202
- Body : obj ,
203
- Timeout : d .Timeout (schema .TimeoutCreate ),
197
+ Config : config ,
198
+ Method : "POST" ,
199
+ Project : billingProject ,
200
+ RawURL : url ,
201
+ UserAgent : userAgent ,
202
+ Body : obj ,
203
+ Timeout : d .Timeout (schema .TimeoutCreate ),
204
+ ErrorAbortPredicates : []transport_tpg.RetryErrorPredicateFunc {transport_tpg .Is429QuotaError },
204
205
})
205
206
if err != nil {
206
207
return fmt .Errorf ("Error creating EdgeCacheKeyset: %s" , err )
@@ -254,11 +255,12 @@ func resourceNetworkServicesEdgeCacheKeysetRead(d *schema.ResourceData, meta int
254
255
}
255
256
256
257
res , err := transport_tpg .SendRequest (transport_tpg.SendRequestOptions {
257
- Config : config ,
258
- Method : "GET" ,
259
- Project : billingProject ,
260
- RawURL : url ,
261
- UserAgent : userAgent ,
258
+ Config : config ,
259
+ Method : "GET" ,
260
+ Project : billingProject ,
261
+ RawURL : url ,
262
+ UserAgent : userAgent ,
263
+ ErrorAbortPredicates : []transport_tpg.RetryErrorPredicateFunc {transport_tpg .Is429QuotaError },
262
264
})
263
265
if err != nil {
264
266
return transport_tpg .HandleNotFoundError (err , d , fmt .Sprintf ("NetworkServicesEdgeCacheKeyset %q" , d .Id ()))
@@ -361,13 +363,14 @@ func resourceNetworkServicesEdgeCacheKeysetUpdate(d *schema.ResourceData, meta i
361
363
}
362
364
363
365
res , err := transport_tpg .SendRequest (transport_tpg.SendRequestOptions {
364
- Config : config ,
365
- Method : "PATCH" ,
366
- Project : billingProject ,
367
- RawURL : url ,
368
- UserAgent : userAgent ,
369
- Body : obj ,
370
- Timeout : d .Timeout (schema .TimeoutUpdate ),
366
+ Config : config ,
367
+ Method : "PATCH" ,
368
+ Project : billingProject ,
369
+ RawURL : url ,
370
+ UserAgent : userAgent ,
371
+ Body : obj ,
372
+ Timeout : d .Timeout (schema .TimeoutUpdate ),
373
+ ErrorAbortPredicates : []transport_tpg.RetryErrorPredicateFunc {transport_tpg .Is429QuotaError },
371
374
})
372
375
373
376
if err != nil {
@@ -416,13 +419,14 @@ func resourceNetworkServicesEdgeCacheKeysetDelete(d *schema.ResourceData, meta i
416
419
}
417
420
418
421
res , err := transport_tpg .SendRequest (transport_tpg.SendRequestOptions {
419
- Config : config ,
420
- Method : "DELETE" ,
421
- Project : billingProject ,
422
- RawURL : url ,
423
- UserAgent : userAgent ,
424
- Body : obj ,
425
- Timeout : d .Timeout (schema .TimeoutDelete ),
422
+ Config : config ,
423
+ Method : "DELETE" ,
424
+ Project : billingProject ,
425
+ RawURL : url ,
426
+ UserAgent : userAgent ,
427
+ Body : obj ,
428
+ Timeout : d .Timeout (schema .TimeoutDelete ),
429
+ ErrorAbortPredicates : []transport_tpg.RetryErrorPredicateFunc {transport_tpg .Is429QuotaError },
426
430
})
427
431
if err != nil {
428
432
return transport_tpg .HandleNotFoundError (err , d , "EdgeCacheKeyset" )
0 commit comments