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 .oslogin_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 .protobuf import field_mask_pb2 # type: ignore
4646
@@ -283,7 +283,7 @@ async def sample_create_ssh_public_key():
283283 This corresponds to the ``ssh_public_key`` field
284284 on the ``request`` instance; if ``request`` is provided, this
285285 should not be set.
286- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
286+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
287287 should be retried.
288288 timeout (float): The timeout for this request.
289289 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -386,7 +386,7 @@ async def sample_delete_posix_account():
386386 This corresponds to the ``name`` field
387387 on the ``request`` instance; if ``request`` is provided, this
388388 should not be set.
389- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
389+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
390390 should be retried.
391391 timeout (float): The timeout for this request.
392392 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -413,7 +413,7 @@ async def sample_delete_posix_account():
413413 # and friendly error handling.
414414 rpc = gapic_v1 .method_async .wrap_method (
415415 self ._client ._transport .delete_posix_account ,
416- default_retry = retries .Retry (
416+ default_retry = retries .AsyncRetry (
417417 initial = 0.1 ,
418418 maximum = 60.0 ,
419419 multiplier = 1.3 ,
@@ -488,7 +488,7 @@ async def sample_delete_ssh_public_key():
488488 This corresponds to the ``name`` field
489489 on the ``request`` instance; if ``request`` is provided, this
490490 should not be set.
491- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
491+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
492492 should be retried.
493493 timeout (float): The timeout for this request.
494494 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -515,7 +515,7 @@ async def sample_delete_ssh_public_key():
515515 # and friendly error handling.
516516 rpc = gapic_v1 .method_async .wrap_method (
517517 self ._client ._transport .delete_ssh_public_key ,
518- default_retry = retries .Retry (
518+ default_retry = retries .AsyncRetry (
519519 initial = 0.1 ,
520520 maximum = 60.0 ,
521521 multiplier = 1.3 ,
@@ -592,7 +592,7 @@ async def sample_get_login_profile():
592592 This corresponds to the ``name`` field
593593 on the ``request`` instance; if ``request`` is provided, this
594594 should not be set.
595- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
595+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
596596 should be retried.
597597 timeout (float): The timeout for this request.
598598 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -626,7 +626,7 @@ async def sample_get_login_profile():
626626 # and friendly error handling.
627627 rpc = gapic_v1 .method_async .wrap_method (
628628 self ._client ._transport .get_login_profile ,
629- default_retry = retries .Retry (
629+ default_retry = retries .AsyncRetry (
630630 initial = 0.1 ,
631631 maximum = 60.0 ,
632632 multiplier = 1.3 ,
@@ -707,7 +707,7 @@ async def sample_get_ssh_public_key():
707707 This corresponds to the ``name`` field
708708 on the ``request`` instance; if ``request`` is provided, this
709709 should not be set.
710- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
710+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
711711 should be retried.
712712 timeout (float): The timeout for this request.
713713 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -740,7 +740,7 @@ async def sample_get_ssh_public_key():
740740 # and friendly error handling.
741741 rpc = gapic_v1 .method_async .wrap_method (
742742 self ._client ._transport .get_ssh_public_key ,
743- default_retry = retries .Retry (
743+ default_retry = retries .AsyncRetry (
744744 initial = 0.1 ,
745745 maximum = 60.0 ,
746746 multiplier = 1.3 ,
@@ -838,7 +838,7 @@ async def sample_import_ssh_public_key():
838838 This corresponds to the ``project_id`` field
839839 on the ``request`` instance; if ``request`` is provided, this
840840 should not be set.
841- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
841+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
842842 should be retried.
843843 timeout (float): The timeout for this request.
844844 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -875,7 +875,7 @@ async def sample_import_ssh_public_key():
875875 # and friendly error handling.
876876 rpc = gapic_v1 .method_async .wrap_method (
877877 self ._client ._transport .import_ssh_public_key ,
878- default_retry = retries .Retry (
878+ default_retry = retries .AsyncRetry (
879879 initial = 0.1 ,
880880 maximum = 60.0 ,
881881 multiplier = 1.3 ,
@@ -973,7 +973,7 @@ async def sample_update_ssh_public_key():
973973 This corresponds to the ``update_mask`` field
974974 on the ``request`` instance; if ``request`` is provided, this
975975 should not be set.
976- retry (google.api_core.retry.Retry ): Designation of what errors, if any,
976+ retry (google.api_core.retry_async.AsyncRetry ): Designation of what errors, if any,
977977 should be retried.
978978 timeout (float): The timeout for this request.
979979 metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1010,7 +1010,7 @@ async def sample_update_ssh_public_key():
10101010 # and friendly error handling.
10111011 rpc = gapic_v1 .method_async .wrap_method (
10121012 self ._client ._transport .update_ssh_public_key ,
1013- default_retry = retries .Retry (
1013+ default_retry = retries .AsyncRetry (
10141014 initial = 0.1 ,
10151015 maximum = 60.0 ,
10161016 multiplier = 1.3 ,
0 commit comments