@@ -29,9 +29,7 @@ def download_files(self, request: operations.DownloadFilesRequest, retries: Opti
2929
3030 retry_config = retries
3131 if retry_config is None :
32- retry_config = utils .RetryConfig ('backoff' , True )
33- retry_config .backoff = utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 )
34-
32+ retry_config = utils .RetryConfig ('backoff' , utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 ), True )
3533
3634 def do_request ():
3735 return client .request ('GET' , url , params = query_params , headers = headers )
@@ -75,9 +73,7 @@ def list_files(self, request: operations.ListFilesRequest, retries: Optional[uti
7573
7674 retry_config = retries
7775 if retry_config is None :
78- retry_config = utils .RetryConfig ('backoff' , True )
79- retry_config .backoff = utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 )
80-
76+ retry_config = utils .RetryConfig ('backoff' , utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 ), True )
8177
8278 def do_request ():
8379 return client .request ('GET' , url , headers = headers )
@@ -125,9 +121,7 @@ def upload_files(self, request: operations.UploadFilesRequest, retries: Optional
125121
126122 retry_config = retries
127123 if retry_config is None :
128- retry_config = utils .RetryConfig ('backoff' , True )
129- retry_config .backoff = utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 )
130-
124+ retry_config = utils .RetryConfig ('backoff' , utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 ), True )
131125
132126 def do_request ():
133127 return client .request ('POST' , url , data = data , files = form , headers = headers )
0 commit comments