Class: TencentCloud::Cdb::V20170320::DescribeDBInstancesResponse

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

Overview

DescribeDBInstances返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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



6517
6518
6519
6520
6521
# File 'lib/v20170320/models.rb', line 6517

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

Instance Attribute Details

#ItemsObject



6515
6516
6517
# File 'lib/v20170320/models.rb', line 6515

def Items
  @Items
end

#RequestIdObject



6515
6516
6517
# File 'lib/v20170320/models.rb', line 6515

def RequestId
  @RequestId
end

#TotalCountObject



6515
6516
6517
# File 'lib/v20170320/models.rb', line 6515

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
# File 'lib/v20170320/models.rb', line 6523

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