Class: TencentCloud::Iotvideoindustry::V20201201::CreateRecordPlanRequest

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

Overview

CreateRecordPlan请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, timetemplateid = nil, eventid = nil, devices = nil, recordstoragetime = nil) ⇒ CreateRecordPlanRequest

Returns a new instance of CreateRecordPlanRequest.



848
849
850
851
852
853
854
# File 'lib/v20201201/models.rb', line 848

def initialize(name=nil, timetemplateid=nil, eventid=nil, devices=nil, recordstoragetime=nil)
  @Name = name
  @TimeTemplateId = timetemplateid
  @EventId = eventid
  @Devices = devices
  @RecordStorageTime = recordstoragetime
end

Instance Attribute Details

#DevicesObject

Parameters:

  • Name:

    计划名称

  • TimeTemplateId:

    时间模板ID

  • EventId:

    触发录制的事件类别 1:全部

  • Devices:

    该录制计划绑定的设备列表

  • RecordStorageTime:

    存储周期



846
847
848
# File 'lib/v20201201/models.rb', line 846

def Devices
  @Devices
end

#EventIdObject

Parameters:

  • Name:

    计划名称

  • TimeTemplateId:

    时间模板ID

  • EventId:

    触发录制的事件类别 1:全部

  • Devices:

    该录制计划绑定的设备列表

  • RecordStorageTime:

    存储周期



846
847
848
# File 'lib/v20201201/models.rb', line 846

def EventId
  @EventId
end

#NameObject

Parameters:

  • Name:

    计划名称

  • TimeTemplateId:

    时间模板ID

  • EventId:

    触发录制的事件类别 1:全部

  • Devices:

    该录制计划绑定的设备列表

  • RecordStorageTime:

    存储周期



846
847
848
# File 'lib/v20201201/models.rb', line 846

def Name
  @Name
end

#RecordStorageTimeObject

Parameters:

  • Name:

    计划名称

  • TimeTemplateId:

    时间模板ID

  • EventId:

    触发录制的事件类别 1:全部

  • Devices:

    该录制计划绑定的设备列表

  • RecordStorageTime:

    存储周期



846
847
848
# File 'lib/v20201201/models.rb', line 846

def RecordStorageTime
  @RecordStorageTime
end

#TimeTemplateIdObject

Parameters:

  • Name:

    计划名称

  • TimeTemplateId:

    时间模板ID

  • EventId:

    触发录制的事件类别 1:全部

  • Devices:

    该录制计划绑定的设备列表

  • RecordStorageTime:

    存储周期



846
847
848
# File 'lib/v20201201/models.rb', line 846

def TimeTemplateId
  @TimeTemplateId
end

Instance Method Details

#deserialize(params) ⇒ Object



856
857
858
859
860
861
862
863
864
865
866
867
868
869
# File 'lib/v20201201/models.rb', line 856

def deserialize(params)
  @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
  @RecordStorageTime = params['RecordStorageTime']
end