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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9baf526a8b94705a0743ca0614706046c014c11e9823a255aef8de94eb927962
4
- data.tar.gz: b90d14a0b11cbfd8685ed11d631d61ba27032d4a91ee71f5ae245e505c3e755b
3
+ metadata.gz: aa13ece856d024f68e7e1c7848ca48568a10935852bbfa118cd9bfc8f7e9fded
4
+ data.tar.gz: b02df87b18dfb4d060a9020d56305b0ee29790bf1fc2beb0bd4b24b61e265c60
5
5
  SHA512:
6
- metadata.gz: dae5a2eedf9edece6daf5225271961853a1c43490ed64f44ba9f0d2e747cec8eb2943111be2ea608961313697c597e555ceb93fee795e59d992562f0c5fca01a
7
- data.tar.gz: 5e394bb76ccade24fcb11ac80055cb62fe41f8872e48a2de39ace663e4815aafcee3b977af20dd0ff80f71ad9083c703ef5a3dca4f6606d894f8bf37744c2c1a
6
+ metadata.gz: 55a8f00a15cf513a9042e16fc4cb7bc988cf4f450aaecab34a4882e95896910c3810687af52d35a653d08b2c4fa20fa85a18c25d4f87b5bd3b862110afc3556a
7
+ data.tar.gz: cf0bae5e83e225dad9e7c05fc9e808c2f41333dad011e1274e1d2851c6daa5f418726a1e5c68d2b4a582b14429c7284d48b580fa2a03052936f8db3bab54e8c1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 2.18.0 (2024-03-26)
4
+
5
+ #### Features
6
+
7
+ * support ingestion_data_source_settings for create_topic ([#25418](https://github.com/googleapis/google-cloud-ruby/issues/25418))
8
+
3
9
  ### 2.17.0 (2024-03-07)
4
10
 
5
11
  #### Features
@@ -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: labels,
286
- kms_key_name: kms_key,
288
+ labels: labels,
289
+ kms_key_name: kms_key,
287
290
  persistence_regions: persistence_regions,
288
- schema_name: schema_name,
289
- message_encoding: message_encoding,
290
- retention: 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: topic_path(topic_name, options),
158
- labels: labels,
159
- kms_key_name: kms_key_name,
160
- message_storage_policy: message_storage_policy,
161
- schema_settings: 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
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module PubSub
19
- VERSION = "2.17.0".freeze
19
+ VERSION = "2.18.0".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.17.0
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-07 00:00:00.000000000 Z
12
+ date: 2024-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby