google-cloud-pubsub 2.3.0 → 2.3.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/CHANGELOG.md +7 -0
- data/CONTRIBUTING.md +1 -1
- data/lib/google/cloud/pubsub/subscription.rb +17 -4
- data/lib/google/cloud/pubsub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3af82f9222001a7e9b8a4648b53370da523629e3950822ec70b2994c7ff1ab69
|
4
|
+
data.tar.gz: c65a361d505e5416be05189668fb62260b91eabb89be8fedc8b4928a9a0724dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0fd3399bed14e3ec636a352cefc9c03a34f76ad20adbd12c3c043bdebf23ea75c68b9cab5e0fe0e259911b7a466f8b0e4d0b138ea9cd3244653d13749b38920
|
7
|
+
data.tar.gz: 91243885834f4cb5c3423bc8f6e75383d95cbdb5b09b6a4bd409b701a6c0433838882188a28cf150302cd4ea3fa8c48afc669f7590d9578d67858b246ad77fc7
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -330,7 +330,7 @@ module Google
|
|
330
330
|
# If {#expires_in=} is not set, a *default* value of of 31 days will be
|
331
331
|
# used. The minimum allowed value is 1 day.
|
332
332
|
#
|
333
|
-
# Makes an API call to retrieve the value when called on a
|
333
|
+
# Makes an API call to retrieve the expires_in value when called on a
|
334
334
|
# reference object. See {#reference?}.
|
335
335
|
#
|
336
336
|
# @return [Numeric, nil] The expiration duration, or `nil` if unset.
|
@@ -365,6 +365,9 @@ module Google
|
|
365
365
|
# `attributes` field matches the filter are delivered on this subscription. If empty, then no messages are
|
366
366
|
# filtered out.
|
367
367
|
#
|
368
|
+
# Makes an API call to retrieve the filter value when called on a reference
|
369
|
+
# object. See {#reference?}.
|
370
|
+
#
|
368
371
|
# @return [String] The frozen filter string.
|
369
372
|
#
|
370
373
|
def filter
|
@@ -409,6 +412,9 @@ module Google
|
|
409
412
|
# The operation will fail if the topic does not exist. Users should ensure that there is a subscription attached
|
410
413
|
# to this topic since messages published to a topic with no subscriptions are lost.
|
411
414
|
#
|
415
|
+
# Makes an API call to retrieve the dead_letter_policy value when called on a
|
416
|
+
# reference object. See {#reference?}.
|
417
|
+
#
|
412
418
|
# See also {#dead_letter_topic}, {#dead_letter_max_delivery_attempts=}, {#dead_letter_max_delivery_attempts}
|
413
419
|
# and {#remove_dead_letter_policy}.
|
414
420
|
#
|
@@ -448,7 +454,7 @@ module Google
|
|
448
454
|
# See also {#dead_letter_max_delivery_attempts=}, {#dead_letter_topic=}, {#dead_letter_topic}
|
449
455
|
# and {#remove_dead_letter_policy}.
|
450
456
|
#
|
451
|
-
# Makes an API call to retrieve the
|
457
|
+
# Makes an API call to retrieve the dead_letter_policy when called on a reference object. See {#reference?}.
|
452
458
|
#
|
453
459
|
# @return [Integer, nil] A value between `5` and `100`, or `nil` if no dead letter policy is configured.
|
454
460
|
#
|
@@ -477,6 +483,8 @@ module Google
|
|
477
483
|
#
|
478
484
|
# This field will be honored on a best effort basis. If this parameter is 0, a default value of 5 is used.
|
479
485
|
#
|
486
|
+
# Makes an API call to retrieve the dead_letter_policy when called on a reference object. See {#reference?}.
|
487
|
+
#
|
480
488
|
# The dead letter topic must be set first. See {#dead_letter_topic=}, {#dead_letter_topic} and
|
481
489
|
# {#remove_dead_letter_policy}.
|
482
490
|
#
|
@@ -512,6 +520,8 @@ module Google
|
|
512
520
|
# Removes an existing dead letter policy. A dead letter policy specifies the conditions for dead lettering
|
513
521
|
# messages in the subscription. If a dead letter policy is not set, dead lettering is disabled.
|
514
522
|
#
|
523
|
+
# Makes an API call to retrieve the dead_letter_policy when called on a reference object. See {#reference?}.
|
524
|
+
#
|
515
525
|
# See {#dead_letter_topic}, {#dead_letter_topic=}, {#dead_letter_max_delivery_attempts} and
|
516
526
|
# {#dead_letter_max_delivery_attempts=}.
|
517
527
|
#
|
@@ -547,6 +557,8 @@ module Google
|
|
547
557
|
# for healthy subscribers. Retry Policy will be triggered on NACKs or acknowledgement deadline exceeded events
|
548
558
|
# for a given message.
|
549
559
|
#
|
560
|
+
# Makes an API call to retrieve the retry_policy when called on a reference object. See {#reference?}.
|
561
|
+
#
|
550
562
|
# @return [RetryPolicy, nil] The retry policy for the subscription, or `nil`.
|
551
563
|
#
|
552
564
|
# @example
|
@@ -588,10 +600,11 @@ module Google
|
|
588
600
|
# sub.retry_policy.maximum_backoff #=> 300
|
589
601
|
#
|
590
602
|
def retry_policy= new_retry_policy
|
591
|
-
|
603
|
+
ensure_service!
|
592
604
|
new_retry_policy = new_retry_policy.to_grpc if new_retry_policy
|
593
605
|
update_grpc = Google::Cloud::PubSub::V1::Subscription.new name: name, retry_policy: new_retry_policy
|
594
606
|
@grpc = service.update_subscription update_grpc, :retry_policy
|
607
|
+
@resource_name = nil
|
595
608
|
end
|
596
609
|
|
597
610
|
##
|
@@ -623,7 +636,7 @@ module Google
|
|
623
636
|
#
|
624
637
|
# See {Topic#subscribe} and {#detach}.
|
625
638
|
#
|
626
|
-
# Makes an API call to retrieve the value when called on a
|
639
|
+
# Makes an API call to retrieve the detached value when called on a
|
627
640
|
# reference object. See {#reference?}.
|
628
641
|
#
|
629
642
|
# @return [Boolean]
|
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: 2.3.
|
4
|
+
version: 2.3.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:
|
12
|
+
date: 2021-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|