google-cloud-pubsub 2.18.3__tar.gz → 2.19.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google-cloud-pubsub-2.18.3/google_cloud_pubsub.egg-info → google-cloud-pubsub-2.19.0}/PKG-INFO +11 -2
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/_batch/thread.py +0 -1
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub/gapic_version.py +1 -1
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/gapic_version.py +1 -1
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/publisher/async_client.py +25 -26
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/publisher/client.py +1 -1
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/publisher/transports/grpc.py +1 -1
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/publisher/transports/grpc_asyncio.py +1 -1
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/publisher/transports/rest.py +0 -3
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/schema_service/async_client.py +27 -26
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/schema_service/client.py +1 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/schema_service/transports/rest.py +0 -3
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/subscriber/async_client.py +48 -48
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/subscriber/client.py +10 -10
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/subscriber/transports/grpc.py +9 -9
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/subscriber/transports/grpc_asyncio.py +9 -9
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/subscriber/transports/rest.py +0 -3
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/types/pubsub.py +21 -11
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0/google_cloud_pubsub.egg-info}/PKG-INFO +11 -2
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google_cloud_pubsub.egg-info/SOURCES.txt +1 -3
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/setup.py +2 -6
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/gapic/pubsub_v1/test_publisher.py +69 -46
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/gapic/pubsub_v1/test_schema_service.py +145 -59
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/gapic/pubsub_v1/test_subscriber.py +87 -62
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/publisher/test_flow_controller.py +5 -3
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/publisher/test_publisher_client.py +3 -4
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_dispatcher.py +2 -1
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_scheduler.py +4 -2
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_streaming_pull_manager.py +0 -1
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_subscriber_client.py +10 -7
- google-cloud-pubsub-2.19.0/tests/unit/test_packaging.py +37 -0
- google-cloud-pubsub-2.18.3/google/__init__.py +0 -24
- google-cloud-pubsub-2.18.3/google/cloud/__init__.py +0 -26
- google-cloud-pubsub-2.18.3/google_cloud_pubsub.egg-info/namespace_packages.txt +0 -2
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/LICENSE +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/MANIFEST.in +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/README.rst +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/exceptions.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/futures.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/proto/pubsub.proto +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/proto/schema.proto +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/_batch/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/_batch/base.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/_sequencer/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/_sequencer/base.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/_sequencer/ordered_sequencer.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/_sequencer/unordered_sequencer.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/client.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/exceptions.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/flow_controller.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/publisher/futures.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/_protocol/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/_protocol/dispatcher.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/_protocol/heartbeater.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/_protocol/helper_threads.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/_protocol/histogram.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/_protocol/leaser.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/_protocol/messages_on_hold.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/_protocol/requests.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/client.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/exceptions.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/futures.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/message.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/subscriber/scheduler.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/cloud/pubsub_v1/types.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub/py.typed +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/gapic_metadata.json +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/py.typed +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/publisher/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/publisher/pagers.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/publisher/transports/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/publisher/transports/base.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/schema_service/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/schema_service/pagers.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/schema_service/transports/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/schema_service/transports/base.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/schema_service/transports/grpc.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/schema_service/transports/grpc_asyncio.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/subscriber/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/subscriber/pagers.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/subscriber/transports/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/services/subscriber/transports/base.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/types/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google/pubsub_v1/types/schema.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google_cloud_pubsub.egg-info/dependency_links.txt +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google_cloud_pubsub.egg-info/not-zip-safe +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google_cloud_pubsub.egg-info/requires.txt +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/google_cloud_pubsub.egg-info/top_level.txt +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/scripts/fixup_pubsub_v1_keywords.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/setup.cfg +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/system.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/gapic/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/gapic/pubsub_v1/__init__.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/conftest.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/publisher/batch/test_base.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/publisher/batch/test_thread.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/publisher/sequencer/test_ordered_sequencer.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/publisher/sequencer/test_unordered_sequencer.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/publisher/test_futures_publisher.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_futures_subscriber.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_heartbeater.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_helper_threads.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_histogram.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_leaser.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_message.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/subscriber/test_messages_on_hold.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/pubsub_v1/test_futures.py +0 -0
- {google-cloud-pubsub-2.18.3 → google-cloud-pubsub-2.19.0}/tests/unit/test_pubsub.py +0 -0
{google-cloud-pubsub-2.18.3/google_cloud_pubsub.egg-info → google-cloud-pubsub-2.19.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-pubsub
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.19.0
|
|
4
4
|
Summary: Google Cloud Pub/Sub API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/python-pubsub
|
|
6
6
|
Author: Google LLC
|
|
@@ -17,11 +17,20 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
21
|
Classifier: Operating System :: OS Independent
|
|
21
22
|
Classifier: Topic :: Internet
|
|
22
23
|
Requires-Python: >=3.7
|
|
23
|
-
Provides-Extra: libcst
|
|
24
24
|
License-File: LICENSE
|
|
25
|
+
Requires-Dist: grpcio<2.0dev,>=1.51.3
|
|
26
|
+
Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0
|
|
27
|
+
Requires-Dist: proto-plus<2.0.0dev,>=1.22.0
|
|
28
|
+
Requires-Dist: proto-plus<2.0.0dev,>=1.22.2; python_version >= "3.11"
|
|
29
|
+
Requires-Dist: protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
|
|
30
|
+
Requires-Dist: grpc-google-iam-v1<1.0.0dev,>=0.12.4
|
|
31
|
+
Requires-Dist: grpcio-status>=1.33.2
|
|
32
|
+
Provides-Extra: libcst
|
|
33
|
+
Requires-Dist: libcst>=0.3.10; extra == "libcst"
|
|
25
34
|
|
|
26
35
|
Python Client for Google Cloud Pub / Sub
|
|
27
36
|
========================================
|
|
@@ -388,7 +388,6 @@ class Batch(base.Batch):
|
|
|
388
388
|
overflow = new_size > size_limit or new_count >= self.settings.max_messages
|
|
389
389
|
|
|
390
390
|
if not self._messages or not overflow:
|
|
391
|
-
|
|
392
391
|
# Store the actual message in the batch's message queue.
|
|
393
392
|
self._messages.append(message)
|
|
394
393
|
self._size = new_size
|
|
@@ -33,15 +33,14 @@ from google.pubsub_v1 import gapic_version as package_version
|
|
|
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
|
|
37
|
-
from google.api_core import timeout as timeouts # type: ignore
|
|
36
|
+
from google.api_core import retry_async as retries
|
|
38
37
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
39
38
|
from google.oauth2 import service_account # type: ignore
|
|
40
39
|
|
|
41
40
|
try:
|
|
42
|
-
OptionalRetry = Union[retries.
|
|
41
|
+
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault]
|
|
43
42
|
except AttributeError: # pragma: NO COVER
|
|
44
|
-
OptionalRetry = Union[retries.
|
|
43
|
+
OptionalRetry = Union[retries.AsyncRetry, object] # type: ignore
|
|
45
44
|
|
|
46
45
|
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
47
46
|
from google.iam.v1 import policy_pb2 # type: ignore
|
|
@@ -230,7 +229,7 @@ class PublisherAsyncClient:
|
|
|
230
229
|
) -> pubsub.Topic:
|
|
231
230
|
r"""Creates the given topic with the given name. See the [resource
|
|
232
231
|
name rules]
|
|
233
|
-
(https://cloud.google.com/pubsub/docs/
|
|
232
|
+
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
234
233
|
|
|
235
234
|
.. code-block:: python
|
|
236
235
|
|
|
@@ -274,7 +273,7 @@ class PublisherAsyncClient:
|
|
|
274
273
|
This corresponds to the ``name`` field
|
|
275
274
|
on the ``request`` instance; if ``request`` is provided, this
|
|
276
275
|
should not be set.
|
|
277
|
-
retry (google.api_core.
|
|
276
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
278
277
|
should be retried.
|
|
279
278
|
timeout (TimeoutType):
|
|
280
279
|
The timeout for this request.
|
|
@@ -306,7 +305,7 @@ class PublisherAsyncClient:
|
|
|
306
305
|
# and friendly error handling.
|
|
307
306
|
rpc = gapic_v1.method_async.wrap_method(
|
|
308
307
|
self._client._transport.create_topic,
|
|
309
|
-
default_retry=retries.
|
|
308
|
+
default_retry=retries.AsyncRetry(
|
|
310
309
|
initial=0.1,
|
|
311
310
|
maximum=60.0,
|
|
312
311
|
multiplier=1.3,
|
|
@@ -398,7 +397,7 @@ class PublisherAsyncClient:
|
|
|
398
397
|
This corresponds to the ``update_mask`` field
|
|
399
398
|
on the ``request`` instance; if ``request`` is provided, this
|
|
400
399
|
should not be set.
|
|
401
|
-
retry (google.api_core.
|
|
400
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
402
401
|
should be retried.
|
|
403
402
|
timeout (TimeoutType):
|
|
404
403
|
The timeout for this request.
|
|
@@ -432,7 +431,7 @@ class PublisherAsyncClient:
|
|
|
432
431
|
# and friendly error handling.
|
|
433
432
|
rpc = gapic_v1.method_async.wrap_method(
|
|
434
433
|
self._client._transport.update_topic,
|
|
435
|
-
default_retry=retries.
|
|
434
|
+
default_retry=retries.AsyncRetry(
|
|
436
435
|
initial=0.1,
|
|
437
436
|
maximum=60.0,
|
|
438
437
|
multiplier=1.3,
|
|
@@ -519,7 +518,7 @@ class PublisherAsyncClient:
|
|
|
519
518
|
This corresponds to the ``messages`` field
|
|
520
519
|
on the ``request`` instance; if ``request`` is provided, this
|
|
521
520
|
should not be set.
|
|
522
|
-
retry (google.api_core.
|
|
521
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
523
522
|
should be retried.
|
|
524
523
|
timeout (TimeoutType):
|
|
525
524
|
The timeout for this request.
|
|
@@ -553,7 +552,7 @@ class PublisherAsyncClient:
|
|
|
553
552
|
# and friendly error handling.
|
|
554
553
|
rpc = gapic_v1.method_async.wrap_method(
|
|
555
554
|
self._client._transport.publish,
|
|
556
|
-
default_retry=retries.
|
|
555
|
+
default_retry=retries.AsyncRetry(
|
|
557
556
|
initial=0.1,
|
|
558
557
|
maximum=60.0,
|
|
559
558
|
multiplier=4.0,
|
|
@@ -636,7 +635,7 @@ class PublisherAsyncClient:
|
|
|
636
635
|
This corresponds to the ``topic`` field
|
|
637
636
|
on the ``request`` instance; if ``request`` is provided, this
|
|
638
637
|
should not be set.
|
|
639
|
-
retry (google.api_core.
|
|
638
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
640
639
|
should be retried.
|
|
641
640
|
timeout (TimeoutType):
|
|
642
641
|
The timeout for this request.
|
|
@@ -668,7 +667,7 @@ class PublisherAsyncClient:
|
|
|
668
667
|
# and friendly error handling.
|
|
669
668
|
rpc = gapic_v1.method_async.wrap_method(
|
|
670
669
|
self._client._transport.get_topic,
|
|
671
|
-
default_retry=retries.
|
|
670
|
+
default_retry=retries.AsyncRetry(
|
|
672
671
|
initial=0.1,
|
|
673
672
|
maximum=60.0,
|
|
674
673
|
multiplier=1.3,
|
|
@@ -748,7 +747,7 @@ class PublisherAsyncClient:
|
|
|
748
747
|
This corresponds to the ``project`` field
|
|
749
748
|
on the ``request`` instance; if ``request`` is provided, this
|
|
750
749
|
should not be set.
|
|
751
|
-
retry (google.api_core.
|
|
750
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
752
751
|
should be retried.
|
|
753
752
|
timeout (TimeoutType):
|
|
754
753
|
The timeout for this request.
|
|
@@ -784,7 +783,7 @@ class PublisherAsyncClient:
|
|
|
784
783
|
# and friendly error handling.
|
|
785
784
|
rpc = gapic_v1.method_async.wrap_method(
|
|
786
785
|
self._client._transport.list_topics,
|
|
787
|
-
default_retry=retries.
|
|
786
|
+
default_retry=retries.AsyncRetry(
|
|
788
787
|
initial=0.1,
|
|
789
788
|
maximum=60.0,
|
|
790
789
|
multiplier=1.3,
|
|
@@ -875,7 +874,7 @@ class PublisherAsyncClient:
|
|
|
875
874
|
This corresponds to the ``topic`` field
|
|
876
875
|
on the ``request`` instance; if ``request`` is provided, this
|
|
877
876
|
should not be set.
|
|
878
|
-
retry (google.api_core.
|
|
877
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
879
878
|
should be retried.
|
|
880
879
|
timeout (TimeoutType):
|
|
881
880
|
The timeout for this request.
|
|
@@ -911,7 +910,7 @@ class PublisherAsyncClient:
|
|
|
911
910
|
# and friendly error handling.
|
|
912
911
|
rpc = gapic_v1.method_async.wrap_method(
|
|
913
912
|
self._client._transport.list_topic_subscriptions,
|
|
914
|
-
default_retry=retries.
|
|
913
|
+
default_retry=retries.AsyncRetry(
|
|
915
914
|
initial=0.1,
|
|
916
915
|
maximum=60.0,
|
|
917
916
|
multiplier=1.3,
|
|
@@ -1006,7 +1005,7 @@ class PublisherAsyncClient:
|
|
|
1006
1005
|
This corresponds to the ``topic`` field
|
|
1007
1006
|
on the ``request`` instance; if ``request`` is provided, this
|
|
1008
1007
|
should not be set.
|
|
1009
|
-
retry (google.api_core.
|
|
1008
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1010
1009
|
should be retried.
|
|
1011
1010
|
timeout (TimeoutType):
|
|
1012
1011
|
The timeout for this request.
|
|
@@ -1042,7 +1041,7 @@ class PublisherAsyncClient:
|
|
|
1042
1041
|
# and friendly error handling.
|
|
1043
1042
|
rpc = gapic_v1.method_async.wrap_method(
|
|
1044
1043
|
self._client._transport.list_topic_snapshots,
|
|
1045
|
-
default_retry=retries.
|
|
1044
|
+
default_retry=retries.AsyncRetry(
|
|
1046
1045
|
initial=0.1,
|
|
1047
1046
|
maximum=60.0,
|
|
1048
1047
|
multiplier=1.3,
|
|
@@ -1132,7 +1131,7 @@ class PublisherAsyncClient:
|
|
|
1132
1131
|
This corresponds to the ``topic`` field
|
|
1133
1132
|
on the ``request`` instance; if ``request`` is provided, this
|
|
1134
1133
|
should not be set.
|
|
1135
|
-
retry (google.api_core.
|
|
1134
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1136
1135
|
should be retried.
|
|
1137
1136
|
timeout (TimeoutType):
|
|
1138
1137
|
The timeout for this request.
|
|
@@ -1160,7 +1159,7 @@ class PublisherAsyncClient:
|
|
|
1160
1159
|
# and friendly error handling.
|
|
1161
1160
|
rpc = gapic_v1.method_async.wrap_method(
|
|
1162
1161
|
self._client._transport.delete_topic,
|
|
1163
|
-
default_retry=retries.
|
|
1162
|
+
default_retry=retries.AsyncRetry(
|
|
1164
1163
|
initial=0.1,
|
|
1165
1164
|
maximum=60.0,
|
|
1166
1165
|
multiplier=1.3,
|
|
@@ -1231,7 +1230,7 @@ class PublisherAsyncClient:
|
|
|
1231
1230
|
request (Optional[Union[google.pubsub_v1.types.DetachSubscriptionRequest, dict]]):
|
|
1232
1231
|
The request object. Request for the DetachSubscription
|
|
1233
1232
|
method.
|
|
1234
|
-
retry (google.api_core.
|
|
1233
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1235
1234
|
should be retried.
|
|
1236
1235
|
timeout (TimeoutType):
|
|
1237
1236
|
The timeout for this request.
|
|
@@ -1251,7 +1250,7 @@ class PublisherAsyncClient:
|
|
|
1251
1250
|
# and friendly error handling.
|
|
1252
1251
|
rpc = gapic_v1.method_async.wrap_method(
|
|
1253
1252
|
self._client._transport.detach_subscription,
|
|
1254
|
-
default_retry=retries.
|
|
1253
|
+
default_retry=retries.AsyncRetry(
|
|
1255
1254
|
initial=0.1,
|
|
1256
1255
|
maximum=60.0,
|
|
1257
1256
|
multiplier=1.3,
|
|
@@ -1299,7 +1298,7 @@ class PublisherAsyncClient:
|
|
|
1299
1298
|
request (:class:`~.policy_pb2.SetIamPolicyRequest`):
|
|
1300
1299
|
The request object. Request message for `SetIamPolicy`
|
|
1301
1300
|
method.
|
|
1302
|
-
retry (google.api_core.
|
|
1301
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1303
1302
|
should be retried.
|
|
1304
1303
|
timeout (TimeoutType):
|
|
1305
1304
|
The timeout for this request.
|
|
@@ -1420,7 +1419,7 @@ class PublisherAsyncClient:
|
|
|
1420
1419
|
request (:class:`~.iam_policy_pb2.GetIamPolicyRequest`):
|
|
1421
1420
|
The request object. Request message for `GetIamPolicy`
|
|
1422
1421
|
method.
|
|
1423
|
-
retry (google.api_core.
|
|
1422
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1424
1423
|
should be retried.
|
|
1425
1424
|
timeout (TimeoutType):
|
|
1426
1425
|
The timeout for this request.
|
|
@@ -1543,7 +1542,7 @@ class PublisherAsyncClient:
|
|
|
1543
1542
|
request (:class:`~.iam_policy_pb2.TestIamPermissionsRequest`):
|
|
1544
1543
|
The request object. Request message for
|
|
1545
1544
|
`TestIamPermissions` method.
|
|
1546
|
-
retry (google.api_core.
|
|
1545
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1547
1546
|
should be retried.
|
|
1548
1547
|
timeout (TimeoutType):
|
|
1549
1548
|
The timeout for this request.
|
|
@@ -512,7 +512,7 @@ class PublisherClient(metaclass=PublisherClientMeta):
|
|
|
512
512
|
) -> pubsub.Topic:
|
|
513
513
|
r"""Creates the given topic with the given name. See the [resource
|
|
514
514
|
name rules]
|
|
515
|
-
(https://cloud.google.com/pubsub/docs/
|
|
515
|
+
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
516
516
|
|
|
517
517
|
.. code-block:: python
|
|
518
518
|
|
|
@@ -241,7 +241,7 @@ class PublisherGrpcTransport(PublisherTransport):
|
|
|
241
241
|
|
|
242
242
|
Creates the given topic with the given name. See the [resource
|
|
243
243
|
name rules]
|
|
244
|
-
(https://cloud.google.com/pubsub/docs/
|
|
244
|
+
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
245
245
|
|
|
246
246
|
Returns:
|
|
247
247
|
Callable[[~.Topic],
|
|
@@ -244,7 +244,7 @@ class PublisherGrpcAsyncIOTransport(PublisherTransport):
|
|
|
244
244
|
|
|
245
245
|
Creates the given topic with the given name. See the [resource
|
|
246
246
|
name rules]
|
|
247
|
-
(https://cloud.google.com/pubsub/docs/
|
|
247
|
+
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
248
248
|
|
|
249
249
|
Returns:
|
|
250
250
|
Callable[[~.Topic],
|
|
@@ -1363,7 +1363,6 @@ class PublisherRestTransport(PublisherTransport):
|
|
|
1363
1363
|
timeout: Optional[float] = None,
|
|
1364
1364
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1365
1365
|
) -> policy_pb2.Policy:
|
|
1366
|
-
|
|
1367
1366
|
r"""Call the get iam policy method over HTTP.
|
|
1368
1367
|
|
|
1369
1368
|
Args:
|
|
@@ -1442,7 +1441,6 @@ class PublisherRestTransport(PublisherTransport):
|
|
|
1442
1441
|
timeout: Optional[float] = None,
|
|
1443
1442
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1444
1443
|
) -> policy_pb2.Policy:
|
|
1445
|
-
|
|
1446
1444
|
r"""Call the set iam policy method over HTTP.
|
|
1447
1445
|
|
|
1448
1446
|
Args:
|
|
@@ -1527,7 +1525,6 @@ class PublisherRestTransport(PublisherTransport):
|
|
|
1527
1525
|
timeout: Optional[float] = None,
|
|
1528
1526
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1529
1527
|
) -> iam_policy_pb2.TestIamPermissionsResponse:
|
|
1530
|
-
|
|
1531
1528
|
r"""Call the test iam permissions method over HTTP.
|
|
1532
1529
|
|
|
1533
1530
|
Args:
|
|
@@ -33,14 +33,14 @@ from google.pubsub_v1 import gapic_version as package_version
|
|
|
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
|
|
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.
|
|
41
|
+
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault]
|
|
42
42
|
except AttributeError: # pragma: NO COVER
|
|
43
|
-
OptionalRetry = Union[retries.
|
|
43
|
+
OptionalRetry = Union[retries.AsyncRetry, object] # type: ignore
|
|
44
44
|
|
|
45
45
|
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
46
46
|
from google.iam.v1 import policy_pb2 # type: ignore
|
|
@@ -291,7 +291,7 @@ class SchemaServiceAsyncClient:
|
|
|
291
291
|
This corresponds to the ``schema_id`` field
|
|
292
292
|
on the ``request`` instance; if ``request`` is provided, this
|
|
293
293
|
should not be set.
|
|
294
|
-
retry (google.api_core.
|
|
294
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
295
295
|
should be retried.
|
|
296
296
|
timeout (float): The timeout for this request.
|
|
297
297
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -326,7 +326,7 @@ class SchemaServiceAsyncClient:
|
|
|
326
326
|
# and friendly error handling.
|
|
327
327
|
rpc = gapic_v1.method_async.wrap_method(
|
|
328
328
|
self._client._transport.create_schema,
|
|
329
|
-
default_retry=retries.
|
|
329
|
+
default_retry=retries.AsyncRetry(
|
|
330
330
|
initial=0.1,
|
|
331
331
|
maximum=60.0,
|
|
332
332
|
multiplier=1.3,
|
|
@@ -403,7 +403,7 @@ class SchemaServiceAsyncClient:
|
|
|
403
403
|
This corresponds to the ``name`` field
|
|
404
404
|
on the ``request`` instance; if ``request`` is provided, this
|
|
405
405
|
should not be set.
|
|
406
|
-
retry (google.api_core.
|
|
406
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
407
407
|
should be retried.
|
|
408
408
|
timeout (float): The timeout for this request.
|
|
409
409
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -434,7 +434,7 @@ class SchemaServiceAsyncClient:
|
|
|
434
434
|
# and friendly error handling.
|
|
435
435
|
rpc = gapic_v1.method_async.wrap_method(
|
|
436
436
|
self._client._transport.get_schema,
|
|
437
|
-
default_retry=retries.
|
|
437
|
+
default_retry=retries.AsyncRetry(
|
|
438
438
|
initial=0.1,
|
|
439
439
|
maximum=60.0,
|
|
440
440
|
multiplier=1.3,
|
|
@@ -512,7 +512,7 @@ class SchemaServiceAsyncClient:
|
|
|
512
512
|
This corresponds to the ``parent`` field
|
|
513
513
|
on the ``request`` instance; if ``request`` is provided, this
|
|
514
514
|
should not be set.
|
|
515
|
-
retry (google.api_core.
|
|
515
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
516
516
|
should be retried.
|
|
517
517
|
timeout (float): The timeout for this request.
|
|
518
518
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -547,7 +547,7 @@ class SchemaServiceAsyncClient:
|
|
|
547
547
|
# and friendly error handling.
|
|
548
548
|
rpc = gapic_v1.method_async.wrap_method(
|
|
549
549
|
self._client._transport.list_schemas,
|
|
550
|
-
default_retry=retries.
|
|
550
|
+
default_retry=retries.AsyncRetry(
|
|
551
551
|
initial=0.1,
|
|
552
552
|
maximum=60.0,
|
|
553
553
|
multiplier=1.3,
|
|
@@ -634,7 +634,7 @@ class SchemaServiceAsyncClient:
|
|
|
634
634
|
This corresponds to the ``name`` field
|
|
635
635
|
on the ``request`` instance; if ``request`` is provided, this
|
|
636
636
|
should not be set.
|
|
637
|
-
retry (google.api_core.
|
|
637
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
638
638
|
should be retried.
|
|
639
639
|
timeout (float): The timeout for this request.
|
|
640
640
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -669,7 +669,7 @@ class SchemaServiceAsyncClient:
|
|
|
669
669
|
# and friendly error handling.
|
|
670
670
|
rpc = gapic_v1.method_async.wrap_method(
|
|
671
671
|
self._client._transport.list_schema_revisions,
|
|
672
|
-
default_retry=retries.
|
|
672
|
+
default_retry=retries.AsyncRetry(
|
|
673
673
|
initial=0.1,
|
|
674
674
|
maximum=60.0,
|
|
675
675
|
multiplier=1.3,
|
|
@@ -767,7 +767,7 @@ class SchemaServiceAsyncClient:
|
|
|
767
767
|
This corresponds to the ``schema`` field
|
|
768
768
|
on the ``request`` instance; if ``request`` is provided, this
|
|
769
769
|
should not be set.
|
|
770
|
-
retry (google.api_core.
|
|
770
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
771
771
|
should be retried.
|
|
772
772
|
timeout (float): The timeout for this request.
|
|
773
773
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -800,7 +800,7 @@ class SchemaServiceAsyncClient:
|
|
|
800
800
|
# and friendly error handling.
|
|
801
801
|
rpc = gapic_v1.method_async.wrap_method(
|
|
802
802
|
self._client._transport.commit_schema,
|
|
803
|
-
default_retry=retries.
|
|
803
|
+
default_retry=retries.AsyncRetry(
|
|
804
804
|
initial=0.1,
|
|
805
805
|
maximum=60.0,
|
|
806
806
|
multiplier=1.3,
|
|
@@ -884,12 +884,13 @@ class SchemaServiceAsyncClient:
|
|
|
884
884
|
Required. The revision ID to roll
|
|
885
885
|
back to. It must be a revision of the
|
|
886
886
|
same schema.
|
|
887
|
+
|
|
887
888
|
Example: c7cfa2a8
|
|
888
889
|
|
|
889
890
|
This corresponds to the ``revision_id`` field
|
|
890
891
|
on the ``request`` instance; if ``request`` is provided, this
|
|
891
892
|
should not be set.
|
|
892
|
-
retry (google.api_core.
|
|
893
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
893
894
|
should be retried.
|
|
894
895
|
timeout (float): The timeout for this request.
|
|
895
896
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -922,7 +923,7 @@ class SchemaServiceAsyncClient:
|
|
|
922
923
|
# and friendly error handling.
|
|
923
924
|
rpc = gapic_v1.method_async.wrap_method(
|
|
924
925
|
self._client._transport.rollback_schema,
|
|
925
|
-
default_retry=retries.
|
|
926
|
+
default_retry=retries.AsyncRetry(
|
|
926
927
|
initial=0.1,
|
|
927
928
|
maximum=60.0,
|
|
928
929
|
multiplier=1.3,
|
|
@@ -1010,7 +1011,7 @@ class SchemaServiceAsyncClient:
|
|
|
1010
1011
|
This corresponds to the ``revision_id`` field
|
|
1011
1012
|
on the ``request`` instance; if ``request`` is provided, this
|
|
1012
1013
|
should not be set.
|
|
1013
|
-
retry (google.api_core.
|
|
1014
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1014
1015
|
should be retried.
|
|
1015
1016
|
timeout (float): The timeout for this request.
|
|
1016
1017
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1043,7 +1044,7 @@ class SchemaServiceAsyncClient:
|
|
|
1043
1044
|
# and friendly error handling.
|
|
1044
1045
|
rpc = gapic_v1.method_async.wrap_method(
|
|
1045
1046
|
self._client._transport.delete_schema_revision,
|
|
1046
|
-
default_retry=retries.
|
|
1047
|
+
default_retry=retries.AsyncRetry(
|
|
1047
1048
|
initial=0.1,
|
|
1048
1049
|
maximum=60.0,
|
|
1049
1050
|
multiplier=1.3,
|
|
@@ -1117,7 +1118,7 @@ class SchemaServiceAsyncClient:
|
|
|
1117
1118
|
This corresponds to the ``name`` field
|
|
1118
1119
|
on the ``request`` instance; if ``request`` is provided, this
|
|
1119
1120
|
should not be set.
|
|
1120
|
-
retry (google.api_core.
|
|
1121
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1121
1122
|
should be retried.
|
|
1122
1123
|
timeout (float): The timeout for this request.
|
|
1123
1124
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1144,7 +1145,7 @@ class SchemaServiceAsyncClient:
|
|
|
1144
1145
|
# and friendly error handling.
|
|
1145
1146
|
rpc = gapic_v1.method_async.wrap_method(
|
|
1146
1147
|
self._client._transport.delete_schema,
|
|
1147
|
-
default_retry=retries.
|
|
1148
|
+
default_retry=retries.AsyncRetry(
|
|
1148
1149
|
initial=0.1,
|
|
1149
1150
|
maximum=60.0,
|
|
1150
1151
|
multiplier=1.3,
|
|
@@ -1230,7 +1231,7 @@ class SchemaServiceAsyncClient:
|
|
|
1230
1231
|
This corresponds to the ``schema`` field
|
|
1231
1232
|
on the ``request`` instance; if ``request`` is provided, this
|
|
1232
1233
|
should not be set.
|
|
1233
|
-
retry (google.api_core.
|
|
1234
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1234
1235
|
should be retried.
|
|
1235
1236
|
timeout (float): The timeout for this request.
|
|
1236
1237
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1265,7 +1266,7 @@ class SchemaServiceAsyncClient:
|
|
|
1265
1266
|
# and friendly error handling.
|
|
1266
1267
|
rpc = gapic_v1.method_async.wrap_method(
|
|
1267
1268
|
self._client._transport.validate_schema,
|
|
1268
|
-
default_retry=retries.
|
|
1269
|
+
default_retry=retries.AsyncRetry(
|
|
1269
1270
|
initial=0.1,
|
|
1270
1271
|
maximum=60.0,
|
|
1271
1272
|
multiplier=1.3,
|
|
@@ -1335,7 +1336,7 @@ class SchemaServiceAsyncClient:
|
|
|
1335
1336
|
Args:
|
|
1336
1337
|
request (Optional[Union[google.pubsub_v1.types.ValidateMessageRequest, dict]]):
|
|
1337
1338
|
The request object. Request for the ``ValidateMessage`` method.
|
|
1338
|
-
retry (google.api_core.
|
|
1339
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1339
1340
|
should be retried.
|
|
1340
1341
|
timeout (float): The timeout for this request.
|
|
1341
1342
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1354,7 +1355,7 @@ class SchemaServiceAsyncClient:
|
|
|
1354
1355
|
# and friendly error handling.
|
|
1355
1356
|
rpc = gapic_v1.method_async.wrap_method(
|
|
1356
1357
|
self._client._transport.validate_message,
|
|
1357
|
-
default_retry=retries.
|
|
1358
|
+
default_retry=retries.AsyncRetry(
|
|
1358
1359
|
initial=0.1,
|
|
1359
1360
|
maximum=60.0,
|
|
1360
1361
|
multiplier=1.3,
|
|
@@ -1400,7 +1401,7 @@ class SchemaServiceAsyncClient:
|
|
|
1400
1401
|
request (:class:`~.policy_pb2.SetIamPolicyRequest`):
|
|
1401
1402
|
The request object. Request message for `SetIamPolicy`
|
|
1402
1403
|
method.
|
|
1403
|
-
retry (google.api_core.
|
|
1404
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1404
1405
|
should be retried.
|
|
1405
1406
|
timeout (float): The timeout for this request.
|
|
1406
1407
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1520,7 +1521,7 @@ class SchemaServiceAsyncClient:
|
|
|
1520
1521
|
request (:class:`~.iam_policy_pb2.GetIamPolicyRequest`):
|
|
1521
1522
|
The request object. Request message for `GetIamPolicy`
|
|
1522
1523
|
method.
|
|
1523
|
-
retry (google.api_core.
|
|
1524
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1524
1525
|
should be retried.
|
|
1525
1526
|
timeout (float): The timeout for this request.
|
|
1526
1527
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1642,7 +1643,7 @@ class SchemaServiceAsyncClient:
|
|
|
1642
1643
|
request (:class:`~.iam_policy_pb2.TestIamPermissionsRequest`):
|
|
1643
1644
|
The request object. Request message for
|
|
1644
1645
|
`TestIamPermissions` method.
|
|
1645
|
-
retry (google.api_core.
|
|
1646
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1646
1647
|
should be retried.
|
|
1647
1648
|
timeout (float): The timeout for this request.
|
|
1648
1649
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1514,7 +1514,6 @@ class SchemaServiceRestTransport(SchemaServiceTransport):
|
|
|
1514
1514
|
timeout: Optional[float] = None,
|
|
1515
1515
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1516
1516
|
) -> policy_pb2.Policy:
|
|
1517
|
-
|
|
1518
1517
|
r"""Call the get iam policy method over HTTP.
|
|
1519
1518
|
|
|
1520
1519
|
Args:
|
|
@@ -1593,7 +1592,6 @@ class SchemaServiceRestTransport(SchemaServiceTransport):
|
|
|
1593
1592
|
timeout: Optional[float] = None,
|
|
1594
1593
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1595
1594
|
) -> policy_pb2.Policy:
|
|
1596
|
-
|
|
1597
1595
|
r"""Call the set iam policy method over HTTP.
|
|
1598
1596
|
|
|
1599
1597
|
Args:
|
|
@@ -1678,7 +1676,6 @@ class SchemaServiceRestTransport(SchemaServiceTransport):
|
|
|
1678
1676
|
timeout: Optional[float] = None,
|
|
1679
1677
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1680
1678
|
) -> iam_policy_pb2.TestIamPermissionsResponse:
|
|
1681
|
-
|
|
1682
1679
|
r"""Call the test iam permissions method over HTTP.
|
|
1683
1680
|
|
|
1684
1681
|
Args:
|