Class: TencentCloud::Iss::V20230517::AddRecordBackupTemplateRequest

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

Overview

AddRecordBackupTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templatename = nil, timesections = nil, devtimesections = nil, scale = nil) ⇒ AddRecordBackupTemplateRequest

Returns a new instance of AddRecordBackupTemplateRequest.



696
697
698
699
700
701
# File 'lib/v20230517/models.rb', line 696

def initialize(templatename=nil, timesections=nil, devtimesections=nil, scale=nil)
  @TemplateName = templatename
  @TimeSections = timesections
  @DevTimeSections = devtimesections
  @Scale = scale
end

Instance Attribute Details

#DevTimeSectionsObject

Parameters:

  • TemplateName:

    模板名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,模板名称全局唯一,不能为空,不能重复)

  • TimeSections:

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

  • DevTimeSections:

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

  • Scale:

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



694
695
696
# File 'lib/v20230517/models.rb', line 694

def DevTimeSections
  @DevTimeSections
end

#ScaleObject

Parameters:

  • TemplateName:

    模板名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,模板名称全局唯一,不能为空,不能重复)

  • TimeSections:

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

  • DevTimeSections:

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

  • Scale:

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



694
695
696
# File 'lib/v20230517/models.rb', line 694

def Scale
  @Scale
end

#TemplateNameObject

Parameters:

  • TemplateName:

    模板名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,模板名称全局唯一,不能为空,不能重复)

  • TimeSections:

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

  • DevTimeSections:

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

  • Scale:

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



694
695
696
# File 'lib/v20230517/models.rb', line 694

def TemplateName
  @TemplateName
end

#TimeSectionsObject

Parameters:

  • TemplateName:

    模板名称(仅支持中文、英文、数字、_、-,长度不超过32个字符,模板名称全局唯一,不能为空,不能重复)

  • TimeSections:

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

  • DevTimeSections:

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

  • Scale:

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



694
695
696
# File 'lib/v20230517/models.rb', line 694

def TimeSections
  @TimeSections
end

Instance Method Details

#deserialize(params) ⇒ Object



703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
# File 'lib/v20230517/models.rb', line 703

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