Class: TencentCloud::Iotvideoindustry::V20201201::ModifyBindRecordingPlanRequest

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

Overview

ModifyBindRecordingPlan请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, planid = nil, channels = nil) ⇒ ModifyBindRecordingPlanRequest

Returns a new instance of ModifyBindRecordingPlanRequest.



5223
5224
5225
5226
5227
# File 'lib/v20201201/models.rb', line 5223

def initialize(type=nil, planid=nil, channels=nil)
  @Type = type
  @PlanId = planid
  @Channels = channels
end

Instance Attribute Details

#ChannelsObject

Parameters:

  • Type:

    操作类型: 1-绑定设备 ;2-解绑设备

  • PlanId:

    录制计划ID

  • Channels:

    录制通道列表



5221
5222
5223
# File 'lib/v20201201/models.rb', line 5221

def Channels
  @Channels
end

#PlanIdObject

Parameters:

  • Type:

    操作类型: 1-绑定设备 ;2-解绑设备

  • PlanId:

    录制计划ID

  • Channels:

    录制通道列表



5221
5222
5223
# File 'lib/v20201201/models.rb', line 5221

def PlanId
  @PlanId
end

#TypeObject

Parameters:

  • Type:

    操作类型: 1-绑定设备 ;2-解绑设备

  • PlanId:

    录制计划ID

  • Channels:

    录制通道列表



5221
5222
5223
# File 'lib/v20201201/models.rb', line 5221

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
# File 'lib/v20201201/models.rb', line 5229

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