google-cloud-pubsub 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +8 -0
- data/LICENSE +201 -0
- data/README.md +69 -0
- data/lib/google/cloud/pubsub/service.rb +2 -2
- data/lib/google/cloud/pubsub/topic.rb +1 -10
- data/lib/google/cloud/pubsub/v1.rb +2 -2
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +83 -0
- data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +411 -0
- data/lib/google/cloud/pubsub/v1/{publisher_api.rb → publisher_client.rb} +79 -70
- data/lib/google/cloud/pubsub/v1/{subscriber_api.rb → subscriber_client.rb} +173 -99
- data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +5 -0
- data/lib/google/cloud/pubsub/version.rb +1 -1
- data/lib/google/pubsub/v1/pubsub_pb.rb +12 -0
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +20 -4
- metadata +14 -9
@@ -66,6 +66,11 @@
|
|
66
66
|
"retry_codes_name": "non_idempotent",
|
67
67
|
"retry_params_name": "messaging"
|
68
68
|
},
|
69
|
+
"StreamingPull": {
|
70
|
+
"timeout_millis": 60000,
|
71
|
+
"retry_codes_name": "non_idempotent",
|
72
|
+
"retry_params_name": "messaging"
|
73
|
+
},
|
69
74
|
"ModifyPushConfig": {
|
70
75
|
"timeout_millis": 60000,
|
71
76
|
"retry_codes_name": "non_idempotent",
|
@@ -97,6 +97,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
97
97
|
optional :subscription, :string, 1
|
98
98
|
repeated :ack_ids, :string, 2
|
99
99
|
end
|
100
|
+
add_message "google.pubsub.v1.StreamingPullRequest" do
|
101
|
+
optional :subscription, :string, 1
|
102
|
+
repeated :ack_ids, :string, 2
|
103
|
+
repeated :modify_deadline_seconds, :int32, 3
|
104
|
+
repeated :modify_deadline_ack_ids, :string, 4
|
105
|
+
optional :stream_ack_deadline_seconds, :int32, 5
|
106
|
+
end
|
107
|
+
add_message "google.pubsub.v1.StreamingPullResponse" do
|
108
|
+
repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
|
109
|
+
end
|
100
110
|
end
|
101
111
|
|
102
112
|
module Google
|
@@ -124,6 +134,8 @@ module Google
|
|
124
134
|
PullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullResponse").msgclass
|
125
135
|
ModifyAckDeadlineRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyAckDeadlineRequest").msgclass
|
126
136
|
AcknowledgeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
|
137
|
+
StreamingPullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
|
138
|
+
StreamingPullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
|
127
139
|
end
|
128
140
|
end
|
129
141
|
end
|
@@ -38,18 +38,21 @@ module Google
|
|
38
38
|
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
39
39
|
#
|
40
40
|
# If the name is not provided in the request, the server will assign a random
|
41
|
-
# name for this subscription on the same project as the topic
|
42
|
-
#
|
41
|
+
# name for this subscription on the same project as the topic, conforming
|
42
|
+
# to the
|
43
|
+
# [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
44
|
+
# The generated name is populated in the returned Subscription object.
|
45
|
+
# Note that for REST API requests, you must specify a name in the request.
|
43
46
|
rpc :CreateSubscription, Subscription, Subscription
|
44
47
|
# Gets the configuration details of a subscription.
|
45
48
|
rpc :GetSubscription, GetSubscriptionRequest, Subscription
|
46
49
|
# Lists matching subscriptions.
|
47
50
|
rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
|
48
|
-
# Deletes an existing subscription. All
|
51
|
+
# Deletes an existing subscription. All messages retained in the subscription
|
49
52
|
# are immediately dropped. Calls to `Pull` after deletion will return
|
50
53
|
# `NOT_FOUND`. After a subscription is deleted, a new one may be created with
|
51
54
|
# the same name, but the new one has no association with the old
|
52
|
-
# subscription
|
55
|
+
# subscription or its topic unless the same topic is specified.
|
53
56
|
rpc :DeleteSubscription, DeleteSubscriptionRequest, Google::Protobuf::Empty
|
54
57
|
# Modifies the ack deadline for a specific message. This method is useful
|
55
58
|
# to indicate that more time is needed to process a message by the
|
@@ -70,6 +73,19 @@ module Google
|
|
70
73
|
# there are too many concurrent pull requests pending for the given
|
71
74
|
# subscription.
|
72
75
|
rpc :Pull, PullRequest, PullResponse
|
76
|
+
# (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will
|
77
|
+
# respond with UNIMPLEMENTED errors unless you have been invited to test
|
78
|
+
# this feature. Contact cloud-pubsub@google.com with any questions.
|
79
|
+
#
|
80
|
+
# Establishes a stream with the server, which sends messages down to the
|
81
|
+
# client. The client streams acknowledgements and ack deadline modifications
|
82
|
+
# back to the server. The server will close the stream and return the status
|
83
|
+
# on any error. The server may close the stream with status `OK` to reassign
|
84
|
+
# server-side resources, in which case, the client should re-establish the
|
85
|
+
# stream. `UNAVAILABLE` may also be returned in the case of a transient error
|
86
|
+
# (e.g., a server restart). These should also be retried by the client. Flow
|
87
|
+
# control can be achieved by configuring the underlying RPC channel.
|
88
|
+
rpc :StreamingPull, stream(StreamingPullRequest), stream(StreamingPullResponse)
|
73
89
|
# Modifies the `PushConfig` for a specified subscription.
|
74
90
|
#
|
75
91
|
# This may be used to change a push subscription to a pull one (signified by
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-pubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -211,16 +211,16 @@ dependencies:
|
|
211
211
|
name: yard-doctest
|
212
212
|
requirement: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
|
-
- - "
|
214
|
+
- - "<="
|
215
215
|
- !ruby/object:Gem::Version
|
216
|
-
version: 0.1.
|
216
|
+
version: 0.1.8
|
217
217
|
type: :development
|
218
218
|
prerelease: false
|
219
219
|
version_requirements: !ruby/object:Gem::Requirement
|
220
220
|
requirements:
|
221
|
-
- - "
|
221
|
+
- - "<="
|
222
222
|
- !ruby/object:Gem::Version
|
223
|
-
version: 0.1.
|
223
|
+
version: 0.1.8
|
224
224
|
description: google-cloud-pubsub is the official library for Google Cloud Pub/Sub.
|
225
225
|
email:
|
226
226
|
- mike@blowmage.com
|
@@ -229,6 +229,9 @@ executables: []
|
|
229
229
|
extensions: []
|
230
230
|
extra_rdoc_files: []
|
231
231
|
files:
|
232
|
+
- ".yardopts"
|
233
|
+
- LICENSE
|
234
|
+
- README.md
|
232
235
|
- lib/google-cloud-pubsub.rb
|
233
236
|
- lib/google/cloud/pubsub.rb
|
234
237
|
- lib/google/cloud/pubsub/credentials.rb
|
@@ -243,9 +246,11 @@ files:
|
|
243
246
|
- lib/google/cloud/pubsub/topic/list.rb
|
244
247
|
- lib/google/cloud/pubsub/topic/publisher.rb
|
245
248
|
- lib/google/cloud/pubsub/v1.rb
|
246
|
-
- lib/google/cloud/pubsub/v1/
|
249
|
+
- lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb
|
250
|
+
- lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb
|
251
|
+
- lib/google/cloud/pubsub/v1/publisher_client.rb
|
247
252
|
- lib/google/cloud/pubsub/v1/publisher_client_config.json
|
248
|
-
- lib/google/cloud/pubsub/v1/
|
253
|
+
- lib/google/cloud/pubsub/v1/subscriber_client.rb
|
249
254
|
- lib/google/cloud/pubsub/v1/subscriber_client_config.json
|
250
255
|
- lib/google/cloud/pubsub/version.rb
|
251
256
|
- lib/google/pubsub/v1/pubsub_pb.rb
|
@@ -270,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
275
|
version: '0'
|
271
276
|
requirements: []
|
272
277
|
rubyforge_project:
|
273
|
-
rubygems_version: 2.6.
|
278
|
+
rubygems_version: 2.6.10
|
274
279
|
signing_key:
|
275
280
|
specification_version: 4
|
276
281
|
summary: API Client library for Google Cloud Pub/Sub
|