@@ -49,7 +49,8 @@ class AbstractOperationsClientMeta(type):
49
49
_transport_registry ["rest" ] = OperationsRestTransport
50
50
51
51
def get_transport_class (
52
- cls , label : Optional [str ] = None ,
52
+ cls ,
53
+ label : Optional [str ] = None ,
53
54
) -> Type [OperationsTransport ]:
54
55
"""Returns an appropriate transport class.
55
56
@@ -165,7 +166,9 @@ def transport(self) -> OperationsTransport:
165
166
return self ._transport
166
167
167
168
@staticmethod
168
- def common_billing_account_path (billing_account : str ,) -> str :
169
+ def common_billing_account_path (
170
+ billing_account : str ,
171
+ ) -> str :
169
172
"""Returns a fully-qualified billing_account string."""
170
173
return "billingAccounts/{billing_account}" .format (
171
174
billing_account = billing_account ,
@@ -178,9 +181,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]:
178
181
return m .groupdict () if m else {}
179
182
180
183
@staticmethod
181
- def common_folder_path (folder : str ,) -> str :
184
+ def common_folder_path (
185
+ folder : str ,
186
+ ) -> str :
182
187
"""Returns a fully-qualified folder string."""
183
- return "folders/{folder}" .format (folder = folder ,)
188
+ return "folders/{folder}" .format (
189
+ folder = folder ,
190
+ )
184
191
185
192
@staticmethod
186
193
def parse_common_folder_path (path : str ) -> Dict [str , str ]:
@@ -189,9 +196,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]:
189
196
return m .groupdict () if m else {}
190
197
191
198
@staticmethod
192
- def common_organization_path (organization : str ,) -> str :
199
+ def common_organization_path (
200
+ organization : str ,
201
+ ) -> str :
193
202
"""Returns a fully-qualified organization string."""
194
- return "organizations/{organization}" .format (organization = organization ,)
203
+ return "organizations/{organization}" .format (
204
+ organization = organization ,
205
+ )
195
206
196
207
@staticmethod
197
208
def parse_common_organization_path (path : str ) -> Dict [str , str ]:
@@ -200,9 +211,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]:
200
211
return m .groupdict () if m else {}
201
212
202
213
@staticmethod
203
- def common_project_path (project : str ,) -> str :
214
+ def common_project_path (
215
+ project : str ,
216
+ ) -> str :
204
217
"""Returns a fully-qualified project string."""
205
- return "projects/{project}" .format (project = project ,)
218
+ return "projects/{project}" .format (
219
+ project = project ,
220
+ )
206
221
207
222
@staticmethod
208
223
def parse_common_project_path (path : str ) -> Dict [str , str ]:
@@ -211,10 +226,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]:
211
226
return m .groupdict () if m else {}
212
227
213
228
@staticmethod
214
- def common_location_path (project : str , location : str ,) -> str :
229
+ def common_location_path (
230
+ project : str ,
231
+ location : str ,
232
+ ) -> str :
215
233
"""Returns a fully-qualified location string."""
216
234
return "projects/{project}/locations/{location}" .format (
217
- project = project , location = location ,
235
+ project = project ,
236
+ location = location ,
218
237
)
219
238
220
239
@staticmethod
@@ -406,12 +425,20 @@ def list_operations(
406
425
)
407
426
408
427
# Send the request.
409
- response = rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
428
+ response = rpc (
429
+ request ,
430
+ retry = retry ,
431
+ timeout = timeout ,
432
+ metadata = metadata ,
433
+ )
410
434
411
435
# This method is paged; wrap the response in a pager, which provides
412
436
# an `__iter__` convenience method.
413
437
response = pagers .ListOperationsPager (
414
- method = rpc , request = request , response = response , metadata = metadata ,
438
+ method = rpc ,
439
+ request = request ,
440
+ response = response ,
441
+ metadata = metadata ,
415
442
)
416
443
417
444
# Done; return the response.
@@ -459,7 +486,12 @@ def get_operation(
459
486
)
460
487
461
488
# Send the request.
462
- response = rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
489
+ response = rpc (
490
+ request ,
491
+ retry = retry ,
492
+ timeout = timeout ,
493
+ metadata = metadata ,
494
+ )
463
495
464
496
# Done; return the response.
465
497
return response
@@ -506,7 +538,10 @@ def delete_operation(
506
538
507
539
# Send the request.
508
540
rpc (
509
- request , retry = retry , timeout = timeout , metadata = metadata ,
541
+ request ,
542
+ retry = retry ,
543
+ timeout = timeout ,
544
+ metadata = metadata ,
510
545
)
511
546
512
547
def cancel_operation (
@@ -560,5 +595,8 @@ def cancel_operation(
560
595
561
596
# Send the request.
562
597
rpc (
563
- request , retry = retry , timeout = timeout , metadata = metadata ,
598
+ request ,
599
+ retry = retry ,
600
+ timeout = timeout ,
601
+ metadata = metadata ,
564
602
)
0 commit comments