33
33
from google .api_core .client_options import ClientOptions
34
34
from google .api_core import exceptions as core_exceptions
35
35
from google .api_core import gapic_v1
36
- from google .api_core import retry as retries
36
+ from google .api_core import retry_async as retries
37
37
from google .auth import credentials as ga_credentials # type: ignore
38
38
from google .oauth2 import service_account # type: ignore
39
39
40
40
try :
41
- OptionalRetry = Union [retries .Retry , gapic_v1 .method ._MethodDefault ]
41
+ OptionalRetry = Union [retries .AsyncRetry , gapic_v1 .method ._MethodDefault ]
42
42
except AttributeError : # pragma: NO COVER
43
- OptionalRetry = Union [retries .Retry , object ] # type: ignore
43
+ OptionalRetry = Union [retries .AsyncRetry , object ] # type: ignore
44
44
45
45
from google .api_core import operation # type: ignore
46
46
from google .api_core import operation_async # type: ignore
@@ -305,7 +305,7 @@ async def create_instance(
305
305
This corresponds to the ``clusters`` field
306
306
on the ``request`` instance; if ``request`` is provided, this
307
307
should not be set.
308
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
308
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
309
309
should be retried.
310
310
timeout (float): The timeout for this request.
311
311
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -404,7 +404,7 @@ async def get_instance(
404
404
This corresponds to the ``name`` field
405
405
on the ``request`` instance; if ``request`` is provided, this
406
406
should not be set.
407
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
407
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
408
408
should be retried.
409
409
timeout (float): The timeout for this request.
410
410
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -440,7 +440,7 @@ async def get_instance(
440
440
# and friendly error handling.
441
441
rpc = gapic_v1 .method_async .wrap_method (
442
442
self ._client ._transport .get_instance ,
443
- default_retry = retries .Retry (
443
+ default_retry = retries .AsyncRetry (
444
444
initial = 1.0 ,
445
445
maximum = 60.0 ,
446
446
multiplier = 2 ,
@@ -496,7 +496,7 @@ async def list_instances(
496
496
This corresponds to the ``parent`` field
497
497
on the ``request`` instance; if ``request`` is provided, this
498
498
should not be set.
499
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
499
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
500
500
should be retried.
501
501
timeout (float): The timeout for this request.
502
502
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -529,7 +529,7 @@ async def list_instances(
529
529
# and friendly error handling.
530
530
rpc = gapic_v1 .method_async .wrap_method (
531
531
self ._client ._transport .list_instances ,
532
- default_retry = retries .Retry (
532
+ default_retry = retries .AsyncRetry (
533
533
initial = 1.0 ,
534
534
maximum = 60.0 ,
535
535
multiplier = 2 ,
@@ -581,7 +581,7 @@ async def update_instance(
581
581
served from all
582
582
[Clusters][google.bigtable.admin.v2.Cluster] in the
583
583
instance.
584
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
584
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
585
585
should be retried.
586
586
timeout (float): The timeout for this request.
587
587
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -603,7 +603,7 @@ async def update_instance(
603
603
# and friendly error handling.
604
604
rpc = gapic_v1 .method_async .wrap_method (
605
605
self ._client ._transport .update_instance ,
606
- default_retry = retries .Retry (
606
+ default_retry = retries .AsyncRetry (
607
607
initial = 1.0 ,
608
608
maximum = 60.0 ,
609
609
multiplier = 2 ,
@@ -669,7 +669,7 @@ async def partial_update_instance(
669
669
This corresponds to the ``update_mask`` field
670
670
on the ``request`` instance; if ``request`` is provided, this
671
671
should not be set.
672
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
672
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
673
673
should be retried.
674
674
timeout (float): The timeout for this request.
675
675
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -709,7 +709,7 @@ async def partial_update_instance(
709
709
# and friendly error handling.
710
710
rpc = gapic_v1 .method_async .wrap_method (
711
711
self ._client ._transport .partial_update_instance ,
712
- default_retry = retries .Retry (
712
+ default_retry = retries .AsyncRetry (
713
713
initial = 1.0 ,
714
714
maximum = 60.0 ,
715
715
multiplier = 2 ,
@@ -775,7 +775,7 @@ async def delete_instance(
775
775
This corresponds to the ``name`` field
776
776
on the ``request`` instance; if ``request`` is provided, this
777
777
should not be set.
778
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
778
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
779
779
should be retried.
780
780
timeout (float): The timeout for this request.
781
781
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -869,7 +869,7 @@ async def create_cluster(
869
869
This corresponds to the ``cluster`` field
870
870
on the ``request`` instance; if ``request`` is provided, this
871
871
should not be set.
872
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
872
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
873
873
should be retried.
874
874
timeout (float): The timeout for this request.
875
875
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -964,7 +964,7 @@ async def get_cluster(
964
964
This corresponds to the ``name`` field
965
965
on the ``request`` instance; if ``request`` is provided, this
966
966
should not be set.
967
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
967
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
968
968
should be retried.
969
969
timeout (float): The timeout for this request.
970
970
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -999,7 +999,7 @@ async def get_cluster(
999
999
# and friendly error handling.
1000
1000
rpc = gapic_v1 .method_async .wrap_method (
1001
1001
self ._client ._transport .get_cluster ,
1002
- default_retry = retries .Retry (
1002
+ default_retry = retries .AsyncRetry (
1003
1003
initial = 1.0 ,
1004
1004
maximum = 60.0 ,
1005
1005
multiplier = 2 ,
@@ -1057,7 +1057,7 @@ async def list_clusters(
1057
1057
This corresponds to the ``parent`` field
1058
1058
on the ``request`` instance; if ``request`` is provided, this
1059
1059
should not be set.
1060
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1060
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1061
1061
should be retried.
1062
1062
timeout (float): The timeout for this request.
1063
1063
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1090,7 +1090,7 @@ async def list_clusters(
1090
1090
# and friendly error handling.
1091
1091
rpc = gapic_v1 .method_async .wrap_method (
1092
1092
self ._client ._transport .list_clusters ,
1093
- default_retry = retries .Retry (
1093
+ default_retry = retries .AsyncRetry (
1094
1094
initial = 1.0 ,
1095
1095
maximum = 60.0 ,
1096
1096
multiplier = 2 ,
@@ -1141,7 +1141,7 @@ async def update_cluster(
1141
1141
location, capable of serving all
1142
1142
[Tables][google.bigtable.admin.v2.Table] in the parent
1143
1143
[Instance][google.bigtable.admin.v2.Instance].
1144
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1144
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1145
1145
should be retried.
1146
1146
timeout (float): The timeout for this request.
1147
1147
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1164,7 +1164,7 @@ async def update_cluster(
1164
1164
# and friendly error handling.
1165
1165
rpc = gapic_v1 .method_async .wrap_method (
1166
1166
self ._client ._transport .update_cluster ,
1167
- default_retry = retries .Retry (
1167
+ default_retry = retries .AsyncRetry (
1168
1168
initial = 1.0 ,
1169
1169
maximum = 60.0 ,
1170
1170
multiplier = 2 ,
@@ -1248,7 +1248,7 @@ async def partial_update_cluster(
1248
1248
This corresponds to the ``update_mask`` field
1249
1249
on the ``request`` instance; if ``request`` is provided, this
1250
1250
should not be set.
1251
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1251
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1252
1252
should be retried.
1253
1253
timeout (float): The timeout for this request.
1254
1254
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1343,7 +1343,7 @@ async def delete_cluster(
1343
1343
This corresponds to the ``name`` field
1344
1344
on the ``request`` instance; if ``request`` is provided, this
1345
1345
should not be set.
1346
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1346
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1347
1347
should be retried.
1348
1348
timeout (float): The timeout for this request.
1349
1349
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1431,7 +1431,7 @@ async def create_app_profile(
1431
1431
This corresponds to the ``app_profile`` field
1432
1432
on the ``request`` instance; if ``request`` is provided, this
1433
1433
should not be set.
1434
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1434
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1435
1435
should be retried.
1436
1436
timeout (float): The timeout for this request.
1437
1437
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1515,7 +1515,7 @@ async def get_app_profile(
1515
1515
This corresponds to the ``name`` field
1516
1516
on the ``request`` instance; if ``request`` is provided, this
1517
1517
should not be set.
1518
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1518
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1519
1519
should be retried.
1520
1520
timeout (float): The timeout for this request.
1521
1521
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1549,7 +1549,7 @@ async def get_app_profile(
1549
1549
# and friendly error handling.
1550
1550
rpc = gapic_v1 .method_async .wrap_method (
1551
1551
self ._client ._transport .get_app_profile ,
1552
- default_retry = retries .Retry (
1552
+ default_retry = retries .AsyncRetry (
1553
1553
initial = 1.0 ,
1554
1554
maximum = 60.0 ,
1555
1555
multiplier = 2 ,
@@ -1608,7 +1608,7 @@ async def list_app_profiles(
1608
1608
This corresponds to the ``parent`` field
1609
1609
on the ``request`` instance; if ``request`` is provided, this
1610
1610
should not be set.
1611
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1611
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1612
1612
should be retried
1241
.
1613
1613
timeout (float): The timeout for this request.
1614
1614
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1644,7 +1644,7 @@ async def list_app_profiles(
1644
1644
# and friendly error handling.
1645
1645
rpc = gapic_v1 .method_async .wrap_method (
1646
1646
self ._client ._transport .list_app_profiles ,
1647
- default_retry = retries .Retry (
1647
+ default_retry = retries .AsyncRetry (
1648
1648
initial = 1.0 ,
1649
1649
maximum = 60.0 ,
1650
1650
multiplier = 2 ,
@@ -1717,7 +1717,7 @@ async def update_app_profile(
1717
1717
This corresponds to the ``update_mask`` field
1718
1718
on the ``request`` instance; if ``request`` is provided, this
1719
1719
should not be set.
1720
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1720
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1721
1721
should be retried.
1722
1722
timeout (float): The timeout for this request.
1723
1723
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1754,7 +1754,7 @@ async def update_app_profile(
1754
1754
# and friendly error handling.
1755
1755
rpc = gapic_v1 .method_async .wrap_method (
1756
1756
self ._client ._transport .update_app_profile ,
1757
- default_retry = retries .Retry (
1757
+ default_retry = retries .AsyncRetry (
1758
1758
initial = 1.0 ,
1759
1759
maximum = 60.0 ,
1760
1760
multiplier = 2 ,
@@ -1820,7 +1820,7 @@ async def delete_app_profile(
1820
1820
This corresponds to the ``name`` field
1821
1821
on the ``request`` instance; if ``request`` is provided, this
1822
1822
should not be set.
1823
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1823
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1824
1824
should be retried.
1825
1825
timeout (float): The timeout for this request.
1826
1826
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1890,7 +1890,7 @@ async def get_iam_policy(
1890
1890
This corresponds to the ``resource`` field
1891
1891
on the ``request`` instance; if ``request`` is provided, this
1892
1892
should not be set.
1893
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
10000
1893
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
1894
1894
should be retried.
1895
1895
timeout (float): The timeout for this request.
1896
1896
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1953,7 +1953,7 @@ async def get_iam_policy(
1953
1953
# and friendly error handling.
1954
1954
rpc = gapic_v1 .method_async .wrap_method (
1955
1955
self ._client ._transport .get_iam_policy ,
1956
- default_retry = retries .Retry (
1956
+ default_retry = retries .AsyncRetry (
1957
1957
initial = 1.0 ,
1958
1958
maximum = 60.0 ,
1959
1959
multiplier = 2 ,
@@ -2008,7 +2008,7 @@ async def set_iam_policy(
2008
2008
This corresponds to the ``resource`` field
2009
2009
on the ``request`` instance; if ``request`` is provided, this
2010
2010
should not be set.
2011
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
2011
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
2012
2012
should be retried.
2013
2013
timeout (float): The timeout for this request.
2014
2014
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -2126,7 +2126,7 @@ async def test_iam_permissions(
2126
2126
This corresponds to the ``permissions`` field
2127
2127
on the ``request`` instance; if ``request`` is provided, this
2128
2128
should not be set.
2129
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
2129
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
2130
2130
should be retried.
2131
2131
timeout (float): The timeout for this request.
2132
2132
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -2160,7 +2160,7 @@ async def test_iam_permissions(
2160
2160
# and friendly error handling.
2161
2161
rpc = gapic_v1 .method_async .wrap_method (
2162
2162
self ._client ._transport .test_iam_permissions ,
2163
- default_retry = retries .Retry (
2163
+ default_retry = retries .AsyncRetry (
2164
2164
initial = 1.0 ,
2165
2165
maximum = 60.0 ,
2166
2166
multiplier = 2 ,
@@ -2217,7 +2217,7 @@ async def list_hot_tablets(
2217
2217
This corresponds to the ``parent`` field
2218
2218
on the ``r
8F3F
equest`` instance; if ``request`` is provided, this
2219
2219
should not be set.
2220
- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
2220
+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
2221
2221
should be retried.
2222
2222
timeout (float): The timeout for this request.
2223
2223
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -2253,7 +2253,7 @@ async def list_hot_tablets(
2253
2253
# and friendly error handling.
2254
2254
rpc = gapic_v1 .method_async .wrap_method (
2255
2255
self ._client ._transport .list_hot_tablets ,
2256
- default_retry = retries .Retry (
2256
+ default_retry = retries .AsyncRetry (
2257
2257
initial = 1.0 ,
2258
2258
maximum = 60.0 ,
2259
2259
multiplier = 2 ,
0 commit comments