google-apis-pubsub_v1 0.46.0 → 0.48.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: f8aa4135ad74708c551374687ee080c06986ec534d1585004ef0679b732c38cf
4
- data.tar.gz: 01f211cba9125dfc86c5e366f9e6cc1595c0ce6be81c26a4fa732f8161321a12
3
+ metadata.gz: 2c7ce610a64e2aa1325673f40746e173c01ffb05c46c275bd811ba7806438493
4
+ data.tar.gz: 563a6a949933ed6ee1179f2613179c0b4359a7e2534ff46af14497cef0166945
5
5
  SHA512:
6
- metadata.gz: 6394ae827e9e1cbf2f74f18cbc41d4faed45d5e348b0ddab3d6200958b890063325399b390de2b11a5a424d155e53c65d0b1126e12d80d5f0daf258b0bee1d73
7
- data.tar.gz: abc4d07cf456a1434849135adb73f78c0b3a3d7715d0076956eab932dd2b81ad6e6535f3308e46edaa595a530f702b180e211b029ebf72c88fb4a813192d7e6b
6
+ metadata.gz: 0b336fa85243903b8ad536805f7f89ee4ffcb7c52aab8df9c22d16234381b5c1a740610b6850709499e60a46a87ef7b6f5010be9bcbc83c69450470ac9651877
7
+ data.tar.gz: 4f1d5231a4a244101580857627dd12f10df82f2afc1fd278b083a6edfadbca3406edf6b770b0a5deda989940715958181129823e03a6d445e4fd421467853d19
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.48.0 (2024-02-11)
4
+
5
+ * Regenerated from discovery document revision 20240201
6
+
7
+ ### v0.47.0 (2024-02-04)
8
+
9
+ * Regenerated from discovery document revision 20240126
10
+ * Regenerated using generator version 0.13.1
11
+
3
12
  ### v0.46.0 (2024-01-23)
4
13
 
5
14
  * Regenerated using generator version 0.13.0
@@ -67,6 +67,56 @@ module Google
67
67
  end
68
68
  end
69
69
 
70
+ # Ingestion settings for Amazon Kinesis Data Streams.
71
+ class AwsKinesis
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # Required. AWS role ARN to be used for Federated Identity authentication with
75
+ # Kinesis. Check the Pub/Sub docs for how to set up this role and the required
76
+ # permissions that need to be attached to it.
77
+ # Corresponds to the JSON property `awsRoleArn`
78
+ # @return [String]
79
+ attr_accessor :aws_role_arn
80
+
81
+ # Required. The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out
82
+ # mode. The consumer must be already created and ready to be used.
83
+ # Corresponds to the JSON property `consumerArn`
84
+ # @return [String]
85
+ attr_accessor :consumer_arn
86
+
87
+ # Required. The GCP service account to be used for Federated Identity
88
+ # authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for the
89
+ # provided role). The `aws_role_arn` must be set up with `accounts.google.com:
90
+ # sub` equals to this service account number.
91
+ # Corresponds to the JSON property `gcpServiceAccount`
92
+ # @return [String]
93
+ attr_accessor :gcp_service_account
94
+
95
+ # Output only. An output-only field that indicates the state of the Kinesis
96
+ # ingestion source.
97
+ # Corresponds to the JSON property `state`
98
+ # @return [String]
99
+ attr_accessor :state
100
+
101
+ # Required. The Kinesis stream ARN to ingest data from.
102
+ # Corresponds to the JSON property `streamArn`
103
+ # @return [String]
104
+ attr_accessor :stream_arn
105
+
106
+ def initialize(**args)
107
+ update!(**args)
108
+ end
109
+
110
+ # Update properties of this object
111
+ def update!(**args)
112
+ @aws_role_arn = args[:aws_role_arn] if args.key?(:aws_role_arn)
113
+ @consumer_arn = args[:consumer_arn] if args.key?(:consumer_arn)
114
+ @gcp_service_account = args[:gcp_service_account] if args.key?(:gcp_service_account)
115
+ @state = args[:state] if args.key?(:state)
116
+ @stream_arn = args[:stream_arn] if args.key?(:stream_arn)
117
+ end
118
+ end
119
+
70
120
  # Configuration for a BigQuery subscription.
71
121
  class BigQueryConfig
72
122
  include Google::Apis::Core::Hashable
@@ -81,6 +131,15 @@ module Google
81
131
  attr_accessor :drop_unknown_fields
82
132
  alias_method :drop_unknown_fields?, :drop_unknown_fields
83
133
 
