google-apis-pubsub_v1 0.16.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: 637b217580bc9aa8b80cedc2da65cdf5c04c1d8e46703dc1afcbc954135a4b80
4
- data.tar.gz: f3fc1e5fb5a18eb7b15153078086bd9a26c7824b61e2ffc2abf6e646c70d23d2
3
+ metadata.gz: 23f1ec9518a2e8e9b5d900304cc97175d8e3879e88aec02551bb50c115c695c5
4
+ data.tar.gz: 303a2602a3f65670800a13c288763fbe67d7d18edff897883b899a87da69f0a0
5
5
  SHA512:
6
- metadata.gz: 33de37a8c68f03efa2b8f5a51daf65f3e993de862460395857ad4c9fb04ce289e1ad47001c7962d4ed5223b250950222f3d830d972468a1b00f57431b32211a4
7
- data.tar.gz: 2ac94d0f265cea872a9213005e3b4b70bb205bd239d03a24ecebfcdf058c55426362777c60da58624f6aa0377239bb150cf9bcad770f5273e7912ae713d2c2af
6
+ metadata.gz: 071467d0cacf01d646f64c50132aaf5138fb2f55674733f386ef1ebaa938e6dd70c33535aa2c5640d1cdd4837029deed4a5c370727d26a5736cd5aea669cd915
7
+ data.tar.gz: 978c4981f1890739aa3f3e41537ccd3550946d5208c888430c681ec7138b96512d2cb1947780d91f59799b68a5f60278134bf9809655cc407b770d408c47d445
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
7
+ ### v0.18.0 (2022-05-13)
8
+
9
+ * Regenerated from discovery document revision 20220502
10
+
11
+ ### v0.17.0 (2022-05-01)
12
+
13
+ * Regenerated from discovery document revision 20220421
14
+
3
15
  ### v0.16.0 (2022-04-17)
4
16
 
5
17
  * Regenerated from discovery document revision 20220404
@@ -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
@@ -525,7 +582,10 @@ module Google
525
582
  end
526
583
 
527
584
  # Contains information needed for generating an [OpenID Connect token](https://
528
- # developers.google.com/identity/protocols/OpenIDConnect).
585
+ # developers.google.com/identity/protocols/OpenIDConnect). [Service account
586
+ # email](https://cloud.google.com/iam/docs/service-accounts) used for generating
587
+ # the OIDC token. For more information on setting up authentication, see [Push
588
+ # subscriptions](https://cloud.google.com/pubsub/docs/push).
529
589
  class OidcToken
530
590
  include Google::Apis::Core::Hashable
531
591
 
@@ -539,9 +599,7 @@ module Google
539
599
  # @return [String]
540
600
  attr_accessor :audience
541
601
 
542
- # [Service account email](https://cloud.google.com/iam/docs/service-accounts) to
543
- # be used for generating the OIDC token. See [Setting up push authentication](/
544
- # pubsub/docs/push#setting_up_for_push_authentication) for more details.
602
+ #
545
603
  # Corresponds to the JSON property `serviceAccountEmail`
546
604
  # @return [String]
547
605
  attr_accessor :service_account_email
@@ -721,7 +779,8 @@ module Google
721
779
  # messages published with the same non-empty `ordering_key` value will be
722
780
  # delivered to subscribers in the order in which they are received by the Pub/
723
781
  # Sub system. All `PubsubMessage`s published in a given `PublishRequest` must
724
- # specify the same `ordering_key` value.
782
+ # specify the same `ordering_key` value. For more information, see [ordering
783
+ # messages](https://cloud.google.com/pubsub/docs/ordering).
725
784
  # Corresponds to the JSON property `orderingKey`
726
785
  # @return [String]
727
786
  attr_accessor :ordering_key
@@ -825,7 +884,10 @@ module Google
825
884
  attr_accessor :attributes
826
885
 
827
886
  # Contains information needed for generating an [OpenID Connect token](https://
828
- # developers.google.com/identity/protocols/OpenIDConnect).
887
+ # developers.google.com/identity/protocols/OpenIDConnect). [Service account
888
+ # email](https://cloud.google.com/iam/docs/service-accounts) used for generating
889
+ # the OIDC token. For more information on setting up authentication, see [Push
890
+ # subscriptions](https://cloud.google.com/pubsub/docs/push).
829
891
  # Corresponds to the JSON property `oidcToken`
830
892
  # @return [Google::Apis::PubsubV1::OidcToken]
831
893
  attr_accessor :oidc_token
@@ -1164,6 +1226,11 @@ module Google
1164
1226
  # @return [Fixnum]
1165
1227
  attr_accessor :ack_deadline_seconds
1166
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
+
1167
1234
  # Dead lettering is done on a best effort basis. The same message might be dead
1168
1235
  # lettered multiple times. If validation on any of the fields fails at
1169
1236
  # subscription creation/updation, the create/update subscription request will
@@ -1298,6 +1365,7 @@ module Google
1298
1365
  # Update properties of this object
1299
1366
  def update!(**args)
1300
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)
1301
1369
  @dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
1302
1370
  @detached = args[:detached] if args.key?(:detached)
1303
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.16.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 = "20220404"
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'
@@ -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.
@@ -472,10 +475,11 @@ module Google
472
475
  execute_or_queue_command(command, &block)
473
476
  end
474
477
 
