Class: Google::Apis::AgentregistryV1alpha::Interface
- Inherits:
-
Object
- Object
- Google::Apis::AgentregistryV1alpha::Interface
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/agentregistry_v1alpha/classes.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb
Overview
Represents the connection details for an Agent or MCP Server.
Instance Attribute Summary collapse
-
#protocol_binding ⇒ String
Required.
-
#url ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Interface
constructor
A new instance of Interface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Interface
Returns a new instance of Interface.
489 490 491 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 489 def initialize(**args) update!(**args) end |
Instance Attribute Details
#protocol_binding ⇒ String
Required. The protocol binding of the interface.
Corresponds to the JSON property protocolBinding
482 483 484 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 482 def protocol_binding @protocol_binding end |
#url ⇒ String
Required. The destination URL.
Corresponds to the JSON property url
487 488 489 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 487 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
494 495 496 497 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 494 def update!(**args) @protocol_binding = args[:protocol_binding] if args.key?(:protocol_binding) @url = args[:url] if args.key?(:url) end |