Class: TencentCloud::Tdmq::V20200217::DescribeAllTenantsResponse

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

Overview

DescribeAllTenants返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, tenants = nil, requestid = nil) ⇒ DescribeAllTenantsResponse

Returns a new instance of DescribeAllTenantsResponse.



3513
3514
3515
3516
3517
# File 'lib/v20200217/models.rb', line 3513

def initialize(totalcount=nil, tenants=nil, requestid=nil)
  @TotalCount = totalcount
  @Tenants = tenants
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    总条数

  • Tenants:

    虚拟集群列表

  • RequestId:

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



3511
3512
3513
# File 'lib/v20200217/models.rb', line 3511

def RequestId
  @RequestId
end

#TenantsObject

Parameters:

  • TotalCount:

    总条数

  • Tenants:

    虚拟集群列表

  • RequestId:

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



3511
3512
3513
# File 'lib/v20200217/models.rb', line 3511

def Tenants
  @Tenants
end

#TotalCountObject

Parameters:

  • TotalCount:

    总条数

  • Tenants:

    虚拟集群列表

  • RequestId:

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



3511
3512
3513
# File 'lib/v20200217/models.rb', line 3511

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
# File 'lib/v20200217/models.rb', line 3519

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Tenants'].nil?
    @Tenants = []
    params['Tenants'].each do |i|
      internaltenant_tmp = InternalTenant.new
      internaltenant_tmp.deserialize(i)
      @Tenants << internaltenant_tmp
    end
  end
  @RequestId = params['RequestId']
end