Class: TencentCloud::Lighthouse::V20200324::ModifyMcpServerRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lighthouse::V20200324::ModifyMcpServerRequest
- Defined in:
- lib/v20200324/models.rb
Overview
ModifyMcpServer请求参数结构体
Instance Attribute Summary collapse
-
#Command ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式
- SSE:Server-Sent Events,服务器发送事件
. -
#Description ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式
- SSE:Server-Sent Events,服务器发送事件
. -
#Envs ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式
- SSE:Server-Sent Events,服务器发送事件
. -
#InstanceId ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式
- SSE:Server-Sent Events,服务器发送事件
. -
#McpServerId ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式
- SSE:Server-Sent Events,服务器发送事件
. -
#Name ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式
- SSE:Server-Sent Events,服务器发送事件
. -
#TransportType ⇒ Object
- STREAMABLE_HTTP:HTTP协议的流式传输方式
- SSE:Server-Sent Events,服务器发送事件
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, mcpserverid = nil, name = nil, command = nil, description = nil, envs = nil, transporttype = nil) ⇒ ModifyMcpServerRequest
constructor
A new instance of ModifyMcpServerRequest.
Constructor Details
#initialize(instanceid = nil, mcpserverid = nil, name = nil, command = nil, description = nil, envs = nil, transporttype = nil) ⇒ ModifyMcpServerRequest
Returns a new instance of ModifyMcpServerRequest.
7168 7169 7170 7171 7172 7173 7174 7175 7176 |
# File 'lib/v20200324/models.rb', line 7168 def initialize(instanceid=nil, mcpserverid=nil, name=nil, command=nil, description=nil, envs=nil, transporttype=nil) @InstanceId = instanceid @McpServerId = mcpserverid @Name = name @Command = command @Description = description @Envs = envs @TransportType = transporttype end |
Instance Attribute Details
#Command ⇒ Object
7166 7167 7168 |
# File 'lib/v20200324/models.rb', line 7166 def Command @Command end |
#Description ⇒ Object
7166 7167 7168 |
# File 'lib/v20200324/models.rb', line 7166 def Description @Description end |
#Envs ⇒ Object
7166 7167 7168 |
# File 'lib/v20200324/models.rb', line 7166 def Envs @Envs end |
#InstanceId ⇒ Object
7166 7167 7168 |
# File 'lib/v20200324/models.rb', line 7166 def InstanceId @InstanceId end |
#McpServerId ⇒ Object
7166 7167 7168 |
# File 'lib/v20200324/models.rb', line 7166 def McpServerId @McpServerId end |
#Name ⇒ Object
7166 7167 7168 |
# File 'lib/v20200324/models.rb', line 7166 def Name @Name end |
#TransportType ⇒ Object
7166 7167 7168 |
# File 'lib/v20200324/models.rb', line 7166 def TransportType @TransportType end |
Instance Method Details
#deserialize(params) ⇒ Object
7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 |
# File 'lib/v20200324/models.rb', line 7178 def deserialize(params) @InstanceId = params['InstanceId'] @McpServerId = params['McpServerId'] @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 |