Class: TencentCloud::Bsca::V20210811::SearchKBComponentResponse

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

Overview

SearchKBComponent返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(componentlist = nil, total = nil, requestid = nil) ⇒ SearchKBComponentResponse

Returns a new instance of SearchKBComponentResponse.



849
850
851
852
853
# File 'lib/v20210811/models.rb', line 849

def initialize(componentlist=nil, total=nil, requestid=nil)
  @ComponentList = componentlist
  @Total = total
  @RequestId = requestid
end

Instance Attribute Details

#ComponentListObject

Parameters:

  • ComponentList:

    满足搜索条件的组件列表

  • Total:

    满足搜索条件的总个数

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



847
848
849
# File 'lib/v20210811/models.rb', line 847

def ComponentList
  @ComponentList
end

#RequestIdObject

Parameters:

  • ComponentList:

    满足搜索条件的组件列表

  • Total:

    满足搜索条件的总个数

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



847
848
849
# File 'lib/v20210811/models.rb', line 847

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • ComponentList:

    满足搜索条件的组件列表

  • Total:

    满足搜索条件的总个数

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



847
848
849
# File 'lib/v20210811/models.rb', line 847

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



855
856
857
858
859
860
861
862
863
864
865
866
# File 'lib/v20210811/models.rb', line 855

def deserialize(params)
  unless params['ComponentList'].nil?
    @ComponentList = []
    params['ComponentList'].each do |i|
      component_tmp = Component.new
      component_tmp.deserialize(i)
      @ComponentList << component_tmp
    end
  end
  @Total = params['Total']
  @RequestId = params['RequestId']
end