Skip to content

Commit 5679b15

Browse files
feat: Automated regeneration of connectors v2 client (#24428)
Auto-created at 2025-09-28 10:15:20 +0000 using the toys pull request generator.
1 parent 798c1bd commit 5679b15

File tree

5 files changed

+91
-2
lines changed

5 files changed

+91
-2
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128831,12 +128831,19 @@
128831128831
"/connectors:v2/TimeOfDay/nanos": nanos
128832128832
"/connectors:v2/TimeOfDay/seconds": seconds
128833128833
"/connectors:v2/Tool": tool
128834+
"/connectors:v2/Tool/annotations": annotations
128834128835
"/connectors:v2/Tool/dependsOn": depends_on
128835128836
"/connectors:v2/Tool/dependsOn/depends_on": depends_on
128836128837
"/connectors:v2/Tool/description": description
128837128838
"/connectors:v2/Tool/inputSchema": input_schema
128838128839
"/connectors:v2/Tool/name": name
128839128840
"/connectors:v2/Tool/outputSchema": output_schema
128841+
"/connectors:v2/ToolAnnotations": tool_annotations
128842+
"/connectors:v2/ToolAnnotations/destructiveHint": destructive_hint
128843+
"/connectors:v2/ToolAnnotations/idempotentHint": idempotent_hint
128844+
"/connectors:v2/ToolAnnotations/openWorldHint": open_world_hint
128845+
"/connectors:v2/ToolAnnotations/readOnlyHint": read_only_hint
128846+
"/connectors:v2/ToolAnnotations/title": title
128840128847
"/connectors:v2/UpdateEntitiesWithConditionsResponse": update_entities_with_conditions_response
128841128848
"/connectors:v2/UpdateEntitiesWithConditionsResponse/metadata": metadata
128842128849
"/connectors:v2/UpdateEntitiesWithConditionsResponse/metadata/metadatum": metadatum

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.28.0 (2025-09-28)
4+
5+
* Regenerated from discovery document revision 20250917
6+
37
### v0.27.0 (2025-09-07)
48

59
* Regenerated from discovery document revision 20250826

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

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,11 @@ def update!(**args)
17471747
class Tool
17481748
include Google::Apis::Core::Hashable
17491749

1750+
# ToolAnnotations holds annotations for a tool.
1751+
# Corresponds to the JSON property `annotations`
1752+
# @return [Google::Apis::ConnectorsV2::ToolAnnotations]
1753+
attr_accessor :annotations
1754+
17501755
# List of tool names that this tool depends on.
17511756
# Corresponds to the JSON property `dependsOn`
17521757
# @return [Array<String>]
@@ -1778,6 +1783,7 @@ def initialize(**args)
17781783

17791784
# Update properties of this object
17801785
def update!(**args)
1786+
@annotations = args[:annotations] if args.key?(:annotations)
17811787
@depends_on = args[:depends_on] if args.key?(:depends_on)
17821788
@description = args[:description] if args.key?(:description)
17831789
@input_schema = args[:input_schema] if args.key?(:input_schema)
@@ -1786,6 +1792,59 @@ def update!(**args)
17861792
end
17871793
end
17881794

1795+
# ToolAnnotations holds annotations for a tool.
1796+
class ToolAnnotations
1797+
include Google::Apis::Core::Hashable
1798+
1799+
# If true, the tool may perform destructive updates to its environment. If false,
1800+
# the tool performs only additive updates. (This property is meaningful only
1801+
# when `read_only_hint == false`)
1802+
# Corresponds to the JSON property `destructiveHint`
1803+
# @return [Boolean]
1804+
attr_accessor :destructive_hint
1805+
alias_method :destructive_hint?, :destructive_hint
1806+
1807+
# If true, calling the tool repeatedly with the same arguments will have no
1808+
# additional effect on the environment. (This property is meaningful only when `
1809+
# read_only_hint == false`)
1810+
# Corresponds to the JSON property `idempotentHint`
1811+
# @return [Boolean]
1812+
attr_accessor :idempotent_hint
1813+
alias_method :idempotent_hint?, :idempotent_hint
1814+
1815+
# If true, this tool may interact with an "open world" of external entities. If
1816+
# false, the tool's domain of interaction is closed. For example, the world of a
1817+
# web search tool is open, whereas that of a memory tool is not.
1818+
# Corresponds to the JSON property `openWorldHint`
1819+
# @return [Boolean]
1820+
attr_accessor :open_world_hint
1821+
alias_method :open_world_hint?, :open_world_hint
1822+
1823+
# If true, the tool does not modify its environment.
1824+
# Corresponds to the JSON property `readOnlyHint`
1825+
# @return [Boolean]
1826+
attr_accessor :read_only_hint
1827+
alias_method :read_only_hint?, :read_only_hint
1828+
1829+
# A human-readable title for the tool.
1830+
# Corresponds to the JSON property `title`
1831+
# @return [String]
1832+
attr_accessor :title
1833+
1834+
def initialize(**args)
1835+
update!(**args)
1836+
end
1837+
1838+
# Update properties of this object
1839+
def update!(**args)
1840+
@destructive_hint = args[:destructive_hint] if args.key?(:destructive_hint)
1841+
@idempotent_hint = args[:idempotent_hint] if args.key?(:idempotent_hint)
1842+
@open_world_hint = args[:open_world_hint] if args.key?(:open_world_hint)
1843+
@read_only_hint = args[:read_only_hint] if args.key?(:read_only_hint)
1844+
@title = args[:title] if args.key?(:title)
1845+
end
1846+
end
1847+
17891848
# Response message for EntityService.UpdateEntitiesWithConditions
17901849
class UpdateEntitiesWithConditionsResponse
17911850
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.27.0"
19+
GEM_VERSION = "0.28.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 = "20250826"
25+
REVISION = "20250917"
2626
end
2727
end
2828
end

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
298298
include Google::Apis::Core::JsonObjectSupport
299299
end
300300

301+
class ToolAnnotations
302+
class Representation < Google::Apis::Core::JsonRepresentation; end
303+
304+
include Google::Apis::Core::JsonObjectSupport
305+
end
306+
301307
class UpdateEntitiesWithConditionsResponse
302308
class Representation < Google::Apis::Core::JsonRepresentation; end
303309

@@ -784,6 +790,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
784790
class Tool
785791
# @private
786792
class Representation < Google::Apis::Core::JsonRepresentation
793+
property :annotations, as: 'annotations', class: Google::Apis::ConnectorsV2::ToolAnnotations, decorator: Google::Apis::ConnectorsV2::ToolAnnotations::Representation
794+
787795
collection :depends_on, as: 'dependsOn'
788796
property :description, as: 'description'
789797
property :input_schema, as: 'inputSchema', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
@@ -794,6 +802,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
794802
end
795803
end
796804

805+
class ToolAnnotations
806+
# @private
807+
class Representation < Google::Apis::Core::JsonRepresentation
808+
property :destructive_hint, as: 'destructiveHint'
809+
property :idempotent_hint, as: 'idempotentHint'
810+
property :open_world_hint, as: 'openWorldHint'
811+
property :read_only_hint, as: 'readOnlyHint'
812+
property :title, as: 'title'
813+
end
814+
end
815+
797816
class UpdateEntitiesWithConditionsResponse
798817
# @private
799818
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)