Class: TencentCloud::Iss::V20230517::AIConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iss::V20230517::AIConfig
- Defined in:
- lib/v20230517/models.rb
Overview
AI分析配置
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(detecttype = nil, timeinterval = nil, opertimeslot = nil) ⇒ AIConfig
constructor
A new instance of AIConfig.
Constructor Details
#initialize(detecttype = nil, timeinterval = nil, opertimeslot = nil) ⇒ AIConfig
Returns a new instance of AIConfig.
31 32 33 34 35 |
# File 'lib/v20230517/models.rb', line 31 def initialize(detecttype=nil, timeinterval=nil, opertimeslot=nil) @DetectType = detecttype @TimeInterval = timeinterval @OperTimeSlot = opertimeslot end |
Instance Attribute Details
#DetectType ⇒ Object
29 30 31 |
# File 'lib/v20230517/models.rb', line 29 def DetectType @DetectType end |
#OperTimeSlot ⇒ Object
29 30 31 |
# File 'lib/v20230517/models.rb', line 29 def OperTimeSlot @OperTimeSlot end |
#TimeInterval ⇒ Object
29 30 31 |
# File 'lib/v20230517/models.rb', line 29 def TimeInterval @TimeInterval end |
Instance Method Details
#deserialize(params) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/v20230517/models.rb', line 37 def deserialize(params) @DetectType = params['DetectType'] @TimeInterval = params['TimeInterval'] unless params['OperTimeSlot'].nil? @OperTimeSlot = [] params['OperTimeSlot'].each do |i| opertimeslot_tmp = OperTimeSlot.new opertimeslot_tmp.deserialize(i) @OperTimeSlot << opertimeslot_tmp end end end |