google-apis-pubsub_v1 0.53.0 → 0.56.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 021d4d3dd6c81266a4c6459415c71b8b8c1512e2b6bf26516565916c9541563b
4
- data.tar.gz: fd2be5a6d8f2e34d35c84f5d958f11f47216d9c3a757968e2e0fefc9713b0622
3
+ metadata.gz: b23edc30cf2d3984946982f54e729addc7ce922d5c83fe8d05eceb6da467c507
4
+ data.tar.gz: 65a33e452273d9075133dc4e86a1bd4d40aac7f1371904bbd71cbb1d77e8bcc9
5
5
  SHA512:
6
- metadata.gz: b484ff2478c4be5ea62c02970f0b3860691e56da97b1e46bc51e21dd718a6899a286fed58a6c6bf6b228908ef785a6703433e2797735cb6a33e074c667eba355
7
- data.tar.gz: a5892457b2d5a0031ccf8372bf5b9757d8308240cfdbe7ef24c830149617a3d03a3faf65089f8d661ca348ba0e22ab089c2310c96a0227404ea6d2a30fa4fe31
6
+ metadata.gz: 311ee6e7e52f6fb9dd562a6c99979a99ecd21baabe3e8cf764f0654163bc8da0ee269fecb62bb531fd30f535855cd63679af378ee13fc14354c48820c95621e3
7
+ data.tar.gz: 41590c38980560a63c5cf48f3264dc995d512d4030d3b1ba545582085854a9c66242b3d6e9f200a41c67e26e48446d64cd38140017bc8e43b29cbf1ee93b6578
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.56.0 (2024-09-29)
4
+
5
+ * Regenerated from discovery document revision 20240918
6
+
7
+ ### v0.55.0 (2024-09-22)
8
+
9
+ * Regenerated from discovery document revision 20240912
10
+ * Regenerated using generator version 0.15.1
11
+
12
+ ### v0.54.0 (2024-07-25)
13
+
14
+ * Regenerated from discovery document revision 20240702
15
+
3
16
  ### v0.53.0 (2024-06-26)
4
17
 
5
18
  * Regenerated from discovery document revision 20240618
@@ -104,6 +104,20 @@ module Google
104
104
  end
105
105
  end
106
106
 
107
+ # Configuration for reading Cloud Storage data in Avro binary format. The bytes
108
+ # of each object will be set to the `data` field of a Pub/Sub message.
109
+ class AvroFormat
110
+ include Google::Apis::Core::Hashable
111
+
112
+ def initialize(**args)
113
+ update!(**args)
114
+ end
115
+
116
+ # Update properties of this object
117
+ def update!(**args)
118
+ end
119
+ end
120
+
107
121
  # Ingestion settings for Amazon Kinesis Data Streams.
108
122
  class AwsKinesis
109
123
  include Google::Apis::Core::Hashable
@@ -332,6 +346,74 @@ module Google
332
346
  end
333
347
  end
334
348
 
