Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128328,12 +128328,19 @@
"/connectors:v2/TimeOfDay/nanos": nanos
"/connectors:v2/TimeOfDay/seconds": seconds
"/connectors:v2/Tool": tool
"/connectors:v2/Tool/annotations": annotations
"/connectors:v2/Tool/dependsOn": depends_on
"/connectors:v2/Tool/dependsOn/depends_on": depends_on
"/connectors:v2/Tool/description": description
"/connectors:v2/Tool/inputSchema": input_schema
"/connectors:v2/Tool/name": name
"/connectors:v2/Tool/outputSchema": output_schema
"/connectors:v2/ToolAnnotations": tool_annotations
"/connectors:v2/ToolAnnotations/destructiveHint": destructive_hint
"/connectors:v2/ToolAnnotations/idempotentHint": idempotent_hint
"/connectors:v2/ToolAnnotations/openWorldHint": open_world_hint
"/connectors:v2/ToolAnnotations/readOnlyHint": read_only_hint
"/connectors:v2/ToolAnnotations/title": title
"/connectors:v2/UpdateEntitiesWithConditionsResponse": update_entities_with_conditions_response
"/connectors:v2/UpdateEntitiesWithConditionsResponse/metadata": metadata
"/connectors:v2/UpdateEntitiesWithConditionsResponse/metadata/metadatum": metadatum
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-connectors_v2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-connectors_v2

### v0.28.0 (2025-09-28)

* Regenerated from discovery document revision 20250917

### v0.27.0 (2025-09-07)

* Regenerated from discovery document revision 20250826
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1747,6 +1747,11 @@ def update!(**args)
class Tool
include Google::Apis::Core::Hashable

# ToolAnnotations holds annotations for a tool.
# Corresponds to the JSON property `annotations`
# @return [Google::Apis::ConnectorsV2::ToolAnnotations]
attr_accessor :annotations

# List of tool names that this tool depends on.
# Corresponds to the JSON property `dependsOn`
# @return [Array<String>]
Expand Down Expand Up @@ -1778,6 +1783,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@depends_on = args[:depends_on] if args.key?(:depends_on)
@description = args[:description] if args.key?(:description)
@input_schema = args[:input_schema] if args.key?(:input_schema)
Expand All @@ -1786,6 +1792,59 @@ def update!(**args)
end
end

# ToolAnnotations holds annotations for a tool.
class ToolAnnotations
include Google::Apis::Core::Hashable

# If true, the tool may perform destructive updates to its environment. If false,
# the tool performs only additive updates. (This property is meaningful only
# when `read_only_hint == false`)
# Corresponds to the JSON property `destructiveHint`
# @return [Boolean]
attr_accessor :destructive_hint
alias_method :destructive_hint?, :destructive_hint

# If true, calling the tool repeatedly with the same arguments will have no
# additional effect on the environment. (This property is meaningful only when `
# read_only_hint == false`)
# Corresponds to the JSON property `idempotentHint`
# @return [Boolean]
attr_accessor :idempotent_hint
alias_method :idempotent_hint?, :idempotent_hint

# If true, this tool may interact with an "open world" of external entities. If
# false, the tool's domain of interaction is closed. For example, the world of a
# web search tool is open, whereas that of a memory tool is not.
# Corresponds to the JSON property `openWorldHint`
# @return [Boolean]
attr_accessor :open_world_hint
alias_method :open_world_hint?, :open_world_hint

# If true, the tool does not modify its environment.
# Corresponds to the JSON property `readOnlyHint`
# @return [Boolean]
attr_accessor :read_only_hint
alias_method :read_only_hint?, :read_only_hint

# A human-readable title for the tool.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title

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

# Update properties of this object
def update!(**args)
@destructive_hint = args[:destructive_hint] if args.key?(:destructive_hint)
@idempotent_hint = args[:idempotent_hint] if args.key?(:idempotent_hint)
@open_world_hint = args[:open_world_hint] if args.key?(:open_world_hint)
@read_only_hint = args[:read_only_hint] if args.key?(:read_only_hint)
@title = args[:title] if args.key?(:title)
end
end

# Response message for EntityService.UpdateEntitiesWithConditions
class UpdateEntitiesWithConditionsResponse
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ConnectorsV2
# Version of the google-apis-connectors_v2 gem
GEM_VERSION = "0.27.0"
GEM_VERSION = "0.28.0"

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

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

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

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

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

Expand Down Expand Up @@ -784,6 +790,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
class Tool
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotations, as: 'annotations', class: Google::Apis::ConnectorsV2::ToolAnnotations, decorator: Google::Apis::ConnectorsV2::ToolAnnotations::Representation

collection :depends_on, as: 'dependsOn'
property :description, as: 'description'
property :input_schema, as: 'inputSchema', class: Google::Apis::ConnectorsV2::JsonSchema, decorator: Google::Apis::ConnectorsV2::JsonSchema::Representation
Expand All @@ -794,6 +802,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ToolAnnotations
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :destructive_hint, as: 'destructiveHint'
property :idempotent_hint, as: 'idempotentHint'
property :open_world_hint, as: 'openWorldHint'
property :read_only_hint, as: 'readOnlyHint'
property :title, as: 'title'
end
end

class UpdateEntitiesWithConditionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Loading