Update docs for 1.3.2 release.
diff --git a/docs/dyn/pubsub_v1beta1.subscriptions.html b/docs/dyn/pubsub_v1beta1.subscriptions.html
index b7a118a..3261e3a 100644
--- a/docs/dyn/pubsub_v1beta1.subscriptions.html
+++ b/docs/dyn/pubsub_v1beta1.subscriptions.html
@@ -72,7 +72,7 @@
</style>
-<h1><a href="pubsub_v1beta1.html">Cloud Pub/Sub API</a> . <a href="pubsub_v1beta1.subscriptions.html">subscriptions</a></h1>
+<h1><a href="pubsub_v1beta1.html">Google Cloud Pub/Sub API</a> . <a href="pubsub_v1beta1.subscriptions.html">subscriptions</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#acknowledge">acknowledge(body)</a></code></p>
@@ -97,10 +97,13 @@
<p class="firstline">Modifies the Ack deadline for a message received from a pull request.</p>
<p class="toc_element">
<code><a href="#modifyPushConfig">modifyPushConfig(body)</a></code></p>
-<p class="firstline">Modifies the PushConfig for a specified subscription. This method can be used to suspend the flow of messages to an end point by clearing the PushConfig field in the request. Messages will be accumulated for delivery even if no push configuration is defined or while the configuration is modified.</p>
+<p class="firstline">Modifies the PushConfig for a specified subscription. This method can be used to suspend the flow of messages to an endpoint by clearing the PushConfig field in the request. Messages will be accumulated for delivery even if no push configuration is defined or while the configuration is modified.</p>
<p class="toc_element">
<code><a href="#pull">pull(body)</a></code></p>
<p class="firstline">Pulls a single message from the server. If return_immediately is true, and no messages are available in the subscription, this method returns FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no messages are available in a reasonable amount of time (to reduce system load).</p>
+<p class="toc_element">
+ <code><a href="#pullBatch">pullBatch(body)</a></code></p>
+<p class="firstline">Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The system is free to return UNAVAILABLE if there are too many pull requests outstanding for the given subscription.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="acknowledge">acknowledge(body)</code>
@@ -110,8 +113,8 @@
body: object, The request body. (required)
The object takes the form of:
-{
- "ackId": [ # The Ack ID for the message being acknowledged. This was returned by the Pub/Sub system in the Pull response.
+{ # Request for the Acknowledge method.
+ "ackId": [ # The acknowledgment ID for the message being acknowledged. This was returned by the Pub/Sub system in the Pull response.
"A String",
],
"subscription": "A String", # The subscription whose message is being acknowledged.
@@ -124,6 +127,8 @@
<code class="details" id="create">create(body)</code>
<pre>Creates a subscription on a given topic for a given subscriber. If the subscription already exists, returns ALREADY_EXISTS. If the corresponding topic doesn't exist, returns NOT_FOUND.
+If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic.
+
Args:
body: object, The request body. (required)
The object takes the form of:
@@ -204,7 +209,7 @@
Returns:
An object of the form:
- {
+ { # Response for the ListSubscriptions method.
"nextPageToken": "A String", # If not empty, indicates that there are more subscriptions that match the request and this value should be passed to the next ListSubscriptionsRequest to continue.
"subscription": [ # The subscriptions that match the request.
{ # A subscription resource.
@@ -245,9 +250,9 @@
body: object, The request body. (required)
The object takes the form of:
-{
+{ # Request for the ModifyAckDeadline method.
"ackDeadlineSeconds": 42, # The new Ack deadline. Must be >= 0.
- "ackId": "A String", # The Ack ID.
+ "ackId": "A String", # The acknowledgment ID.
"subscription": "A String", # The name of the subscription from which messages are being pulled.
}
@@ -256,13 +261,13 @@
<div class="method">
<code class="details" id="modifyPushConfig">modifyPushConfig(body)</code>
- <pre>Modifies the PushConfig for a specified subscription. This method can be used to suspend the flow of messages to an end point by clearing the PushConfig field in the request. Messages will be accumulated for delivery even if no push configuration is defined or while the configuration is modified.
+ <pre>Modifies the PushConfig for a specified subscription. This method can be used to suspend the flow of messages to an endpoint by clearing the PushConfig field in the request. Messages will be accumulated for delivery even if no push configuration is defined or while the configuration is modified.
Args:
body: object, The request body. (required)
The object takes the form of:
-{
+{ # Request for the ModifyPushConfig method.
"pushConfig": { # Configuration for a push delivery endpoint. # An empty push_config indicates that the Pub/Sub system should pause pushing messages from the given subscription.
"pushEndpoint": "A String", # A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use "https://example.com/push".
},
@@ -280,7 +285,7 @@
body: object, The request body. (required)
The object takes the form of:
-{
+{ # Request for the Pull method.
"returnImmediately": True or False, # If this is specified as true the system will respond immediately even if it is not able to return a message in the Pull response. Otherwise the system is allowed to wait until at least one message is available rather than returning FAILED_PRECONDITION. The client may cancel the request if it does not wish to wait any longer for the response.
"subscription": "A String", # The subscription from which a message should be pulled.
}
@@ -293,6 +298,7 @@
"pubsubEvent": { # An event indicating a received message or truncation event. # A pubsub message or truncation event.
"deleted": True or False, # Indicates that this subscription has been deleted. (Note that pull subscribers will always receive NOT_FOUND in response in their pull request on the subscription, rather than seeing this boolean.)
"message": { # A message data and its labels. # A received message.
+ "messageId": "A String", # ID of this message assigned by the server at publication time. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a PubsubMessage via a Pull call or a push delivery. It must not be populated by a publisher in a Publish call.
"data": "A String", # The message payload.
"label": [ # Optional list of labels for this message. Keys in this collection must be unique.
{ # A key-value pair applied to a given object.
@@ -317,4 +323,55 @@
}</pre>
</div>
+<div class="method">
+ <code class="details" id="pullBatch">pullBatch(body)</code>
+ <pre>Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The system is free to return UNAVAILABLE if there are too many pull requests outstanding for the given subscription.
+
+Args:
+ body: object, The request body. (required)
+ The object takes the form of:
+
+{ # Request for the PullBatch method.
+ "maxEvents": 42, # The maximum number of PubsubEvents returned for this request. The Pub/Sub system may return fewer than the number of events specified.
+ "returnImmediately": True or False, # If this is specified as true the system will respond immediately even if it is not able to return a message in the Pull response. Otherwise the system is allowed to wait until at least one message is available rather than returning no messages. The client may cancel the request if it does not wish to wait any longer for the response.
+ "subscription": "A String", # The subscription from which messages should be pulled.
+ }
+
+
+Returns:
+ An object of the form:
+
+ { # Response for the PullBatch method.
+ "pullResponses": [ # Received Pub/Sub messages or status events. The Pub/Sub system will return zero messages if there are no more messages available in the backlog. The Pub/Sub system may return fewer than the max_events requested even if there are more messages available in the backlog.
+ { # Either a PubsubMessage or a truncation event. One of these two must be populated.
+ "pubsubEvent": { # An event indicating a received message or truncation event. # A pubsub message or truncation event.
+ "deleted": True or False, # Indicates that this subscription has been deleted. (Note that pull subscribers will always receive NOT_FOUND in response in their pull request on the subscription, rather than seeing this boolean.)
+ "message": { # A message data and its labels. # A received message.
+ "messageId": "A String", # ID of this message assigned by the server at publication time. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a PubsubMessage via a Pull call or a push delivery. It must not be populated by a publisher in a Publish call.
+ "data": "A String", # The message payload.
+ "label": [ # Optional list of labels for this message. Keys in this collection must be unique.
+ { # A key-value pair applied to a given object.
+ "numValue": "A String", # An integer value.
+ "strValue": "A String", # A string value.
+ "key": "A String", # The key of a label is a syntactically valid URL (as per RFC 1738) with the "scheme" and initial slashes omitted and with the additional restrictions noted below. Each key should be globally unique. The "host" portion is called the "namespace" and is not necessarily resolvable to a network endpoint. Instead, the namespace indicates what system or entity defines the semantics of the label. Namespaces do not restrict the set of objects to which a label may be associated.
+ #
+ # Keys are defined by the following grammar:
+ #
+ # key = hostname "/" kpath kpath = ksegment *[ "/" ksegment ] ksegment = alphadigit | *[ alphadigit | "-" | "_" | "." ]
+ #
+ # where "hostname" and "alphadigit" are defined as in RFC 1738.
+ #
+ # Example key: spanner.google.com/universe
+ },
+ ],
+ },
+ "truncated": True or False, # Indicates that this subscription has been truncated.
+ "subscription": "A String", # The subscription that received the event.
+ },
+ "ackId": "A String", # This ID must be used to acknowledge the received event or message.
+ },
+ ],
+ }</pre>
+</div>
+
</body></html>
\ No newline at end of file