134
+ # Optional. The service account to use to write to BigQuery. The subscription
135
+ # creator or updater that specifies this field must have `iam.serviceAccounts.
136
+ # actAs` permission on the service account. If not specified, the Pub/Sub [
137
+ # service agent](https://cloud.google.com/iam/docs/service-agents), service-`
138
+ # project_number`@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
139
+ # Corresponds to the JSON property `serviceAccountEmail`
140
+ # @return [String]
141
+ attr_accessor :service_account_email
142
+
84
143
  # Output only. An output-only field that indicates whether or not the
85
144
  # subscription can receive messages.
86
145
  # Corresponds to the JSON property `state`
@@ -126,6 +185,7 @@ module Google
126
185
  # Update properties of this object
127
186
  def update!(**args)
128
187
  @drop_unknown_fields = args[:drop_unknown_fields] if args.key?(:drop_unknown_fields)
188
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
129
189
  @state = args[:state] if args.key?(:state)
130
190
  @table = args[:table] if args.key?(:table)
131
191
  @use_table_schema = args[:use_table_schema] if args.key?(:use_table_schema)
@@ -215,7 +275,10 @@ module Google
215
275
  attr_accessor :members
216
276
 
217
277
  # Role that is assigned to the list of `members`, or principals. For example, `
218
- # roles/viewer`, `roles/editor`, or `roles/owner`.
278
+ # roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
279
+ # roles and permissions, see the [IAM documentation](https://cloud.google.com/
280
+ # iam/docs/roles-overview). For a list of the available pre-defined roles, see [
281
+ # here](https://cloud.google.com/iam/docs/understanding-roles).
219
282
  # Corresponds to the JSON property `role`
220
283
  # @return [String]
221
284
  attr_accessor :role
@@ -277,6 +340,15 @@ module Google
277
340
  # @return [String]
278
341
  attr_accessor :max_duration
279
342
 
343
+ # Optional. The service account to use to write to Cloud Storage. The
344
+ # subscription creator or updater that specifies this field must have `iam.
345
+ # serviceAccounts.actAs` permission on the service account. If not specified,
346
+ # the Pub/Sub [service agent](https://cloud.google.com/iam/docs/service-agents),
347
+ # service-`project_number`@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
348
+ # Corresponds to the JSON property `serviceAccountEmail`
349
+ # @return [String]
350
+ attr_accessor :service_account_email
351
+
280
352
  # Output only. An output-only field that indicates whether or not the
281
353
  # subscription can receive messages.
282
354
  # Corresponds to the JSON property `state`
@@ -301,6 +373,7 @@ module Google
301
373
  @filename_suffix = args[:filename_suffix] if args.key?(:filename_suffix)
302
374
  @max_bytes = args[:max_bytes] if args.key?(:max_bytes)
303
375
  @max_duration = args[:max_duration] if args.key?(:max_duration)
376
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
304
377
  @state = args[:state] if args.key?(:state)
305
378
  @text_config = args[:text_config] if args.key?(:text_config)
306
379
  end
@@ -504,6 +577,25 @@ module Google
504
577
  end
505
578
  end
506
579
 
580
+ # Settings for an ingestion data source on a topic.
581
+ class IngestionDataSourceSettings
582
+ include Google::Apis::Core::Hashable
583
+
584
+ # Ingestion settings for Amazon Kinesis Data Streams.
585
+ # Corresponds to the JSON property `awsKinesis`
586
+ # @return [Google::Apis::PubsubV1::AwsKinesis]
587
+ attr_accessor :aws_kinesis
588
+
589
+ def initialize(**args)
590
+ update!(**args)
591
+ end
592
+
593
+ # Update properties of this object
594
+ def update!(**args)
595
+ @aws_kinesis = args[:aws_kinesis] if args.key?(:aws_kinesis)
596
+ end
597
+ end
598
+
507
599
  # Response for the `ListSchemaRevisions` method.
508
600
  class ListSchemaRevisionsResponse
509
601
  include Google::Apis::Core::Hashable
@@ -734,8 +826,8 @@ module Google
734
826
  # zero might immediately make the message available for delivery to another
735
827
  # subscriber client. This typically results in an increase in the rate of
736
828
  # message redeliveries (that is, duplicates). The minimum deadline you can
737
- # specify is 0 seconds. The maximum deadline you can specify is 600 seconds (10
738
- # minutes).
829
+ # specify is 0 seconds. The maximum deadline you can specify in a single request
830
+ # is 600 seconds (10 minutes).
739
831
  # Corresponds to the JSON property `ackDeadlineSeconds`
740
832
  # @return [Fixnum]
741
833
  attr_accessor :ack_deadline_seconds
