Class: TencentCloud::Iotvideoindustry::V20201201::CreateTimeTemplateRequest

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

Overview

CreateTimeTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, isallweek = nil, timetemplatespecs = nil) ⇒ CreateTimeTemplateRequest

Returns a new instance of CreateTimeTemplateRequest.



1029
1030
1031
1032
1033
# File 'lib/v20201201/models.rb', line 1029

def initialize(name=nil, isallweek=nil, timetemplatespecs=nil)
  @Name = name
  @IsAllWeek = isallweek
  @TimeTemplateSpecs = timetemplatespecs
end

Instance Attribute Details

#IsAllWeekObject

Parameters:

  • Name:

    时间模板名称

  • IsAllWeek:

    是否为每周全时录制(即7*24h录制),0:非全时录制,1;全时录制,默认0

  • TimeTemplateSpecs:

    当IsAllWeek为0时必选,用于描述模板的各个时间片段



1027
1028
1029
# File 'lib/v20201201/models.rb', line 1027

def IsAllWeek
  @IsAllWeek
end

#NameObject

Parameters:

  • Name:

    时间模板名称

  • IsAllWeek:

    是否为每周全时录制(即7*24h录制),0:非全时录制,1;全时录制,默认0

  • TimeTemplateSpecs:

    当IsAllWeek为0时必选,用于描述模板的各个时间片段



1027
1028
1029
# File 'lib/v20201201/models.rb', line 1027

def Name
  @Name
end

#TimeTemplateSpecsObject

Parameters:

  • Name:

    时间模板名称

  • IsAllWeek:

    是否为每周全时录制(即7*24h录制),0:非全时录制,1;全时录制,默认0

  • TimeTemplateSpecs:

    当IsAllWeek为0时必选,用于描述模板的各个时间片段



1027
1028
1029
# File 'lib/v20201201/models.rb', line 1027

def TimeTemplateSpecs
  @TimeTemplateSpecs
end

Instance Method Details

#deserialize(params) ⇒ Object



1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'lib/v20201201/models.rb', line 1035

def deserialize(params)
  @Name = params['Name']
  @IsAllWeek = params['IsAllWeek']
  unless params['TimeTemplateSpecs'].nil?
    @TimeTemplateSpecs = []
    params['TimeTemplateSpecs'].each do |i|
      timetemplatespec_tmp = TimeTemplateSpec.new
      timetemplatespec_tmp.deserialize(i)
      @TimeTemplateSpecs << timetemplatespec_tmp
    end
  end
end