349
+ # Ingestion settings for Cloud Storage.
350
+ class CloudStorage
351
+ include Google::Apis::Core::Hashable
352
+
353
+ # Configuration for reading Cloud Storage data in Avro binary format. The bytes
354
+ # of each object will be set to the `data` field of a Pub/Sub message.
355
+ # Corresponds to the JSON property `avroFormat`
356
+ # @return [Google::Apis::PubsubV1::AvroFormat]
357
+ attr_accessor :avro_format
358
+
359
+ # Optional. Cloud Storage bucket. The bucket name must be without any prefix
360
+ # like "gs://". See the [bucket naming requirements] (https://cloud.google.com/
361
+ # storage/docs/buckets#naming).
362
+ # Corresponds to the JSON property `bucket`
363
+ # @return [String]
364
+ attr_accessor :bucket
365
+
366
+ # Optional. Glob pattern used to match objects that will be ingested. If unset,
367
+ # all objects will be ingested. See the [supported patterns](https://cloud.
368
+ # google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-
369
+ # using-glob).
370
+ # Corresponds to the JSON property `matchGlob`
371
+ # @return [String]
372
+ attr_accessor :match_glob
373
+
374
+ # Optional. Only objects with a larger or equal creation timestamp will be
375
+ # ingested.
376
+ # Corresponds to the JSON property `minimumObjectCreateTime`
377
+ # @return [String]
378
+ attr_accessor :minimum_object_create_time
379
+
380
+ # Configuration for reading Cloud Storage data written via [Cloud Storage
381
+ # subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The data
382
+ # and attributes fields of the originally exported Pub/Sub message will be
383
+ # restored when publishing.
384
+ # Corresponds to the JSON property `pubsubAvroFormat`
385
+ # @return [Google::Apis::PubsubV1::PubSubAvroFormat]
386
+ attr_accessor :pubsub_avro_format
387
+
388
+ # Output only. An output-only field that indicates the state of the Cloud
389
+ # Storage ingestion source.
390
+ # Corresponds to the JSON property `state`
391
+ # @return [String]
392
+ attr_accessor :state
393
+
394
+ # Configuration for reading Cloud Storage data in text format. Each line of text
395
+ # as specified by the delimiter will be set to the `data` field of a Pub/Sub
396
+ # message.
397
+ # Corresponds to the JSON property `textFormat`
398
+ # @return [Google::Apis::PubsubV1::TextFormat]
399
+ attr_accessor :text_format
400
+
401
+ def initialize(**args)
402
+ update!(**args)
403
+ end
404
+
405
+ # Update properties of this object
406
+ def update!(**args)
407
+ @avro_format = args[:avro_format] if args.key?(:avro_format)
408
+ @bucket = args[:bucket] if args.key?(:bucket)
409
+ @match_glob = args[:match_glob] if args.key?(:match_glob)
410
+ @minimum_object_create_time = args[:minimum_object_create_time] if args.key?(:minimum_object_create_time)
411
+ @pubsub_avro_format = args[:pubsub_avro_format] if args.key?(:pubsub_avro_format)
412
+ @state = args[:state] if args.key?(:state)
413
+ @text_format = args[:text_format] if args.key?(:text_format)
414
+ end
415
+ end
416
+
335
417
  # Configuration for a Cloud Storage subscription.
336
418
  class CloudStorageConfig
337
419
  include Google::Apis::Core::Hashable
@@ -384,6 +466,12 @@ module Google
384
466
  # @return [String]
385
467
  attr_accessor :max_duration
386
468
 
469
+ # Optional. The maximum number of messages that can be written to a Cloud
470
+ # Storage file before a new file is created. Min 1000 messages.
471
+ # Corresponds to the JSON property `maxMessages`
472
+ # @return [Fixnum]
473
+ attr_accessor :max_messages
474
+
387
475
  # Optional. The service account to use to write to Cloud Storage. The
388
476
  # subscription creator or updater that specifies this field must have `iam.
389
477
  # serviceAccounts.actAs` permission on the service account. If not specified,
@@ -418,6 +506,7 @@ module Google
418
506
  @filename_suffix = args[:filename_suffix] if args.key?(:filename_suffix)
419
507
  @max_bytes = args[:max_bytes] if args.key?(:max_bytes)
420
508
  @max_duration = args[:max_duration] if args.key?(:max_duration)
509
+ @max_messages = args[:max_messages] if args.key?(:max_messages)
421
510
  @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
422
511
  @state = args[:state] if args.key?(:state)
423
512
  @text_config = args[:text_config] if args.key?(:text_config)
@@ -631,6 +720,16 @@ module Google
631
720
  # @return [Google::Apis::PubsubV1::AwsKinesis]
632
721
  attr_accessor :aws_kinesis
633
722
 
723
+ # Ingestion settings for Cloud Storage.
724
+ # Corresponds to the JSON property `cloudStorage`
725
+ # @return [Google::Apis::PubsubV1::CloudStorage]
726
+ attr_accessor :cloud_storage
727
+
728
+ # Settings for Platform Logs produced by Pub/Sub.
729
+ # Corresponds to the JSON property `platformLogsSettings`
730
+ # @return [Google::Apis::PubsubV1::PlatformLogsSettings]
731
+ attr_accessor :platform_logs_settings
732
+
634
733
  def initialize(**args)
635
734
  update!(**args)
636
735
  end
@@ -638,6 +737,8 @@ module Google
638
737
  # Update properties of this object
639
738
  def update!(**args)
640
739
  @aws_kinesis = args[:aws_kinesis] if args.key?(:aws_kinesis)
740
+ @cloud_storage = args[:cloud_storage] if args.key?(:cloud_storage)
741
+ @platform_logs_settings = args[:platform_logs_settings] if args.key?(:platform_logs_settings)
641
742
  end
