You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pubsub/google/cloud/pubsub_v1/gapic/publisher_client.py
+4-5
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,7 @@ def create_topic(self,
214
214
underscores (``_``), periods (``.``), tildes (``~``), plus (``+``) or percent
215
215
signs (``%``). It must be between 3 and 255 characters in length, and it
216
216
must not start with ``\"goog\"``.
217
-
labels (dict[str -> str]): User labels.
217
+
labels (dict[str -> str]): See <a href=\"/pubsub/docs/labels\"> Creating and managing labels</a>.
218
218
message_storage_policy (Union[dict, ~google.cloud.pubsub_v1.types.MessageStoragePolicy]): Policy constraining how messages published to the topic may be stored. It
219
219
is determined when the topic is created based on the policy configured at
220
220
the project level. It must not be set by the caller in the request to
@@ -340,8 +340,7 @@ def publish(self,
340
340
metadata=None):
341
341
"""
342
342
Adds one or more messages to the topic. Returns ``NOT_FOUND`` if the topic
343
-
does not exist. The message payload must not be empty; it must contain
344
-
either a non-empty data field, or at least one attribute.
343
+
does not exist.
345
344
346
345
Example:
347
346
>>> from google.cloud import pubsub_v1
@@ -481,8 +480,8 @@ def list_topics(self,
481
480
... pass
482
481
483
482
Args:
484
-
project (str): The name of the cloud project that topics belong to.
485
-
Format is ``projects/{project}``.
483
+
project (str): The name of the project in which to list topics.
484
+
Format is ``projects/{project-id}``.
486
485
page_size (int): The maximum number of resources contained in the
487
486
underlying API response. If page streaming is performed per-
488
487
resource, this parameter does not affect the return value. If page
labels (dict[str -> str]): See <a href=\"/pubsub/docs/labels\"> Creating and managing labels</a>.
301
+
expiration_policy (Union[dict, ~google.cloud.pubsub_v1.types.ExpirationPolicy]): A policy that specifies the conditions for this subscription's expiration.
302
+
A subscription is considered active as long as any connected subscriber is
303
+
successfully consuming messages from the subscription or is issuing
304
+
operations on the subscription. If ``expiration_policy`` is not set, a
305
+
*default policy* with ``ttl`` of 31 days will be used. The minimum allowed
306
+
value for ``expiration_policy.ttl`` is 1 day.
307
+
<b>BETA:</b> This feature is part of a beta release. This API might be
308
+
changed in backward-incompatible ways and is not recommended for production
309
+
use. It is not subject to any SLA or deprecation policy.
310
+
If a dict is provided, it must be of the same form as the protobuf
0 commit comments