Class: TencentCloud::Dbdc::V20201029::DescribeInstancesResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201029/models.rb

Overview

DescribeInstances返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, instances = nil, requestid = nil) ⇒ DescribeInstancesResponse

Returns a new instance of DescribeInstancesResponse.



678
679
680
681
682
# File 'lib/v20201029/models.rb', line 678

def initialize(totalcount=nil, instances=nil, requestid=nil)
  @TotalCount = totalcount
  @Instances = instances
  @RequestId = requestid
end

Instance Attribute Details

#InstancesObject

Parameters:

  • TotalCount:

    集群数量

  • Instances:

    集群扩展信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



676
677
678
# File 'lib/v20201029/models.rb', line 676

def Instances
  @Instances
end

#RequestIdObject

Parameters:

  • TotalCount:

    集群数量

  • Instances:

    集群扩展信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



676
677
678
# File 'lib/v20201029/models.rb', line 676

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    集群数量

  • Instances:

    集群扩展信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



676
677
678
# File 'lib/v20201029/models.rb', line 676

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



684
685
686
687
688
689
690
691
692
693
694
695
# File 'lib/v20201029/models.rb', line 684

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Instances'].nil?
    @Instances = []
    params['Instances'].each do |i|
      instanceexpand_tmp = InstanceExpand.new
      instanceexpand_tmp.deserialize(i)
      @Instances << instanceexpand_tmp
    end
  end
  @RequestId = params['RequestId']
end