475
- # Gets the configuration details of a snapshot. Snapshots are used in Seek
476
- # operations, which allow you to manage message acknowledgments in bulk. That is,
477
- # you can set the acknowledgment state of messages in an existing subscription
478
- # to the state captured by a snapshot.
478
+ # Gets the configuration details of a snapshot. Snapshots are used in [Seek](
479
+ # https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow
480
+ # you to manage message acknowledgments in bulk. That is, you can set the
481
+ # acknowledgment state of messages in an existing subscription to the state
482
+ # captured by a snapshot.
479
483
  # @param [String] snapshot
480
484
  # Required. The name of the snapshot to get. Format is `projects/`project`/
481
485
  # snapshots/`snap``.
@@ -509,8 +513,9 @@ module Google
509
513
  # Gets the access control policy for a resource. Returns an empty policy if the
510
514
  # resource exists and does not have a policy set.
511
515
  # @param [String] resource
512
- # REQUIRED: The resource for which the policy is being requested. See the
513
- # 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.
514
519
  # @param [Fixnum] options_requested_policy_version
515
520
  # Optional. The maximum policy version that will be used to format the policy.
516
521
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -592,10 +597,10 @@ module Google
592
597
  execute_or_queue_command(command, &block)
593
598
  end
594
599
 
595
- # Updates an existing snapshot. Snapshots are used in Seek operations, which
596
- # allow you to manage message acknowledgments in bulk. That is, you can set the
597
- # acknowledgment state of messages in an existing subscription to the state
598
- # captured by a snapshot.
600
+ # Updates an existing snapshot. Snapshots are used in [Seek](https://cloud.
601
+ # google.com/pubsub/docs/replay-overview) operations, which allow you to manage
602
+ # message acknowledgments in bulk. That is, you can set the acknowledgment state
603
+ # of messages in an existing subscription to the state captured by a snapshot.
599
604
  # @param [String] name
600
605
  # The name of the snapshot.
601
606
  # @param [Google::Apis::PubsubV1::UpdateSnapshotRequest] update_snapshot_request_object
@@ -632,8 +637,9 @@ module Google
632
637
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
633
638
  # PERMISSION_DENIED` errors.
634
639
  # @param [String] resource
635
- # REQUIRED: The resource for which the policy is being specified. See the
636
- # 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.
637
643
  # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
638
644
  # @param [String] fields
639
645
  # Selector specifying which fields to include in a partial response.
@@ -670,8 +676,9 @@ module Google
670
676
  # permission-aware UIs and command-line tools, not for authorization checking.
671
677
  # This operation may "fail open" without warning.
672
678
  # @param [String] resource
673
- # REQUIRED: The resource for which the policy detail is being requested. See the
674
- # 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.
675
682
  # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
676
683
  # @param [String] fields
677
684
  # Selector specifying which fields to include in a partial response.
@@ -889,8 +896,9 @@ module Google
889
896
  # Gets the access control policy for a resource. Returns an empty policy if the
890
897
  # resource exists and does not have a policy set.
891
898
  # @param [String] resource
892
- # REQUIRED: The resource for which the policy is being requested. See the
893
- # 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.
894
902
  # @param [Fixnum] options_requested_policy_version
895
903
  # Optional. The maximum policy version that will be used to format the policy.
896
904
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -1162,8 +1170,9 @@ module Google
1162
1170
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1163
1171
  # PERMISSION_DENIED` errors.
1164
1172
  # @param [String] resource
1165
- # REQUIRED: The resource for which the policy is being specified. See the
1166
- # 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.
1167
1176
  # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
1168
1177
  # @param [String] fields
1169
1178
  # Selector specifying which fields to include in a partial response.
@@ -1200,8 +1209,9 @@ module Google
1200
1209
  # permission-aware UIs and command-line tools, not for authorization checking.
1201
1210
  # This operation may "fail open" without warning.
1202
1211
  # @param [String] resource
1203
- # REQUIRED: The resource for which the policy detail is being requested. See the
1204
- # 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.
1205
1215
  # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1206
1216
  # @param [String] fields
1207
1217
  # Selector specifying which fields to include in a partial response.
@@ -1339,8 +1349,9 @@ module Google
1339
1349
  # Gets the access control policy for a resource. Returns an empty policy if the
1340
1350
  # resource exists and does not have a policy set.
1341
1351
  # @param [String] resource
1342
- # REQUIRED: The resource for which the policy is being requested. See the
1343
- # 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.
1344
1355
  # @param [Fixnum] options_requested_policy_version
1345
1356
  # Optional. The maximum policy version that will be used to format the policy.
1346
1357
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -1496,8 +1507,9 @@ module Google
1496
1507
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1497
1508
  # PERMISSION_DENIED` errors.
1498
1509
  # @param [String] resource
1499
- # REQUIRED: The resource for which the policy is being specified. See the
1500
- # 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.
1501
1513
  # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
1502
1514
  # @param [String] fields
1503
1515
  # Selector specifying which fields to include in a partial response.
@@ -1534,8 +1546,9 @@ module Google
1534
1546
  # permission-aware UIs and command-line tools, not for authorization checking.
1535
1547
  # This operation may "fail open" without warning.
1536
1548
  # @param [String] resource
1537
- # REQUIRED: The resource for which the policy detail is being requested. See the
1538
- # 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.
1539
1552
  # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1540
1553
  # @param [String] fields
1541
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.16.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-04-18 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.16.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: []