Class: TencentCloud::Trp::V20210515::DescribeCodePacksResponse

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

Overview

DescribeCodePacks返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(codepacks = nil, totalcount = nil, requestid = nil) ⇒ DescribeCodePacksResponse

Returns a new instance of DescribeCodePacksResponse.



1922
1923
1924
1925
1926
# File 'lib/v20210515/models.rb', line 1922

def initialize(codepacks=nil, totalcount=nil, requestid=nil)
  @CodePacks = codepacks
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#CodePacksObject

Parameters:

  • CodePacks:

    码列表

  • TotalCount:

    总数

  • RequestId:

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



1920
1921
1922
# File 'lib/v20210515/models.rb', line 1920

def CodePacks
  @CodePacks
end

#RequestIdObject

Parameters:

  • CodePacks:

    码列表

  • TotalCount:

    总数

  • RequestId:

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



1920
1921
1922
# File 'lib/v20210515/models.rb', line 1920

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • CodePacks:

    码列表

  • TotalCount:

    总数

  • RequestId:

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



1920
1921
1922
# File 'lib/v20210515/models.rb', line 1920

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
# File 'lib/v20210515/models.rb', line 1928

def deserialize(params)
  unless params['CodePacks'].nil?
    @CodePacks = []
    params['CodePacks'].each do |i|
      codepack_tmp = CodePack.new
      codepack_tmp.deserialize(i)
      @CodePacks << codepack_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end