Class: TencentCloud::Dlc::V20210125::AddDMSPartitionsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dlc::V20210125::AddDMSPartitionsResponse
- Defined in:
- lib/v20210125/models.rb
Overview
AddDMSPartitions返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(total = nil, partitions = nil, requestid = nil) ⇒ AddDMSPartitionsResponse
constructor
A new instance of AddDMSPartitionsResponse.
Constructor Details
#initialize(total = nil, partitions = nil, requestid = nil) ⇒ AddDMSPartitionsResponse
Returns a new instance of AddDMSPartitionsResponse.
76 77 78 79 80 |
# File 'lib/v20210125/models.rb', line 76 def initialize(total=nil, partitions=nil, requestid=nil) @Total = total @Partitions = partitions @RequestId = requestid end |
Instance Attribute Details
#Partitions ⇒ Object
74 75 76 |
# File 'lib/v20210125/models.rb', line 74 def Partitions @Partitions end |
#RequestId ⇒ Object
74 75 76 |
# File 'lib/v20210125/models.rb', line 74 def RequestId @RequestId end |
#Total ⇒ Object
74 75 76 |
# File 'lib/v20210125/models.rb', line 74 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/v20210125/models.rb', line 82 def deserialize(params) @Total = params['Total'] unless params['Partitions'].nil? @Partitions = [] params['Partitions'].each do |i| dmspartition_tmp = DMSPartition.new dmspartition_tmp.deserialize(i) @Partitions << dmspartition_tmp end end @RequestId = params['RequestId'] end |