Class: TencentCloud::Cms::V20190321::DescribeLibSamplesResponse

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

Overview

DescribeLibSamples返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, infos = nil, requestid = nil) ⇒ DescribeLibSamplesResponse

Returns a new instance of DescribeLibSamplesResponse.



472
473
474
475
476
# File 'lib/v20190321/models.rb', line 472

def initialize(totalcount=nil, infos=nil, requestid=nil)
  @TotalCount = totalcount
  @Infos = infos
  @RequestId = requestid
end

Instance Attribute Details

#InfosObject

Parameters:

  • TotalCount:

    词记录数

  • Infos:

    词详情

  • RequestId:

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



470
471
472
# File 'lib/v20190321/models.rb', line 470

def Infos
  @Infos
end

#RequestIdObject

Parameters:

  • TotalCount:

    词记录数

  • Infos:

    词详情

  • RequestId:

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



470
471
472
# File 'lib/v20190321/models.rb', line 470

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    词记录数

  • Infos:

    词详情

  • RequestId:

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



470
471
472
# File 'lib/v20190321/models.rb', line 470

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



478
479
480
481
482
483
484
485
486
487
488
489
# File 'lib/v20190321/models.rb', line 478

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Infos'].nil?
    @Infos = []
    params['Infos'].each do |i|
      userkeywordinfo_tmp = UserKeywordInfo.new
      userkeywordinfo_tmp.deserialize(i)
      @Infos << userkeywordinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end