Class: TencentCloud::Iss::V20230517::RecordTemplateInfo

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) ⇒ RecordTemplateInfo

Returns a new instance of RecordTemplateInfo.



6633
6634
6635
6636
6637
# File 'lib/v20230517/models.rb', line 6633

def initialize(templateid=nil, templatename=nil, timesections=nil)
  @TemplateId = templateid
  @TemplateName = templatename
  @TimeSections = timesections
end

Instance Attribute Details

#TemplateIdObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

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



6631
6632
6633
# File 'lib/v20230517/models.rb', line 6631

def TemplateId
  @TemplateId
end

#TemplateNameObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

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



6631
6632
6633
# File 'lib/v20230517/models.rb', line 6631

def TemplateName
  @TemplateName
end

#TimeSectionsObject

Parameters:

  • TemplateId:

    模板ID

  • TemplateName:

    模板名称

  • TimeSections:

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



6631
6632
6633
# File 'lib/v20230517/models.rb', line 6631

def TimeSections
  @TimeSections
end

Instance Method Details

#deserialize(params) ⇒ Object



6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
# File 'lib/v20230517/models.rb', line 6639

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
end