3333from google .api_core .client_options import ClientOptions
3434from google .api_core import exceptions as core_exceptions
3535from 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
3737from google .auth import credentials as ga_credentials # type: ignore
3838from google .oauth2 import service_account # type: ignore
3939
4040try :
41- OptionalRetry = Union [retries .Retry , gapic_v1 .method ._MethodDefault ]
41+ OptionalRetry = Union [retries .AsyncRetry , gapic_v1 .method ._MethodDefault ]
4242except AttributeError : # pragma: NO COVER
43- OptionalRetry = Union [retries .Retry , object ] # type: ignore
43+ OptionalRetry = Union [retries .AsyncRetry , object ] # type: ignore
4444
4545from google .api_core import operation as gac_operation # type: ignore
4646from google .api_core import operation_async # type: ignore
@@ -323,7 +323,7 @@ async def sample_create_endpoint():
323323 This corresponds to the ``endpoint_id`` field
324324 on the ``request`` instance; if ``request`` is provided, this
325325 should not be set.
326- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
326+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
327327 should be retried.
328328 timeout (float): The timeout for this request.
329329 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -439,7 +439,7 @@ async def sample_get_endpoint():
439439 This corresponds to the ``name`` field
440440 on the ``request`` instance; if ``request`` is provided, this
441441 should not be set.
442- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
442+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
443443 should be retried.
444444 timeout (float): The timeout for this request.
445445 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -544,7 +544,7 @@ async def sample_list_endpoints():
544544 This corresponds to the ``parent`` field
545545 on the ``request`` instance; if ``request`` is provided, this
546546 should not be set.
547- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
547+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
548548 should be retried.
549549 timeout (float): The timeout for this request.
550550 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -669,7 +669,7 @@ async def sample_update_endpoint():
669669 This corresponds to the ``update_mask`` field
670670 on the ``request`` instance; if ``request`` is provided, this
671671 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,
673673 should be retried.
674674 timeout (float): The timeout for this request.
675675 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -781,7 +781,7 @@ async def sample_delete_endpoint():
781781 This corresponds to the ``name`` field
782782 on the ``request`` instance; if ``request`` is provided, this
783783 should not be set.
784- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
784+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
785785 should be retried.
786786 timeout (float): The timeout for this request.
787787 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -945,7 +945,7 @@ async def sample_deploy_model():
945945 This corresponds to the ``traffic_split`` field
946946 on the ``request`` instance; if ``request`` is provided, this
947947 should not be set.
948- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
948+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
949949 should be retried.
950950 timeout (float): The timeout for this request.
951951 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1093,7 +1093,7 @@ async def sample_undeploy_model():
10931093 This corresponds to the ``traffic_split`` field
10941094 on the ``request`` instance; if ``request`` is provided, this
10951095 should not be set.
1096- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1096+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
10971097 should be retried.
10981098 timeout (float): The timeout for this request.
10991099 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1253,7 +1253,7 @@ async def sample_mutate_deployed_model():
12531253 This corresponds to the ``update_mask`` field
12541254 on the ``request`` instance; if ``request`` is provided, this
12551255 should not be set.
1256- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1256+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
12571257 should be retried.
12581258 timeout (float): The timeout for this request.
12591259 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1335,7 +1335,7 @@ async def list_operations(
13351335 request (:class:`~.operations_pb2.ListOperationsRequest`):
13361336 The request object. Request message for
13371337 `ListOperations` method.
1338- retry (google.api_core.retry.Retry ): Designation of what errors,
1338+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
13391339 if any, should be retried.
13401340 timeout (float): The timeout for this request.
13411341 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1352,7 +1352,7 @@ async def list_operations(
13521352
13531353 # Wrap the RPC method; this adds retry and timeout information,
13541354 # and friendly error handling.
1355- rpc = gapic_v1 .method .wrap_method (
1355+ rpc = gapic_v1 .method_async .wrap_method (
13561356 self ._client ._transport .list_operations ,
13571357 default_timeout = None ,
13581358 client_info = DEFAULT_CLIENT_INFO ,
@@ -1389,7 +1389,7 @@ async def get_operation(
13891389 request (:class:`~.operations_pb2.GetOperationRequest`):
13901390 The request object. Request message for
13911391 `GetOperation` method.
1392- retry (google.api_core.retry.Retry ): Designation of what errors,
1392+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
13931393 if any, should be retried.
13941394 timeout (float): The timeout for this request.
13951395 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1406,7 +1406,7 @@ async def get_operation(
14061406
14071407 # Wrap the RPC method; this adds retry and timeout information,
14081408 # and friendly error handling.
1409- rpc = gapic_v1 .method .wrap_method (
1409+ rpc = gapic_v1 .method_async .wrap_method (
14101410 self ._client ._transport .get_operation ,
14111411 default_timeout = None ,
14121412 client_info = DEFAULT_CLIENT_INFO ,
@@ -1448,7 +1448,7 @@ async def delete_operation(
14481448 request (:class:`~.operations_pb2.DeleteOperationRequest`):
14491449 The request object. Request message for
14501450 `DeleteOperation` method.
1451- retry (google.api_core.retry.Retry ): Designation of what errors,
1451+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
14521452 if any, should be retried.
14531453 timeout (float): The timeout for this request.
14541454 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1464,7 +1464,7 @@ async def delete_operation(
14641464
14651465 # Wrap the RPC method; this adds retry and timeout information,
14661466 # and friendly error handling.
1467- rpc = gapic_v1 .method .wrap_method (
1467+ rpc = gapic_v1 .method_async .wrap_method (
14681468 self ._client ._transport .delete_operation ,
14691469 default_timeout = None ,
14701470 client_info = DEFAULT_CLIENT_INFO ,
@@ -1502,7 +1502,7 @@ async def cancel_operation(
15021502 request (:class:`~.operations_pb2.CancelOperationRequest`):
15031503 The request object. Request message for
15041504 `CancelOperation` method.
1505- retry (google.api_core.retry.Retry ): Designation of what errors,
1505+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
15061506 if any, should be retried.
15071507 timeout (float): The timeout for this request.
15081508 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1518,7 +1518,7 @@ async def cancel_operation(
15181518
15191519 # Wrap the RPC method; this adds retry and timeout information,
15201520 # and friendly error handling.
1521- rpc = gapic_v1 .method .wrap_method (
1521+ rpc = gapic_v1 .method_async .wrap_method (
15221522 self ._client ._transport .cancel_operation ,
15231523 default_timeout = None ,
15241524 client_info = DEFAULT_CLIENT_INFO ,
@@ -1558,7 +1558,7 @@ async def wait_operation(
15581558 request (:class:`~.operations_pb2.WaitOperationRequest`):
15591559 The request object. Request message for
15601560 `WaitOperation` method.
1561- retry (google.api_core.retry.Retry ): Designation of what errors,
1561+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
15621562 if any, should be retried.
15631563 timeout (float): The timeout for this request.
15641564 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1575,7 +1575,7 @@ async def wait_operation(
15751575
15761576 # Wrap the RPC method; this adds retry and timeout information,
15771577 # and friendly error handling.
1578- rpc = gapic_v1 .method .wrap_method (
1578+ rpc = gapic_v1 .method_async .wrap_method (
15791579 self ._client ._transport .wait_operation ,
15801580 default_timeout = None ,
15811581 client_info = DEFAULT_CLIENT_INFO ,
@@ -1614,7 +1614,7 @@ async def set_iam_policy(
16141614 request (:class:`~.iam_policy_pb2.SetIamPolicyRequest`):
16151615 The request object. Request message for `SetIamPolicy`
16161616 method.
1617- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1617+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
16181618 should be retried.
16191619 timeout (float): The timeout for this request.
16201620 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1695,7 +1695,7 @@ async def set_iam_policy(
16951695
16961696 # Wrap the RPC method; this adds retry and timeout information,
16971697 # and friendly error handling.
1698- rpc = gapic_v1 .method .wrap_method (
1698+ rpc = gapic_v1 .method_async .wrap_method (
16991699 self ._client ._transport .set_iam_policy ,
17001700 default_timeout = None ,
17011701 client_info = DEFAULT_CLIENT_INFO ,
@@ -1735,7 +1735,7 @@ async def get_iam_policy(
17351735 request (:class:`~.iam_policy_pb2.GetIamPolicyRequest`):
17361736 The request object. Request message for `GetIamPolicy`
17371737 method.
1738- retry (google.api_core.retry.Retry ): Designation of what errors, if
1738+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if
17391739 any, should be retried.
17401740 timeout (float): The timeout for this request.
17411741 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1816,7 +1816,7 @@ async def get_iam_policy(
18161816
18171817 # Wrap the RPC method; this adds retry and timeout information,
18181818 # and friendly error handling.
1819- rpc = gapic_v1 .method .wrap_method (
1819+ rpc = gapic_v1 .method_async .wrap_method (
18201820 self ._client ._transport .get_iam_policy ,
18211821 default_timeout = None ,
18221822 client_info = DEFAULT_CLIENT_INFO ,
@@ -1857,7 +1857,7 @@ async def test_iam_permissions(
18571857 request (:class:`~.iam_policy_pb2.TestIamPermissionsRequest`):
18581858 The request object. Request message for
18591859 `TestIamPermissions` method.
1860- retry (google.api_core.retry.Retry ): Designation of what errors,
1860+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
18611861 if any, should be retried.
18621862 timeout (float): The timeout for this request.
18631863 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1875,7 +1875,7 @@ async def test_iam_permissions(
18751875
18761876 # Wrap the RPC method; this adds retry and timeout information,
18771877 # and friendly error handling.
1878- rpc = gapic_v1 .method .wrap_method (
1878+ rpc = gapic_v1 .method_async .wrap_method (
18791879 self ._client ._transport .test_iam_permissions ,
18801880 default_timeout = None ,
18811881 client_info = DEFAULT_CLIENT_INFO ,
@@ -1912,7 +1912,7 @@ async def get_location(
19121912 request (:class:`~.location_pb2.GetLocationRequest`):
19131913 The request object. Request message for
19141914 `GetLocation` method.
1915- retry (google.api_core.retry.Retry ): Designation of what errors,
1915+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
19161916 if any, should be retried.
19171917 timeout (float): The timeout for this request.
19181918 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1929,7 +1929,7 @@ async def get_location(
19291929
19301930 # Wrap the RPC method; this adds retry and timeout information,
19311931 # and friendly error handling.
1932- rpc = gapic_v1 .method .wrap_method (
1932+ rpc = gapic_v1 .method_async .wrap_method (
19331933 self ._client ._transport .get_location ,
19341934 default_timeout = None ,
19351935 client_info = DEFAULT_CLIENT_INFO ,
@@ -1966,7 +1966,7 @@ async def list_locations(
19661966 request (:class:`~.location_pb2.ListLocationsRequest`):
19671967 The request object. Request message for
19681968 `ListLocations` method.
1969- retry (google.api_core.retry.Retry ): Designation of what errors,
1969+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
19701970 if any, should be retried.
19711971 timeout (float): The timeout for this request.
19721972 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1983,7 +1983,7 @@ async def list_locations(
19831983
19841984 # Wrap the RPC method; this adds retry and timeout information,
19851985 # and friendly error handling.
1986- rpc = gapic_v1 .method .wrap_method (
1986+ rpc = gapic_v1 .method_async .wrap_method (
19871987 self ._client ._transport .list_locations ,
19881988 default_timeout = None ,
19891989 client_info = DEFAULT_CLIENT_INFO ,
0 commit comments