Class: TencentCloud::Lighthouse::V20200324::CreateMcpServerRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lighthouse::V20200324::CreateMcpServerRequest
- Defined in:
- lib/v20200324/models.rb
Overview
CreateMcpServer请求参数结构体
Instance Attribute Summary collapse
-
#Command ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式。未传传输类型字段时,默认创建此类型的MCP Server
- SSE:Server-Sent Events,服务器发送事件
. -
#Description ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式。未传传输类型字段时,默认创建此类型的MCP Server
- SSE:Server-Sent Events,服务器发送事件
. -
#Envs ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式。未传传输类型字段时,默认创建此类型的MCP Server
- SSE:Server-Sent Events,服务器发送事件
. -
#InstanceId ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式。未传传输类型字段时,默认创建此类型的MCP Server
- SSE:Server-Sent Events,服务器发送事件
. -
#Name ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式。未传传输类型字段时,默认创建此类型的MCP Server
- SSE:Server-Sent Events,服务器发送事件
. -
#TransportType ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式。未传传输类型字段时,默认创建此类型的MCP Server
- SSE:Server-Sent Events,服务器发送事件
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, name = nil, command = nil, description = nil, envs = nil, transporttype = nil) ⇒ CreateMcpServerRequest
constructor
A new instance of CreateMcpServerRequest.
Constructor Details
#initialize(instanceid = nil, name = nil, command = nil, description = nil, envs = nil, transporttype = nil) ⇒ CreateMcpServerRequest
Returns a new instance of CreateMcpServerRequest.
1295 1296 1297 1298 1299 1300 1301 1302 |
# File 'lib/v20200324/models.rb', line 1295 def initialize(instanceid=nil, name=nil, command=nil, description=nil, envs=nil, transporttype=nil) @InstanceId = instanceid @Name = name @Command = command @Description = description @Envs = envs @TransportType = transporttype end |
Instance Attribute Details
#Command ⇒ Object
1293 1294 1295 |
# File 'lib/v20200324/models.rb', line 1293 def Command @Command end |
#Description ⇒ Object
1293 1294 1295 |
# File 'lib/v20200324/models.rb', line 1293 def Description @Description end |
#Envs ⇒ Object
1293 1294 1295 |
# File 'lib/v20200324/models.rb', line 1293 def Envs @Envs end |
#InstanceId ⇒ Object
1293 1294 1295 |
# File 'lib/v20200324/models.rb', line 1293 def InstanceId @InstanceId end |
#Name ⇒ Object
1293 1294 1295 |
# File 'lib/v20200324/models.rb', line 1293 def Name @Name end |
#TransportType ⇒ Object
1293 1294 1295 |
# File 'lib/v20200324/models.rb', line 1293 def TransportType @TransportType end |
Instance Method Details
#deserialize(params) ⇒ Object
1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 |
# File 'lib/v20200324/models.rb', line 1304 def deserialize(params) @InstanceId = params['InstanceId'] @Name = params['Name'] @Command = params['Command'] @Description = params['Description'] unless params['Envs'].nil? @Envs = [] params['Envs'].each do |i| mcpserverenv_tmp = McpServerEnv.new mcpserverenv_tmp.deserialize(i) @Envs << mcpserverenv_tmp end end @TransportType = params['TransportType'] end |