Class: TencentCloud::Iotvideoindustry::V20201201::DescribeChannelsResponse

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

Overview

DescribeChannels返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, channels = nil, requestid = nil) ⇒ DescribeChannelsResponse

Returns a new instance of DescribeChannelsResponse.



1956
1957
1958
1959
1960
# File 'lib/v20201201/models.rb', line 1956

def initialize(totalcount=nil, channels=nil, requestid=nil)
  @TotalCount = totalcount
  @Channels = channels
  @RequestId = requestid
end

Instance Attribute Details

#ChannelsObject

Parameters:

  • TotalCount:

    通道总数

  • Channels:

    通道详情列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1954
1955
1956
# File 'lib/v20201201/models.rb', line 1954

def Channels
  @Channels
end

#RequestIdObject

Parameters:

  • TotalCount:

    通道总数

  • Channels:

    通道详情列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1954
1955
1956
# File 'lib/v20201201/models.rb', line 1954

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    通道总数

  • Channels:

    通道详情列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1954
1955
1956
# File 'lib/v20201201/models.rb', line 1954

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
# File 'lib/v20201201/models.rb', line 1962

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Channels'].nil?
    @Channels = []
    params['Channels'].each do |i|
      channeldetail_tmp = ChannelDetail.new
      channeldetail_tmp.deserialize(i)
      @Channels << channeldetail_tmp
    end
  end
  @RequestId = params['RequestId']
end