google-cloud-pubsub-v1 0.6.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9b371b74af6822f2303c2dfd2b419d68425e30c004c717fbaa31d98717f9d2e
4
- data.tar.gz: 9a11eaf7b57bc71d1dc798d886cf0a27b1edc5d32ca52f4a10c59c65d5619a0d
3
+ metadata.gz: 5f116b2346c2abd053ce718fe01d61ecd08eb4ceeceb9f877bfe1f5e0a9cabbc
4
+ data.tar.gz: 00571d24398815cb9c58af6e84c8f039761d4fae331af3eedb3bb33dcf999e17
5
5
  SHA512:
6
- metadata.gz: e967c29446173d32f770818d11b736264e5d20a79cc69779c1ff7d5794e7c13f8cfada536623f9e9e2ac04eeace5564fd22fa1a55d4f025d4d2b82501288f93c
7
- data.tar.gz: a3b925dfeccfbb6e8f50d41d26a15dfdc344d8b83ba6ddd1ca2d95f1ada99a793bce5a3620b7c6150f9257e65cf864161843e5f7c231c2032675d29a937d3949
6
+ metadata.gz: e562784e1fb6bb9ab903da8abc82b2841950942b8a8516d3c896045e25918946df767ad7ce72c1efb281daebe4bc577c0221cc817d06363948d007f489ec5511
7
+ data.tar.gz: f83cec94bba896acb0c12e82fa93672ec1acd03f2d2a67eee30c9011331d57206024383db3aff966a4d5a83ef848e9c61eb92df9e70abee3eaa2d54017298d5f
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::PubSub::V1::CreateSchemaRequest.new # (request fields
37
37
  response = client.create_schema request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-pubsub-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-pubsub-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/pubsub)
@@ -249,7 +249,7 @@ module Google
249
249
  # @param options [::Gapic::CallOptions, ::Hash]
250
250
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
251
251
  #
252
- # @overload create_subscription(name: nil, topic: nil, push_config: nil, ack_deadline_seconds: nil, retain_acked_messages: nil, message_retention_duration: nil, labels: nil, enable_message_ordering: nil, expiration_policy: nil, filter: nil, dead_letter_policy: nil, retry_policy: nil, detached: nil)
252
+ # @overload create_subscription(name: nil, topic: nil, push_config: nil, ack_deadline_seconds: nil, retain_acked_messages: nil, message_retention_duration: nil, labels: nil, enable_message_ordering: nil, expiration_policy: nil, filter: nil, dead_letter_policy: nil, retry_policy: nil, detached: nil, enable_exactly_once_delivery: nil)
253
253
  # Pass arguments to `create_subscription` via keyword arguments. Note that at
254
254
  # least one keyword argument is required. To specify no parameters, or to keep all
255
255
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -348,6 +348,18 @@ module Google
348
348
  # backlog. `Pull` and `StreamingPull` requests will return
349
349
  # FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
350
350
  # the endpoint will not be made.
351
+ # @param enable_exactly_once_delivery [::Boolean]
352
+ # If true, Pub/Sub provides the following guarantees for the delivery of
353
+ # a message with a given value of `message_id` on this subscription:
354
+ #
355
+ # * The message sent to a subscriber is guaranteed not to be resent
356
+ # before the message's acknowledgement deadline expires.
357
+ # * An acknowledged message will not be resent to a subscriber.
358
+ #
359
+ # Note that subscribers may still receive multiple copies of a message
360
+ # when `enable_exactly_once_delivery` is true if the message was published
361
+ # multiple times by a publisher client. These copies are considered distinct
362
+ # by Pub/Sub and have distinct `message_id` values.
351
363
  #
352
364
  # @yield [response, operation] Access the result along with the RPC operation
353
365
  # @yieldparam response [::Google::Cloud::PubSub::V1::Subscription]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- VERSION = "0.6.2"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -100,6 +100,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
100
100
  optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
101
101
  optional :retry_policy, :message, 14, "google.pubsub.v1.RetryPolicy"
102
102
  optional :detached, :bool, 15
103
+ optional :enable_exactly_once_delivery, :bool, 16
103
104
  optional :topic_message_retention_duration, :message, 17, "google.protobuf.Duration"
104
105
  end
105
106
  add_message "google.pubsub.v1.RetryPolicy" do
@@ -181,9 +182,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
181
182
  end
182
183
  add_message "google.pubsub.v1.StreamingPullResponse" do
183
184
  repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
185
+ optional :acknowlege_confirmation, :message, 2, "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation"
186
+ optional :modify_ack_deadline_confirmation, :message, 3, "google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation"
184
187
  optional :subscription_properties, :message, 4, "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties"
185
188
  end
189
+ add_message "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation" do
190
+ repeated :ack_ids, :string, 1
191
+ repeated :invalid_ack_ids, :string, 2
192
+ repeated :unordered_ack_ids, :string, 3
193
+ end
194
+ add_message "google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation" do
195
+ repeated :ack_ids, :string, 1
196
+ repeated :invalid_ack_ids, :string, 2
197
+ end
186
198
  add_message "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties" do
