Class: Google::Apis::AgentregistryV1alpha::Interface

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Interface

Returns a new instance of Interface.



624
625
626
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 624

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

Instance Attribute Details

#protocol_bindingString

Required. The protocol binding of the interface. Corresponds to the JSON property protocolBinding

Returns:

  • (String)


617
618
619
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 617

def protocol_binding
  @protocol_binding
end

#urlString

Required. The destination URL. Corresponds to the JSON property url

Returns:

  • (String)


622
623
624
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 622

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



629
630
631
632
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 629

def update!(**args)
  @protocol_binding = args[:protocol_binding] if args.key?(:protocol_binding)
  @url = args[:url] if args.key?(:url)
end