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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 355d1480255766f32036dedb71834ec3cf28f8e0966bb95b9017e056633954fa
4
- data.tar.gz: c3a3583e51f3a3b066c168650677ad9c7efe598a39ea987fa8d5559f9c7d26d5
3
+ metadata.gz: 3af82f9222001a7e9b8a4648b53370da523629e3950822ec70b2994c7ff1ab69
4
+ data.tar.gz: c65a361d505e5416be05189668fb62260b91eabb89be8fedc8b4928a9a0724dc
5
5
  SHA512:
6
- metadata.gz: 0ece0f850c4b9e019104e6224c6918c888e999b70860fffd0cb7e57b4a3dd9678a4d2ba9497217aa779e69421cb50706287517c7a5ed294204cbafe954677b5d
7
- data.tar.gz: df5687af6d2805c0e48ac4bc13536af942efd6022c55a6027cd39824d750929c9746732d03c59dd59001d9954af631b3813c6d9e3a07c2f49f46ab4042dbaa14
6
+ metadata.gz: e0fd3399bed14e3ec636a352cefc9c03a34f76ad20adbd12c3c043bdebf23ea75c68b9cab5e0fe0e259911b7a466f8b0e4d0b138ea9cd3244653d13749b38920
7
+ data.tar.gz: 91243885834f4cb5c3423bc8f6e75383d95cbdb5b09b6a4bd409b701a6c0433838882188a28cf150302cd4ea3fa8c48afc669f7590d9578d67858b246ad77fc7
@@ -1,5 +1,12 @@
1
1
  # Release History
2
2
 
3
+ ### 2.3.1 / 2021-01-13
4
+
5
+ #### Bug Fixes
6
+
7
+ * Update Subscription#retry_policy=
8
+ * Remove conditional RPC to fetch full resource before update.
9
+
3
10
  ### 2.3.0 / 2020-11-18
4
11
 
5
12
  #### Features
@@ -45,7 +45,7 @@ there is a small amount of setup:
45
45
 
46
46
  ```sh
47
47
  $ cd google-cloud-pubsub/
48
- $ bundle exec rake bundleupdate
48
+ $ bundle install
49
49
  ```
50
50
 
51
51
  ## Console
@@ -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 value when called on a reference object. See {#reference?}.
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
- ensure_grpc!
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]
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module PubSub
19
- VERSION = "2.3.0".freeze
19
+ VERSION = "2.3.1".freeze
20
20
  end
21
21
 
22
22
  Pubsub = PubSub unless const_defined? :Pubsub
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.0
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: 2020-11-18 00:00:00.000000000 Z
12
+ date: 2021-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby