Class: TencentCloud::Tse::V20201207::DescribeZookeeperReplicasResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::DescribeZookeeperReplicasResponse
- Defined in:
- lib/v20201207/models.rb
Overview
DescribeZookeeperReplicas返回参数结构体
Instance Attribute Summary collapse
-
#Replicas ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(replicas = nil, totalcount = nil, requestid = nil) ⇒ DescribeZookeeperReplicasResponse
constructor
A new instance of DescribeZookeeperReplicasResponse.
Constructor Details
#initialize(replicas = nil, totalcount = nil, requestid = nil) ⇒ DescribeZookeeperReplicasResponse
Returns a new instance of DescribeZookeeperReplicasResponse.
3935 3936 3937 3938 3939 |
# File 'lib/v20201207/models.rb', line 3935 def initialize(replicas=nil, totalcount=nil, requestid=nil) @Replicas = replicas @TotalCount = totalcount @RequestId = requestid end |
Instance Attribute Details
#Replicas ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
3933 3934 3935 |
# File 'lib/v20201207/models.rb', line 3933 def Replicas @Replicas end |
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
3933 3934 3935 |
# File 'lib/v20201207/models.rb', line 3933 def RequestId @RequestId end |
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
3933 3934 3935 |
# File 'lib/v20201207/models.rb', line 3933 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 |
# File 'lib/v20201207/models.rb', line 3941 def deserialize(params) unless params['Replicas'].nil? @Replicas = [] params['Replicas'].each do |i| zookeeperreplica_tmp = ZookeeperReplica.new zookeeperreplica_tmp.deserialize(i) @Replicas << zookeeperreplica_tmp end end @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end |