google-apis-pubsub_v1 0.35.0 → 0.36.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: b109046e6a87796673b1c58adf271a2d75a90ea57788ba97d95a4602b4b93888
4
- data.tar.gz: 3185d04cf4fe7a090be3e6b580b8edc06272be905b4e58f0dbf9d761458f11d9
3
+ metadata.gz: c87be04cdf55f91999f829fdd4fab97b80891298512725eb8625be7a960db6c7
4
+ data.tar.gz: 5712f0802bce713738072ff8421e37e711156629f54f2e3371529fcab80d6800
5
5
  SHA512:
6
- metadata.gz: d40dd6c3a4bacac73aa3b4b37290de57c128f1d5ce099ac7d1028d62acb88fb9fc8b6fb6c18154f38303dac7ec4162fbf528df7f5d0833aefa71f9e85dd4afef
7
- data.tar.gz: 82b08c8acc2399f73ce23c77489e000036163142c021798ac4547fbdbf8341c10d86570576d247d8148e0bfa33527837fa0d1b66335135cfd158cd87bb5efcdf
6
+ metadata.gz: 8488ffee537c4ba80e951f98e62f33940e5c587085dd3ad2e9a669f971201f94cb4415825e4b58af1508c7487d209ead1dc6a5327beb7e74bfe95cd1997f47b2
7
+ data.tar.gz: be9e8b9fbca94c76c6cc1514856bf5b01df6f9b710dfdbbb5522480448402d0b15fff4c1ef73d2fd83a0e3b2ad9161f261008ffa69c19c06fc6433ed054d23f6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.36.0 (2023-05-07)
4
+
5
+ * Regenerated from discovery document revision 20230425
6
+
3
7
  ### v0.35.0 (2023-02-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20230218
@@ -42,6 +42,28 @@ module Google
42
42
  end
43
43
  end
44
44
 
45
+ # Configuration for writing message data in Avro format. Message payloads and
46
+ # metadata will be written to files as an Avro binary.
47
+ class AvroConfig
48
+ include Google::Apis::Core::Hashable
49
+
50
+ # When true, write the subscription name, message_id, publish_time, attributes,
51
+ # and ordering_key as additional fields in the output.
52
+ # Corresponds to the JSON property `writeMetadata`
53
+ # @return [Boolean]
54
+ attr_accessor :write_metadata
55
+ alias_method :write_metadata?, :write_metadata
56
+
57
+ def initialize(**args)
58
+ update!(**args)
59
+ end
60
+
61
+ # Update properties of this object
62
+ def update!(**args)
63
+ @write_metadata = args[:write_metadata] if args.key?(:write_metadata)
64
+ end
65
+ end
66
+
45
67
  # Configuration for a BigQuery subscription.
46
68
  class BigQueryConfig
47
69
  include Google::Apis::Core::Hashable
@@ -175,6 +197,79 @@ module Google
175
197
  end
176
198
  end
177
199
 
