Class: TencentCloud::Iss::V20230517::AddRecordTemplateRequest

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

Overview

AddRecordTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templatename = nil, timesections = nil) ⇒ AddRecordTemplateRequest

Returns a new instance of AddRecordTemplateRequest.



952
953
954
955
# File 'lib/v20230517/models.rb', line 952

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

Instance Attribute Details

#TemplateNameObject

Parameters:

  • TemplateName:

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

  • TimeSections:

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



950
951
952
# File 'lib/v20230517/models.rb', line 950

def TemplateName
  @TemplateName
end

#TimeSectionsObject

Parameters:

  • TemplateName:

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

  • TimeSections:

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



950
951
952
# File 'lib/v20230517/models.rb', line 950

def TimeSections
  @TimeSections
end

Instance Method Details

#deserialize(params) ⇒ Object



957
958
959
960
961
962
963
964
965
966
967
# File 'lib/v20230517/models.rb', line 957

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
end