Class: TencentCloud::Ms::V20180408::ShieldPlanInfo

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

Overview

加固策略信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, planset = nil) ⇒ ShieldPlanInfo

Returns a new instance of ShieldPlanInfo.



2783
2784
2785
2786
# File 'lib/v20180408/models.rb', line 2783

def initialize(totalcount=nil, planset=nil)
  @TotalCount = totalcount
  @PlanSet = planset
end

Instance Attribute Details

#PlanSetObject

Parameters:

  • TotalCount:

    加固策略数量

  • PlanSet:

    加固策略具体信息数组



2781
2782
2783
# File 'lib/v20180408/models.rb', line 2781

def PlanSet
  @PlanSet
end

#TotalCountObject

Parameters:

  • TotalCount:

    加固策略数量

  • PlanSet:

    加固策略具体信息数组



2781
2782
2783
# File 'lib/v20180408/models.rb', line 2781

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
# File 'lib/v20180408/models.rb', line 2788

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['PlanSet'].nil?
    @PlanSet = []
    params['PlanSet'].each do |i|
      plandetailinfo_tmp = PlanDetailInfo.new
      plandetailinfo_tmp.deserialize(i)
      @PlanSet << plandetailinfo_tmp
    end
  end
end