Class: TencentCloud::Lighthouse::V20200324::McpServerTemplate
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lighthouse::V20200324::McpServerTemplate
- Defined in:
- lib/v20200324/models.rb
Overview
MCP Server模板
Instance Attribute Summary collapse
- #Command ⇒ Object
- #CommunityUrl ⇒ Object
- #Description ⇒ Object
- #EnvSet ⇒ Object
- #IconUrl ⇒ Object
- #Name ⇒ Object
- #PlatformUrl ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, command = nil, description = nil, iconurl = nil, communityurl = nil, platformurl = nil, envset = nil) ⇒ McpServerTemplate
constructor
A new instance of McpServerTemplate.
Constructor Details
#initialize(name = nil, command = nil, description = nil, iconurl = nil, communityurl = nil, platformurl = nil, envset = nil) ⇒ McpServerTemplate
Returns a new instance of McpServerTemplate.
6496 6497 6498 6499 6500 6501 6502 6503 6504 |
# File 'lib/v20200324/models.rb', line 6496 def initialize(name=nil, command=nil, description=nil, iconurl=nil, communityurl=nil, platformurl=nil, envset=nil) @Name = name @Command = command @Description = description @IconUrl = iconurl @CommunityUrl = communityurl @PlatformUrl = platformurl @EnvSet = envset end |
Instance Attribute Details
#Command ⇒ Object
6494 6495 6496 |
# File 'lib/v20200324/models.rb', line 6494 def Command @Command end |
#CommunityUrl ⇒ Object
6494 6495 6496 |
# File 'lib/v20200324/models.rb', line 6494 def CommunityUrl @CommunityUrl end |
#Description ⇒ Object
6494 6495 6496 |
# File 'lib/v20200324/models.rb', line 6494 def Description @Description end |
#EnvSet ⇒ Object
6494 6495 6496 |
# File 'lib/v20200324/models.rb', line 6494 def EnvSet @EnvSet end |
#IconUrl ⇒ Object
6494 6495 6496 |
# File 'lib/v20200324/models.rb', line 6494 def IconUrl @IconUrl end |
#Name ⇒ Object
6494 6495 6496 |
# File 'lib/v20200324/models.rb', line 6494 def Name @Name end |
#PlatformUrl ⇒ Object
6494 6495 6496 |
# File 'lib/v20200324/models.rb', line 6494 def PlatformUrl @PlatformUrl end |
Instance Method Details
#deserialize(params) ⇒ Object
6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 |
# File 'lib/v20200324/models.rb', line 6506 def deserialize(params) @Name = params['Name'] @Command = params['Command'] @Description = params['Description'] @IconUrl = params['IconUrl'] @CommunityUrl = params['CommunityUrl'] @PlatformUrl = params['PlatformUrl'] unless params['EnvSet'].nil? @EnvSet = [] params['EnvSet'].each do |i| mcpservertemplateenv_tmp = McpServerTemplateEnv.new mcpservertemplateenv_tmp.deserialize(i) @EnvSet << mcpservertemplateenv_tmp end end end |