google-cloud-pubsub 1.10.0 → 2.1.1
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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +2 -1
- data/CHANGELOG.md +41 -0
- data/OVERVIEW.md +26 -58
- data/lib/google-cloud-pubsub.rb +14 -13
- data/lib/google/cloud/pubsub.rb +15 -18
- data/lib/google/cloud/pubsub/async_publisher.rb +2 -3
- data/lib/google/cloud/pubsub/credentials.rb +2 -2
- data/lib/google/cloud/pubsub/message.rb +1 -1
- data/lib/google/cloud/pubsub/project.rb +1 -1
- data/lib/google/cloud/pubsub/received_message.rb +4 -4
- data/lib/google/cloud/pubsub/service.rb +102 -256
- data/lib/google/cloud/pubsub/subscriber.rb +3 -3
- data/lib/google/cloud/pubsub/subscriber/stream.rb +1 -2
- data/lib/google/cloud/pubsub/subscription.rb +19 -10
- data/lib/google/cloud/pubsub/subscription/push_config.rb +55 -31
- data/lib/google/cloud/pubsub/topic.rb +49 -15
- data/lib/google/cloud/pubsub/version.rb +1 -1
- metadata +8 -79
- data/lib/google/cloud/pubsub/v1.rb +0 -17
- data/lib/google/cloud/pubsub/v1/credentials.rb +0 -41
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -21
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/options.rb +0 -21
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -21
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -833
- data/lib/google/cloud/pubsub/v1/doc/google/type/expr.rb +0 -19
- data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -928
- data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -120
- data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1466
- data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -153
- data/lib/google/pubsub/v1/pubsub_pb.rb +0 -269
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +0 -215
@@ -41,7 +41,7 @@ module Google
|
|
41
41
|
# subscriber.start
|
42
42
|
#
|
43
43
|
# # Shut down the subscriber when ready to stop receiving messages.
|
44
|
-
# subscriber.stop
|
44
|
+
# subscriber.stop!
|
45
45
|
#
|
46
46
|
# @attr_reader [String] subscription_name The name of the subscription the
|
47
47
|
# messages are pulled from.
|
@@ -240,7 +240,7 @@ module Google
|
|
240
240
|
# subscriber.start
|
241
241
|
#
|
242
242
|
# # Shut down the subscriber when ready to stop receiving messages.
|
243
|
-
# subscriber.stop
|
243
|
+
# subscriber.stop!
|
244
244
|
#
|
245
245
|
def on_error &block
|
246
246
|
synchronize do
|
@@ -276,7 +276,7 @@ module Google
|
|
276
276
|
# subscriber.last_error #=> nil
|
277
277
|
#
|
278
278
|
# # Shut down the subscriber when ready to stop receiving messages.
|
279
|
-
# subscriber.stop
|
279
|
+
# subscriber.stop!
|
280
280
|
#
|
281
281
|
def last_error
|
282
282
|
synchronize { @last_error }
|
@@ -271,9 +271,8 @@ module Google
|
|
271
271
|
stop
|
272
272
|
rescue GRPC::Cancelled, GRPC::DeadlineExceeded, GRPC::Internal,
|
273
273
|
GRPC::ResourceExhausted, GRPC::Unauthenticated,
|
274
|
-
GRPC::Unavailable
|
274
|
+
GRPC::Unavailable
|
275
275
|
# Restart the stream with an incremental back for a retriable error.
|
276
|
-
# Also when GRPC raises the internal CallError.
|
277
276
|
|
278
277
|
retry
|
279
278
|
rescue RestartStream
|
@@ -43,12 +43,19 @@ module Google
|
|
43
43
|
# received_message.acknowledge!
|
44
44
|
# end
|
45
45
|
#
|
46
|
-
# #
|
47
|
-
# subscriber.
|
46
|
+
# # Handle exceptions from listener
|
47
|
+
# subscriber.on_error do |exception|
|
48
|
+
# puts "Exception: #{exception.class} #{exception.message}"
|
49
|
+
# end
|
48
50
|
#
|
49
|
-
# #
|
50
|
-
#
|
51
|
+
# # Gracefully shut down the subscriber
|
52
|
+
# at_exit do
|
53
|
+
# subscriber.stop!
|
54
|
+
# end
|
51
55
|
#
|
56
|
+
# # Start background threads that will call the block passed to listen.
|
57
|
+
# subscriber.start
|
58
|
+
# sleep
|
52
59
|
class Subscription
|
53
60
|
##
|
54
61
|
# @private The Service object.
|
@@ -346,7 +353,7 @@ module Google
|
|
346
353
|
# to unset.
|
347
354
|
#
|
348
355
|
def expires_in= ttl
|
349
|
-
new_expiration_policy = Google::
|
356
|
+
new_expiration_policy = Google::Cloud::PubSub::V1::ExpirationPolicy.new ttl: Convert.number_to_duration(ttl)
|
350
357
|
|
351
358
|
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name, expiration_policy: new_expiration_policy
|
352
359
|
@grpc = service.update_subscription update_grpc, :expiration_policy
|
@@ -816,7 +823,8 @@ module Google
|
|
816
823
|
# @param [Integer] streams The number of concurrent streams to open to
|
817
824
|
# pull messages from the subscription. Default is 4. Optional.
|
818
825
|
# @param [Hash, Integer] inventory The settings to control how received messages are to be handled by the
|
819
|
-
# subscriber. When provided as an Integer instead of a Hash only
|
826
|
+
# subscriber. When provided as an Integer instead of a Hash only `max_outstanding_messages` will be set.
|
827
|
+
# Optional.
|
820
828
|
#
|
821
829
|
# Hash keys and values may include the following:
|
822
830
|
#
|
@@ -856,6 +864,7 @@ module Google
|
|
856
864
|
#
|
857
865
|
# subscriber = sub.listen do |received_message|
|
858
866
|
# # process message
|
867
|
+
# puts "Data: #{received_message.message.data}, published at #{received_message.message.published_at}"
|
859
868
|
# received_message.acknowledge!
|
860
869
|
# end
|
861
870
|
#
|
@@ -863,7 +872,7 @@ module Google
|
|
863
872
|
# subscriber.start
|
864
873
|
#
|
865
874
|
# # Shut down the subscriber when ready to stop receiving messages.
|
866
|
-
# subscriber.stop
|
875
|
+
# subscriber.stop!
|
867
876
|
#
|
868
877
|
# @example Configuring to increase concurrent callbacks:
|
869
878
|
# require "google/cloud/pubsub"
|
@@ -882,7 +891,7 @@ module Google
|
|
882
891
|
# subscriber.start
|
883
892
|
#
|
884
893
|
# # Shut down the subscriber when ready to stop receiving messages.
|
885
|
-
# subscriber.stop
|
894
|
+
# subscriber.stop!
|
886
895
|
#
|
887
896
|
# @example Ordered messages are supported using ordering_key:
|
888
897
|
# require "google/cloud/pubsub"
|
@@ -902,7 +911,7 @@ module Google
|
|
902
911
|
# subscriber.start
|
903
912
|
#
|
904
913
|
# # Shut down the subscriber when ready to stop receiving messages.
|
905
|
-
# subscriber.stop
|
914
|
+
# subscriber.stop!
|
906
915
|
#
|
907
916
|
# @example Set the maximum amount of time before redelivery if the subscriber fails to extend the deadline:
|
908
917
|
# require "google/cloud/pubsub"
|
@@ -921,7 +930,7 @@ module Google
|
|
921
930
|
# subscriber.start
|
922
931
|
#
|
923
932
|
# # Shut down the subscriber when ready to stop receiving messages.
|
924
|
-
# subscriber.stop
|
933
|
+
# subscriber.stop!
|
925
934
|
#
|
926
935
|
def listen deadline: nil, message_ordering: nil, streams: nil, inventory: nil, threads: {}, &block
|
927
936
|
ensure_service!
|
@@ -22,7 +22,18 @@ module Google
|
|
22
22
|
##
|
23
23
|
# Configuration for a push delivery endpoint.
|
24
24
|
#
|
25
|
-
# @example
|
25
|
+
# @example Create a push config:
|
26
|
+
# require "google/cloud/pubsub"
|
27
|
+
#
|
28
|
+
# pubsub = Google::Cloud::PubSub.new
|
29
|
+
# topic = pubsub.topic "my-topic"
|
30
|
+
#
|
31
|
+
# push_config = Google::Cloud::PubSub::Subscription::PushConfig.new endpoint: "http://example.net/callback"
|
32
|
+
# push_config.set_oidc_token "service-account@example.net", "audience-header-value"
|
33
|
+
#
|
34
|
+
# sub = topic.subscribe "my-subscription", push_config: push_config
|
35
|
+
#
|
36
|
+
# @example Read a push config:
|
26
37
|
# require "google/cloud/pubsub"
|
27
38
|
#
|
28
39
|
# pubsub = Google::Cloud::PubSub.new
|
@@ -32,7 +43,7 @@ module Google
|
|
32
43
|
# sub.push_config.authentication.email #=> "user@example.com"
|
33
44
|
# sub.push_config.authentication.audience #=> "client-12345"
|
34
45
|
#
|
35
|
-
# @example Update
|
46
|
+
# @example Update a push config:
|
36
47
|
# require "google/cloud/pubsub"
|
37
48
|
#
|
38
49
|
# pubsub = Google::Cloud::PubSub.new
|
@@ -45,14 +56,31 @@ module Google
|
|
45
56
|
#
|
46
57
|
class PushConfig
|
47
58
|
##
|
48
|
-
#
|
49
|
-
|
59
|
+
# Creates a new push configuration.
|
60
|
+
#
|
61
|
+
# @param [String] endpoint A URL locating the endpoint to which messages should be pushed. For
|
62
|
+
# example, a Webhook endpoint might use `https://example.com/push`.
|
63
|
+
# @param [String] email The service account email to be used for generating the OIDC token.
|
64
|
+
# The caller must have the `iam.serviceAccounts.actAs` permission for the service account.
|
65
|
+
# @param [String] audience The audience to be used when generating OIDC token. The audience claim identifies
|
66
|
+
# the recipients that the JWT is intended for. The audience value is a single case-sensitive string. Having
|
67
|
+
# multiple values (array) for the audience field is not supported. More info about the OIDC JWT token
|
68
|
+
# audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the `endpoint`
|
69
|
+
# URL will be used.
|
70
|
+
#
|
71
|
+
def initialize endpoint: nil, email: nil, audience: nil
|
50
72
|
@grpc = Google::Cloud::PubSub::V1::PushConfig.new
|
73
|
+
|
74
|
+
self.endpoint = endpoint unless endpoint.nil?
|
75
|
+
|
76
|
+
raise ArgumentError, "audience provided without email. Authentication is invalid" if audience && !email
|
77
|
+
|
78
|
+
set_oidc_token email, audience if email
|
51
79
|
end
|
52
80
|
|
53
81
|
##
|
54
|
-
# A URL locating the endpoint to which messages should be pushed. For
|
55
|
-
#
|
82
|
+
# A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use
|
83
|
+
# `https://example.com/push`.
|
56
84
|
#
|
57
85
|
# @return [String]
|
58
86
|
def endpoint
|
@@ -60,9 +88,8 @@ module Google
|
|
60
88
|
end
|
61
89
|
|
62
90
|
##
|
63
|
-
# Sets the URL locating the endpoint to which messages should be
|
64
|
-
#
|
65
|
-
# `https://example.com/push`.
|
91
|
+
# Sets the URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might
|
92
|
+
# use `https://example.com/push`.
|
66
93
|
#
|
67
94
|
# @param [String, nil] new_endpoint New URL value
|
68
95
|
def endpoint= new_endpoint
|
@@ -70,8 +97,7 @@ module Google
|
|
70
97
|
end
|
71
98
|
|
72
99
|
##
|
73
|
-
# The authentication method used by push endpoints to verify the
|
74
|
-
# source of push requests.
|
100
|
+
# The authentication method used by push endpoints to verify the source of push requests.
|
75
101
|
#
|
76
102
|
# @return [OidcToken, nil] An OIDC JWT token if specified, `nil`
|
77
103
|
# otherwise.
|
@@ -82,8 +108,7 @@ module Google
|
|
82
108
|
end
|
83
109
|
|
84
110
|
##
|
85
|
-
# Sets the authentication method used by push endpoints to verify the
|
86
|
-
# source of push requests.
|
111
|
+
# Sets the authentication method used by push endpoints to verify the source of push requests.
|
87
112
|
#
|
88
113
|
# @param [OidcToken, nil] new_auth An authentication value.
|
89
114
|
def authentication= new_auth
|
@@ -118,13 +143,12 @@ module Google
|
|
118
143
|
end
|
119
144
|
|
120
145
|
##
|
121
|
-
# The format of the pushed message. This attribute indicates the
|
122
|
-
#
|
123
|
-
#
|
124
|
-
# endpoint version is based on the version of the Pub/Sub API.
|
146
|
+
# The format of the pushed message. This attribute indicates the version of the data expected by the endpoint.
|
147
|
+
# This controls the shape of the pushed message (i.e., its fields and metadata). The endpoint version is based
|
148
|
+
# on the version of the Pub/Sub API.
|
125
149
|
#
|
126
|
-
# If not present during the Subscription creation, it will default to
|
127
|
-
#
|
150
|
+
# If not present during the Subscription creation, it will default to the version of the API used to make such
|
151
|
+
# call.
|
128
152
|
#
|
129
153
|
# The possible values for this attribute are:
|
130
154
|
#
|
@@ -182,7 +206,8 @@ module Google
|
|
182
206
|
end
|
183
207
|
|
184
208
|
##
|
185
|
-
#
|
209
|
+
# The service account email to be used for generating the OIDC token. The caller must have the
|
210
|
+
# `iam.serviceAccounts.actAs` permission for the service account.
|
186
211
|
#
|
187
212
|
# @return [String]
|
188
213
|
def email
|
@@ -190,7 +215,8 @@ module Google
|
|
190
215
|
end
|
191
216
|
|
192
217
|
##
|
193
|
-
#
|
218
|
+
# Sets the service account email to be used for generating the OIDC token. The caller must have the
|
219
|
+
# `iam.serviceAccounts.actAs` permission for the service account.
|
194
220
|
#
|
195
221
|
# @param [String] new_email New service account email value.
|
196
222
|
def email= new_email
|
@@ -198,15 +224,10 @@ module Google
|
|
198
224
|
end
|
199
225
|
|
200
226
|
##
|
201
|
-
#
|
202
|
-
#
|
203
|
-
# audience
|
204
|
-
#
|
205
|
-
# Having multiple values (array) for the audience field is not
|
206
|
-
# supported.
|
207
|
-
#
|
208
|
-
# More info about the OIDC JWT token audience here:
|
209
|
-
# https://tools.ietf.org/html/rfc7519#section-4.1.3
|
227
|
+
# The audience to be used when generating OIDC token. The audience claim identifies the recipients that
|
228
|
+
# the JWT is intended for. The audience value is a single case-sensitive string. Having multiple values
|
229
|
+
# (array) for the audience field is not supported. More info about the OIDC JWT token audience here:
|
230
|
+
# https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the `endpoint` URL will be used.
|
210
231
|
#
|
211
232
|
# @return [String]
|
212
233
|
def audience
|
@@ -214,7 +235,10 @@ module Google
|
|
214
235
|
end
|
215
236
|
|
216
237
|
##
|
217
|
-
# Sets the audience to be used when generating OIDC token.
|
238
|
+
# Sets the audience to be used when generating OIDC token. The audience claim identifies the recipients that
|
239
|
+
# the JWT is intended for. The audience value is a single case-sensitive string. Having multiple values
|
240
|
+
# (array) for the audience field is not supported. More info about the OIDC JWT token audience here:
|
241
|
+
# https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the `endpoint` URL will be used.
|
218
242
|
#
|
219
243
|
# @param [String] new_audience New audience value.
|
220
244
|
def audience= new_audience
|
@@ -78,7 +78,7 @@ module Google
|
|
78
78
|
# end
|
79
79
|
# end
|
80
80
|
#
|
81
|
-
# topic.async_publisher.stop
|
81
|
+
# topic.async_publisher.stop!
|
82
82
|
#
|
83
83
|
def async_publisher
|
84
84
|
@async_publisher
|
@@ -275,7 +275,10 @@ module Google
|
|
275
275
|
# 604,800 seconds (7 days) or less than 600 seconds (10 minutes).
|
276
276
|
# Default is 604,800 seconds (7 days).
|
277
277
|
# @param [String] endpoint A URL locating the endpoint to which messages
|
278
|
-
# should be pushed.
|
278
|
+
# should be pushed. The parameters `push_config` and `endpoint` should not both be provided.
|
279
|
+
# @param [Google::Cloud::PubSub::Subscription::PushConfig] push_config The configuration for a push delivery
|
280
|
+
# endpoint that should contain the endpoint, and can contain authentication data (OIDC token authentication).
|
281
|
+
# The parameters `push_config` and `endpoint` should not both be provided.
|
279
282
|
# @param [Hash] labels A hash of user-provided labels associated with
|
280
283
|
# the subscription. You can use these to organize and group your
|
281
284
|
# subscriptions. Label keys and values can be no longer than 63
|
@@ -320,15 +323,25 @@ module Google
|
|
320
323
|
# sub = topic.subscribe "my-topic-sub"
|
321
324
|
# sub.name # => "my-topic-sub"
|
322
325
|
#
|
323
|
-
# @example Wait 2 minutes for acknowledgement
|
326
|
+
# @example Wait 2 minutes for acknowledgement:
|
324
327
|
# require "google/cloud/pubsub"
|
325
328
|
#
|
326
329
|
# pubsub = Google::Cloud::PubSub.new
|
327
330
|
#
|
328
331
|
# topic = pubsub.topic "my-topic"
|
329
332
|
# sub = topic.subscribe "my-topic-sub",
|
330
|
-
# deadline: 120
|
331
|
-
#
|
333
|
+
# deadline: 120
|
334
|
+
#
|
335
|
+
# @example Configure a push endpoint:
|
336
|
+
# require "google/cloud/pubsub"
|
337
|
+
#
|
338
|
+
# pubsub = Google::Cloud::PubSub.new
|
339
|
+
# topic = pubsub.topic "my-topic"
|
340
|
+
#
|
341
|
+
# push_config = Google::Cloud::PubSub::Subscription::PushConfig.new endpoint: "http://example.net/callback"
|
342
|
+
# push_config.set_oidc_token "service-account@example.net", "audience-header-value"
|
343
|
+
#
|
344
|
+
# sub = topic.subscribe "my-subscription", push_config: push_config
|
332
345
|
#
|
333
346
|
# @example Configure a Dead Letter Queues policy:
|
334
347
|
# require "google/cloud/pubsub"
|
@@ -361,19 +374,40 @@ module Google
|
|
361
374
|
# retry_policy = Google::Cloud::PubSub::RetryPolicy.new minimum_backoff: 5, maximum_backoff: 300
|
362
375
|
# sub = topic.subscribe "my-topic-sub", retry_policy: retry_policy
|
363
376
|
#
|
364
|
-
def subscribe subscription_name,
|
365
|
-
|
366
|
-
|
377
|
+
def subscribe subscription_name,
|
378
|
+
deadline: nil,
|
379
|
+
retain_acked: false,
|
380
|
+
retention: nil,
|
381
|
+
endpoint: nil,
|
382
|
+
push_config: nil,
|
383
|
+
labels: nil,
|
384
|
+
message_ordering: nil,
|
385
|
+
filter: nil,
|
386
|
+
dead_letter_topic: nil,
|
387
|
+
dead_letter_max_delivery_attempts: nil,
|
388
|
+
retry_policy: nil
|
367
389
|
ensure_service!
|
368
|
-
|
369
|
-
|
370
|
-
|
390
|
+
if push_config && endpoint
|
391
|
+
raise ArgumentError, "endpoint and push_config were both provided. Please provide only one."
|
392
|
+
end
|
393
|
+
push_config = Google::Cloud::PubSub::Subscription::PushConfig.new endpoint: endpoint if endpoint
|
394
|
+
|
395
|
+
options = {
|
396
|
+
deadline: deadline,
|
397
|
+
retain_acked: retain_acked,
|
398
|
+
retention: retention,
|
399
|
+
labels: labels,
|
400
|
+
message_ordering: message_ordering,
|
401
|
+
filter: filter,
|
402
|
+
dead_letter_max_delivery_attempts: dead_letter_max_delivery_attempts
|
403
|
+
}
|
371
404
|
|
372
405
|
options[:dead_letter_topic_name] = dead_letter_topic.name if dead_letter_topic
|
373
406
|
if options[:dead_letter_max_delivery_attempts] && !options[:dead_letter_topic_name]
|
374
407
|
# Service error message "3:Invalid resource name given (name=)." does not identify param.
|
375
408
|
raise ArgumentError, "dead_letter_topic is required with dead_letter_max_delivery_attempts"
|
376
409
|
end
|
410
|
+
options[:push_config] = push_config.to_grpc if push_config
|
377
411
|
options[:retry_policy] = retry_policy.to_grpc if retry_policy
|
378
412
|
grpc = service.create_subscription name, subscription_name, options
|
379
413
|
Subscription.from_grpc grpc, service
|
@@ -590,7 +624,7 @@ module Google
|
|
590
624
|
# end
|
591
625
|
#
|
592
626
|
# # Shut down the publisher when ready to stop publishing messages.
|
593
|
-
# topic.async_publisher.stop
|
627
|
+
# topic.async_publisher.stop!
|
594
628
|
#
|
595
629
|
# @example A message can be published using a File object:
|
596
630
|
# require "google/cloud/pubsub"
|
@@ -602,7 +636,7 @@ module Google
|
|
602
636
|
# topic.publish_async file
|
603
637
|
#
|
604
638
|
# # Shut down the publisher when ready to stop publishing messages.
|
605
|
-
# topic.async_publisher.stop
|
639
|
+
# topic.async_publisher.stop!
|
606
640
|
#
|
607
641
|
# @example Additionally, a message can be published with attributes:
|
608
642
|
# require "google/cloud/pubsub"
|
@@ -614,7 +648,7 @@ module Google
|
|
614
648
|
# foo: :bar, this: :that
|
615
649
|
#
|
616
650
|
# # Shut down the publisher when ready to stop publishing messages.
|
617
|
-
# topic.async_publisher.stop
|
651
|
+
# topic.async_publisher.stop!
|
618
652
|
#
|
619
653
|
# @example Ordered messages are supported using ordering_key:
|
620
654
|
# require "google/cloud/pubsub"
|
@@ -631,7 +665,7 @@ module Google
|
|
631
665
|
# ordering_key: "task-key"
|
632
666
|
#
|
633
667
|
# # Shut down the publisher when ready to stop publishing messages.
|
634
|
-
# topic.async_publisher.stop
|
668
|
+
# topic.async_publisher.stop!
|
635
669
|
#
|
636
670
|
def publish_async data = nil, attributes = nil, ordering_key: nil, **extra_attrs, &callback
|
637
671
|
ensure_service!
|
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: 1.
|
4
|
+
version: 2.1.1
|
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: 2020-
|
12
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -31,82 +31,28 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '1.
|
34
|
+
version: '1.5'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '1.
|
41
|
+
version: '1.5'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name: google-
|
43
|
+
name: google-cloud-pubsub-v1
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '0.0'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: googleapis-common-protos
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 1.3.9
|
63
|
-
- - "<"
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: '2.0'
|
66
|
-
type: :runtime
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: !ruby/object:Gem::Requirement
|
69
|
-
requirements:
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 1.3.9
|
73
|
-
- - "<"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '2.0'
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: googleapis-common-protos-types
|
78
|
-
requirement: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 1.0.4
|
83
|
-
- - "<"
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '2.0'
|
86
|
-
type: :runtime
|
87
|
-
prerelease: false
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
requirements:
|
90
|
-
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 1.0.4
|
93
|
-
- - "<"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '2.0'
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
name: grpc-google-iam-v1
|
98
|
-
requirement: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 0.6.9
|
103
|
-
type: :runtime
|
104
|
-
prerelease: false
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 0.6.9
|
55
|
+
version: '0.0'
|
110
56
|
- !ruby/object:Gem::Dependency
|
111
57
|
name: autotest-suffix
|
112
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -293,24 +239,7 @@ files:
|
|
293
239
|
- lib/google/cloud/pubsub/subscription/push_config.rb
|
294
240
|
- lib/google/cloud/pubsub/topic.rb
|
295
241
|
- lib/google/cloud/pubsub/topic/list.rb
|
296
|
-
- lib/google/cloud/pubsub/v1.rb
|
297
|
-
- lib/google/cloud/pubsub/v1/credentials.rb
|
298
|
-
- lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb
|
299
|
-
- lib/google/cloud/pubsub/v1/doc/google/iam/v1/options.rb
|
300
|
-
- lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb
|
301
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb
|
302
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb
|
303
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb
|
304
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb
|
305
|
-
- lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb
|
306
|
-
- lib/google/cloud/pubsub/v1/doc/google/type/expr.rb
|
307
|
-
- lib/google/cloud/pubsub/v1/publisher_client.rb
|
308
|
-
- lib/google/cloud/pubsub/v1/publisher_client_config.json
|
309
|
-
- lib/google/cloud/pubsub/v1/subscriber_client.rb
|
310
|
-
- lib/google/cloud/pubsub/v1/subscriber_client_config.json
|
311
242
|
- lib/google/cloud/pubsub/version.rb
|
312
|
-
- lib/google/pubsub/v1/pubsub_pb.rb
|
313
|
-
- lib/google/pubsub/v1/pubsub_services_pb.rb
|
314
243
|
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-pubsub
|
315
244
|
licenses:
|
316
245
|
- Apache-2.0
|
@@ -330,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
330
259
|
- !ruby/object:Gem::Version
|
331
260
|
version: '0'
|
332
261
|
requirements: []
|
333
|
-
rubygems_version: 3.1.
|
262
|
+
rubygems_version: 3.1.4
|
334
263
|
signing_key:
|
335
264
|
specification_version: 4
|
336
265
|
summary: API Client library for Google Cloud Pub/Sub
|