Class: TencentCloud::Keewidb::V20220308::DescribeInstanceReplicasResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Keewidb::V20220308::DescribeInstanceReplicasResponse
- Defined in:
- lib/v20220308/models.rb
Overview
DescribeInstanceReplicas返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, replicagroups = nil, requestid = nil) ⇒ DescribeInstanceReplicasResponse
constructor
A new instance of DescribeInstanceReplicasResponse.
Constructor Details
#initialize(totalcount = nil, replicagroups = nil, requestid = nil) ⇒ DescribeInstanceReplicasResponse
Returns a new instance of DescribeInstanceReplicasResponse.
1037 1038 1039 1040 1041 |
# File 'lib/v20220308/models.rb', line 1037 def initialize(totalcount=nil, replicagroups=nil, requestid=nil) @TotalCount = totalcount @ReplicaGroups = replicagroups @RequestId = requestid end |
Instance Attribute Details
#ReplicaGroups ⇒ Object
1035 1036 1037 |
# File 'lib/v20220308/models.rb', line 1035 def ReplicaGroups @ReplicaGroups end |
#RequestId ⇒ Object
1035 1036 1037 |
# File 'lib/v20220308/models.rb', line 1035 def RequestId @RequestId end |
#TotalCount ⇒ Object
1035 1036 1037 |
# File 'lib/v20220308/models.rb', line 1035 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'lib/v20220308/models.rb', line 1043 def deserialize(params) @TotalCount = params['TotalCount'] unless params['ReplicaGroups'].nil? @ReplicaGroups = [] params['ReplicaGroups'].each do |i| replicagroup_tmp = ReplicaGroup.new replicagroup_tmp.deserialize(i) @ReplicaGroups << replicagroup_tmp end end @RequestId = params['RequestId'] end |