google-apis-pubsub_v1 0.17.0 → 0.20.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: 075766c3311345c61878a6b0e4b88dca7e17244d129ebe912bc8e4581a32dc05
4
- data.tar.gz: 9db1069a57bd63fbfd98bf170008c37fd476505bdbfd7574a1875216dcd26a7d
3
+ metadata.gz: bf9cfa32b15458c032ffd8767095be61572ea8892a92fccbd3eab60d63ceaeb4
4
+ data.tar.gz: d01757928bafb2d93d8a861a3e18f2b4ec06652e1c69245ed6618644a4aed8cd
5
5
  SHA512:
6
- metadata.gz: 61272c4760d071175d103b43cf9b32f891336d9616648fc64f0f4cba419f1e018e0b0c54d33683d5aa2c5d1d1c6acca7a62977116b6d2e884fbd31090bc29f58
7
- data.tar.gz: 59f58a7481f2fcb444e52cb2033854801cf69eab8d661dee8ba9806d28b158376d7082879003b2759b832ac1ef6e2069f79fc706a507cd5b08e54a2be0d0f6d5
6
+ metadata.gz: db8b08845eb59bf1c87e3bf63346b7a185ce18d81b2a5ef34a5dbafad3b4aeb429b130655402af0e48fe7debb01a6ddd6055190fca5b748b160fc1762b5c2270
7
+ data.tar.gz: ffdd395801baad5c27cc76d7d3361766ca584eb09e1bac883f07df556c80d585f79feaeeb44da344f0f4888a210409d0f726a19de9920b836ef8eb11480f49f1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.20.0 (2022-05-28)
4
+
5
+ * Regenerated from discovery document revision 20220522
6
+
7
+ ### v0.19.0 (2022-05-20)
8
+
9
+ * Regenerated from discovery document revision 20220510
10
+
11
+ ### v0.18.0 (2022-05-13)
12
+
13
+ * Regenerated from discovery document revision 20220502
14
+
3
15
  ### v0.17.0 (2022-05-01)
4
16
 
5
17
  * Regenerated from discovery document revision 20220421
@@ -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.17.0"
19
+ GEM_VERSION = "0.20.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 = "20220421"
25
+ REVISION = "20220522"
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'
@@ -157,8 +157,9 @@ module Google
157
157
  # Gets the access control policy for a resource. Returns an empty policy if the
158
158
  # resource exists and does not have a policy set.
159
159
  # @param [String] resource
160
- # REQUIRED: The resource for which the policy is being requested. See the
161
- # operation documentation for the appropriate value for this field.
160
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
161
+ # names](https://cloud.google.com/apis/design/resource_names) for the
162
+ # appropriate value for this field.
162
163
  # @param [Fixnum] options_requested_policy_version
163
164
  # Optional. The maximum policy version that will be used to format the policy.
164
165
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -246,8 +247,9 @@ module Google
246
247
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
247
248
  # PERMISSION_DENIED` errors.
248
249
  # @param [String] resource
249
- # REQUIRED: The resource for which the policy is being specified. See the
250
- # operation documentation for the appropriate value for this field.
250
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
251
+ # names](https://cloud.google.com/apis/design/resource_names) for the
252
+ # appropriate value for this field.
251
253
  # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
252
254
  # @param [String] fields
253
255
  # Selector specifying which fields to include in a partial response.
@@ -284,8 +286,9 @@ module Google
284
286
  # permission-aware UIs and command-line tools, not for authorization checking.
285
287
  # This operation may "fail open" without warning.
286
288
  # @param [String] resource
287
- # REQUIRED: The resource for which the policy detail is being requested. See the
288
- # operation documentation for the appropriate value for this field.
289
+ # REQUIRED: The resource for which the policy detail is being requested. See [
290
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
291
+ # appropriate value for this field.
289
292
  # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
290
293
  # @param [String] fields
291
294
  # Selector specifying which fields to include in a partial response.
@@ -510,8 +513,9 @@ module Google
510
513
  # Gets the access control policy for a resource. Returns an empty policy if the
511
514
  # resource exists and does not have a policy set.
512
515
  # @param [String] resource
513
- # REQUIRED: The resource for which the policy is being requested. See the
514
- # operation documentation for the appropriate value for this field.
516
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
517
+ # names](https://cloud.google.com/apis/design/resource_names) for the
518
+ # appropriate value for this field.
515
519
  # @param [Fixnum] options_requested_policy_version
516
520
  # Optional. The maximum policy version that will be used to format the policy.
