Class: TencentCloud::Thpc::V20230321::DescribeWorkspacesResponse

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

Overview

DescribeWorkspaces返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spaceset = nil, totalcount = nil, requestid = nil) ⇒ DescribeWorkspacesResponse

Returns a new instance of DescribeWorkspacesResponse.



1521
1522
1523
1524
1525
# File 'lib/v20230321/models.rb', line 1521

def initialize(spaceset=nil, totalcount=nil, requestid=nil)
  @SpaceSet = spaceset
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • SpaceSet:

    集群概览信息列表

  • TotalCount:

    集群数量

  • RequestId:

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



1519
1520
1521
# File 'lib/v20230321/models.rb', line 1519

def RequestId
  @RequestId
end

#SpaceSetObject

Parameters:

  • SpaceSet:

    集群概览信息列表

  • TotalCount:

    集群数量

  • RequestId:

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



1519
1520
1521
# File 'lib/v20230321/models.rb', line 1519

def SpaceSet
  @SpaceSet
end

#TotalCountObject

Parameters:

  • SpaceSet:

    集群概览信息列表

  • TotalCount:

    集群数量

  • RequestId:

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



1519
1520
1521
# File 'lib/v20230321/models.rb', line 1519

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
# File 'lib/v20230321/models.rb', line 1527

def deserialize(params)
  unless params['SpaceSet'].nil?
    @SpaceSet = []
    params['SpaceSet'].each do |i|
      spaceinfo_tmp = SpaceInfo.new
      spaceinfo_tmp.deserialize(i)
      @SpaceSet << spaceinfo_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end