642
743
  end
643
744
 
@@ -968,6 +1069,25 @@ module Google
968
1069
  end
969
1070
  end
970
1071
 
1072
+ # Settings for Platform Logs produced by Pub/Sub.
1073
+ class PlatformLogsSettings
1074
+ include Google::Apis::Core::Hashable
1075
+
1076
+ # Optional. The minimum severity level of Platform Logs that will be written.
1077
+ # Corresponds to the JSON property `severity`
1078
+ # @return [String]
1079
+ attr_accessor :severity
1080
+
1081
+ def initialize(**args)
1082
+ update!(**args)
1083
+ end
1084
+
1085
+ # Update properties of this object
1086
+ def update!(**args)
1087
+ @severity = args[:severity] if args.key?(:severity)
1088
+ end
1089
+ end
1090
+
971
1091
  # An Identity and Access Management (IAM) policy, which specifies access
972
1092
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
973
1093
  # A `binding` binds one or more `members`, or principals, to a single `role`.
@@ -1057,6 +1177,22 @@ module Google
1057
1177
  end
1058
1178
  end
1059
1179
 
1180
+ # Configuration for reading Cloud Storage data written via [Cloud Storage
1181
+ # subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The data
1182
+ # and attributes fields of the originally exported Pub/Sub message will be
1183
+ # restored when publishing.
1184
+ class PubSubAvroFormat
1185
+ include Google::Apis::Core::Hashable
1186
+
1187
+ def initialize(**args)
1188
+ update!(**args)
1189
+ end
1190
+
1191
+ # Update properties of this object
1192
+ def update!(**args)
1193
+ end
1194
+ end
1195
+
1060
1196
  # Request for the Publish method.
1061
1197
  class PublishRequest
1062
1198
  include Google::Apis::Core::Hashable
@@ -1728,7 +1864,7 @@ module Google
1728
1864
  # backlog, from the moment a message is published. If `retain_acked_messages` is
1729
1865
  # true, then this also configures the retention of acknowledged messages, and
1730
1866
  # thus configures how far back in time a `Seek` can be done. Defaults to 7 days.
1731
- # Cannot be more than 7 days or less than 10 minutes.
1867
+ # Cannot be more than 31 days or less than 10 minutes.
1732
1868
  # Corresponds to the JSON property `messageRetentionDuration`
1733
1869
  # @return [String]
1734
1870
  attr_accessor :message_retention_duration
@@ -1875,6 +2011,27 @@ module Google
1875
2011
  end
1876
2012
  end
1877
2013
 
2014
+ # Configuration for reading Cloud Storage data in text format. Each line of text
2015
+ # as specified by the delimiter will be set to the `data` field of a Pub/Sub
2016
+ # message.
2017
+ class TextFormat
2018
+ include Google::Apis::Core::Hashable
2019
+
2020
+ # Optional. When unset, '\n' is used.
2021
+ # Corresponds to the JSON property `delimiter`
2022
+ # @return [String]
2023
+ attr_accessor :delimiter
2024
+
2025
+ def initialize(**args)
2026
+ update!(**args)
2027
+ end
2028
+
2029
+ # Update properties of this object
2030
+ def update!(**args)
2031
+ @delimiter = args[:delimiter] if args.key?(:delimiter)
2032
+ end
2033
+ end
2034
+
1878
2035
  # A topic resource.
1879
2036
  class Topic
1880
2037
  include Google::Apis::Core::Hashable
@@ -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.53.0"
19
+ GEM_VERSION = "0.56.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240618"
25
+ REVISION = "20240918"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class AvroFormat
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class AwsKinesis
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -58,6 +64,12 @@ module Google
58
64
  include Google::Apis::Core::JsonObjectSupport
59
65
  end
60
66
 
67
+ class CloudStorage
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class CloudStorageConfig
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -184,12 +196,24 @@ module Google
184
196
  include Google::Apis::Core::JsonObjectSupport
185
197
  end
186
198
 
199
+ class PlatformLogsSettings
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
187
205
  class Policy
188
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
207
 
190
208
  include Google::Apis::Core::JsonObjectSupport
191
209
  end
192
210
 
211
+ class PubSubAvroFormat
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
193
217
  class PublishRequest
