google-cloud-pubsub 2.17.0 → 2.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/google/cloud/pubsub/project.rb +10 -6
- data/lib/google/cloud/pubsub/service.rb +8 -6
- 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: aa13ece856d024f68e7e1c7848ca48568a10935852bbfa118cd9bfc8f7e9fded
|
4
|
+
data.tar.gz: b02df87b18dfb4d060a9020d56305b0ee29790bf1fc2beb0bd4b24b61e265c60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a8f00a15cf513a9042e16fc4cb7bc988cf4f450aaecab34a4882e95896910c3810687af52d35a653d08b2c4fa20fa85a18c25d4f87b5bd3b862110afc3556a
|
7
|
+
data.tar.gz: cf0bae5e83e225dad9e7c05fc9e808c2f41333dad011e1274e1d2851c6daa5f418726a1e5c68d2b4a582b14429c7284d48b580fa2a03052936f8db3bab54e8c1
|
data/CHANGELOG.md
CHANGED
@@ -263,6 +263,8 @@ module Google
|
|
263
263
|
# that is up to `retention` number of seconds in the past. If this field is
|
264
264
|
# not set, message retention is controlled by settings on individual
|
265
265
|
# subscriptions. Cannot be less than 600 (10 minutes) or more than 604,800 (7 days).
|
266
|
+
# @param ingestion_data_source_settings [::Google::Cloud::PubSub::V1::IngestionDataSourceSettings, ::Hash]
|
267
|
+
# Optional. Settings for ingestion from a data source into this topic.
|
266
268
|
#
|
267
269
|
# @return [Google::Cloud::PubSub::Topic]
|
268
270
|
#
|
@@ -279,15 +281,17 @@ module Google
|
|
279
281
|
async: nil,
|
280
282
|
schema_name: nil,
|
281
283
|
message_encoding: nil,
|
282
|
-
retention: nil
|
284
|
+
retention: nil,
|
285
|
+
ingestion_data_source_settings: nil
|
283
286
|
ensure_service!
|
284
287
|
grpc = service.create_topic topic_name,
|
285
|
-
labels:
|
286
|
-
kms_key_name:
|
288
|
+
labels: labels,
|
289
|
+
kms_key_name: kms_key,
|
287
290
|
persistence_regions: persistence_regions,
|
288
|
-
schema_name:
|
289
|
-
message_encoding:
|
290
|
-
retention:
|
291
|
+
schema_name: schema_name,
|
292
|
+
message_encoding: message_encoding,
|
293
|
+
retention: retention,
|
294
|
+
ingestion_data_source_settings: ingestion_data_source_settings
|
291
295
|
Topic.from_grpc grpc, service, async: async
|
292
296
|
end
|
293
297
|
alias new_topic create_topic
|
@@ -136,6 +136,7 @@ module Google
|
|
136
136
|
schema_name: nil,
|
137
137
|
message_encoding: nil,
|
138
138
|
retention: nil,
|
139
|
+
ingestion_data_source_settings: nil,
|
139
140
|
options: {}
|
140
141
|
if persistence_regions
|
141
142
|
message_storage_policy = Google::Cloud::PubSub::V1::MessageStoragePolicy.new(
|
@@ -154,12 +155,13 @@ module Google
|
|
154
155
|
end
|
155
156
|
|
156
157
|
publisher.create_topic \
|
157
|
-
name:
|
158
|
-
labels:
|
159
|
-
kms_key_name:
|
160
|
-
message_storage_policy:
|
161
|
-
schema_settings:
|
162
|
-
message_retention_duration: Convert.number_to_duration(retention)
|
158
|
+
name: topic_path(topic_name, options),
|
159
|
+
labels: labels,
|
160
|
+
kms_key_name: kms_key_name,
|
161
|
+
message_storage_policy: message_storage_policy,
|
162
|
+
schema_settings: schema_settings,
|
163
|
+
message_retention_duration: Convert.number_to_duration(retention),
|
164
|
+
ingestion_data_source_settings: ingestion_data_source_settings
|
163
165
|
end
|
164
166
|
|
165
167
|
def update_topic topic_obj, *fields
|
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.
|
4
|
+
version: 2.18.0
|
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: 2024-03-
|
12
|
+
date: 2024-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|