Class: TencentCloud::Iss::V20230517::AddRecordBackupTemplateData

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

Overview

新增录像上云模板返回数据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templateid = nil, templatename = nil, timesections = nil, devtimesections = nil, scale = nil, createat = nil, updateat = nil) ⇒ AddRecordBackupTemplateData

Returns a new instance of AddRecordBackupTemplateData.



648
649
650
651
652
653
654
655
656
# File 'lib/v20230517/models.rb', line 648

def initialize(templateid=nil, templatename=nil, timesections=nil, devtimesections=nil, scale=nil, createat=nil, updateat=nil)
  @TemplateId = templateid
  @TemplateName = templatename
  @TimeSections = timesections
  @DevTimeSections = devtimesections
  @Scale = scale
  @CreateAt = createat
  @UpdateAt = updateat
end

Instance Attribute Details

#CreateAtObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

    上云时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • DevTimeSections:

    录像时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • Scale:

    上云倍速(支持1,2,4倍速)

  • CreateAt:

    创建时间

  • UpdateAt:

    更新时间



646
647
648
# File 'lib/v20230517/models.rb', line 646

def CreateAt
  @CreateAt
end

#DevTimeSectionsObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

    上云时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • DevTimeSections:

    录像时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • Scale:

    上云倍速(支持1,2,4倍速)

  • CreateAt:

    创建时间

  • UpdateAt:

    更新时间



646
647
648
# File 'lib/v20230517/models.rb', line 646

def DevTimeSections
  @DevTimeSections
end

#ScaleObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

    上云时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • DevTimeSections:

    录像时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • Scale:

    上云倍速(支持1,2,4倍速)

  • CreateAt:

    创建时间

  • UpdateAt:

    更新时间



646
647
648
# File 'lib/v20230517/models.rb', line 646

def Scale
  @Scale
end

#TemplateIdObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

    上云时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • DevTimeSections:

    录像时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • Scale:

    上云倍速(支持1,2,4倍速)

  • CreateAt:

    创建时间

  • UpdateAt:

    更新时间



646
647
648
# File 'lib/v20230517/models.rb', line 646

def TemplateId
  @TemplateId
end

#TemplateNameObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

    上云时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • DevTimeSections:

    录像时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • Scale:

    上云倍速(支持1,2,4倍速)

  • CreateAt:

    创建时间

  • UpdateAt:

    更新时间



646
647
648
# File 'lib/v20230517/models.rb', line 646

def TemplateName
  @TemplateName
end

#TimeSectionsObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

    上云时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • DevTimeSections:

    录像时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • Scale:

    上云倍速(支持1,2,4倍速)

  • CreateAt:

    创建时间

  • UpdateAt:

    更新时间



646
647
648
# File 'lib/v20230517/models.rb', line 646

def TimeSections
  @TimeSections
end

#UpdateAtObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

    上云时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • DevTimeSections:

    录像时间段(按周进行设置,支持一天设置多个时间段,每个时间段不小于10分钟)

  • Scale:

    上云倍速(支持1,2,4倍速)

  • CreateAt:

    创建时间

  • UpdateAt:

    更新时间



646
647
648
# File 'lib/v20230517/models.rb', line 646

def UpdateAt
  @UpdateAt
end

Instance Method Details

#deserialize(params) ⇒ Object



658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
# File 'lib/v20230517/models.rb', line 658

def deserialize(params)
  @TemplateId = params['TemplateId']
  @TemplateName = params['TemplateName']
  unless params['TimeSections'].nil?
    @TimeSections = []
    params['TimeSections'].each do |i|
      recordtemplatetimesections_tmp = RecordTemplateTimeSections.new
      recordtemplatetimesections_tmp.deserialize(i)
      @TimeSections << recordtemplatetimesections_tmp
    end
  end
  unless params['DevTimeSections'].nil?
    @DevTimeSections = []
    params['DevTimeSections'].each do |i|
      recordtemplatetimesections_tmp = RecordTemplateTimeSections.new
      recordtemplatetimesections_tmp.deserialize(i)
      @DevTimeSections << recordtemplatetimesections_tmp
    end
  end
  @Scale = params['Scale']
  @CreateAt = params['CreateAt']
  @UpdateAt = params['UpdateAt']
end