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.
6719 6720 6721 6722 6723 |
# File 'lib/v20170320/models.rb', line 6719 def initialize(totalcount=nil, items=nil, requestid=nil) @TotalCount = totalcount @Items = items @RequestId = requestid end |
Instance Attribute Details
#Items ⇒ Object
6717 6718 6719 |
# File 'lib/v20170320/models.rb', line 6717 def Items @Items end |
#RequestId ⇒ Object
6717 6718 6719 |
# File 'lib/v20170320/models.rb', line 6717 def RequestId @RequestId end |
#TotalCount ⇒ Object
6717 6718 6719 |
# File 'lib/v20170320/models.rb', line 6717 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 |
# File 'lib/v20170320/models.rb', line 6725 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 |