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.



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

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



1165
1166
1167
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1165

def agent_spec
  @agent_spec
end

#create_timeString

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

Returns:

  • (String)


1170
1171
1172
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1170

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)


1176
1177
1178
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1176

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)


1182
1183
1184
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1182

def display_name
  @display_name
end

#endpoint_specGoogle::Apis::AgentregistryV1alpha::EndpointSpec

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



1187
1188
1189
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1187

def endpoint_spec
  @endpoint_spec
end

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

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



1192
1193
1194
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1192

def interfaces
  @interfaces
end

#mcp_server_specGoogle::Apis::AgentregistryV1alpha::McpServerSpec

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



1197
1198
1199
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1197

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)


1203
1204
1205
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1203

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)


1211
1212
1213
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1211

def registry_resource
  @registry_resource
end

#update_timeString

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

Returns:

  • (String)


1216
1217
1218
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1216

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1223

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