Skip to content

Commit c862616

Browse files
feat: Automated regeneration of pubsub v1 client (#26047)
Auto-created at 2026-03-22 10:57:37 +0000 using the toys pull request generator.
1 parent 47a9812 commit c862616

5 files changed

Lines changed: 103 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342568,6 +342568,12 @@
342568342568
"/pubsub:v1/BigQueryConfig/useTableSchema": use_table_schema
342569342569
"/pubsub:v1/BigQueryConfig/useTopicSchema": use_topic_schema
342570342570
"/pubsub:v1/BigQueryConfig/writeMetadata": write_metadata
342571+
"/pubsub:v1/BigtableConfig": bigtable_config
342572+
"/pubsub:v1/BigtableConfig/appProfileId": app_profile_id
342573+
"/pubsub:v1/BigtableConfig/serviceAccountEmail": service_account_email
342574+
"/pubsub:v1/BigtableConfig/state": state
342575+
"/pubsub:v1/BigtableConfig/table": table
342576+
"/pubsub:v1/BigtableConfig/writeMetadata": write_metadata
342571342577
"/pubsub:v1/Binding": binding
342572342578
"/pubsub:v1/Binding/bindingId": binding_id
342573342579
"/pubsub:v1/Binding/condition": condition
@@ -342750,6 +342756,7 @@
342750342756
"/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds
342751342757
"/pubsub:v1/Subscription/analyticsHubSubscriptionInfo": analytics_hub_subscription_info
342752342758
"/pubsub:v1/Subscription/bigqueryConfig": bigquery_config
342759+
"/pubsub:v1/Subscription/bigtableConfig": bigtable_config
342753342760
"/pubsub:v1/Subscription/cloudStorageConfig": cloud_storage_config
342754342761
"/pubsub:v1/Subscription/deadLetterPolicy": dead_letter_policy
342755342762
"/pubsub:v1/Subscription/detached": detached

generated/google-apis-pubsub_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-pubsub_v1
22

3+
### v0.67.0 (2026-03-22)
4+
5+
* Regenerated from discovery document revision 20260310
6+
37
### v0.66.0 (2026-03-08)
48

59
* Regenerated from discovery document revision 20260227

generated/google-apis-pubsub_v1/lib/google/apis/pubsub_v1/classes.rb

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,67 @@ def update!(**args)
399399
end
400400
end
401401

402+
# Configuration for a Bigtable subscription. The Pub/Sub message will be written
403+
# to a Bigtable row as follows: - row key: subscription name and message ID
404+
# delimited by #. - columns: message bytes written to a single column family "
405+
# data" with an empty-string column qualifier. - cell timestamp: the message
406+
# publish timestamp.
407+
class BigtableConfig
408+
include Google::Apis::Core::Hashable
409+
410+
# Optional. The app profile to use for the Bigtable writes. If not specified,
411+
# the "default" application profile will be used. The app profile must use
412+
# single-cluster routing.
413+
# Corresponds to the JSON property `appProfileId`
414+
# @return [String]
415+
attr_accessor :app_profile_id
416+
417+
# Optional. The service account to use to write to Bigtable. The subscription
418+
# creator or updater that specifies this field must have `iam.serviceAccounts.
419+
# actAs` permission on the service account. If not specified, the Pub/Sub [
420+
# service agent](https://cloud.google.com/iam/docs/service-agents), service-`
421+
# project_number`@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
422+
# Corresponds to the JSON property `serviceAccountEmail`
423+
# @return [String]
424+
attr_accessor :service_account_email
425+
426+
# Output only. An output-only field that indicates whether or not the
427+
# subscription can receive messages.
428+
# Corresponds to the JSON property `state`
429+
# @return [String]
430+
attr_accessor :state
431+
432+
# Optional. The unique name of the table to write messages to. Values are of the
433+
# form `projects//instances//tables/`.
434+
# Corresponds to the JSON property `table`
435+
# @return [String]
436+
attr_accessor :table
437+
438+
# Optional. When true, write the subscription name, message_id, publish_time,
439+
# attributes, and ordering_key to additional columns in the table under the
440+
# pubsub_metadata column family. The subscription name, message_id, and
441+
# publish_time fields are put in their own columns while all other message
442+
# properties (other than data) are written to a JSON object in the attributes
443+
# column.
444+
# Corresponds to the JSON property `writeMetadata`
445+
# @return [Boolean]
446+
attr_accessor :write_metadata
447+
alias_method :write_metadata?, :write_metadata
448+
449+
def initialize(**args)
450+
update!(**args)
451+
end
452+
453+
# Update properties of this object
454+
def update!(**args)
455+
@app_profile_id = args[:app_profile_id] if args.key?(:app_profile_id)
456+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
457+
@state = args[:state] if args.key?(:state)
458+
@table = args[:table] if args.key?(:table)
459+
@write_metadata = args[:write_metadata] if args.key?(:write_metadata)
460+
end
461+
end
462+
402463
# Associates `members`, or principals, with a `role`.
403464
class Binding
404465
include Google::Apis::Core::Hashable
@@ -2109,6 +2170,15 @@ class Subscription
21092170
# @return [Google::Apis::PubsubV1::BigQueryConfig]
21102171
attr_accessor :bigquery_config
21112172

2173+
# Configuration for a Bigtable subscription. The Pub/Sub message will be written
2174+
# to a Bigtable row as follows: - row key: subscription name and message ID
2175+
# delimited by #. - columns: message bytes written to a single column family "
2176+
# data" with an empty-string column qualifier. - cell timestamp: the message
2177+
# publish timestamp.
2178+
# Corresponds to the JSON property `bigtableConfig`
2179+
# @return [Google::Apis::PubsubV1::BigtableConfig]
2180+
attr_accessor :bigtable_config
2181+
21122182
# Configuration for a Cloud Storage subscription.
21132183
# Corresponds to the JSON property `cloudStorageConfig`
21142184
# @return [Google::Apis::PubsubV1::CloudStorageConfig]
@@ -2265,6 +2335,7 @@ def update!(**args)
22652335
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
22662336
@analytics_hub_subscription_info = args[:analytics_hub_subscription_info] if args.key?(:analytics_hub_subscription_info)
22672337
@bigquery_config = args[:bigquery_config] if args.key?(:bigquery_config)
2338+
@bigtable_config = args[:bigtable_config] if args.key?(:bigtable_config)
22682339
@cloud_storage_config = args[:cloud_storage_config] if args.key?(:cloud_storage_config)
22692340
@dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
22702341
@detached = args[:detached] if args.key?(:detached)

generated/google-apis-pubsub_v1/lib/google/apis/pubsub_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module PubsubV1
1818
# Version of the google-apis-pubsub_v1 gem
19-
GEM_VERSION = "0.66.0"
19+
GEM_VERSION = "0.67.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260227"
25+
REVISION = "20260310"
2626
end
2727
end
2828
end

generated/google-apis-pubsub_v1/lib/google/apis/pubsub_v1/representations.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7676
include Google::Apis::Core::JsonObjectSupport
7777
end
7878

79+
class BigtableConfig
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
7985
class Binding
8086
class Representation < Google::Apis::Core::JsonRepresentation; end
8187

@@ -518,6 +524,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
518524
end
519525
end
520526

527+
class BigtableConfig
528+
# @private
529+
class Representation < Google::Apis::Core::JsonRepresentation
530+
property :app_profile_id, as: 'appProfileId'
531+
property :service_account_email, as: 'serviceAccountEmail'
532+
property :state, as: 'state'
533+
property :table, as: 'table'
534+
property :write_metadata, as: 'writeMetadata'
535+
end
536+
end
537+
521538
class Binding
522539
# @private
523540
class Representation < Google::Apis::Core::JsonRepresentation
@@ -938,6 +955,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
938955

939956
property :bigquery_config, as: 'bigqueryConfig', class: Google::Apis::PubsubV1::BigQueryConfig, decorator: Google::Apis::PubsubV1::BigQueryConfig::Representation
940957

958+
property :bigtable_config, as: 'bigtableConfig', class: Google::Apis::PubsubV1::BigtableConfig, decorator: Google::Apis::PubsubV1::BigtableConfig::Representation
959+
941960
property :cloud_storage_config, as: 'cloudStorageConfig', class: Google::Apis::PubsubV1::CloudStorageConfig, decorator: Google::Apis::PubsubV1::CloudStorageConfig::Representation
942961

943962
property :dead_letter_policy, as: 'deadLetterPolicy', class: Google::Apis::PubsubV1::DeadLetterPolicy, decorator: Google::Apis::PubsubV1::DeadLetterPolicy::Representation

0 commit comments

Comments
 (0)