Class: TencentCloud::Dlc::V20210125::Policys
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dlc::V20210125::Policys
- Defined in:
- lib/v20210125/models.rb
Overview
策略集合
Instance Attribute Summary collapse
-
#PolicySet ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(policyset = nil, totalcount = nil) ⇒ Policys
constructor
A new instance of Policys.
Constructor Details
#initialize(policyset = nil, totalcount = nil) ⇒ Policys
Returns a new instance of Policys.
13405 13406 13407 13408 |
# File 'lib/v20210125/models.rb', line 13405 def initialize(policyset=nil, totalcount=nil) @PolicySet = policyset @TotalCount = totalcount end |
Instance Attribute Details
#PolicySet ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13403 13404 13405 |
# File 'lib/v20210125/models.rb', line 13403 def PolicySet @PolicySet end |
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
13403 13404 13405 |
# File 'lib/v20210125/models.rb', line 13403 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 |
# File 'lib/v20210125/models.rb', line 13410 def deserialize(params) unless params['PolicySet'].nil? @PolicySet = [] params['PolicySet'].each do |i| policy_tmp = Policy.new policy_tmp.deserialize(i) @PolicySet << policy_tmp end end @TotalCount = params['TotalCount'] end |