Class: TencentCloud::Dbbrain::V20210527::DescribeDBAutonomyEventsResponse

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

Overview

DescribeDBAutonomyEvents返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeDBAutonomyEventsResponse.



2153
2154
2155
2156
2157
# File 'lib/v20210527/models.rb', line 2153

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。



2151
2152
2153
# File 'lib/v20210527/models.rb', line 2151

def Events
  @Events
end

#RequestIdObject

Parameters:

  • TotalCount:

    自治事件列表总数。

  • Events:

    自治事件列表。

  • RequestId:

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



2151
2152
2153
# File 'lib/v20210527/models.rb', line 2151

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    自治事件列表总数。

  • Events:

    自治事件列表。

  • RequestId:

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



2151
2152
2153
# File 'lib/v20210527/models.rb', line 2151

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
# File 'lib/v20210527/models.rb', line 2159

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