Class: TencentCloud::Cdb::V20170320::DescribeAuditLogsResponse

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

Overview

DescribeAuditLogs返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, items = nil, requestid = nil) ⇒ DescribeAuditLogsResponse

Returns a new instance of DescribeAuditLogsResponse.



4719
4720
4721
4722
4723
# File 'lib/v20170320/models.rb', line 4719

def initialize(totalcount=nil, items=nil, requestid=nil)
  @TotalCount = totalcount
  @Items = items
  @RequestId = requestid
end

Instance Attribute Details

#ItemsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    符合条件的审计日志条数。

  • Items:

    审计日志详情。

  • RequestId:

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



4717
4718
4719
# File 'lib/v20170320/models.rb', line 4717

def Items
  @Items
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    符合条件的审计日志条数。

  • Items:

    审计日志详情。

  • RequestId:

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



4717
4718
4719
# File 'lib/v20170320/models.rb', line 4717

def RequestId
  @RequestId
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    符合条件的审计日志条数。

  • Items:

    审计日志详情。

  • RequestId:

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



4717
4718
4719
# File 'lib/v20170320/models.rb', line 4717

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
# File 'lib/v20170320/models.rb', line 4725

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