@@ -31,9 +31,7 @@ def create_company(self, request: shared.CreateCompany, retries: Optional[utils.
3131
3232 retry_config = retries
3333 if retry_config is None :
34- retry_config = utils .RetryConfig ('backoff' , True )
35- retry_config .backoff = utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 )
36-
34+ retry_config = utils .RetryConfig ('backoff' , utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 ), True )
3735
3836 def do_request ():
3937 return client .request ('POST' , url , data = data , files = form , headers = headers )
@@ -73,9 +71,7 @@ def create_connection(self, request: operations.CreateConnectionRequest, retries
7371
7472 retry_config = retries
7573 if retry_config is None :
76- retry_config = utils .RetryConfig ('backoff' , True )
77- retry_config .backoff = utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 )
78-
74+ retry_config = utils .RetryConfig ('backoff' , utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 ), True )
7975
8076 def do_request ():
8177 return client .request ('POST' , url , data = data , files = form , headers = headers )
@@ -113,9 +109,7 @@ def list_companies(self, request: operations.ListCompaniesRequest, retries: Opti
113109
114110 retry_config = retries
115111 if retry_config is None :
116- retry_config = utils .RetryConfig ('backoff' , True )
117- retry_config .backoff = utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 )
118-
112+ retry_config = utils .RetryConfig ('backoff' , utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 ), True )
119113
120114 def do_request ():
121115 return client .request ('GET' , url , params = query_params , headers = headers )
@@ -153,9 +147,7 @@ def list_connections(self, request: operations.ListConnectionsRequest, retries:
153147
154148 retry_config = retries
155149 if retry_config is None :
156- retry_config = utils .RetryConfig ('backoff' , True )
157- retry_config .backoff = utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 )
158-
150+ retry_config = utils .RetryConfig ('backoff' , utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 ), True )
159151
160152 def do_request ():
161153 return client .request ('GET' , url , params = query_params , headers = headers )
@@ -195,9 +187,7 @@ def update_connection(self, request: operations.UpdateConnectionRequest, retries
195187
196188 retry_config = retries
197189 if retry_config is None :
198- retry_config = utils .RetryConfig ('backoff' , True )
199- retry_config .backoff = utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 )
200-
190+ retry_config = utils .RetryConfig ('backoff' , utils .BackoffStrategy (500 , 60000 , 1.5 , 3600000 ), True )
201191
202192 def do_request ():
203193 return client .request ('PATCH' , url , data = data , files = form , headers = headers )
0 commit comments