Class: TencentCloud::Iotvideoindustry::V20201201::DescribeDeviceEventResponse

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

Overview

DescribeDeviceEvent返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, events = nil, requestid = nil) ⇒ DescribeDeviceEventResponse

Returns a new instance of DescribeDeviceEventResponse.



2070
2071
2072
2073
2074
# File 'lib/v20201201/models.rb', line 2070

def initialize(totalcount=nil, events=nil, requestid=nil)
  @TotalCount = totalcount
  @Events = events
  @RequestId = requestid
end

Instance Attribute Details

#EventsObject

Parameters:

  • TotalCount:

    总数

  • Events:

    事件列表

  • RequestId:

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



2068
2069
2070
# File 'lib/v20201201/models.rb', line 2068

def Events
  @Events
end

#RequestIdObject

Parameters:

  • TotalCount:

    总数

  • Events:

    事件列表

  • RequestId:

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



2068
2069
2070
# File 'lib/v20201201/models.rb', line 2068

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    总数

  • Events:

    事件列表

  • RequestId:

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



2068
2069
2070
# File 'lib/v20201201/models.rb', line 2068

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
# File 'lib/v20201201/models.rb', line 2076

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