Class: Google::Apis::AgentregistryV1alpha::Service

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 a user-defined Service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Service

Returns a new instance of Service.



1512
1513
1514
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1512

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

Instance Attribute Details

#agent_specGoogle::Apis::AgentregistryV1alpha::AgentSpec

The spec of the agent. Corresponds to the JSON property agentSpec



1459
1460
1461
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1459

def agent_spec
  @agent_spec
end

#create_timeString

Output only. Create time. Corresponds to the JSON property createTime

Returns:

  • (String)


1464
1465
1466
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1464

def create_time
  @create_time
end

#descriptionString

Optional. User-defined description of an Service. Can have a maximum length of 2048 characters. Corresponds to the JSON property description

Returns:

  • (String)


1470
1471
1472
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1470

def description
  @description
end

#display_nameString

Optional. User-defined display name for the Service. Can have a maximum length of 63 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


1476
1477
1478
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1476

def display_name
  @display_name
end

#endpoint_specGoogle::Apis::AgentregistryV1alpha::EndpointSpec

The spec of the endpoint. Corresponds to the JSON property endpointSpec



1481
1482
1483
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1481

def endpoint_spec
  @endpoint_spec
end

#interfacesArray<Google::Apis::AgentregistryV1alpha::Interface>

Optional. The connection details for the Service. Corresponds to the JSON property interfaces



1486
1487
1488
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1486

def interfaces
  @interfaces
end

#mcp_server_specGoogle::Apis::AgentregistryV1alpha::McpServerSpec

The spec of the MCP Server. Corresponds to the JSON property mcpServerSpec



1491
1492
1493
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1491

def mcp_server_spec
  @mcp_server_spec
end

#nameString

Identifier. The resource name of the Service. Format: projects/project/ locations/location/services/service`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1497
1498
1499
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1497

def name
  @name
end

#registry_resourceString

Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format: * projects/project/locations/location/mcpServers/mcp_server* `projects/`project`/locations/`location`/agents/`agent * projects/project/ locations/location/endpoints/endpoint` Corresponds to the JSON propertyregistryResource`

Returns:

  • (String)


1505
1506
1507
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1505

def registry_resource
  @registry_resource
end

#update_timeString

Output only. Update time. Corresponds to the JSON property updateTime

Returns:

  • (String)


1510
1511
1512
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1510

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1517

def update!(**args)
  @agent_spec = args[:agent_spec] if args.key?(:agent_spec)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @endpoint_spec = args[:endpoint_spec] if args.key?(:endpoint_spec)
  @interfaces = args[:interfaces] if args.key?(:interfaces)
  @mcp_server_spec = args[:mcp_server_spec] if args.key?(:mcp_server_spec)
  @name = args[:name] if args.key?(:name)
  @registry_resource = args[:registry_resource] if args.key?(:registry_resource)
  @update_time = args[:update_time] if args.key?(:update_time)
end