google-apis-pubsub_v1 0.35.0 → 0.37.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: b109046e6a87796673b1c58adf271a2d75a90ea57788ba97d95a4602b4b93888
4
- data.tar.gz: 3185d04cf4fe7a090be3e6b580b8edc06272be905b4e58f0dbf9d761458f11d9
3
+ metadata.gz: 61c7c14dd17915f5640bfd40b912933f693cda7705ecb94d6454f9ef20e12aa5
4
+ data.tar.gz: 470522693f5176b65c1457eddbf433b90946dd7f9676c275e90955edcccec285
5
5
  SHA512:
6
- metadata.gz: d40dd6c3a4bacac73aa3b4b37290de57c128f1d5ce099ac7d1028d62acb88fb9fc8b6fb6c18154f38303dac7ec4162fbf528df7f5d0833aefa71f9e85dd4afef
7
- data.tar.gz: 82b08c8acc2399f73ce23c77489e000036163142c021798ac4547fbdbf8341c10d86570576d247d8148e0bfa33527837fa0d1b66335135cfd158cd87bb5efcdf
6
+ metadata.gz: a916595bd76402125717081064c124e1052affe84c8c2b7e666e8fb3f5db030de02c3019f74e94381d3ff43739eac0f626f8da7f82ee3616df0cc3e341f53d23
7
+ data.tar.gz: 1cb19d7989ef51521ddc457110e2bba0c5bfbd3f4b19da41ddad040f9d75f5b374dcdeb05b153671b5859a6bced5cac716dbad6d9ebabcfa1182be786962b8da
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.37.0 (2023-05-21)
4
+
5
+ * Regenerated from discovery document revision 20230509
6
+
7
+ ### v0.36.0 (2023-05-07)
8
+
9
+ * Regenerated from discovery document revision 20230425
10
+
3
11
  ### v0.35.0 (2023-02-26)
4
12
 
5
13
  * 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
@@ -633,10 +728,7 @@ module Google
633
728
  end
634
729
 
635
730
  # Contains information needed for generating an [OpenID Connect token](https://
636
- # developers.google.com/identity/protocols/OpenIDConnect). [Service account
637
- # email](https://cloud.google.com/iam/docs/service-accounts) used for generating
638
- # the OIDC token. For more information on setting up authentication, see [Push
639
- # subscriptions](https://cloud.google.com/pubsub/docs/push).
731
+ # developers.google.com/identity/protocols/OpenIDConnect).
640
732
  class OidcToken
641
733
  include Google::Apis::Core::Hashable
642
734
 
@@ -650,7 +742,10 @@ module Google
650
742
  # @return [String]
651
743
  attr_accessor :audience
652
744
 
653
- #
745
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
746
+ # used for generating the OIDC token. For more information on setting up
747
+ # authentication, see [Push subscriptions](https://cloud.google.com/pubsub/docs/
748
+ # push).
654
749
  # Corresponds to the JSON property `serviceAccountEmail`
655
750
  # @return [String]
656
751
  attr_accessor :service_account_email
@@ -936,10 +1031,7 @@ module Google
936
1031
  attr_accessor :attributes
937
1032
 
938
1033
  # Contains information needed for generating an [OpenID Connect token](https://
939
- # developers.google.com/identity/protocols/OpenIDConnect). [Service account
940
- # email](https://cloud.google.com/iam/docs/service-accounts) used for generating
941
- # the OIDC token. For more information on setting up authentication, see [Push
942
- # subscriptions](https://cloud.google.com/pubsub/docs/push).
1034
+ # developers.google.com/identity/protocols/OpenIDConnect).
943
1035
  # Corresponds to the JSON property `oidcToken`
944
1036
  # @return [Google::Apis::PubsubV1::OidcToken]
945
1037
  attr_accessor :oidc_token
@@ -1291,9 +1383,9 @@ module Google
1291
1383
  end
1292
1384
  end
1293
1385
 
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.
1386
+ # A subscription resource. If none of `push_config`, `bigquery_config`, or `
1387
+ # cloud_storage_config` is set, then the subscriber will pull and ack messages
1388
+ # using API methods. At most one of these fields may be set.
1297
1389
  class Subscription
1298
1390
  include Google::Apis::Core::Hashable
1299
1391
 
@@ -1321,6 +1413,11 @@ module Google
1321
1413
  # @return [Google::Apis::PubsubV1::BigQueryConfig]
1322
1414
  attr_accessor :bigquery_config
1323
1415
 
1416
+ # Configuration for a Cloud Storage subscription.
1417
+ # Corresponds to the JSON property `cloudStorageConfig`
1418
+ # @return [Google::Apis::PubsubV1::CloudStorageConfig]
1419
+ attr_accessor :cloud_storage_config
1420
+
1324
1421
  # Dead lettering is done on a best effort basis. The same message might be dead
1325
1422
  # lettered multiple times. If validation on any of the fields fails at
1326
1423
  # subscription creation/updation, the create/update subscription request will
@@ -1457,6 +1554,7 @@ module Google
1457
1554
  def update!(**args)
1458
1555
  @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
1459
1556
  @bigquery_config = args[:bigquery_config] if args.key?(:bigquery_config)
1557
+ @cloud_storage_config = args[:cloud_storage_config] if args.key?(:cloud_storage_config)
1460
1558
  @dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
1461
1559
  @detached = args[:detached] if args.key?(:detached)
1462
1560
  @enable_exactly_once_delivery = args[:enable_exactly_once_delivery] if args.key?(:enable_exactly_once_delivery)
@@ -1515,6 +1613,20 @@ module Google
1515
1613
  end
1516
1614
  end
1517
1615
 
1616
+ # Configuration for writing message data in text format. Message payloads will
1617
+ # be written to files as raw text, separated by a newline.
1618
+ class TextConfig
1619
+ include Google::Apis::Core::Hashable
1620
+
1621
+ def initialize(**args)
1622
+ update!(**args)
1623
+ end
1624
+
1625
+ # Update properties of this object
1626
+ def update!(**args)
1627
+ end
1628
+ end
1629
+
1518
1630
  # A topic resource.
1519
1631
  class Topic
1520
1632
  include Google::Apis::Core::Hashable
@@ -1619,9 +1731,9 @@ module Google
1619
1731
  class UpdateSubscriptionRequest
1620
1732
  include Google::Apis::Core::Hashable
1621
1733
 
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.
1734
+ # A subscription resource. If none of `push_config`, `bigquery_config`, or `
1735
+ # cloud_storage_config` is set, then the subscriber will pull and ack messages
1736
+ # using API methods. At most one of these fields may be set.
1625
1737
  # Corresponds to the JSON property `subscription`
1626
1738
  # @return [Google::Apis::PubsubV1::Subscription]
1627
1739
  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.37.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 = "20230509"
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.37.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-21 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.37.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: []