google-cloud-pubsub 1.6.0 → 1.6.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 +8 -0
- data/EMULATOR.md +1 -1
- data/lib/google/cloud/pubsub/received_message.rb +0 -5
- data/lib/google/cloud/pubsub/subscription.rb +2 -2
- data/lib/google/cloud/pubsub/subscription/push_config.rb +2 -2
- data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +3 -6
- data/lib/google/cloud/pubsub/v1/publisher_client.rb +6 -6
- data/lib/google/cloud/pubsub/v1/subscriber_client.rb +3 -6
- data/lib/google/cloud/pubsub/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65b27ec5d2bc4fe8948301c5a6d56adb62e436bb0d5da35997cc77bb05e2af59
|
4
|
+
data.tar.gz: 9f7eba965695f834c77cb50f229b2a84ae9d0039528f203b5a0e9db6758e0ae9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cb430ff1c904e6ca3248f024e8b9f82aafc5c28ca90fd45f5265a86df70fc7e48cf68d93e0b71ef4d1946beb2319e898aa6c3c8ca4f78085490b330899f9991
|
7
|
+
data.tar.gz: 8b0af8b3bb8eed0dc11c5e30a61bfb0502758340f5f7062c5f040b371231f58c057bc2d154cdb5a572e81bb674f12c27ed2f734f267a3006f06cd53b2ee6bee8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 1.6.1 / 2020-05-06
|
4
|
+
|
5
|
+
#### Documentation
|
6
|
+
|
7
|
+
* Fix example in Emulator documentation
|
8
|
+
* Remove experimental notice from ReceivedMessage#delivery_attempt
|
9
|
+
* Wrap example URLs in backticks
|
10
|
+
|
3
11
|
### 1.6.0 / 2020-04-06
|
4
12
|
|
5
13
|
#### Features
|
data/EMULATOR.md
CHANGED
@@ -17,7 +17,7 @@ require "google/cloud/pubsub"
|
|
17
17
|
# Make Pub/Sub use the emulator
|
18
18
|
ENV["PUBSUB_EMULATOR_HOST"] = "localhost:8918"
|
19
19
|
|
20
|
-
pubsub = Google::Cloud::PubSub.new "emulator-project-id"
|
20
|
+
pubsub = Google::Cloud::PubSub.new project_id:"emulator-project-id"
|
21
21
|
|
22
22
|
# Get a topic in the current project
|
23
23
|
my_topic = pubsub.new_topic "my-topic"
|
@@ -78,11 +78,6 @@ module Google
|
|
78
78
|
# The first delivery of a given message will have this value as `1`. The value is calculated at best effort and
|
79
79
|
# is approximate.
|
80
80
|
#
|
81
|
-
# EXPERIMENTAL: This feature is part of a closed alpha release and is available only to whitelisted partners.
|
82
|
-
# This method will return `nil` if a dead letter policy is not set on the subscription. This API might be
|
83
|
-
# changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA
|
84
|
-
# or deprecation policy.
|
85
|
-
#
|
86
81
|
# @return [Integer, nil] A delivery attempt value of `1` or greater, or `nil` if a dead letter policy is not set
|
87
82
|
# on the subscription.
|
88
83
|
#
|
@@ -188,7 +188,7 @@ module Google
|
|
188
188
|
##
|
189
189
|
# Returns the URL locating the endpoint to which messages should be
|
190
190
|
# pushed. For example, a Webhook endpoint might use
|
191
|
-
#
|
191
|
+
# `https://example.com/push`.
|
192
192
|
#
|
193
193
|
# Makes an API call to retrieve the endpoint value when called on a
|
194
194
|
# reference object. See {#reference?}.
|
@@ -202,7 +202,7 @@ module Google
|
|
202
202
|
|
203
203
|
##
|
204
204
|
# Sets the URL locating the endpoint to which messages should be pushed.
|
205
|
-
# For example, a Webhook endpoint might use
|
205
|
+
# For example, a Webhook endpoint might use `https://example.com/push`.
|
206
206
|
#
|
207
207
|
# @param [String] new_endpoint The new endpoint value.
|
208
208
|
#
|
@@ -52,7 +52,7 @@ module Google
|
|
52
52
|
|
53
53
|
##
|
54
54
|
# A URL locating the endpoint to which messages should be pushed. For
|
55
|
-
# example, a Webhook endpoint might use
|
55
|
+
# example, a Webhook endpoint might use `https://example.com/push`.
|
56
56
|
#
|
57
57
|
# @return [String]
|
58
58
|
def endpoint
|
@@ -62,7 +62,7 @@ module Google
|
|
62
62
|
##
|
63
63
|
# Sets the URL locating the endpoint to which messages should be
|
64
64
|
# pushed. For example, a Webhook endpoint might use
|
65
|
-
#
|
65
|
+
# `https://example.com/push`.
|
66
66
|
#
|
67
67
|
# @param [String, nil] new_endpoint New URL value
|
68
68
|
def endpoint= new_endpoint
|
@@ -107,9 +107,9 @@ module Google
|
|
107
107
|
# @return [Google::Protobuf::FieldMask]
|
108
108
|
# Required. Indicates which fields in the provided topic to update. Must be
|
109
109
|
# specified and non-empty. Note that if `update_mask` contains
|
110
|
-
# "message_storage_policy"
|
111
|
-
#
|
112
|
-
#
|
110
|
+
# "message_storage_policy" but the `message_storage_policy` is not set in
|
111
|
+
# the `topic` provided above, then the updated value is determined by the
|
112
|
+
# policy configured at the project or organization level.
|
113
113
|
class UpdateTopicRequest; end
|
114
114
|
|
115
115
|
# Request for the Publish method.
|
@@ -312,9 +312,6 @@ module Google
|
|
312
312
|
# parent project (i.e.,
|
313
313
|
# service-\\{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
|
314
314
|
# permission to Acknowledge() messages on this subscription.
|
315
|
-
# <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
|
316
|
-
# API might be changed in backward-incompatible ways and is not recommended
|
317
|
-
# for production use. It is not subject to any SLA or deprecation policy.
|
318
315
|
# @!attribute [rw] retry_policy
|
319
316
|
# @return [Google::Cloud::PubSub::V1::RetryPolicy]
|
320
317
|
# A policy that specifies how Cloud Pub/Sub retries message delivery for this
|
@@ -407,9 +407,9 @@ module Google
|
|
407
407
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
408
408
|
# Required. Indicates which fields in the provided topic to update. Must be
|
409
409
|
# specified and non-empty. Note that if `update_mask` contains
|
410
|
-
# "message_storage_policy"
|
411
|
-
#
|
412
|
-
#
|
410
|
+
# "message_storage_policy" but the `message_storage_policy` is not set in
|
411
|
+
# the `topic` provided above, then the updated value is determined by the
|
412
|
+
# policy configured at the project or organization level.
|
413
413
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
414
414
|
# can also be provided.
|
415
415
|
# @param options [Google::Gax::CallOptions]
|
@@ -725,8 +725,8 @@ module Google
|
|
725
725
|
# Sets the access control policy on the specified resource. Replaces
|
726
726
|
# any existing policy.
|
727
727
|
#
|
728
|
-
# Can return
|
729
|
-
#
|
728
|
+
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
|
729
|
+
# errors.
|
730
730
|
#
|
731
731
|
# @param resource [String]
|
732
732
|
# REQUIRED: The resource for which the policy is being specified.
|
@@ -814,7 +814,7 @@ module Google
|
|
814
814
|
|
815
815
|
# Returns permissions that a caller has on the specified resource. If the
|
816
816
|
# resource does not exist, this will return an empty set of
|
817
|
-
# permissions, not a NOT_FOUND error.
|
817
|
+
# permissions, not a `NOT_FOUND` error.
|
818
818
|
#
|
819
819
|
# Note: This operation is designed to be used for building
|
820
820
|
# permission-aware UIs and command-line tools, not for authorization
|
@@ -526,9 +526,6 @@ module Google
|
|
526
526
|
# parent project (i.e.,
|
527
527
|
# service-\\{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have
|
528
528
|
# permission to Acknowledge() messages on this subscription.
|
529
|
-
# <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
|
530
|
-
# API might be changed in backward-incompatible ways and is not recommended
|
531
|
-
# for production use. It is not subject to any SLA or deprecation policy.
|
532
529
|
# A hash of the same form as `Google::Cloud::PubSub::V1::DeadLetterPolicy`
|
533
530
|
# can also be provided.
|
534
531
|
# @param retry_policy [Google::Cloud::PubSub::V1::RetryPolicy | Hash]
|
@@ -1322,8 +1319,8 @@ module Google
|
|
1322
1319
|
# Sets the access control policy on the specified resource. Replaces
|
1323
1320
|
# any existing policy.
|
1324
1321
|
#
|
1325
|
-
# Can return
|
1326
|
-
#
|
1322
|
+
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
|
1323
|
+
# errors.
|
1327
1324
|
#
|
1328
1325
|
# @param resource [String]
|
1329
1326
|
# REQUIRED: The resource for which the policy is being specified.
|
@@ -1411,7 +1408,7 @@ module Google
|
|
1411
1408
|
|
1412
1409
|
# Returns permissions that a caller has on the specified resource. If the
|
1413
1410
|
# resource does not exist, this will return an empty set of
|
1414
|
-
# permissions, not a NOT_FOUND error.
|
1411
|
+
# permissions, not a `NOT_FOUND` error.
|
1415
1412
|
#
|
1416
1413
|
# Note: This operation is designed to be used for building
|
1417
1414
|
# permission-aware UIs and command-line tools, not for authorization
|
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.6.
|
4
|
+
version: 1.6.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-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -141,14 +141,14 @@ dependencies:
|
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '5.
|
144
|
+
version: '5.14'
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '5.
|
151
|
+
version: '5.14'
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: minitest-autotest
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|