@@ -223,7 +223,7 @@ async def create_topic(
223223 * ,
224224 name : Optional [str ] = None ,
225225 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
226- timeout : Optional [ float ] = None ,
226+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
227227 metadata : Sequence [Tuple [str , str ]] = (),
228228 ) -> pubsub .Topic :
229229 r"""Creates the given topic with the given name. See the [resource
@@ -339,7 +339,7 @@ async def update_topic(
339339 request : Optional [Union [pubsub .UpdateTopicRequest , dict ]] = None ,
340340 * ,
341341 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
342- timeout : Optional [ float ] = None ,
342+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
343343 metadata : Sequence [Tuple [str , str ]] = (),
344344 ) -> pubsub .Topic :
345345 r"""Updates an existing topic. Note that certain
@@ -434,7 +434,7 @@ async def publish(
434434 topic : Optional [str ] = None ,
435435 messages : Optional [MutableSequence [pubsub .PubsubMessage ]] = None ,
436436 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
437- timeout : Optional [ float ] = None ,
437+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
438438 metadata : Sequence [Tuple [str , str ]] = (),
439439 ) -> pubsub .PublishResponse :
440440 r"""Adds one or more messages to the topic. Returns ``NOT_FOUND`` if
@@ -558,7 +558,7 @@ async def get_topic(
558558 * ,
559559 topic : Optional [str ] = None ,
560560 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
561- timeout : Optional [ float ] = None ,
561+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
562562 metadata : Sequence [Tuple [str , str ]] = (),
563563 ) -> pubsub .Topic :
564564 r"""Gets the configuration of a topic.
@@ -669,7 +669,7 @@ async def list_topics(
669669 * ,
670670 project : Optional [str ] = None ,
671671 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
672- timeout : Optional [ float ] = None ,
672+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
673673 metadata : Sequence [Tuple [str , str ]] = (),
674674 ) -> pagers .ListTopicsAsyncPager :
675675 r"""Lists matching topics.
@@ -794,7 +794,7 @@ async def list_topic_subscriptions(
794794 * ,
795795 topic : Optional [str ] = None ,
796796 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
797- timeout : Optional [ float ] = None ,
797+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
798798 metadata : Sequence [Tuple [str , str ]] = (),
799799 ) -> pagers .ListTopicSubscriptionsAsyncPager :
800800 r"""Lists the names of the attached subscriptions on this
@@ -922,7 +922,7 @@ async def list_topic_snapshots(
922922 * ,
923923 topic : Optional [str ] = None ,
924924 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
925- timeout : Optional [ float ] = None ,
925+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
926926 metadata : Sequence [Tuple [str , str ]] = (),
927927 ) -> pagers .ListTopicSnapshotsAsyncPager :
928928 r"""Lists the names of the snapshots on this topic. Snapshots are
@@ -1054,7 +1054,7 @@ async def delete_topic(
10541054 * ,
10551055 topic : Optional [str ] = None ,
10561056 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
1057- timeout : Optional [ float ] = None ,
1057+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
10581058 metadata : Sequence [Tuple [str , str ]] = (),
10591059 ) -> None :
10601060 r"""Deletes the topic with the given name. Returns ``NOT_FOUND`` if
@@ -1158,7 +1158,7 @@ async def detach_subscription(
11581158 request : Optional [Union [pubsub .DetachSubscriptionRequest , dict ]] = None ,
11591159 * ,
11601160 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
1161- timeout : Optional [ float ] = None ,
1161+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
11621162 metadata : Sequence [Tuple [str , str ]] = (),
11631163 ) -> pubsub .DetachSubscriptionResponse :
11641164 r"""Detaches a subscription from this topic. All messages retained
@@ -1254,7 +1254,7 @@ async def set_iam_policy(
12541254 request : Optional [iam_policy_pb2 .SetIamPolicyRequest ] = None ,
12551255 * ,
12561256 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
1257- timeout : Optional [ float ] = None ,
1257+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
12581258 metadata : Sequence [Tuple [str , str ]] = (),
12591259 ) -> policy_pb2 .Policy :
12601260 r"""Sets the IAM access control policy on the specified function.
@@ -1374,7 +1374,7 @@ async def get_iam_policy(
13741374 request : Optional [iam_policy_pb2 .GetIamPolicyRequest ] = None ,
13751375 * ,
13761376 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
1377- timeout : Optional [ float ] = None ,
1377+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
13781378 metadata : Sequence [Tuple [str , str ]] = (),
13791379 ) -> policy_pb2 .Policy :
13801380 r"""Gets the IAM access control policy for a function.
@@ -1496,7 +1496,7 @@ async def test_iam_permissions(
14961496 request : Optional [iam_policy_pb2 .TestIamPermissionsRequest ] = None ,
14971497 * ,
14981498 retry : OptionalRetry = gapic_v1 .method .DEFAULT ,
1499- timeout : Optional [ float ] = None ,
1499+ timeout : TimeoutType = gapic_v1 . method . DEFAULT ,
15001500 metadata : Sequence [Tuple [str , str ]] = (),
15011501 ) -> iam_policy_pb2 .TestIamPermissionsResponse :
15021502 r"""Tests the specified permissions against the IAM access control
0 commit comments