Class: TencentCloud::Bh::V20230418::SearchCommandResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Bh::V20230418::SearchCommandResponse
- Defined in:
- lib/v20230418/models.rb
Overview
SearchCommand返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, commands = nil, requestid = nil) ⇒ SearchCommandResponse
constructor
A new instance of SearchCommandResponse.
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
#Commands ⇒ Object
5724 5725 5726 |
# File 'lib/v20230418/models.rb', line 5724 def Commands @Commands end |
#RequestId ⇒ Object
5724 5725 5726 |
# File 'lib/v20230418/models.rb', line 5724 def RequestId @RequestId end |
#TotalCount ⇒ Object
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 |