@@ -984,9 +1076,9 @@ module Google
984
1076
  # @return [String]
985
1077
  attr_accessor :data
986
1078
 
987
- # Optional. ID of this message, assigned by the server when the message is
988
- # published. Guaranteed to be unique within the topic. This value may be read by
989
- # a subscriber that receives a `PubsubMessage` via a `Pull` call or a push
1079
+ # ID of this message, assigned by the server when the message is published.
1080
+ # Guaranteed to be unique within the topic. This value may be read by a
1081
+ # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
990
1082
  # delivery. It must not be populated by the publisher in a `Publish` call.
991
1083
  # Corresponds to the JSON property `messageId`
992
1084
  # @return [String]
@@ -1003,9 +1095,9 @@ module Google
1003
1095
  # @return [String]
1004
1096
  attr_accessor :ordering_key
1005
1097
 
1006
- # Optional. The time at which the message was published, populated by the server
1007
- # when it receives the `Publish` call. It must not be populated by the publisher
1008
- # in a `Publish` call.
1098
+ # The time at which the message was published, populated by the server when it
1099
+ # receives the `Publish` call. It must not be populated by the publisher in a `
1100
+ # Publish` call.
1009
1101
  # Corresponds to the JSON property `publishTime`
1010
1102
  # @return [String]
1011
1103
  attr_accessor :publish_time
@@ -1735,6 +1827,11 @@ module Google
1735
1827
  class Topic
1736
1828
  include Google::Apis::Core::Hashable
1737
1829
 
1830
+ # Settings for an ingestion data source on a topic.
1831
+ # Corresponds to the JSON property `ingestionDataSourceSettings`
1832
+ # @return [Google::Apis::PubsubV1::IngestionDataSourceSettings]
1833
+ attr_accessor :ingestion_data_source_settings
1834
+
1738
1835
  # Optional. The resource name of the Cloud KMS CryptoKey to be used to protect
1739
1836
  # access to messages published on this topic. The expected format is `projects/*/
1740
1837
  # locations/*/keyRings/*/cryptoKeys/*`.
@@ -1786,12 +1883,18 @@ module Google
1786
1883
  # @return [Google::Apis::PubsubV1::SchemaSettings]
1787
1884
  attr_accessor :schema_settings
1788
1885
 
1886
+ # Output only. An output-only field indicating the state of the topic.
1887
+ # Corresponds to the JSON property `state`
1888
+ # @return [String]
1889
+ attr_accessor :state
1890
+
1789
1891
  def initialize(**args)
1790
1892
  update!(**args)
1791
1893
  end
1792
1894
 
1793
1895
  # Update properties of this object
1794
1896
  def update!(**args)
1897
+ @ingestion_data_source_settings = args[:ingestion_data_source_settings] if args.key?(:ingestion_data_source_settings)
1795
1898
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
1796
1899
  @labels = args[:labels] if args.key?(:labels)
1797
1900
  @message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration)
@@ -1799,6 +1902,7 @@ module Google
1799
1902
  @name = args[:name] if args.key?(:name)
1800
1903
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
1801
1904
  @schema_settings = args[:schema_settings] if args.key?(:schema_settings)
1905
+ @state = args[:state] if args.key?(:state)
1802
1906
  end
1803
1907
  end
1804
1908
 
@@ -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.46.0"
19
+ GEM_VERSION = "0.48.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231212"
25
+ REVISION = "20240201"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class AwsKinesis
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class BigQueryConfig
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -94,6 +100,12 @@ module Google
94
100
  include Google::Apis::Core::JsonObjectSupport
95
101
  end
96
102
 
103
+ class IngestionDataSourceSettings
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
97
109
  class ListSchemaRevisionsResponse
98
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
111
 
@@ -354,10 +366,22 @@ module Google
354
366
  end
355
367
  end
356
368
 
369
+ class AwsKinesis
370
+ # @private
371
+ class Representation < Google::Apis::Core::JsonRepresentation
372
+ property :aws_role_arn, as: 'awsRoleArn'
373
+ property :consumer_arn, as: 'consumerArn'
374
+ property :gcp_service_account, as: 'gcpServiceAccount'
375
+ property :state, as: 'state'
376
+ property :stream_arn, as: 'streamArn'
377
+ end
378
+ end
379
+
357
380
  class BigQueryConfig
358
381
  # @private
359
382
  class Representation < Google::Apis::Core::JsonRepresentation
360
383
  property :drop_unknown_fields, as: 'dropUnknownFields'
384
+ property :service_account_email, as: 'serviceAccountEmail'
361
385
  property :state, as: 'state'
