Class: TencentCloud::Cdb::V20170320::DescribeDBSwitchRecordsResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::DescribeDBSwitchRecordsResponse
- Defined in:
- lib/v20170320/models.rb
Overview
DescribeDBSwitchRecords返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, items = nil, requestid = nil) ⇒ DescribeDBSwitchRecordsResponse
constructor
A new instance of DescribeDBSwitchRecordsResponse.
Constructor Details
#initialize(totalcount = nil, items = nil, requestid = nil) ⇒ DescribeDBSwitchRecordsResponse
Returns a new instance of DescribeDBSwitchRecordsResponse.
6748 6749 6750 6751 6752 |
# File 'lib/v20170320/models.rb', line 6748 def initialize(totalcount=nil, items=nil, requestid=nil) @TotalCount = totalcount @Items = items @RequestId = requestid end |
Instance Attribute Details
#Items ⇒ Object
6746 6747 6748 |
# File 'lib/v20170320/models.rb', line 6746 def Items @Items end |
#RequestId ⇒ Object
6746 6747 6748 |
# File 'lib/v20170320/models.rb', line 6746 def RequestId @RequestId end |
#TotalCount ⇒ Object
6746 6747 6748 |
# File 'lib/v20170320/models.rb', line 6746 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 |
# File 'lib/v20170320/models.rb', line 6754 def deserialize(params) @TotalCount = params['TotalCount'] unless params['Items'].nil? @Items = [] params['Items'].each do |i| dbswitchinfo_tmp = DBSwitchInfo.new dbswitchinfo_tmp.deserialize(i) @Items << dbswitchinfo_tmp end end @RequestId = params['RequestId'] end |