Skip to content

Commit f32aec0

Browse files
feat: Automated regeneration of connectors v2 client (googleapis#25734)
Auto-created at 2026-02-15 10:47:29 +0000 using the toys pull request generator.
1 parent 686ee03 commit f32aec0

File tree

6 files changed

+233
-2
lines changed

6 files changed

+233
-2
lines changed

api_names_out.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137115,6 +137115,11 @@
137115137115
"/connectors:v2/Field/name": name
137116137116
"/connectors:v2/Field/nullable": nullable
137117137117
"/connectors:v2/Field/reference": reference
137118+
"/connectors:v2/GenerateCustomToolspecRequest": generate_custom_toolspec_request
137119+
"/connectors:v2/GenerateCustomToolspecRequest/toolNames": tool_names
137120+
"/connectors:v2/GenerateCustomToolspecRequest/toolNames/tool_name": tool_name
137121+
"/connectors:v2/GenerateCustomToolspecResponse": generate_custom_toolspec_response
137122+
"/connectors:v2/GenerateCustomToolspecResponse/toolSpec": tool_spec
137118137123
"/connectors:v2/GetResourcePostRequest": get_resource_post_request
137119137124
"/connectors:v2/GetResourcePostRequest/executionConfig": execution_config
137120137125
"/connectors:v2/GetResourcePostRequest/toolSpec": tool_spec
@@ -137184,6 +137189,9 @@
137184137189
"/connectors:v2/ListActionsResponse/nextPageToken": next_page_token
137185137190
"/connectors:v2/ListActionsResponse/unsupportedActionNames": unsupported_action_names
137186137191
"/connectors:v2/ListActionsResponse/unsupportedActionNames/unsupported_action_name": unsupported_action_name
137192+
"/connectors:v2/ListCustomToolNamesResponse": list_custom_tool_names_response
137193+
"/connectors:v2/ListCustomToolNamesResponse/toolNames": tool_names
137194+
"/connectors:v2/ListCustomToolNamesResponse/toolNames/tool_name": tool_name
137187137195
"/connectors:v2/ListEntitiesResponse": list_entities_response
137188137196
"/connectors:v2/ListEntitiesResponse/entities": entities
137189137197
"/connectors:v2/ListEntitiesResponse/entities/entity": entity
@@ -137348,6 +137356,10 @@
137348137356
"/connectors:v2/ToolAnnotations/openWorldHint": open_world_hint
137349137357
"/connectors:v2/ToolAnnotations/readOnlyHint": read_only_hint
137350137358
"/connectors:v2/ToolAnnotations/title": title
137359+
"/connectors:v2/ToolName": tool_name
137360+
"/connectors:v2/ToolName/entityName": entity_name
137361+
"/connectors:v2/ToolName/name": name
137362+
"/connectors:v2/ToolName/operation": operation
137351137363
"/connectors:v2/ToolSpec": tool_spec
137352137364
"/connectors:v2/ToolSpec/toolDefinitions": tool_definitions
137353137365
"/connectors:v2/ToolSpec/toolDefinitions/tool_definition": tool_definition
@@ -137436,6 +137448,10 @@
137436137448
"/connectors:v2/connectors.projects.locations.connections.exchangeAuthCode/name": name
137437137449
"/connectors:v2/connectors.projects.locations.connections.executeSqlQuery": execute_connection_sql_query
137438137450
"/connectors:v2/connectors.projects.locations.connections.executeSqlQuery/connection": connection
137451+
"/connectors:v2/connectors.projects.locations.connections.generateConnectionToolspecOverride": generate_project_location_connection_connection_toolspec_override
137452+
"/connectors:v2/connectors.projects.locations.connections.generateConnectionToolspecOverride/name": name
137453+
"/connectors:v2/connectors.projects.locations.connections.listCustomToolNames": list_project_location_connection_custom_tool_names
137454+
"/connectors:v2/connectors.projects.locations.connections.listCustomToolNames/name": name
137439137455
"/connectors:v2/connectors.projects.locations.connections.refreshAccessToken": refresh_connection_access_token
137440137456
"/connectors:v2/connectors.projects.locations.connections.refreshAccessToken/name": name
137441137457
"/connectors:v2/connectors.projects.locations.connections.resources.get": get_project_location_connection_resource

generated/google-apis-connectors_v2/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-connectors_v2
22

3+
### v0.31.0 (2026-02-15)
4+
5+
* Regenerated from discovery document revision 20260128
6+
37
### v0.30.0 (2026-01-18)
48

59
* Regenerated from discovery document revision 20251216

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

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,45 @@ def update!(**args)
730730
end
731731
end
732732

733+
#
734+
class GenerateCustomToolspecRequest
735+
include Google::Apis::Core::Hashable
736+
737+
# list of tools to be generated.
738+
# Corresponds to the JSON property `toolNames`
739+
# @return [Array<Google::Apis::ConnectorsV2::ToolName>]
740+
attr_accessor :tool_names
741+
742+
def initialize(**args)
743+
update!(**args)
744+
end
745+
746+
# Update properties of this object
747+
def update!(**args)
748+
@tool_names = args[:tool_names] if args.key?(:tool_names)
749+
end
750+
end
751+
752+
#
753+
class GenerateCustomToolspecResponse
754+
include Google::Apis::Core::Hashable
755+
756+
# tool spec that has tool_defitions array containing the tools for all sted
757+
# tool_names.
758+
# Corresponds to the JSON property `toolSpec`
759+
# @return [Google::Apis::ConnectorsV2::ToolSpec]
760+
attr_accessor :tool_spec
761+
762+
def initialize(**args)
763+
update!(**args)
764+
end
765+
766+
# Update properties of this object
767+
def update!(**args)
768+
@tool_spec = args[:tool_spec] if args.key?(:tool_spec)
769+
end
770+
end
771+
733772
# Request message for ConnectorAgentService.GetResourcePost
734773
class GetResourcePostRequest
735774
include Google::Apis::Core::Hashable
@@ -1137,6 +1176,25 @@ def update!(**args)
11371176
end
11381177
end
11391178

1179+
#
1180+
class ListCustomToolNamesResponse
1181+
include Google::Apis::Core::Hashable
1182+
1183+
# List of custom tools.
1184+
# Corresponds to the JSON property `toolNames`
1185+
# @return [Array<Google::Apis::ConnectorsV2::ToolName>]
1186+
attr_accessor :tool_names
1187+
1188+
def initialize(**args)
1189+
update!(**args)
1190+
end
1191+
1192+
# Update properties of this object
1193+
def update!(**args)
1194+
@tool_names = args[:tool_names] if args.key?(:tool_names)
1195+
end
1196+
end
1197+
11401198
# Response message for EntityService.ListEntities
11411199
class ListEntitiesResponse
11421200
include Google::Apis::Core::Hashable
@@ -2119,6 +2177,37 @@ def update!(**args)
21192177
end
21202178
end
21212179

2180+
#
2181+
class ToolName
2182+
include Google::Apis::Core::Hashable
2183+
2184+
# Entity name for which the tool was generated.
2185+
# Corresponds to the JSON property `entityName`
2186+
# @return [String]
2187+
attr_accessor :entity_name
2188+
2189+
# Tool name that was generated in the list tools call.
2190+
# Corresponds to the JSON property `name`
2191+
# @return [String]
2192+
attr_accessor :name
2193+
2194+
# Operation for which the tool was generated.
2195+
# Corresponds to the JSON property `operation`
2196+
# @return [String]
2197+
attr_accessor :operation
2198+
2199+
def initialize(**args)
2200+
update!(**args)
2201+
end
2202+
2203+
# Update properties of this object
2204+
def update!(**args)
2205+
@entity_name = args[:entity_name] if args.key?(:entity_name)
2206+
@name = args[:name] if args.key?(:name)
2207+
@operation = args[:operation] if args.key?(:operation)
2208+
end
2209+
end
2210+
21222211
#
21232212
class ToolSpec
21242213
include Google::Apis::Core::Hashable

generated/google-apis-connectors_v2/lib/google/apis/connectors_v2/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 ConnectorsV2
1818
# Version of the google-apis-connectors_v2 gem
19-
GEM_VERSION = "0.30.0"
19+
GEM_VERSION = "0.31.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 = "20251216"
25+
REVISION = "20260128"
2626
end
2727
end
2828
end

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

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
148148
include Google::Apis::Core::JsonObjectSupport
149149
end
150150

151+
class GenerateCustomToolspecRequest
152+
class Representation < Google::Apis::Core::JsonRepresentation; end
153+
154+
include Google::Apis::Core::JsonObjectSupport
155+
end
156+
157+
class GenerateCustomToolspecResponse
158+
class Representation < Google::Apis::Core::JsonRepresentation; end
159+
160+
include Google::Apis::Core::JsonObjectSupport
161+
end
162+
151163
class GetResourcePostRequest
152164
class Representation < Google::Apis::Core::JsonRepresentation; end
153165

@@ -184,6 +196,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
184196
include Google::Apis::Core::JsonObjectSupport
185197
end
186198

199+
class ListCustomToolNamesResponse
200+
class Representation < Google::Apis::Core::JsonRepresentation; end
201+
202+
include Google::Apis::Core::JsonObjectSupport
203+
end
204+
187205
class ListEntitiesResponse
188206
class Representation < Google::Apis::Core::JsonRepresentation; end
189207

@@ -346,6 +364,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
346364
include Google::Apis::Core::JsonObjectSupport
347365
end
348366

367+
class ToolName
368+
class Representation < Google::Apis::Core::JsonRepresentation; end
369+
370+
include Google::Apis::Core::JsonObjectSupport
371+
end
372+
349373
class ToolSpec
350374
class Representation < Google::Apis::Core::JsonRepresentation; end
351375

@@ -577,6 +601,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
577601
end
578602
end
579603

604+
class GenerateCustomToolspecRequest
605+
# @private
606+
class Representation < Google::Apis::Core::JsonRepresentation
607+
collection :tool_names, as: 'toolNames', class: Google::Apis::ConnectorsV2::ToolName, decorator: Google::Apis::ConnectorsV2::ToolName::Representation
608+
609+
end
610+
end
611+
612+
class GenerateCustomToolspecResponse
613+
# @private
614+
class Representation < Google::Apis::Core::JsonRepresentation
615+
property :tool_spec, as: 'toolSpec', class: Google::Apis::ConnectorsV2::ToolSpec, decorator: Google::Apis::ConnectorsV2::ToolSpec::Representation
616+
617+
end
618+
end
619+
580620
class GetResourcePostRequest
581621
# @private
582622
class Representation < Google::Apis::Core::JsonRepresentation
@@ -668,6 +708,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
668708
end
669709
end
670710

711+
class ListCustomToolNamesResponse
712+
# @private
713+
class Representation < Google::Apis::Core::JsonRepresentation
714+
collection :tool_names, as: 'toolNames', class: Google::Apis::ConnectorsV2::ToolName, decorator: Google::Apis::ConnectorsV2::ToolName::Representation
715+
716+
end
717+
end
718+
671719
class ListEntitiesResponse
672720
# @private
673721
class Representation < Google::Apis::Core::JsonRepresentation
@@ -944,6 +992,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
944992
end
945993
end
946994

995+
class ToolName
996+
# @private
997+
class Representation < Google::Apis::Core::JsonRepresentation
998+
property :entity_name, as: 'entityName'
999+
property :name, as: 'name'
1000+
property :operation, as: 'operation'
1001+
end
1002+
end
1003+
9471004
class ToolSpec
9481005
# @private
9491006
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,71 @@ def execute_connection_sql_query(connection, execute_sql_query_request_object =
189189
execute_or_queue_command(command, &block)
190190
end
191191

192+
# Generate toolspec override for the given list of toolNames.
193+
# @param [String] name
194+
# Required. Resource name of the Connection. Format: projects/`project`/
195+
# locations/`location`/connections/`connection`
196+
# @param [Google::Apis::ConnectorsV2::GenerateCustomToolspecRequest] generate_custom_toolspec_request_object
197+
# @param [String] fields
198+
# Selector specifying which fields to include in a partial response.
199+
# @param [String] quota_user
200+
# Available to use for quota purposes for server-side applications. Can be any
201+
# arbitrary string assigned to a user, but should not exceed 40 characters.
202+
# @param [Google::Apis::RequestOptions] options
203+
# Request-specific options
204+
#
205+
# @yield [result, err] Result & error if block supplied
206+
# @yieldparam result [Google::Apis::ConnectorsV2::GenerateCustomToolspecResponse] parsed result object
207+
# @yieldparam err [StandardError] error object if request failed
208+
#
209+
# @return [Google::Apis::ConnectorsV2::GenerateCustomToolspecResponse]
210+
#
211+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
212+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
213+
# @raise [Google::Apis::AuthorizationError] Authorization is required
214+
def generate_project_location_connection_connection_toolspec_override(name, generate_custom_toolspec_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
215+
command = make_simple_command(:post, 'v2/{+name}:generateConnectionToolspecOverride', options)
216+
command.request_representation = Google::Apis::ConnectorsV2::GenerateCustomToolspecRequest::Representation
217+
command.request_object = generate_custom_toolspec_request_object
218+
command.response_representation = Google::Apis::ConnectorsV2::GenerateCustomToolspecResponse::Representation
219+
command.response_class = Google::Apis::ConnectorsV2::GenerateCustomToolspecResponse
220+
command.params['name'] = name unless name.nil?
221+
command.query['fields'] = fields unless fields.nil?
222+
command.query['quotaUser'] = quota_user unless quota_user.nil?
223+
execute_or_queue_command(command, &block)
224+
end
225+
226+
# Lists custom tool names.
227+
# @param [String] name
228+
# Required. Resource name of the Connection. Format: projects/`project`/
229+
# locations/`location`/connections/`connection`
230+
# @param [String] fields
231+
# Selector specifying which fields to include in a partial response.
232+
# @param [String] quota_user
233+
# Available to use for quota purposes for server-side applications. Can be any
234+
# arbitrary string assigned to a user, but should not exceed 40 characters.
235+
# @param [Google::Apis::RequestOptions] options
236+
# Request-specific options
237+
#
238+
# @yield [result, err] Result & error if block supplied
239+
# @yieldparam result [Google::Apis::ConnectorsV2::ListCustomToolNamesResponse] parsed result object
240+
# @yieldparam err [StandardError] error object if request failed
241+
#
242+
# @return [Google::Apis::ConnectorsV2::ListCustomToolNamesResponse]
243+
#
244+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
245+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
246+
# @raise [Google::Apis::AuthorizationError] Authorization is required
247+
def list_project_location_connection_custom_tool_names(name, fields: nil, quota_user: nil, options: nil, &block)
248+
command = make_simple_command(:get, 'v2/{+name}:listCustomToolNames', options)
249+
command.response_representation = Google::Apis::ConnectorsV2::ListCustomToolNamesResponse::Representation
250+
command.response_class = Google::Apis::ConnectorsV2::ListCustomToolNamesResponse
251+
command.params['name'] = name unless name.nil?
252+
command.query['fields'] = fields unless fields.nil?
253+
command.query['quotaUser'] = quota_user unless quota_user.nil?
254+
execute_or_queue_command(command, &block)
255+
end
256+
192257
# RefreshAccessToken exchanges the OAuth refresh token (and other necessary data)
193258
# for a new access token (and new associated credentials).
194259
# @param [String] name

0 commit comments

Comments
 (0)