Class: TencentCloud::Dasb::V20191018::CmdTemplate

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20191018/models.rb

Overview

高危命令模板

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, cmdlist = nil, type = nil) ⇒ CmdTemplate

Returns a new instance of CmdTemplate.



657
658
659
660
661
662
# File 'lib/v20191018/models.rb', line 657

def initialize(id=nil, name=nil, cmdlist=nil, type=nil)
  @Id = id
  @Name = name
  @CmdList = cmdlist
  @Type = type
end

Instance Attribute Details

#CmdListObject

Parameters:

  • Id:

    高危命令模板ID

  • Name:

    高危命令模板名称

  • CmdList:

    命令列表,命令之间用换行符(“n”)分隔

  • Type:

    命令模板类型 1-内置 2-自定义



655
656
657
# File 'lib/v20191018/models.rb', line 655

def CmdList
  @CmdList
end

#IdObject

Parameters:

  • Id:

    高危命令模板ID

  • Name:

    高危命令模板名称

  • CmdList:

    命令列表,命令之间用换行符(“n”)分隔

  • Type:

    命令模板类型 1-内置 2-自定义



655
656
657
# File 'lib/v20191018/models.rb', line 655

def Id
  @Id
end

#NameObject

Parameters:

  • Id:

    高危命令模板ID

  • Name:

    高危命令模板名称

  • CmdList:

    命令列表,命令之间用换行符(“n”)分隔

  • Type:

    命令模板类型 1-内置 2-自定义



655
656
657
# File 'lib/v20191018/models.rb', line 655

def Name
  @Name
end

#TypeObject

Parameters:

  • Id:

    高危命令模板ID

  • Name:

    高危命令模板名称

  • CmdList:

    命令列表,命令之间用换行符(“n”)分隔

  • Type:

    命令模板类型 1-内置 2-自定义



655
656
657
# File 'lib/v20191018/models.rb', line 655

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



664
665
666
667
668
669
# File 'lib/v20191018/models.rb', line 664

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  @CmdList = params['CmdList']
  @Type = params['Type']
end