google-apis-pubsub_v1 0.18.0 → 0.21.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: 4307d46e24f20a382de284efbdd5f7b27d811f578e4979171bf9ad48fb0b3894
4
- data.tar.gz: b147619df10b6d7f9d4cee506963a09d92c5d9bb81d192d69f4779b6a96b02d7
3
+ metadata.gz: 5bbe79e26039d0ca2db24c43474596d50eb50e70b7cfe416c4008341eebfc987
4
+ data.tar.gz: 437cb305e7700b61a515e94a10ab9e45d5eea73b4af5fd2f53d28451909d74bd
5
5
  SHA512:
6
- metadata.gz: 9f6b293accbbe1b36d2f15b4284e9153dc1a6009a4f87d5e0191df51b8a1868704ff5e50206f11ad2e3d724add79a44d775c6c3b662bdb7ced087bfea77b8369
7
- data.tar.gz: e9982e77c74f97cf2109e00d7627e1431742196a1ef5220a53e1c1341932ca7718f1e36e2a1297d50135a6c163f52aaf8d6803636f6c021aa0884b55008421bc
6
+ metadata.gz: a4c47b88c8544470eec28feef3c0d09d91195491bac30c45ab545ad53094a2b874e8db126740c7d29645c66b4cb7f1c0e14860c8a45874bb56fad7c44f8ecde8
7
+ data.tar.gz: b75e11c2893c78dd94a6a925248d9cb58ed9ac48b77ea4930f339aeca14c1a3fd2ef32def6c6d117deb5f6dd11f04917dad1c050601d3df0aa6db1e640255c0b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.21.0 (2022-06-06)
4
+
5
+ * Regenerated from discovery document revision 20220524
6
+ * Regenerated using generator version 0.5.0
7
+
8
+ ### v0.20.0 (2022-05-28)
9
+
10
+ * Regenerated from discovery document revision 20220522
11
+
12
+ ### v0.19.0 (2022-05-20)
13
+
14
+ * Regenerated from discovery document revision 20220510
15
+
3
16
  ### v0.18.0 (2022-05-13)
4
17
 
5
18
  * 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
@@ -986,6 +1043,20 @@ module Google
986
1043
  # @return [String]
987
1044
  attr_accessor :encoding
988
1045
 
1046
+ # The minimum (inclusive) revision allowed for validating messages. If empty or
1047
+ # not present, allow any revision to be validated against last_revision or any
1048
+ # revision created before.
1049
+ # Corresponds to the JSON property `firstRevisionId`
1050
+ # @return [String]
1051
+ attr_accessor :first_revision_id
1052
+
1053
+ # The maximum (inclusive) revision allowed for validating messages. If empty or
1054
+ # not present, allow any revision to be validated against first_revision or any
1055
+ # revision created after.
1056
+ # Corresponds to the JSON property `lastRevisionId`
1057
+ # @return [String]
1058
+ attr_accessor :last_revision_id
1059
+
989
1060
  # Required. The name of the schema that messages published should be validated
990
1061
  # against. Format is `projects/`project`/schemas/`schema``. The value of this
991
1062
  # field will be `_deleted-schema_` if the schema has been deleted.
@@ -1000,6 +1071,8 @@ module Google
1000
1071
  # Update properties of this object
1001
1072
  def update!(**args)
1002
1073
  @encoding = args[:encoding] if args.key?(:encoding)
1074
+ @first_revision_id = args[:first_revision_id] if args.key?(:first_revision_id)
1075
+ @last_revision_id = args[:last_revision_id] if args.key?(:last_revision_id)
1003
1076
  @schema = args[:schema] if args.key?(:schema)
1004
1077
  end
1005
1078
  end
@@ -1169,6 +1242,11 @@ module Google
1169
1242
  # @return [Fixnum]
1170
1243
  attr_accessor :ack_deadline_seconds
1171
1244
 
1245
+ # Configuration for a BigQuery subscription.
1246
+ # Corresponds to the JSON property `bigqueryConfig`
1247
+ # @return [Google::Apis::PubsubV1::BigQueryConfig]
1248
+ attr_accessor :bigquery_config
1249
+
1172
1250
  # Dead lettering is done on a best effort basis. The same message might be dead
1173
1251
  # lettered multiple times. If validation on any of the fields fails at
1174
1252
  # subscription creation/updation, the create/update subscription request will
@@ -1303,6 +1381,7 @@ module Google
1303
1381
  # Update properties of this object
1304
1382
  def update!(**args)
1305
1383
  @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
1384
+ @bigquery_config = args[:bigquery_config] if args.key?(:bigquery_config)
1306
1385
  @dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
1307
1386
  @detached = args[:detached] if args.key?(:detached)
1308
1387
  @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.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220502"
25
+ REVISION = "20220524"
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
@@ -526,6 +543,8 @@ module Google
526
543
  # @private
527
544
  class Representation < Google::Apis::Core::JsonRepresentation
528
545
  property :encoding, as: 'encoding'
546
+ property :first_revision_id, as: 'firstRevisionId'
547
+ property :last_revision_id, as: 'lastRevisionId'
529
548
  property :schema, as: 'schema'
530
549
  end
531
550
  end
@@ -566,6 +585,8 @@ module Google
566
585
  # @private
567
586
  class Representation < Google::Apis::Core::JsonRepresentation
568
587
  property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
588
+ property :bigquery_config, as: 'bigqueryConfig', class: Google::Apis::PubsubV1::BigQueryConfig, decorator: Google::Apis::PubsubV1::BigQueryConfig::Representation
589
+
569
590
  property :dead_letter_policy, as: 'deadLetterPolicy', class: Google::Apis::PubsubV1::DeadLetterPolicy, decorator: Google::Apis::PubsubV1::DeadLetterPolicy::Representation
570
591
 
571
592
  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.21.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-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.21.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Pub/Sub API V1