@@ -331,12 +331,20 @@ def sample_list_databases():
331
331
)
332
332
333
333
# Send the request.
334
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
334
+ response = await rpc (
335
+ request ,
336
+ retry = retry ,
337
+ timeout = timeout ,
338
+ metadata = metadata ,
339
+ )
335
340
336
341
# This method is paged; wrap the response in a pager, which provides
337
342
# an `__aiter__` convenience method.
338
343
response = pagers .ListDatabasesAsyncPager (
339
- method = rpc , request = request , response = response , metadata = metadata ,
344
+ method = rpc ,
345
+ request = request ,
346
+ response = response ,
347
+ metadata = metadata ,
340
348
)
341
349
342
350
# Done; return the response.
@@ -461,7 +469,12 @@ def sample_create_database():
461
469
)
462
470
463
471
# Send the request.
464
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
472
+ response = await rpc (
473
+ request ,
474
+ retry = retry ,
475
+ timeout = timeout ,
476
+ metadata = metadata ,
477
+ )
465
478
466
479
# Wrap the response in an operation future.
467
480
response = operation_async .from_gapic (
@@ -568,7 +581,12 @@ def sample_get_database():
568
581
)
569
582
570
583
# Send the request.
571
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
584
+ response = await rpc (
585
+ request ,
586
+ retry = retry ,
587
+ timeout = timeout ,
588
+ metadata = metadata ,
589
+ )
572
590
573
591
# Done; return the response.
574
592
return response
@@ -720,7 +738,12 @@ def sample_update_database_ddl():
720
738
)
721
739
722
740
# Send the request.
723
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
741
+ response = await rpc (
742
+ request ,
743
+ retry = retry ,
744
+ timeout = timeout ,
745
+ metadata = metadata ,
746
+ )
724
747
725
748
# Wrap the response in an operation future.
726
749
response = operation_async .from_gapic (
@@ -822,7 +845,10 @@ def sample_drop_database():
822
845
823
846
# Send the request.
824
847
await rpc (
825
- request , retry = retry , timeout = timeout , metadata = metadata ,
848
+ request ,
849
+ retry = retry ,
850
+ timeout = timeout ,
851
+ metadata = metadata ,
826
852
)
827
853
828
854
async def get_database_ddl (
@@ -925,7 +951,12 @@ def sample_get_database_ddl():
925
951
)
926
952
927
953
# Send the request.
928
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
954
+ response = await rpc (
955
+ request ,
956
+ retry = retry ,
957
+ timeout = timeout ,
958
+ metadata = metadata ,
959
+ )
929
960
930
961
# Done; return the response.
931
962
return response
@@ -1062,7 +1093,9 @@ def sample_set_iam_policy():
1062
1093
if isinstance (request , dict ):
1063
1094
request = iam_policy_pb2 .SetIamPolicyRequest (** request )
1064
1095
elif not request :
1065
- request = iam_policy_pb2 .SetIamPolicyRequest (resource = resource ,)
1096
+ request = iam_policy_pb2 .SetIamPolicyRequest (
1097
+ resource = resource ,
1098
+ )
1066
1099
1067
1100
# Wrap the RPC method; this adds retry and timeout information,
1068
1101
# and friendly error handling.
@@ -1079,7 +1112,12 @@ def sample_set_iam_policy():
1079
1112
)
1080
1113
1081
1114
# Send the request.
1082
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
1115
+ response = await rpc (
1116
+ request ,
1117
+ retry = retry ,
1118
+ timeout = timeout ,
1119
+ metadata = metadata ,
1120
+ )
1083
1121
1084
1122
# Done; return the response.
1085
1123
return response
@@ -1217,7 +1255,9 @@ def sample_get_iam_policy():
1217
1255
if isinstance (request , dict ):
1218
1256
request = iam_policy_pb2 .GetIamPolicyRequest (** request )
1219
1257
elif not request :
1220
- request = iam_policy_pb2 .GetIamPolicyRequest (resource = resource ,)
1258
+ request = iam_policy_pb2 .GetIamPolicyRequest (
1259
+ resource = resource ,
1260
+ )
1221
1261
1222
1262
# Wrap the RPC method; this adds retry and timeout information,
1223
1263
# and friendly error handling.
@@ -1244,7 +1284,12 @@ def sample_get_iam_policy():
1244
1284
)
1245
1285
1246
1286
# Send the request.
1247
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
1287
+ response = await rpc (
1288
+ request ,
1289
+ retry = retry ,
1290
+ timeout = timeout ,
1291
+ metadata = metadata ,
1292
+ )
1248
1293
1249
1294
# Done; return the response.
1250
1295
return response
@@ -1339,7 +1384,8 @@ def sample_test_iam_permissions():
1339
1384
request = iam_policy_pb2 .TestIamPermissionsRequest (** request )
1340
1385
elif not request :
1341
1386
request = iam_policy_pb2 .TestIamPermissionsRequest (
1342
- resource = resource , permissions = permissions ,
1387
+ resource = resource ,
1388
+ permissions = permissions ,
1343
1389
)
1344
1390
1345
1391
# Wrap the RPC method; this adds retry and timeout information,
@@ -1357,7 +1403,12 @@ def sample_test_iam_permissions():
1357
1403
)
1358
1404
1359
1405
# Send the request.
1360
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
1406
+ response = await rpc (
1407
+ request ,
1408
+ retry = retry ,
1409
+ timeout = timeout ,
1410
+ metadata = metadata ,
1411
+ )
1361
1412
1362
1413
# Done; return the response.
1363
1414
return response
@@ -1493,7 +1544,12 @@ def sample_create_backup():
1493
1544
)
1494
1545
1495
1546
# Send the request.
1496
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
1547
+ response = await rpc (
1548
+ request ,
1549
+ retry = retry ,
1550
+ timeout = timeout ,
1551
+ metadata = metadata ,
1552
+ )
1497
1553
1498
1554
# Wrap the response in an operation future.
1499
1555
response = operation_async .from_gapic (
@@ -1655,7 +1711,12 @@ def sample_copy_backup():
1655
1711
)
1656
1712
1657
1713
# Send the request.
1658
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
1714
+ response = await rpc (
1715
+ request ,
1716
+ retry = retry ,
1717
+ timeout = timeout ,
1718
+ metadata = metadata ,
1719
+ )
1659
1720
1660
1721
# Wrap the response in an operation future.
1661
1722
response = operation_async .from_gapic (
@@ -1763,7 +1824,12 @@ def sample_get_backup():
1763
1824
)
1764
1825
1765
1826
# Send the request.
1766
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
1827
+ response = await rpc (
1828
+ request ,
1829
+ retry = retry ,
1830
+ timeout = timeout ,
1831
+ metadata = metadata ,
1832
+ )
1767
1833
1768
1834
# Done; return the response.
1769
1835
return response
@@ -1883,7 +1949,12 @@ def sample_update_backup():
1883
1949
)
1884
1950
1885
1951
# Send the request.
1886
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
1952
+ response = await rpc (
1953
+ request ,
1954
+ retry = retry ,
1955
+ timeout = timeout ,
1956
+ metadata = metadata ,
1957
+ )
1887
1958
1888
1959
# Done; return the response.
1889
1960
return response
@@ -1978,7 +2049,10 @@ def sample_delete_backup():
1978
2049
1979
2050
# Send the request.
1980
2051
await rpc (
1981
- request , retry = retry , timeout = timeout , metadata = metadata ,
2052
+ request ,
2053
+ retry = retry ,
2054
+ timeout = timeout ,
2055
+ metadata = metadata ,
1982
2056
)
1983
2057
1984
2058
async def list_backups (
@@ -2083,12 +2157,20 @@ def sample_list_backups():
2083
2157
)
2084
2158
2085
2159
# Send the request.
2086
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
2160
+ response = await rpc (
2161
+ request ,
2162
+ retry = retry ,
2163
+ timeout = timeout ,
2164
+ metadata = metadata ,
2165
+ )
2087
2166
2088
2167
# This method is paged; wrap the response in a pager, which provides
2089
2168
# an `__aiter__` convenience method.
2090
2169
response = pagers .ListBackupsAsyncPager (
2091
- method = rpc , request = request , response = response , metadata = metadata ,
2170
+ method = rpc ,
2171
+ request = request ,
2172
+ response = response ,
2173
+ metadata = metadata ,
2092
2174
)
2093
2175
2094
2176
# Done; return the response.
@@ -2234,7 +2316,12 @@ def sample_restore_database():
2234
2316
)
2235
2317
2236
2318
# Send the request.
2237
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
2319
+ response = await rpc (
2320
+ request ,
2321
+ retry = retry ,
2322
+ timeout = timeout ,
2323
+ metadata = metadata ,
2324
+ )
2238
2325
2239
2326
# Wrap the response in an operation future.
2240
2327
response = operation_async .from_gapic (
@@ -2359,12 +2446,20 @@ def sample_list_database_operations():
2359
2446
)
2360
2447
2361
2448
# Send the request.
2362
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
2449
+ response = await rpc (
2450
+ request ,
2451
+ retry = retry ,
2452
+ timeout = timeout ,
2453
+ metadata = metadata ,
2454
+ )
2363
2455
2364
2456
# This method is paged; wrap the response in a pager, which provides
2365
2457
# an `__aiter__` convenience method.
2366
2458
response = pagers .ListDatabaseOperationsAsyncPager (
2367
- method = rpc , request = request , response = response , metadata = metadata ,
2459
+ method = rpc ,
2460
+ request = request ,
2461
+ response = response ,
2462
+ metadata = metadata ,
2368
2463
)
2369
2464
2370
2465
# Done; return the response.
@@ -2482,12 +2577,20 @@ def sample_list_backup_operations():
2482
2577
)
2483
2578
2484
2579
# Send the request.
2485
- response = await rpc (request , retry = retry , timeout = timeout , metadata = metadata ,)
2580
+ response = await rpc (
2581
+ request ,
2582
+ retry = retry ,
2583
+ timeout = timeout ,
2584
+ metadata = metadata ,
2585
+ )
2486
2586
2487
2587
# This method is paged; wrap the response in a pager, which provides
2488
2588
# an `__aiter__` convenience method.
2489
2589
response = pagers .ListBackupOperationsAsyncPager (
2490
- method = rpc , request = request , response = response , metadata = metadata ,
2590
+ method = rpc ,
2591
+ request = request ,
2592
+ response = response ,
2593
+ metadata = metadata ,
2491
2594
)
2492
2595
2493
2596
# Done; return the response.
0 commit comments