200
+ # Configuration for a Cloud Storage subscription.
201
+ class CloudStorageConfig
202
+ include Google::Apis::Core::Hashable
203
+
204
+ # Configuration for writing message data in Avro format. Message payloads and
205
+ # metadata will be written to files as an Avro binary.
206
+ # Corresponds to the JSON property `avroConfig`
207
+ # @return [Google::Apis::PubsubV1::AvroConfig]
208
+ attr_accessor :avro_config
209
+
210
+ # Required. User-provided name for the Cloud Storage bucket. The bucket must be
211
+ # created by the user. The bucket name must be without any prefix like "gs://".
212
+ # See the [bucket naming requirements] (https://cloud.google.com/storage/docs/
213
+ # buckets#naming).
214
+ # Corresponds to the JSON property `bucket`
215
+ # @return [String]
216
+ attr_accessor :bucket
217
+
218
+ # User-provided prefix for Cloud Storage filename. See the [object naming
219
+ # requirements](https://cloud.google.com/storage/docs/objects#naming).
220
+ # Corresponds to the JSON property `filenamePrefix`
221
+ # @return [String]
222
+ attr_accessor :filename_prefix
223
+
224
+ # User-provided suffix for Cloud Storage filename. See the [object naming
225
+ # requirements](https://cloud.google.com/storage/docs/objects#naming).
226
+ # Corresponds to the JSON property `filenameSuffix`
227
+ # @return [String]
228
+ attr_accessor :filename_suffix
229
+
230
+ # The maximum bytes that can be written to a Cloud Storage file before a new
231
+ # file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded in
232
+ # cases where messages are larger than the limit.
233
+ # Corresponds to the JSON property `maxBytes`
234
+ # @return [Fixnum]
235
+ attr_accessor :max_bytes
236
+
237
+ # The maximum duration that can elapse before a new Cloud Storage file is
238
+ # created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed the
239
+ # subscription's acknowledgement deadline.
240
+ # Corresponds to the JSON property `maxDuration`
241
+ # @return [String]
242
+ attr_accessor :max_duration
243
+
244
+ # Output only. An output-only field that indicates whether or not the
245
+ # subscription can receive messages.
246
+ # Corresponds to the JSON property `state`
247
+ # @return [String]
248
+ attr_accessor :state
249
+
250
+ # Configuration for writing message data in text format. Message payloads will
251
+ # be written to files as raw text, separated by a newline.
252
+ # Corresponds to the JSON property `textConfig`
253
+ # @return [Google::Apis::PubsubV1::TextConfig]
254
+ attr_accessor :text_config
255
+
256
+ def initialize(**args)
257
+ update!(**args)
258
+ end
259
+
260
+ # Update properties of this object
261
+ def update!(**args)
262
+ @avro_config = args[:avro_config] if args.key?(:avro_config)
263
+ @bucket = args[:bucket] if args.key?(:bucket)
264
+ @filename_prefix = args[:filename_prefix] if args.key?(:filename_prefix)
265
+ @filename_suffix = args[:filename_suffix] if args.key?(:filename_suffix)
266
+ @max_bytes = args[:max_bytes] if args.key?(:max_bytes)
267
+ @max_duration = args[:max_duration] if args.key?(:max_duration)
268
+ @state = args[:state] if args.key?(:state)
269
+ @text_config = args[:text_config] if args.key?(:text_config)
270
+ end
271
+ end
272
+
178
273
  # Request for CommitSchema method.
179
274
  class CommitSchemaRequest
180
275
  include Google::Apis::Core::Hashable
@@ -1291,9 +1386,9 @@ module Google
1291
1386
  end
1292
1387
  end
1293
1388
 
1294
- # A subscription resource. If none of `push_config` or `bigquery_config` is set,
1295
- # then the subscriber will pull and ack messages using API methods. At most one
1296
- # of these fields may be set.
1389
+ # A subscription resource. If none of `push_config`, `bigquery_config`, or `
1390
+ # cloud_storage_config` is set, then the subscriber will pull and ack messages
1391
+ # using API methods. At most one of these fields may be set.
1297
1392
  class Subscription
1298
1393
  include Google::Apis::Core::Hashable
1299
1394
 
@@ -1321,6 +1416,11 @@ module Google
1321
1416
  # @return [Google::Apis::PubsubV1::BigQueryConfig]
1322
1417
  attr_accessor :bigquery_config
1323
1418
 
1419
+ # Configuration for a Cloud Storage subscription.
1420
+ # Corresponds to the JSON property `cloudStorageConfig`
1421
+ # @return [Google::Apis::PubsubV1::CloudStorageConfig]
1422
+ attr_accessor :cloud_storage_config
1423
+
1324
1424
  # Dead lettering is done on a best effort basis. The same message might be dead
1325
1425
  # lettered multiple times. If validation on any of the fields fails at
1326
1426
  # subscription creation/updation, the create/update subscription request will
@@ -1457,6 +1557,7 @@ module Google
1457
1557
  def update!(**args)
1458
1558
  @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
1459
1559
  @bigquery_config = args[:bigquery_config] if args.key?(:bigquery_config)
1560
+ @cloud_storage_config = args[:cloud_storage_config] if args.key?(:cloud_storage_config)
1460
1561
  @dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
1461
1562
  @detached = args[:detached] if args.key?(:detached)
1462
1563
  @enable_exactly_once_delivery = args[:enable_exactly_once_delivery] if args.key?(:enable_exactly_once_delivery)
@@ -1515,6 +1616,20 @@ module Google
1515
1616
  end
1516
1617
  end
1517
1618
 
1619
+ # Configuration for writing message data in text format. Message payloads will
1620
+ # be written to files as raw text, separated by a newline.
1621
+ class TextConfig
1622
+ include Google::Apis::Core::Hashable
1623
+
1624
+ def initialize(**args)
1625
+ update!(**args)
1626
+ end
1627
+
1628
+ # Update properties of this object
1629
+ def update!(**args)
1630
+ end
1631
+ end
1632
+
1518
1633
  # A topic resource.