517
521
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -633,8 +637,9 @@ module Google
633
637
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
634
638
  # PERMISSION_DENIED` errors.
635
639
  # @param [String] resource
636
- # REQUIRED: The resource for which the policy is being specified. See the
637
- # operation documentation for the appropriate value for this field.
640
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
641
+ # names](https://cloud.google.com/apis/design/resource_names) for the
642
+ # appropriate value for this field.
638
643
  # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
639
644
  # @param [String] fields
640
645
  # Selector specifying which fields to include in a partial response.
@@ -671,8 +676,9 @@ module Google
671
676
  # permission-aware UIs and command-line tools, not for authorization checking.
672
677
  # This operation may "fail open" without warning.
673
678
  # @param [String] resource
674
- # REQUIRED: The resource for which the policy detail is being requested. See the
675
- # operation documentation for the appropriate value for this field.
679
+ # REQUIRED: The resource for which the policy detail is being requested. See [
680
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
681
+ # appropriate value for this field.
676
682
  # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
677
683
  # @param [String] fields
678
684
  # Selector specifying which fields to include in a partial response.
@@ -890,8 +896,9 @@ module Google
890
896
  # Gets the access control policy for a resource. Returns an empty policy if the
891
897
  # resource exists and does not have a policy set.
892
898
  # @param [String] resource
893
- # REQUIRED: The resource for which the policy is being requested. See the
894
- # operation documentation for the appropriate value for this field.
899
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
900
+ # names](https://cloud.google.com/apis/design/resource_names) for the
901
+ # appropriate value for this field.
895
902
  # @param [Fixnum] options_requested_policy_version
896
903
  # Optional. The maximum policy version that will be used to format the policy.
897
904
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -1163,8 +1170,9 @@ module Google
1163
1170
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1164
1171
  # PERMISSION_DENIED` errors.
1165
1172
  # @param [String] resource
1166
- # REQUIRED: The resource for which the policy is being specified. See the
1167
- # operation documentation for the appropriate value for this field.
1173
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1174
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1175
+ # appropriate value for this field.
1168
1176
  # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
1169
1177
  # @param [String] fields
1170
1178
  # Selector specifying which fields to include in a partial response.
@@ -1201,8 +1209,9 @@ module Google
1201
1209
  # permission-aware UIs and command-line tools, not for authorization checking.
1202
1210
  # This operation may "fail open" without warning.
1203
1211
  # @param [String] resource
1204
- # REQUIRED: The resource for which the policy detail is being requested. See the
1205
- # operation documentation for the appropriate value for this field.
1212
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1213
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1214
+ # appropriate value for this field.
1206
1215
  # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1207
1216
  # @param [String] fields
1208
1217
  # Selector specifying which fields to include in a partial response.
@@ -1340,8 +1349,9 @@ module Google
1340
1349
  # Gets the access control policy for a resource. Returns an empty policy if the
1341
1350
  # resource exists and does not have a policy set.
1342
1351
  # @param [String] resource
1343
- # REQUIRED: The resource for which the policy is being requested. See the
1344
- # operation documentation for the appropriate value for this field.
1352
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1353
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1354
+ # appropriate value for this field.
1345
1355
  # @param [Fixnum] options_requested_policy_version
1346
1356
  # Optional. The maximum policy version that will be used to format the policy.
1347
1357
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -1497,8 +1507,9 @@ module Google
1497
1507
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1498
1508
  # PERMISSION_DENIED` errors.
1499
1509
  # @param [String] resource
1500
- # REQUIRED: The resource for which the policy is being specified. See the
1501
- # operation documentation for the appropriate value for this field.
1510
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1511
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1512
+ # appropriate value for this field.
1502
1513
  # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
1503
1514
  # @param [String] fields
1504
1515
  # Selector specifying which fields to include in a partial response.
@@ -1535,8 +1546,9 @@ module Google
1535
1546
  # permission-aware UIs and command-line tools, not for authorization checking.
1536
1547
  # This operation may "fail open" without warning.
1537
1548
  # @param [String] resource
1538
- # REQUIRED: The resource for which the policy detail is being requested. See the
1539
- # operation documentation for the appropriate value for this field.
1549
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1550
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1551
+ # appropriate value for this field.
1540
1552
  # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1541
1553
  # @param [String] fields
1542
1554
  # Selector specifying which fields to include in a partial response.
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.17.0
4
+ version: 0.20.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-02 00:00:00.000000000 Z
11
+ date: 2022-05-30 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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.20.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