3030
3131from google .api_core import exceptions as core_exceptions
3232from google .api_core import gapic_v1
33- from google .api_core import retry as retries
33+ from google .api_core import retry_async as retries
3434from google .api_core .client_options import ClientOptions
3535from google .auth import credentials as ga_credentials # type: ignore
3636from google .oauth2 import service_account # type: ignore
3737
3838from google .cloud .servicemanagement_v1 import gapic_version as package_version
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 import auth_pb2 # type: ignore
4646from google .api import backend_pb2 # type: ignore
@@ -308,7 +308,7 @@ async def sample_list_services():
308308 This corresponds to the ``consumer_id`` field
309309 on the ``request`` instance; if ``request`` is provided, this
310310 should not be set.
311- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
311+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
312312 should be retried.
313313 timeout (float): The timeout for this request.
314314 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -418,7 +418,7 @@ async def sample_get_service():
418418 This corresponds to the ``service_name`` field
419419 on the ``request`` instance; if ``request`` is provided, this
420420 should not be set.
421- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
421+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
422422 should be retried.
423423 timeout (float): The timeout for this request.
424424 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -537,7 +537,7 @@ async def sample_create_service():
537537 This corresponds to the ``service`` field
538538 on the ``request`` instance; if ``request`` is provided, this
539539 should not be set.
540- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
540+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
541541 should be retried.
542542 timeout (float): The timeout for this request.
543543 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -656,7 +656,7 @@ async def sample_delete_service():
656656 This corresponds to the ``service_name`` field
657657 on the ``request`` instance; if ``request`` is provided, this
658658 should not be set.
659- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
659+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
660660 should be retried.
661661 timeout (float): The timeout for this request.
662662 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -790,7 +790,7 @@ async def sample_undelete_service():
790790 This corresponds to the ``service_name`` field
791791 on the ``request`` instance; if ``request`` is provided, this
792792 should not be set.
793- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
793+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
794794 should be retried.
795795 timeout (float): The timeout for this request.
796796 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -909,7 +909,7 @@ async def sample_list_service_configs():
909909 This corresponds to the ``service_name`` field
910910 on the ``request`` instance; if ``request`` is provided, this
911911 should not be set.
912- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
912+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
913913 should be retried.
914914 timeout (float): The timeout for this request.
915915 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1048,7 +1048,7 @@ async def sample_get_service_config():
10481048 This corresponds to the ``view`` field
10491049 on the ``request`` instance; if ``request`` is provided, this
10501050 should not be set.
1051- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1051+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
10521052 should be retried.
10531053 timeout (float): The timeout for this request.
10541054 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1206,7 +1206,7 @@ async def sample_create_service_config():
12061206 This corresponds to the ``service_config`` field
12071207 on the ``request`` instance; if ``request`` is provided, this
12081208 should not be set.
1209- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1209+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
12101210 should be retried.
12111211 timeout (float): The timeout for this request.
12121212 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1375,7 +1375,7 @@ async def sample_submit_config_source():
13751375 This corresponds to the ``validate_only`` field
13761376 on the ``request`` instance; if ``request`` is provided, this
13771377 should not be set.
1378- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1378+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
13791379 should be retried.
13801380 timeout (float): The timeout for this request.
13811381 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1518,7 +1518,7 @@ async def sample_list_service_rollouts():
15181518 This corresponds to the ``filter`` field
15191519 on the ``request`` instance; if ``request`` is provided, this
15201520 should not be set.
1521- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1521+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
15221522 should be retried.
15231523 timeout (float): The timeout for this request.
15241524 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1648,7 +1648,7 @@ async def sample_get_service_rollout():
16481648 This corresponds to the ``rollout_id`` field
16491649 on the ``request`` instance; if ``request`` is provided, this
16501650 should not be set.
1651- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1651+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
16521652 should be retried.
16531653 timeout (float): The timeout for this request.
16541654 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1793,7 +1793,7 @@ async def sample_create_service_rollout():
17931793 This corresponds to the ``rollout`` field
17941794 on the ``request`` instance; if ``request`` is provided, this
17951795 should not be set.
1796- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1796+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
17971797 should be retried.
17981798 timeout (float): The timeout for this request.
17991799 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1939,7 +1939,7 @@ async def sample_generate_config_report():
19391939 This corresponds to the ``old_config`` field
19401940 on the ``request`` instance; if ``request`` is provided, this
19411941 should not be set.
1942- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
1942+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
19431943 should be retried.
19441944 timeout (float): The timeout for this request.
19451945 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -2003,7 +2003,7 @@ async def list_operations(
20032003 request (:class:`~.operations_pb2.ListOperationsRequest`):
20042004 The request object. Request message for
20052005 `ListOperations` method.
2006- retry (google.api_core.retry.Retry ): Designation of what errors,
2006+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
20072007 if any, should be retried.
20082008 timeout (float): The timeout for this request.
20092009 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -2020,7 +2020,7 @@ async def list_operations(
20202020
20212021 # Wrap the RPC method; this adds retry and timeout information,
20222022 # and friendly error handling.
2023- rpc = gapic_v1 .method .wrap_method (
2023+ rpc = gapic_v1 .method_async .wrap_method (
20242024 self ._client ._transport .list_operations ,
20252025 default_timeout = None ,
20262026 client_info = DEFAULT_CLIENT_INFO ,
@@ -2059,7 +2059,7 @@ async def set_iam_policy(
20592059 request (:class:`~.iam_policy_pb2.SetIamPolicyRequest`):
20602060 The request object. Request message for `SetIamPolicy`
20612061 method.
2062- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
2062+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
20632063 should be retried.
20642064 timeout (float): The timeout for this request.
20652065 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -2140,7 +2140,7 @@ async def set_iam_policy(
21402140
21412141 # Wrap the RPC method; this adds retry and timeout information,
21422142 # and friendly error handling.
2143- rpc = gapic_v1 .method .wrap_method (
2143+ rpc = gapic_v1 .method_async .wrap_method (
21442144 self ._client ._transport .set_iam_policy ,
21452145 default_timeout = None ,
21462146 client_info = DEFAULT_CLIENT_INFO ,
@@ -2180,7 +2180,7 @@ async def get_iam_policy(
21802180 request (:class:`~.iam_policy_pb2.GetIamPolicyRequest`):
21812181 The request object. Request message for `GetIamPolicy`
21822182 method.
2183- retry (google.api_core.retry.Retry ): Designation of what errors, if
2183+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if
21842184 any, should be retried.
21852185 timeout (float): The timeout for this request.
21862186 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -2261,7 +2261,7 @@ async def get_iam_policy(
22612261
22622262 # Wrap the RPC method; this adds retry and timeout information,
22632263 # and friendly error handling.
2264- rpc = gapic_v1 .method .wrap_method (
2264+ rpc = gapic_v1 .method_async .wrap_method (
22652265 self ._client ._transport .get_iam_policy ,
22662266 default_timeout = None ,
22672267 client_info = DEFAULT_CLIENT_INFO ,
@@ -2302,7 +2302,7 @@ async def test_iam_permissions(
23022302 request (:class:`~.iam_policy_pb2.TestIamPermissionsRequest`):
23032303 The request object. Request message for
23042304 `TestIamPermissions` method.
2305- retry (google.api_core.retry.Retry ): Designation of what errors,
2305+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors,
23062306 if any, should be retried.
23072307 timeout (float): The timeout for this request.
23082308 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -2320,7 +2320,7 @@ async def test_iam_permissions(
23202320
23212321 # Wrap the RPC method; this adds retry and timeout information,
23222322 # and friendly error handling.
2323- rpc = gapic_v1 .method .wrap_method (
2323+ rpc = gapic_v1 .method_async .wrap_method (
23242324 self ._client ._transport .test_iam_permissions ,
23252325 default_timeout = None ,
23262326 client_info = DEFAULT_CLIENT_INFO ,
0 commit comments