362
386
  property :table, as: 'table'
363
387
  property :use_table_schema, as: 'useTableSchema'
@@ -386,6 +410,7 @@ module Google
386
410
  property :filename_suffix, as: 'filenameSuffix'
387
411
  property :max_bytes, :numeric_string => true, as: 'maxBytes'
388
412
  property :max_duration, as: 'maxDuration'
413
+ property :service_account_email, as: 'serviceAccountEmail'
389
414
  property :state, as: 'state'
390
415
  property :text_config, as: 'textConfig', class: Google::Apis::PubsubV1::TextConfig, decorator: Google::Apis::PubsubV1::TextConfig::Representation
391
416
 
@@ -445,6 +470,14 @@ module Google
445
470
  end
446
471
  end
447
472
 
473
+ class IngestionDataSourceSettings
474
+ # @private
475
+ class Representation < Google::Apis::Core::JsonRepresentation
476
+ property :aws_kinesis, as: 'awsKinesis', class: Google::Apis::PubsubV1::AwsKinesis, decorator: Google::Apis::PubsubV1::AwsKinesis::Representation
477
+
478
+ end
479
+ end
480
+
448
481
  class ListSchemaRevisionsResponse
449
482
  # @private
450
483
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -748,6 +781,8 @@ module Google
748
781
  class Topic
749
782
  # @private
750
783
  class Representation < Google::Apis::Core::JsonRepresentation
784
+ property :ingestion_data_source_settings, as: 'ingestionDataSourceSettings', class: Google::Apis::PubsubV1::IngestionDataSourceSettings, decorator: Google::Apis::PubsubV1::IngestionDataSourceSettings::Representation
785
+
751
786
  property :kms_key_name, as: 'kmsKeyName'
752
787
  hash :labels, as: 'labels'
753
788
  property :message_retention_duration, as: 'messageRetentionDuration'
@@ -757,6 +792,7 @@ module Google
757
792
  property :satisfies_pzs, as: 'satisfiesPzs'
758
793
  property :schema_settings, as: 'schemaSettings', class: Google::Apis::PubsubV1::SchemaSettings, decorator: Google::Apis::PubsubV1::SchemaSettings::Representation
759
794
 
795
+ property :state, as: 'state'
760
796
  end
761
797
  end
762
798
 
@@ -745,10 +745,11 @@ module Google
745
745
  execute_or_queue_command(command, &block)
746
746
  end
747
747
 
748
- # Updates an existing snapshot. Snapshots are used in [Seek](https://cloud.
749
- # google.com/pubsub/docs/replay-overview) operations, which allow you to manage
750
- # message acknowledgments in bulk. That is, you can set the acknowledgment state
751
- # of messages in an existing subscription to the state captured by a snapshot.
748
+ # Updates an existing snapshot by updating the fields specified in the update
749
+ # mask. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-
750
+ # overview) operations, which allow you to manage message acknowledgments in
751
+ # bulk. That is, you can set the acknowledgment state of messages in an existing
752
+ # subscription to the state captured by a snapshot.
752
753
  # @param [String] name
753
754
  # Optional. The name of the snapshot.
754
755
  # @param [Google::Apis::PubsubV1::UpdateSnapshotRequest] update_snapshot_request_object
@@ -1201,8 +1202,9 @@ module Google
1201
1202
  execute_or_queue_command(command, &block)
1202
1203
  end
1203
1204
 
1204
- # Updates an existing subscription. Note that certain properties of a
1205
- # subscription, such as its topic, are not modifiable.
1205
+ # Updates an existing subscription by updating the fields specified in the
1206
+ # update mask. Note that certain properties of a subscription, such as its topic,
1207
+ # are not modifiable.
1206
1208
  # @param [String] name
1207
1209
  # Required. The name of the subscription. It must have the format `"projects/`
1208
1210
  # project`/subscriptions/`subscription`"`. ``subscription`` must start with a
@@ -1577,8 +1579,8 @@ module Google
1577
1579
  execute_or_queue_command(command, &block)
1578
1580
  end
1579
1581
 
1580
- # Updates an existing topic. Note that certain properties of a topic are not
1581
- # modifiable.
1582
+ # Updates an existing topic by updating the fields specified in the update mask.
1583
+ # Note that certain properties of a topic are not modifiable.
1582
1584
  # @param [String] name
1583
1585
  # Required. The name of the topic. It must have the format `"projects/`project`/
1584
1586
  # topics/`topic`"`. ``topic`` must start with a letter, and contain only letters
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.46.0
4
+ version: 0.48.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: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-02-11 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.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.48.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: []