199
+ optional :exactly_once_delivery_enabled, :bool, 1
187
200
  optional :message_ordering_enabled, :bool, 2
188
201
  end
189
202
  add_message "google.pubsub.v1.CreateSnapshotRequest" do
@@ -268,6 +281,8 @@ module Google
268
281
  AcknowledgeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
269
282
  StreamingPullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
270
283
  StreamingPullResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
284
+ StreamingPullResponse::AcknowledgeConfirmation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation").msgclass
285
+ StreamingPullResponse::ModifyAckDeadlineConfirmation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation").msgclass
271
286
  StreamingPullResponse::SubscriptionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse.SubscriptionProperties").msgclass
272
287
  CreateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
273
288
  UpdateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSnapshotRequest").msgclass
@@ -434,6 +434,19 @@ module Google
434
434
  # backlog. `Pull` and `StreamingPull` requests will return
435
435
  # FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
436
436
  # the endpoint will not be made.
437
+ # @!attribute [rw] enable_exactly_once_delivery
438
+ # @return [::Boolean]
439
+ # If true, Pub/Sub provides the following guarantees for the delivery of
440
+ # a message with a given value of `message_id` on this subscription:
441
+ #
442
+ # * The message sent to a subscriber is guaranteed not to be resent
443
+ # before the message's acknowledgement deadline expires.
444
+ # * An acknowledged message will not be resent to a subscriber.
445
+ #
446
+ # Note that subscribers may still receive multiple copies of a message
447
+ # when `enable_exactly_once_delivery` is true if the message was published
448
+ # multiple times by a publisher client. These copies are considered distinct
449
+ # by Pub/Sub and have distinct `message_id` values.
437
450
  # @!attribute [r] topic_message_retention_duration
438
451
  # @return [::Google::Protobuf::Duration]
439
452
  # Output only. Indicates the minimum duration for which a message is retained
@@ -869,6 +882,14 @@ module Google
869
882
  # @!attribute [rw] received_messages
870
883
  # @return [::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>]
871
884
  # Received Pub/Sub messages. This will not be empty.
885
+ # @!attribute [rw] acknowlege_confirmation
886
+ # @return [::Google::Cloud::PubSub::V1::StreamingPullResponse::AcknowledgeConfirmation]
887
+ # This field will only be set if `enable_exactly_once_delivery` is set to
888
+ # `true`.
889
+ # @!attribute [rw] modify_ack_deadline_confirmation
890
+ # @return [::Google::Cloud::PubSub::V1::StreamingPullResponse::ModifyAckDeadlineConfirmation]
891
+ # This field will only be set if `enable_exactly_once_delivery` is set to
892
+ # `true`.
872
893
  # @!attribute [rw] subscription_properties
873
894
  # @return [::Google::Cloud::PubSub::V1::StreamingPullResponse::SubscriptionProperties]
874
895
  # Properties associated with this subscription.
@@ -876,7 +897,41 @@ module Google
876
897
  include ::Google::Protobuf::MessageExts
877
898
  extend ::Google::Protobuf::MessageExts::ClassMethods
878
899
 
900
+ # Acknowledgement IDs sent in one or more previous requests to acknowledge a
901
+ # previously received message.
902
+ # @!attribute [rw] ack_ids
903
+ # @return [::Array<::String>]
904
+ # Successfully processed acknowledgement IDs.
905
+ # @!attribute [rw] invalid_ack_ids
906
+ # @return [::Array<::String>]
907
+ # List of acknowledgement IDs that were malformed or whose acknowledgement
908
+ # deadline has expired.
909
+ # @!attribute [rw] unordered_ack_ids
910
+ # @return [::Array<::String>]
911
+ # List of acknowledgement IDs that were out of order.
912
+ class AcknowledgeConfirmation
913
+ include ::Google::Protobuf::MessageExts
914
+ extend ::Google::Protobuf::MessageExts::ClassMethods
915
+ end
916
+
917
+ # Acknowledgement IDs sent in one or more previous requests to modify the
918
+ # deadline for a specific message.
919
+ # @!attribute [rw] ack_ids
920
+ # @return [::Array<::String>]
921
+ # Successfully processed acknowledgement IDs.
922
+ # @!attribute [rw] invalid_ack_ids
923
+ # @return [::Array<::String>]
924
+ # List of acknowledgement IDs that were malformed or whose acknowledgement
925
+ # deadline has expired.
926
+ class ModifyAckDeadlineConfirmation
927
+ include ::Google::Protobuf::MessageExts
928
+ extend ::Google::Protobuf::MessageExts::ClassMethods
929
+ end
930
+
879
931
  # Subscription properties sent as part of the response.
932
+ # @!attribute [rw] exactly_once_delivery_enabled
933
+ # @return [::Boolean]
934
+ # True iff exactly once delivery is enabled for this subscription.
880
935
  # @!attribute [rw] message_ordering_enabled
881
936
  # @return [::Boolean]
882
937
  # True iff message ordering is enabled for this subscription.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-pubsub-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  - !ruby/object:Gem::Version
246
246
  version: '0'
247
247
  requirements: []
248
- rubygems_version: 3.3.4
248
+ rubygems_version: 3.3.5
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: API Client library for the Cloud Pub/Sub V1 API