Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaBapConfigToolspecOverride
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaBapConfigToolspecOverride
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Customer-facing view of the admin-curated toolspec for a BAP connection. Holds
the (simplified) per-tool definitions surfaced to and editable by the admin in
the Discovery Engine UI. Mirrors the shape of the backend google.cloud.
connectorexecution.v1.ToolspecOverride message, but is intentionally kept as
a separate public type so the Discovery Engine API surface can evolve
independently of the fed-API surface (AIP-215). Handlers convert between the
two via helpers in //cloud/ml/discoveryengine/external_service/v1main/
data_connector_service/lib:bap_custom_tool_util.
Instance Attribute Summary collapse
-
#base_version ⇒ String
Required.
-
#tools ⇒ Array<Hash<String,Object>>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaBapConfigToolspecOverride
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaBapConfigToolspecOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaBapConfigToolspecOverride
Returns a new instance of GoogleCloudDiscoveryengineV1alphaBapConfigToolspecOverride.
8615 8616 8617 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8615 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_version ⇒ String
Required. Base toolspec version against which tools were authored. On Update,
MUST match the server's current stable toolspec version for the connection;
mismatch is rejected with a user-facing error directing the admin to re-
download the latest tools first.
Corresponds to the JSON property baseVersion
8605 8606 8607 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8605 def base_version @base_version end |
#tools ⇒ Array<Hash<String,Object>>
Required. Tool definitions (one Struct per tool) that the admin has customised
on top of the base toolspec returned by the fed API. REQUIRED because it is
the only user-editable field in the modify API; the request must carry at
least one tool.
Corresponds to the JSON property tools
8613 8614 8615 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8613 def tools @tools end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8620 8621 8622 8623 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8620 def update!(**args) @base_version = args[:base_version] if args.key?(:base_version) @tools = args[:tools] if args.key?(:tools) end |