194
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
219
 
@@ -310,6 +334,12 @@ module Google
310
334
  include Google::Apis::Core::JsonObjectSupport
311
335
  end
312
336
 
337
+ class TextFormat
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
313
343
  class Topic
314
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
345
 
@@ -381,6 +411,12 @@ module Google
381
411
  end
382
412
  end
383
413
 
414
+ class AvroFormat
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ end
418
+ end
419
+
384
420
  class AwsKinesis
385
421
  # @private
386
422
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -415,6 +451,22 @@ module Google
415
451
  end
416
452
  end
417
453
 
454
+ class CloudStorage
455
+ # @private
456
+ class Representation < Google::Apis::Core::JsonRepresentation
457
+ property :avro_format, as: 'avroFormat', class: Google::Apis::PubsubV1::AvroFormat, decorator: Google::Apis::PubsubV1::AvroFormat::Representation
458
+
459
+ property :bucket, as: 'bucket'
460
+ property :match_glob, as: 'matchGlob'
461
+ property :minimum_object_create_time, as: 'minimumObjectCreateTime'
462
+ property :pubsub_avro_format, as: 'pubsubAvroFormat', class: Google::Apis::PubsubV1::PubSubAvroFormat, decorator: Google::Apis::PubsubV1::PubSubAvroFormat::Representation
463
+
464
+ property :state, as: 'state'
465
+ property :text_format, as: 'textFormat', class: Google::Apis::PubsubV1::TextFormat, decorator: Google::Apis::PubsubV1::TextFormat::Representation
466
+
467
+ end
468
+ end
469
+
418
470
  class CloudStorageConfig
419
471
  # @private
420
472
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -426,6 +478,7 @@ module Google
426
478
  property :filename_suffix, as: 'filenameSuffix'
427
479
  property :max_bytes, :numeric_string => true, as: 'maxBytes'
428
480
  property :max_duration, as: 'maxDuration'
481
+ property :max_messages, :numeric_string => true, as: 'maxMessages'
429
482
  property :service_account_email, as: 'serviceAccountEmail'
430
483
  property :state, as: 'state'
431
484
  property :text_config, as: 'textConfig', class: Google::Apis::PubsubV1::TextConfig, decorator: Google::Apis::PubsubV1::TextConfig::Representation
@@ -491,6 +544,10 @@ module Google
491
544
  class Representation < Google::Apis::Core::JsonRepresentation
492
545
  property :aws_kinesis, as: 'awsKinesis', class: Google::Apis::PubsubV1::AwsKinesis, decorator: Google::Apis::PubsubV1::AwsKinesis::Representation
493
546
 
547
+ property :cloud_storage, as: 'cloudStorage', class: Google::Apis::PubsubV1::CloudStorage, decorator: Google::Apis::PubsubV1::CloudStorage::Representation
548
+
549
+ property :platform_logs_settings, as: 'platformLogsSettings', class: Google::Apis::PubsubV1::PlatformLogsSettings, decorator: Google::Apis::PubsubV1::PlatformLogsSettings::Representation
550
+
494
551
  end
495
552
  end
496
553
 
@@ -594,6 +651,13 @@ module Google
594
651
  end
595
652
  end
596
653
 
654
+ class PlatformLogsSettings
655
+ # @private
656
+ class Representation < Google::Apis::Core::JsonRepresentation
657
+ property :severity, as: 'severity'
658
+ end
659
+ end
660
+
597
661
  class Policy
598
662
  # @private
599
663
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -604,6 +668,12 @@ module Google
604
668
  end
605
669
  end
606
670
 
671
+ class PubSubAvroFormat
672
+ # @private
673
+ class Representation < Google::Apis::Core::JsonRepresentation
674
+ end
675
+ end
676
+
607
677
  class PublishRequest
608
678
  # @private
609
679
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -796,6 +866,13 @@ module Google
796
866
  end
797
867
  end
798
868
 
869
+ class TextFormat
870
+ # @private
871
+ class Representation < Google::Apis::Core::JsonRepresentation
872
+ property :delimiter, as: 'delimiter'
873
+ end
874
+ end
875
+
799
876
  class Topic
800
877
  # @private
801
878
  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.53.0
4
+ version: 0.56.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: 2024-06-27 00:00:00.000000000 Z
11
+ date: 2024-09-29 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.53.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.56.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: []