Skip to content

Commit 92da777

Browse files
feat: Automated regeneration of pubsub v1 client (#25439)
Auto-created at 2026-01-25 09:27:58 +0000 using the toys pull request generator.
1 parent 549dc4b commit 92da777

File tree

6 files changed

+147
-38
lines changed

6 files changed

+147
-38
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334272,6 +334272,10 @@
334272334272
"/publicca:v1beta1/publicca.projects.locations.externalAccountKeys.create": create_project_location_external_account_key
334273334273
"/publicca:v1beta1/publicca.projects.locations.externalAccountKeys.create/parent": parent
334274334274
"/publicca:v1beta1/quotaUser": quota_user
334275+
"/pubsub:v1/AIInference": ai_inference
334276+
"/pubsub:v1/AIInference/endpoint": endpoint
334277+
"/pubsub:v1/AIInference/serviceAccountEmail": service_account_email
334278+
"/pubsub:v1/AIInference/unstructuredInference": unstructured_inference
334275334279
"/pubsub:v1/AcknowledgeRequest": acknowledge_request
334276334280
"/pubsub:v1/AcknowledgeRequest/ackIds": ack_ids
334277334281
"/pubsub:v1/AcknowledgeRequest/ackIds/ack_id": ack_id
@@ -334407,6 +334411,7 @@
334407334411
"/pubsub:v1/MessageStoragePolicy/allowedPersistenceRegions/allowed_persistence_region": allowed_persistence_region
334408334412
"/pubsub:v1/MessageStoragePolicy/enforceInTransit": enforce_in_transit
334409334413
"/pubsub:v1/MessageTransform": message_transform
334414+
"/pubsub:v1/MessageTransform/aiInference": ai_inference
334410334415
"/pubsub:v1/MessageTransform/disabled": disabled
334411334416
"/pubsub:v1/MessageTransform/enabled": enabled
334412334417
"/pubsub:v1/MessageTransform/javascriptUdf": javascript_udf
@@ -334537,6 +334542,9 @@
334537334542
"/pubsub:v1/Topic/state": state
334538334543
"/pubsub:v1/Topic/tags": tags
334539334544
"/pubsub:v1/Topic/tags/tag": tag
334545+
"/pubsub:v1/UnstructuredInference": unstructured_inference
334546+
"/pubsub:v1/UnstructuredInference/parameters": parameters
334547+
"/pubsub:v1/UnstructuredInference/parameters/parameter": parameter
334540334548
"/pubsub:v1/UpdateSnapshotRequest": update_snapshot_request
334541334549
"/pubsub:v1/UpdateSnapshotRequest/snapshot": snapshot
334542334550
"/pubsub:v1/UpdateSnapshotRequest/updateMask": update_mask

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.65.0 (2026-01-25)
4+
5+
* Regenerated from discovery document revision 20260116
6+
37
### v0.64.0 (2025-12-21)
48

59
* Regenerated from discovery document revision 20251212

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

Lines changed: 76 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,45 @@ module Google
2222
module Apis
2323
module PubsubV1
2424

25+
# Configuration for making inference requests against Vertex AI models.
26+
class AiInference
27+
include Google::Apis::Core::Hashable
28+
29+
# Required. An endpoint to a Vertex AI model of the form `projects/`project`/
30+
# locations/`location`/endpoints/`endpoint`` or `projects/`project`/locations/`
31+
# location`/publishers/`publisher`/models/`model``. Vertex AI API requests will
32+
# be sent to this endpoint.
33+
# Corresponds to the JSON property `endpoint`
34+
# @return [String]
35+
attr_accessor :endpoint
36+
37+
# Optional. The service account to use to make prediction requests against
38+
# endpoints. The resource creator or updater that specifies this field must have
39+
# `iam.serviceAccounts.actAs` permission on the service account. If not
40+
# specified, the Pub/Sub [service agent](`$universe.dns_names.
41+
# final_documentation_domain`/iam/docs/service-agents), service-`project_number`@
42+
# gcp-sa-pubsub.iam.gserviceaccount.com, is used.
43+
# Corresponds to the JSON property `serviceAccountEmail`
44+
# @return [String]
45+
attr_accessor :service_account_email
46+
47+
# Configuration for making inferences using arbitrary JSON payloads.
48+
# Corresponds to the JSON property `unstructuredInference`
49+
# @return [Google::Apis::PubsubV1::UnstructuredInference]
50+
attr_accessor :unstructured_inference
51+
52+
def initialize(**args)
53+
update!(**args)
54+
end
55+
56+
# Update properties of this object
57+
def update!(**args)
58+
@endpoint = args[:endpoint] if args.key?(:endpoint)
59+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
60+
@unstructured_inference = args[:unstructured_inference] if args.key?(:unstructured_inference)
61+
end
62+
end
63+
2564
# Request for the Acknowledge method.
2665
class AcknowledgeRequest
2766
include Google::Apis::Core::Hashable
@@ -712,13 +751,13 @@ class CreateSnapshotRequest
712751
# @return [Hash<String,String>]
713752
attr_accessor :labels
714753

715-
# Required. Identifier. The subscription whose backlog the snapshot retains.
716-
# Specifically, the created snapshot is guaranteed to retain: (a) The existing
717-
# backlog on the subscription. More precisely, this is defined as the messages
718-
# in the subscription's backlog that are unacknowledged upon the successful
719-
# completion of the `CreateSnapshot` request; as well as: (b) Any messages
720-
# published to the subscription's topic following the successful completion of
721-
# the CreateSnapshot request. Format is `projects/`project`/subscriptions/`sub``.
754+
# Required. The subscription whose backlog the snapshot retains. Specifically,
755+
# the created snapshot is guaranteed to retain: (a) The existing backlog on the
756+
# subscription. More precisely, this is defined as the messages in the
757+
# subscription's backlog that are unacknowledged upon the successful completion
758+
# of the `CreateSnapshot` request; as well as: (b) Any messages published to the
759+
# subscription's topic following the successful completion of the CreateSnapshot
760+
# request. Format is `projects/`project`/subscriptions/`sub``.
722761
# Corresponds to the JSON property `subscription`
723762
# @return [String]
724763
attr_accessor :subscription
@@ -1199,6 +1238,11 @@ def update!(**args)
11991238
class MessageTransform
12001239
include Google::Apis::Core::Hashable
12011240

1241+
# Configuration for making inference requests against Vertex AI models.
1242+
# Corresponds to the JSON property `aiInference`
1243+
# @return [Google::Apis::PubsubV1::AiInference]
1244+
attr_accessor :ai_inference
1245+
12021246
# Optional. If true, the transform is disabled and will not be applied to
12031247
# messages. Defaults to `false`.
12041248
# Corresponds to the JSON property `disabled`
@@ -1225,6 +1269,7 @@ def initialize(**args)
12251269

12261270
# Update properties of this object
12271271
def update!(**args)
1272+
@ai_inference = args[:ai_inference] if args.key?(:ai_inference)
12281273
@disabled = args[:disabled] if args.key?(:disabled)
12291274
@enabled = args[:enabled] if args.key?(:enabled)
12301275
@javascript_udf = args[:javascript_udf] if args.key?(:javascript_udf)
@@ -2194,9 +2239,9 @@ class Subscription
21942239
# @return [Hash<String,String>]
21952240
attr_accessor :tags
21962241

2197-
# Required. Identifier. The name of the topic from which this subscription is
2198-
# receiving messages. Format is `projects/`project`/topics/`topic``. The value
2199-
# of this field will be `_deleted-topic_` if the topic has been deleted.
2242+
# Required. The name of the topic from which this subscription is receiving
2243+
# messages. Format is `projects/`project`/topics/`topic``. The value of this
2244+
# field will be `_deleted-topic_` if the topic has been deleted.
22002245
# Corresponds to the JSON property `topic`
22012246
# @return [String]
22022247
attr_accessor :topic
@@ -2415,6 +2460,27 @@ def update!(**args)
24152460
end
24162461
end
24172462

2463+
# Configuration for making inferences using arbitrary JSON payloads.
2464+
class UnstructuredInference
2465+
include Google::Apis::Core::Hashable
2466+
2467+
# Optional. A parameters object to be included in each inference request. The
2468+
# parameters object is combined with the data field of the Pub/Sub message to
2469+
# form the inference request.
2470+
# Corresponds to the JSON property `parameters`
2471+
# @return [Hash<String,Object>]
2472+
attr_accessor :parameters
2473+
2474+
def initialize(**args)
2475+
update!(**args)
2476+
end
2477+
2478+
# Update properties of this object
2479+
def update!(**args)
2480+
@parameters = args[:parameters] if args.key?(:parameters)
2481+
end
2482+
end
2483+
24182484
# Request for the UpdateSnapshot method.
24192485
class UpdateSnapshotRequest
24202486
include Google::Apis::Core::Hashable

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.64.0"
19+
GEM_VERSION = "0.65.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 = "20251212"
25+
REVISION = "20260116"
2626
end
2727
end
2828
end

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ module Google
2222
module Apis
2323
module PubsubV1
2424

25+
class AiInference
26+
class Representation < Google::Apis::Core::JsonRepresentation; end
27+
28+
include Google::Apis::Core::JsonObjectSupport
29+
end
30+
2531
class AcknowledgeRequest
2632
class Representation < Google::Apis::Core::JsonRepresentation; end
2733

@@ -376,6 +382,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
376382
include Google::Apis::Core::JsonObjectSupport
377383
end
378384

385+
class UnstructuredInference
386+
class Representation < Google::Apis::Core::JsonRepresentation; end
387+
388+
include Google::Apis::Core::JsonObjectSupport
389+
end
390+
379391
class UpdateSnapshotRequest
380392
class Representation < Google::Apis::Core::JsonRepresentation; end
381393

@@ -418,6 +430,16 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
418430
include Google::Apis::Core::JsonObjectSupport
419431
end
420432

433+
class AiInference
434+
# @private
435+
class Representation < Google::Apis::Core::JsonRepresentation
436+
property :endpoint, as: 'endpoint'
437+
property :service_account_email, as: 'serviceAccountEmail'
438+
property :unstructured_inference, as: 'unstructuredInference', class: Google::Apis::PubsubV1::UnstructuredInference, decorator: Google::Apis::PubsubV1::UnstructuredInference::Representation
439+
440+
end
441+
end
442+
421443
class AcknowledgeRequest
422444
# @private
423445
class Representation < Google::Apis::Core::JsonRepresentation
@@ -705,6 +727,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
705727
class MessageTransform
706728
# @private
707729
class Representation < Google::Apis::Core::JsonRepresentation
730+
property :ai_inference, as: 'aiInference', class: Google::Apis::PubsubV1::AiInference, decorator: Google::Apis::PubsubV1::AiInference::Representation
731+
708732
property :disabled, as: 'disabled'
709733
property :enabled, as: 'enabled'
710734
property :javascript_udf, as: 'javascriptUdf', class: Google::Apis::PubsubV1::JavaScriptUdf, decorator: Google::Apis::PubsubV1::JavaScriptUdf::Representation
@@ -989,6 +1013,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
9891013
end
9901014
end
9911015

1016+
class UnstructuredInference
1017+
# @private
1018+
class Representation < Google::Apis::Core::JsonRepresentation
1019+
hash :parameters, as: 'parameters'
1020+
end
1021+
end
1022+
9921023
class UpdateSnapshotRequest
9931024
# @private
9941025
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,12 @@ def validate_schema_message(parent, validate_message_request_object = nil, field
549549
# object. Note that for REST API requests, you must specify a name in the
550550
# request.
551551
# @param [String] name
552-
# Required. Identifier. User-provided name for this snapshot. If the name is not
553-
# provided in the request, the server will assign a random name for this
554-
# snapshot on the same project as the subscription. Note that for REST API
555-
# requests, you must specify a name. See the [resource name rules](https://cloud.
556-
# google.com/pubsub/docs/pubsub-basics#resource_names). Format is `projects/`
557-
# project`/snapshots/`snap``.
552+
# Required. User-provided name for this snapshot. If the name is not provided in
553+
# the request, the server will assign a random name for this snapshot on the
554+
# same project as the subscription. Note that for REST API requests, you must
555+
# specify a name. See the [resource name rules](https://cloud.google.com/pubsub/
556+
# docs/pubsub-basics#resource_names). Format is `projects/`project`/snapshots/`
557+
# snap``.
558558
# @param [Google::Apis::PubsubV1::CreateSnapshotRequest] create_snapshot_request_object
559559
# @param [String] fields
560560
# Selector specifying which fields to include in a partial response.
@@ -594,8 +594,8 @@ def create_snapshot(name, create_snapshot_request_object = nil, fields: nil, quo
594594
# with the same name, but the new one has no association with the old snapshot
595595
# or its subscription, unless the same subscription is specified.
596596
# @param [String] snapshot
597-
# Required. Identifier. The name of the snapshot to delete. Format is `projects/`
598-
# project`/snapshots/`snap``.
597+
# Required. The name of the snapshot to delete. Format is `projects/`project`/
598+
# snapshots/`snap``.
599599
# @param [String] fields
600600
# Selector specifying which fields to include in a partial response.
601601
# @param [String] quota_user
@@ -629,8 +629,8 @@ def delete_project_snapshot(snapshot, fields: nil, quota_user: nil, options: nil
629629
# acknowledgment state of messages in an existing subscription to the state
630630
# captured by a snapshot.
631631
# @param [String] snapshot
632-
# Required. Identifier. The name of the snapshot to get. Format is `projects/`
633-
# project`/snapshots/`snap``.
632+
# Required. The name of the snapshot to get. Format is `projects/`project`/
633+
# snapshots/`snap``.
634634
# @param [String] fields
635635
# Selector specifying which fields to include in a partial response.
636636
# @param [String] quota_user
@@ -708,8 +708,8 @@ def get_project_snapshot_iam_policy(resource, options_requested_policy_version:
708708
# message acknowledgments in bulk. That is, you can set the acknowledgment state
709709
# of messages in an existing subscription to the state captured by a snapshot.
710710
# @param [String] project
711-
# Required. Identifier. The name of the project in which to list snapshots.
712-
# Format is `projects/`project-id``.
711+
# Required. The name of the project in which to list snapshots. Format is `
712+
# projects/`project-id``.
713713
# @param [Fixnum] page_size
714714
# Optional. Maximum number of snapshots to return.
715715
# @param [String] page_token
@@ -948,8 +948,8 @@ def create_subscription(name, subscription_object = nil, fields: nil, quota_user
948948
# but the new one has no association with the old subscription or its topic
949949
# unless the same topic is specified.
950950
# @param [String] subscription
951-
# Required. Identifier. The subscription to delete. Format is `projects/`project`
952-
# /subscriptions/`sub``.
951+
# Required. The subscription to delete. Format is `projects/`project`/
952+
# subscriptions/`sub``.
953953
# @param [String] fields
954954
# Selector specifying which fields to include in a partial response.
955955
# @param [String] quota_user
@@ -1013,8 +1013,8 @@ def detach_project_subscription(subscription, fields: nil, quota_user: nil, opti
10131013

10141014
# Gets the configuration details of a subscription.
10151015
# @param [String] subscription
1016-
# Required. Identifier. The name of the subscription to get. Format is `projects/
1017-
# `project`/subscriptions/`sub``.
1016+
# Required. The name of the subscription to get. Format is `projects/`project`/
1017+
# subscriptions/`sub``.
10181018
# @param [String] fields
10191019
# Selector specifying which fields to include in a partial response.
10201020
# @param [String] quota_user
@@ -1089,8 +1089,8 @@ def get_project_subscription_iam_policy(resource, options_requested_policy_versi
10891089

10901090
# Lists matching subscriptions.
10911091
# @param [String] project
1092-
# Required. Identifier. The name of the project in which to list subscriptions.
1093-
# Format is `projects/`project-id``.
1092+
# Required. The name of the project in which to list subscriptions. Format is `
1093+
# projects/`project-id``.
10941094
# @param [Fixnum] page_size
10951095
# Optional. Maximum number of subscriptions to return.
10961096
# @param [String] page_token
@@ -1436,8 +1436,8 @@ def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options
14361436
# subscriptions. Existing subscriptions to this topic are not deleted, but their
14371437
# `topic` field is set to `_deleted-topic_`.
14381438
# @param [String] topic
1439-
# Required. Identifier. Name of the topic to delete. Format is `projects/`
1440-
# project`/topics/`topic``.
1439+
# Required. Name of the topic to delete. Format is `projects/`project`/topics/`
1440+
# topic``.
14411441
# @param [String] fields
14421442
# Selector specifying which fields to include in a partial response.
14431443
# @param [String] quota_user
@@ -1467,8 +1467,8 @@ def delete_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
14671467

14681468
# Gets the configuration of a topic.
14691469
# @param [String] topic
1470-
# Required. Identifier. The name of the topic to get. Format is `projects/`
1471-
# project`/topics/`topic``.
1470+
# Required. The name of the topic to get. Format is `projects/`project`/topics/`
1471+
# topic``.
14721472
# @param [String] fields
14731473
# Selector specifying which fields to include in a partial response.
14741474
# @param [String] quota_user
@@ -1543,8 +1543,8 @@ def get_project_topic_iam_policy(resource, options_requested_policy_version: nil
15431543

15441544
# Lists matching topics.
15451545
# @param [String] project
1546-
# Required. Identifier. The name of the project in which to list topics. Format
1547-
# is `projects/`project-id``.
1546+
# Required. The name of the project in which to list topics. Format is `projects/
1547+
# `project-id``.
15481548
# @param [Fixnum] page_size
15491549
# Optional. Maximum number of topics to return.
15501550
# @param [String] page_token
@@ -1622,8 +1622,8 @@ def patch_project_topic(name, update_topic_request_object = nil, fields: nil, qu
16221622
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does
16231623
# not exist.
16241624
# @param [String] topic
1625-
# Required. Identifier. The messages in the request will be published on this
1626-
# topic. Format is `projects/`project`/topics/`topic``.
1625+
# Required. The messages in the request will be published on this topic. Format
1626+
# is `projects/`project`/topics/`topic``.
16271627
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
16281628
# @param [String] fields
16291629
# Selector specifying which fields to include in a partial response.

0 commit comments

Comments
 (0)