Class: TencentCloud::Iotvideoindustry::V20201201::CreateTimeTemplateRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotvideoindustry::V20201201::CreateTimeTemplateRequest
- Defined in:
- lib/v20201201/models.rb
Overview
CreateTimeTemplate请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, isallweek = nil, timetemplatespecs = nil) ⇒ CreateTimeTemplateRequest
constructor
A new instance of CreateTimeTemplateRequest.
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
#IsAllWeek ⇒ Object
1027 1028 1029 |
# File 'lib/v20201201/models.rb', line 1027 def IsAllWeek @IsAllWeek end |
#Name ⇒ Object
1027 1028 1029 |
# File 'lib/v20201201/models.rb', line 1027 def Name @Name end |
#TimeTemplateSpecs ⇒ Object
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 |