Class: TencentCloud::Iotvideoindustry::V20201201::CreateSceneRequest

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

Overview

CreateScene请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scenename = nil, scenetrigger = nil, recordduration = nil, storeduration = nil, devices = nil, channels = nil) ⇒ CreateSceneRequest

Returns a new instance of CreateSceneRequest.



964
965
966
967
968
969
970
971
# File 'lib/v20201201/models.rb', line 964

def initialize(scenename=nil, scenetrigger=nil, recordduration=nil, storeduration=nil, devices=nil, channels=nil)
  @SceneName = scenename
  @SceneTrigger = scenetrigger
  @RecordDuration = recordduration
  @StoreDuration = storeduration
  @Devices = devices
  @Channels = channels
end

Instance Attribute Details

#ChannelsObject

Parameters:

  • SceneName:

    场景名称

  • SceneTrigger:

    场景触发规则

  • RecordDuration:

    录制时长 (秒)

  • StoreDuration:

    录像存储时长(天)

  • Devices:

    设备列表(不推荐使用)

  • Channels:

    通道列表



962
963
964
# File 'lib/v20201201/models.rb', line 962

def Channels
  @Channels
end

#DevicesObject

Parameters:

  • SceneName:

    场景名称

  • SceneTrigger:

    场景触发规则

  • RecordDuration:

    录制时长 (秒)

  • StoreDuration:

    录像存储时长(天)

  • Devices:

    设备列表(不推荐使用)

  • Channels:

    通道列表



962
963
964
# File 'lib/v20201201/models.rb', line 962

def Devices
  @Devices
end

#RecordDurationObject

Parameters:

  • SceneName:

    场景名称

  • SceneTrigger:

    场景触发规则

  • RecordDuration:

    录制时长 (秒)

  • StoreDuration:

    录像存储时长(天)

  • Devices:

    设备列表(不推荐使用)

  • Channels:

    通道列表



962
963
964
# File 'lib/v20201201/models.rb', line 962

def RecordDuration
  @RecordDuration
end

#SceneNameObject

Parameters:

  • SceneName:

    场景名称

  • SceneTrigger:

    场景触发规则

  • RecordDuration:

    录制时长 (秒)

  • StoreDuration:

    录像存储时长(天)

  • Devices:

    设备列表(不推荐使用)

  • Channels:

    通道列表



962
963
964
# File 'lib/v20201201/models.rb', line 962

def SceneName
  @SceneName
end

#SceneTriggerObject

Parameters:

  • SceneName:

    场景名称

  • SceneTrigger:

    场景触发规则

  • RecordDuration:

    录制时长 (秒)

  • StoreDuration:

    录像存储时长(天)

  • Devices:

    设备列表(不推荐使用)

  • Channels:

    通道列表



962
963
964
# File 'lib/v20201201/models.rb', line 962

def SceneTrigger
  @SceneTrigger
end

#StoreDurationObject

Parameters:

  • SceneName:

    场景名称

  • SceneTrigger:

    场景触发规则

  • RecordDuration:

    录制时长 (秒)

  • StoreDuration:

    录像存储时长(天)

  • Devices:

    设备列表(不推荐使用)

  • Channels:

    通道列表



962
963
964
# File 'lib/v20201201/models.rb', line 962

def StoreDuration
  @StoreDuration
end

Instance Method Details

#deserialize(params) ⇒ Object



973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
# File 'lib/v20201201/models.rb', line 973

def deserialize(params)
  @SceneName = params['SceneName']
  @SceneTrigger = params['SceneTrigger']
  @RecordDuration = params['RecordDuration']
  @StoreDuration = params['StoreDuration']
  unless params['Devices'].nil?
    @Devices = []
    params['Devices'].each do |i|
      deviceitem_tmp = DeviceItem.new
      deviceitem_tmp.deserialize(i)
      @Devices << deviceitem_tmp
    end
  end
  unless params['Channels'].nil?
    @Channels = []
    params['Channels'].each do |i|
      channelitem_tmp = ChannelItem.new
      channelitem_tmp.deserialize(i)
      @Channels << channelitem_tmp
    end
  end
end