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.



489
490
491
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 489

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)


482
483
484
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 482

def protocol_binding
  @protocol_binding
end

#urlString

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

Returns:

  • (String)


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