Class: TencentCloud::Cfg::V20210820::TaskConfig
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfg::V20210820::TaskConfig
- Defined in:
- lib/v20210820/models.rb
Overview
从经验模板创建演练时需要配置的任务参数
Instance Attribute Summary collapse
- #PolicyDealType ⇒ Object
- #Tags ⇒ Object
- #TaskDescription ⇒ Object
- #TaskGroupsConfig ⇒ Object
- #TaskMode ⇒ Object
- #TaskPauseDuration ⇒ Object
- #TaskTitle ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(taskgroupsconfig = nil, tasktitle = nil, taskdescription = nil, taskmode = nil, taskpauseduration = nil, tags = nil, policydealtype = nil) ⇒ TaskConfig
constructor
A new instance of TaskConfig.
Constructor Details
#initialize(taskgroupsconfig = nil, tasktitle = nil, taskdescription = nil, taskmode = nil, taskpauseduration = nil, tags = nil, policydealtype = nil) ⇒ TaskConfig
Returns a new instance of TaskConfig.
1734 1735 1736 1737 1738 1739 1740 1741 1742 |
# File 'lib/v20210820/models.rb', line 1734 def initialize(taskgroupsconfig=nil, tasktitle=nil, taskdescription=nil, taskmode=nil, taskpauseduration=nil, =nil, policydealtype=nil) @TaskGroupsConfig = taskgroupsconfig @TaskTitle = tasktitle @TaskDescription = taskdescription @TaskMode = taskmode @TaskPauseDuration = taskpauseduration @Tags = @PolicyDealType = policydealtype end |
Instance Attribute Details
#PolicyDealType ⇒ Object
1732 1733 1734 |
# File 'lib/v20210820/models.rb', line 1732 def PolicyDealType @PolicyDealType end |
#Tags ⇒ Object
1732 1733 1734 |
# File 'lib/v20210820/models.rb', line 1732 def Tags @Tags end |
#TaskDescription ⇒ Object
1732 1733 1734 |
# File 'lib/v20210820/models.rb', line 1732 def TaskDescription @TaskDescription end |
#TaskGroupsConfig ⇒ Object
1732 1733 1734 |
# File 'lib/v20210820/models.rb', line 1732 def TaskGroupsConfig @TaskGroupsConfig end |
#TaskMode ⇒ Object
1732 1733 1734 |
# File 'lib/v20210820/models.rb', line 1732 def TaskMode @TaskMode end |
#TaskPauseDuration ⇒ Object
1732 1733 1734 |
# File 'lib/v20210820/models.rb', line 1732 def TaskPauseDuration @TaskPauseDuration end |
#TaskTitle ⇒ Object
1732 1733 1734 |
# File 'lib/v20210820/models.rb', line 1732 def TaskTitle @TaskTitle end |
Instance Method Details
#deserialize(params) ⇒ Object
1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 |
# File 'lib/v20210820/models.rb', line 1744 def deserialize(params) unless params['TaskGroupsConfig'].nil? @TaskGroupsConfig = [] params['TaskGroupsConfig'].each do |i| taskgroupconfig_tmp = TaskGroupConfig.new taskgroupconfig_tmp.deserialize(i) @TaskGroupsConfig << taskgroupconfig_tmp end end @TaskTitle = params['TaskTitle'] @TaskDescription = params['TaskDescription'] @TaskMode = params['TaskMode'] @TaskPauseDuration = params['TaskPauseDuration'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tagwithcreate_tmp = TagWithCreate.new tagwithcreate_tmp.deserialize(i) @Tags << tagwithcreate_tmp end end @PolicyDealType = params['PolicyDealType'] end |