1519
1634
  class Topic
1520
1635
  include Google::Apis::Core::Hashable
@@ -1619,9 +1734,9 @@ module Google
1619
1734
  class UpdateSubscriptionRequest
1620
1735
  include Google::Apis::Core::Hashable
1621
1736
 
1622
- # A subscription resource. If none of `push_config` or `bigquery_config` is set,
1623
- # then the subscriber will pull and ack messages using API methods. At most one
1624
- # of these fields may be set.
1737
+ # A subscription resource. If none of `push_config`, `bigquery_config`, or `
1738
+ # cloud_storage_config` is set, then the subscriber will pull and ack messages
1739
+ # using API methods. At most one of these fields may be set.
1625
1740
  # Corresponds to the JSON property `subscription`
1626
1741
  # @return [Google::Apis::PubsubV1::Subscription]
1627
1742
  attr_accessor :subscription
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PubsubV1
18
18
  # Version of the google-apis-pubsub_v1 gem
19
- GEM_VERSION = "0.35.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230218"
25
+ REVISION = "20230425"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AvroConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class BigQueryConfig
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -40,6 +46,12 @@ module Google
40
46
  include Google::Apis::Core::JsonObjectSupport
41
47
  end
42
48
 
49
+ class CloudStorageConfig
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class CommitSchemaRequest
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -262,6 +274,12 @@ module Google
262
274
  include Google::Apis::Core::JsonObjectSupport
263
275
  end
264
276
 
277
+ class TextConfig
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
265
283
  class Topic
266
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
285
 
@@ -317,6 +335,13 @@ module Google
317
335
  end
318
336
  end
319
337
 
338
+ class AvroConfig
339
+ # @private
340
+ class Representation < Google::Apis::Core::JsonRepresentation
341
+ property :write_metadata, as: 'writeMetadata'
342
+ end
343
+ end
344
+
320
345
  class BigQueryConfig
321
346
  # @private
322
347
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -338,6 +363,22 @@ module Google
338
363
  end
339
364
  end
340
365
 
366
+ class CloudStorageConfig
367
+ # @private
368
+ class Representation < Google::Apis::Core::JsonRepresentation
369
+ property :avro_config, as: 'avroConfig', class: Google::Apis::PubsubV1::AvroConfig, decorator: Google::Apis::PubsubV1::AvroConfig::Representation
370
+
371
+ property :bucket, as: 'bucket'
372
+ property :filename_prefix, as: 'filenamePrefix'
373
+ property :filename_suffix, as: 'filenameSuffix'
374
+ property :max_bytes, :numeric_string => true, as: 'maxBytes'
375
+ property :max_duration, as: 'maxDuration'
376
+ property :state, as: 'state'
377
+ property :text_config, as: 'textConfig', class: Google::Apis::PubsubV1::TextConfig, decorator: Google::Apis::PubsubV1::TextConfig::Representation
378
+
379
+ end
380
+ end
381
+
341
382
  class CommitSchemaRequest
342
383
  # @private
343
384
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -629,6 +670,8 @@ module Google
629
670
  property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
630
671
  property :bigquery_config, as: 'bigqueryConfig', class: Google::Apis::PubsubV1::BigQueryConfig, decorator: Google::Apis::PubsubV1::BigQueryConfig::Representation
631
672
 
673
+ property :cloud_storage_config, as: 'cloudStorageConfig', class: Google::Apis::PubsubV1::CloudStorageConfig, decorator: Google::Apis::PubsubV1::CloudStorageConfig::Representation
674
+
632
675
  property :dead_letter_policy, as: 'deadLetterPolicy', class: Google::Apis::PubsubV1::DeadLetterPolicy, decorator: Google::Apis::PubsubV1::DeadLetterPolicy::Representation
633
676
 
634
677
  property :detached, as: 'detached'
@@ -665,6 +708,12 @@ module Google
665
708
  end
666
709
  end
667
710
 
711
+ class TextConfig
712
+ # @private
713
+ class Representation < Google::Apis::Core::JsonRepresentation
714
+ end
715
+ end
716
+
668
717
  class Topic
669
718
  # @private
670
719
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-pubsub_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.36.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: 2023-02-26 00:00:00.000000000 Z
11
+ date: 2023-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pubsub_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.36.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pubsub_v1
63
63
  post_install_message:
64
64
  rdoc_options: []