google-apis-pubsub_v1 0.18.0 → 0.19.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: 4307d46e24f20a382de284efbdd5f7b27d811f578e4979171bf9ad48fb0b3894
4
- data.tar.gz: b147619df10b6d7f9d4cee506963a09d92c5d9bb81d192d69f4779b6a96b02d7
3
+ metadata.gz: 23f1ec9518a2e8e9b5d900304cc97175d8e3879e88aec02551bb50c115c695c5
4
+ data.tar.gz: 303a2602a3f65670800a13c288763fbe67d7d18edff897883b899a87da69f0a0
5
5
  SHA512:
6
- metadata.gz: 9f6b293accbbe1b36d2f15b4284e9153dc1a6009a4f87d5e0191df51b8a1868704ff5e50206f11ad2e3d724add79a44d775c6c3b662bdb7ced087bfea77b8369
7
- data.tar.gz: e9982e77c74f97cf2109e00d7627e1431742196a1ef5220a53e1c1341932ca7718f1e36e2a1297d50135a6c163f52aaf8d6803636f6c021aa0884b55008421bc
6
+ metadata.gz: 071467d0cacf01d646f64c50132aaf5138fb2f55674733f386ef1ebaa938e6dd70c33535aa2c5640d1cdd4837029deed4a5c370727d26a5736cd5aea669cd915
7
+ data.tar.gz: 978c4981f1890739aa3f3e41537ccd3550946d5208c888430c681ec7138b96512d2cb1947780d91f59799b68a5f60278134bf9809655cc407b770d408c47d445
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.19.0 (2022-05-20)
4
+
5
+ * Regenerated from discovery document revision 20220510
6
+
3
7
  ### v0.18.0 (2022-05-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20220502
@@ -42,6 +42,63 @@ module Google
42
42
  end
43
43
  end
44
44
 
45
+ # Configuration for a BigQuery subscription.
46
+ class BigQueryConfig
47
+ include Google::Apis::Core::Hashable
48
+
49
+ # When true and use_topic_schema is true, any fields that are a part of the
50
+ # topic schema that are not part of the BigQuery table schema are dropped when
51
+ # writing to BigQuery. Otherwise, the schemas must be kept in sync and any
52
+ # messages with extra fields are not written and remain in the subscription's
53
+ # backlog.
54
+ # Corresponds to the JSON property `dropUnknownFields`
55
+ # @return [Boolean]
56
+ attr_accessor :drop_unknown_fields
57
+ alias_method :drop_unknown_fields?, :drop_unknown_fields
58
+
59
+ # Output only. An output-only field that indicates whether or not the
60
+ # subscription can receive messages.
61
+ # Corresponds to the JSON property `state`
62
+ # @return [String]
63
+ attr_accessor :state
64
+
65
+ # The name of the table to which to write data, of the form `projectId`:`
66
+ # datasetId`.`tableId`
67
+ # Corresponds to the JSON property `table`
68
+ # @return [String]
69
+ attr_accessor :table
70
+
71
+ # When true, use the topic's schema as the columns to write to in BigQuery, if
72
+ # it exists.
73
+ # Corresponds to the JSON property `useTopicSchema`
74
+ # @return [Boolean]
75
+ attr_accessor :use_topic_schema
76
+ alias_method :use_topic_schema?, :use_topic_schema
77
+
78
+ # When true, write the subscription name, message_id, publish_time, attributes,
79
+ # and ordering_key to additional columns in the table. The subscription name,
80
+ # message_id, and publish_time fields are put in their own columns while all
81
+ # other message properties (other than data) are written to a JSON object in the
82
+ # attributes column.
83
+ # Corresponds to the JSON property `writeMetadata`
84
+ # @return [Boolean]
85
+ attr_accessor :write_metadata
86
+ alias_method :write_metadata?, :write_metadata
87
+
88
+ def initialize(**args)
89
+ update!(**args)
90
+ end
91
+
92
+ # Update properties of this object
93
+ def update!(**args)
94
+ @drop_unknown_fields = args[:drop_unknown_fields] if args.key?(:drop_unknown_fields)
95
+ @state = args[:state] if args.key?(:state)
96
+ @table = args[:table] if args.key?(:table)
97
+ @use_topic_schema = args[:use_topic_schema] if args.key?(:use_topic_schema)
98
+ @write_metadata = args[:write_metadata] if args.key?(:write_metadata)
99
+ end
100
+ end
101
+
45
102
  # Associates `members`, or principals, with a `role`.
46
103
  class Binding
47
104
  include Google::Apis::Core::Hashable
@@ -1169,6 +1226,11 @@ module Google
1169
1226
  # @return [Fixnum]
1170
1227
  attr_accessor :ack_deadline_seconds
1171
1228
 
1229
+ # Configuration for a BigQuery subscription.
1230
+ # Corresponds to the JSON property `bigqueryConfig`
1231
+ # @return [Google::Apis::PubsubV1::BigQueryConfig]
1232
+ attr_accessor :bigquery_config
1233
+
1172
1234
  # Dead lettering is done on a best effort basis. The same message might be dead
1173
1235
  # lettered multiple times. If validation on any of the fields fails at
1174
1236
  # subscription creation/updation, the create/update subscription request will
@@ -1303,6 +1365,7 @@ module Google
1303
1365
  # Update properties of this object
1304
1366
  def update!(**args)
1305
1367
  @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
1368
+ @bigquery_config = args[:bigquery_config] if args.key?(:bigquery_config)
1306
1369
  @dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
1307
1370
  @detached = args[:detached] if args.key?(:detached)
1308
1371
  @enable_exactly_once_delivery = args[:enable_exactly_once_delivery] if args.key?(:enable_exactly_once_delivery)
@@ -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.18.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220502"
25
+ REVISION = "20220510"
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 BigQueryConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class Binding
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -293,6 +299,17 @@ module Google
293
299
  end
294
300
  end
295
301
 
302
+ class BigQueryConfig
303
+ # @private
304
+ class Representation < Google::Apis::Core::JsonRepresentation
305
+ property :drop_unknown_fields, as: 'dropUnknownFields'
306
+ property :state, as: 'state'
307
+ property :table, as: 'table'
308
+ property :use_topic_schema, as: 'useTopicSchema'
309
+ property :write_metadata, as: 'writeMetadata'
310
+ end
311
+ end
312
+
296
313
  class Binding
297
314
  # @private
298
315
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -566,6 +583,8 @@ module Google
566
583
  # @private
567
584
  class Representation < Google::Apis::Core::JsonRepresentation
568
585
  property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
586
+ property :bigquery_config, as: 'bigqueryConfig', class: Google::Apis::PubsubV1::BigQueryConfig, decorator: Google::Apis::PubsubV1::BigQueryConfig::Representation
587
+
569
588
  property :dead_letter_policy, as: 'deadLetterPolicy', class: Google::Apis::PubsubV1::DeadLetterPolicy, decorator: Google::Apis::PubsubV1::DeadLetterPolicy::Representation
570
589
 
571
590
  property :detached, as: 'detached'
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.18.0
4
+ version: 0.19.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: 2022-05-16 00:00:00.000000000 Z
11
+ date: 2022-05-23 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.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.19.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: []