Class: TencentCloud::Bh::V20230418::SearchCommandResponse

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

Overview

SearchCommand返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, commands = nil, requestid = nil) ⇒ SearchCommandResponse

Returns a new instance of SearchCommandResponse.



5726
5727
5728
5729
5730
# File 'lib/v20230418/models.rb', line 5726

def initialize(totalcount=nil, commands=nil, requestid=nil)
  @TotalCount = totalcount
  @Commands = commands
  @RequestId = requestid
end

Instance Attribute Details

#CommandsObject

Parameters:

  • TotalCount:

    总记录数

  • Commands:

    命令列表

  • RequestId:

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



5724
5725
5726
# File 'lib/v20230418/models.rb', line 5724

def Commands
  @Commands
end

#RequestIdObject

Parameters:

  • TotalCount:

    总记录数

  • Commands:

    命令列表

  • RequestId:

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



5724
5725
5726
# File 'lib/v20230418/models.rb', line 5724

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    总记录数

  • Commands:

    命令列表

  • RequestId:

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



5724
5725
5726
# File 'lib/v20230418/models.rb', line 5724

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
# File 'lib/v20230418/models.rb', line 5732

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Commands'].nil?
    @Commands = []
    params['Commands'].each do |i|
      searchcommandresult_tmp = SearchCommandResult.new
      searchcommandresult_tmp.deserialize(i)
      @Commands << searchcommandresult_tmp
    end
  end
  @RequestId = params['RequestId']
end