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.



1261
1262
1263
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1261

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



1208
1209
1210
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1208

def agent_spec
  @agent_spec
end

#create_timeString

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

Returns:

  • (String)


1213
1214
1215
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1213

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)


1219
1220
1221
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1219

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)


1225
1226
1227
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1225

def display_name
  @display_name
end

#endpoint_specGoogle::Apis::AgentregistryV1alpha::EndpointSpec

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



1230
1231
1232
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1230

def endpoint_spec
  @endpoint_spec
end

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

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



1235
1236
1237
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1235

def interfaces
  @interfaces
end

#mcp_server_specGoogle::Apis::AgentregistryV1alpha::McpServerSpec

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



1240
1241
1242
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1240

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)


1246
1247
1248
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1246

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)


1254
1255
1256
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1254

def registry_resource
  @registry_resource
end

#update_timeString

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

Returns:

  • (String)


1259
1260
1261
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1259

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1266

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