Skip to content

Commit

Permalink
feat: Automated regeneration of pubsub v1 client (#19783)
Browse files Browse the repository at this point in the history
Auto-created at 2024-06-26 23:12:07 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jun 26, 2024
1 parent 777e1ea commit 704b90f
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 2 deletions.
4 changes: 4 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267857,6 +267857,9 @@
"/pubsub:v1/AcknowledgeRequest": acknowledge_request
"/pubsub:v1/AcknowledgeRequest/ackIds": ack_ids
"/pubsub:v1/AcknowledgeRequest/ackIds/ack_id": ack_id
"/pubsub:v1/AnalyticsHubSubscriptionInfo": analytics_hub_subscription_info
"/pubsub:v1/AnalyticsHubSubscriptionInfo/listing": listing
"/pubsub:v1/AnalyticsHubSubscriptionInfo/subscription": subscription
"/pubsub:v1/AvroConfig": avro_config
"/pubsub:v1/AvroConfig/useTopicSchema": use_topic_schema
"/pubsub:v1/AvroConfig/writeMetadata": write_metadata
Expand Down Expand Up @@ -268020,6 +268023,7 @@
"/pubsub:v1/Snapshot/topic": topic
"/pubsub:v1/Subscription": subscription
"/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds
"/pubsub:v1/Subscription/analyticsHubSubscriptionInfo": analytics_hub_subscription_info
"/pubsub:v1/Subscription/bigqueryConfig": bigquery_config
"/pubsub:v1/Subscription/cloudStorageConfig": cloud_storage_config
"/pubsub:v1/Subscription/deadLetterPolicy": dead_letter_policy
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-pubsub_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-pubsub_v1

### v0.53.0 (2024-06-26)

* Regenerated from discovery document revision 20240618

### v0.52.0 (2024-06-16)

* Regenerated from discovery document revision 20240607
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,35 @@ def update!(**args)
end
end

# Information about an associated Analytics Hub subscription (https://cloud.
# google.com/bigquery/docs/analytics-hub-manage-subscriptions).
class AnalyticsHubSubscriptionInfo
include Google::Apis::Core::Hashable

# Optional. The name of the associated Analytics Hub listing resource. Pattern: "
# projects/`project`/locations/`location`/dataExchanges/`data_exchange`/listings/
# `listing`"
# Corresponds to the JSON property `listing`
# @return [String]
attr_accessor :listing

# Optional. The name of the associated Analytics Hub subscription resource.
# Pattern: "projects/`project`/locations/`location`/subscriptions/`subscription`"
# Corresponds to the JSON property `subscription`
# @return [String]
attr_accessor :subscription

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@listing = args[:listing] if args.key?(:listing)
@subscription = args[:subscription] if args.key?(:subscription)
end
end

# Configuration for writing message data in Avro format. Message payloads and
# metadata will be written to files as an Avro binary.
class AvroConfig
Expand Down Expand Up @@ -1619,6 +1648,12 @@ class Subscription
# @return [Fixnum]
attr_accessor :ack_deadline_seconds

# Information about an associated Analytics Hub subscription (https://cloud.
# google.com/bigquery/docs/analytics-hub-manage-subscriptions).
# Corresponds to the JSON property `analyticsHubSubscriptionInfo`
# @return [Google::Apis::PubsubV1::AnalyticsHubSubscriptionInfo]
attr_accessor :analytics_hub_subscription_info

# Configuration for a BigQuery subscription.
# Corresponds to the JSON property `bigqueryConfig`
# @return [Google::Apis::PubsubV1::BigQueryConfig]
Expand Down Expand Up @@ -1765,6 +1800,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
@analytics_hub_subscription_info = args[:analytics_hub_subscription_info] if args.key?(:analytics_hub_subscription_info)
@bigquery_config = args[:bigquery_config] if args.key?(:bigquery_config)
@cloud_storage_config = args[:cloud_storage_config] if args.key?(:cloud_storage_config)
@dead_letter_policy = args[:dead_letter_policy] if args.key?(:dead_letter_policy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module PubsubV1
# Version of the google-apis-pubsub_v1 gem
GEM_VERSION = "0.52.0"
GEM_VERSION = "0.53.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.0"

# Revision of the discovery document this client was generated from
REVISION = "20240607"
REVISION = "20240618"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class AnalyticsHubSubscriptionInfo
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class AvroConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -359,6 +365,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class AnalyticsHubSubscriptionInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :listing, as: 'listing'
property :subscription, as: 'subscription'
end
end

class AvroConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -734,6 +748,8 @@ class Subscription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
property :analytics_hub_subscription_info, as: 'analyticsHubSubscriptionInfo', class: Google::Apis::PubsubV1::AnalyticsHubSubscriptionInfo, decorator: Google::Apis::PubsubV1::AnalyticsHubSubscriptionInfo::Representation

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

property :cloud_storage_config, as: 'cloudStorageConfig', class: Google::Apis::PubsubV1::CloudStorageConfig, decorator: Google::Apis::PubsubV1::CloudStorageConfig::Representation
Expand Down

0 comments on commit 704b90f

Please sign in to comment.