Class: TencentCloud::Iotvideoindustry::V20201201::UpdateRecordPlanRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotvideoindustry::V20201201::UpdateRecordPlanRequest
- Defined in:
- lib/v20201201/models.rb
Overview
UpdateRecordPlan请求参数结构体
Instance Attribute Summary collapse
-
#Devices ⇒ Object
0 - 不更新 1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表.
-
#EventId ⇒ Object
0 - 不更新 1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表.
-
#IsModifyDevices ⇒ Object
0 - 不更新 1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表.
-
#Name ⇒ Object
0 - 不更新 1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表.
-
#PlanId ⇒ Object
0 - 不更新 1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表.
-
#TimeTemplateId ⇒ Object
0 - 不更新 1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(planid = nil, name = nil, timetemplateid = nil, eventid = nil, devices = nil, ismodifydevices = nil) ⇒ UpdateRecordPlanRequest
constructor
A new instance of UpdateRecordPlanRequest.
Constructor Details
#initialize(planid = nil, name = nil, timetemplateid = nil, eventid = nil, devices = nil, ismodifydevices = nil) ⇒ UpdateRecordPlanRequest
Returns a new instance of UpdateRecordPlanRequest.
6122 6123 6124 6125 6126 6127 6128 6129 |
# File 'lib/v20201201/models.rb', line 6122 def initialize(planid=nil, name=nil, timetemplateid=nil, eventid=nil, devices=nil, ismodifydevices=nil) @PlanId = planid @Name = name @TimeTemplateId = timetemplateid @EventId = eventid @Devices = devices @IsModifyDevices = ismodifydevices end |
Instance Attribute Details
#Devices ⇒ Object
0 - 不更新1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表
6120 6121 6122 |
# File 'lib/v20201201/models.rb', line 6120 def Devices @Devices end |
#EventId ⇒ Object
0 - 不更新1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表
6120 6121 6122 |
# File 'lib/v20201201/models.rb', line 6120 def EventId @EventId end |
#IsModifyDevices ⇒ Object
0 - 不更新1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表
6120 6121 6122 |
# File 'lib/v20201201/models.rb', line 6120 def IsModifyDevices @IsModifyDevices end |
#Name ⇒ Object
0 - 不更新1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表
6120 6121 6122 |
# File 'lib/v20201201/models.rb', line 6120 def Name @Name end |
#PlanId ⇒ Object
0 - 不更新1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表
6120 6121 6122 |
# File 'lib/v20201201/models.rb', line 6120 def PlanId @PlanId end |
#TimeTemplateId ⇒ Object
0 - 不更新1 - 更新,如果Devices参数为空则清空设备列表,Devices不为空则全量更新设备列表
6120 6121 6122 |
# File 'lib/v20201201/models.rb', line 6120 def TimeTemplateId @TimeTemplateId end |
Instance Method Details
#deserialize(params) ⇒ Object
6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 |
# File 'lib/v20201201/models.rb', line 6131 def deserialize(params) @PlanId = params['PlanId'] @Name = params['Name'] @TimeTemplateId = params['TimeTemplateId'] @EventId = params['EventId'] unless params['Devices'].nil? @Devices = [] params['Devices'].each do |i| deviceitem_tmp = DeviceItem.new deviceitem_tmp.deserialize(i) @Devices << deviceitem_tmp end end @IsModifyDevices = params['IsModifyDevices'] end |