Class: TencentCloud::Iotvideoindustry::V20201201::CreateRecordingPlanRequest

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

Overview

CreateRecordingPlan请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, timetemplateid = nil, channels = nil, recordstoragetime = nil) ⇒ CreateRecordingPlanRequest

Returns a new instance of CreateRecordingPlanRequest.



905
906
907
908
909
910
# File 'lib/v20201201/models.rb', line 905

def initialize(name=nil, timetemplateid=nil, channels=nil, recordstoragetime=nil)
  @Name = name
  @TimeTemplateId = timetemplateid
  @Channels = channels
  @RecordStorageTime = recordstoragetime
end

Instance Attribute Details

#ChannelsObject

Parameters:

  • Name:

    计划名称

  • TimeTemplateId:

    时间模板ID

  • Channels:

    该录制计划绑定的通道列表

  • RecordStorageTime:

    存储周期(天);默认存储30天



903
904
905
# File 'lib/v20201201/models.rb', line 903

def Channels
  @Channels
end

#NameObject

Parameters:

  • Name:

    计划名称

  • TimeTemplateId:

    时间模板ID

  • Channels:

    该录制计划绑定的通道列表

  • RecordStorageTime:

    存储周期(天);默认存储30天



903
904
905
# File 'lib/v20201201/models.rb', line 903

def Name
  @Name
end

#RecordStorageTimeObject

Parameters:

  • Name:

    计划名称

  • TimeTemplateId:

    时间模板ID

  • Channels:

    该录制计划绑定的通道列表

  • RecordStorageTime:

    存储周期(天);默认存储30天



903
904
905
# File 'lib/v20201201/models.rb', line 903

def RecordStorageTime
  @RecordStorageTime
end

#TimeTemplateIdObject

Parameters:

  • Name:

    计划名称

  • TimeTemplateId:

    时间模板ID

  • Channels:

    该录制计划绑定的通道列表

  • RecordStorageTime:

    存储周期(天);默认存储30天



903
904
905
# File 'lib/v20201201/models.rb', line 903

def TimeTemplateId
  @TimeTemplateId
end

Instance Method Details

#deserialize(params) ⇒ Object



912
913
914
915
916
917
918
919
920
921
922
923
924
# File 'lib/v20201201/models.rb', line 912

def deserialize(params)
  @Name = params['Name']
  @TimeTemplateId = params['TimeTemplateId']
  unless params['Channels'].nil?
    @Channels = []
    params['Channels'].each do |i|
      channelitem_tmp = ChannelItem.new
      channelitem_tmp.deserialize(i)
      @Channels << channelitem_tmp
    end
  end
  @RecordStorageTime = params['RecordStorageTime']
end