Class: TencentCloud::Tat::V20201028::DescribeCommandsResponse

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

Overview

DescribeCommands返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, commandset = nil, requestid = nil) ⇒ DescribeCommandsResponse

Returns a new instance of DescribeCommandsResponse.



830
831
832
833
834
# File 'lib/v20201028/models.rb', line 830

def initialize(totalcount=nil, commandset=nil, requestid=nil)
  @TotalCount = totalcount
  @CommandSet = commandset
  @RequestId = requestid
end

Instance Attribute Details

#CommandSetObject

Parameters:

  • TotalCount:

    符合条件的命令总数。

  • CommandSet:

    命令详情列表。

  • RequestId:

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



828
829
830
# File 'lib/v20201028/models.rb', line 828

def CommandSet
  @CommandSet
end

#RequestIdObject

Parameters:

  • TotalCount:

    符合条件的命令总数。

  • CommandSet:

    命令详情列表。

  • RequestId:

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



828
829
830
# File 'lib/v20201028/models.rb', line 828

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    符合条件的命令总数。

  • CommandSet:

    命令详情列表。

  • RequestId:

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



828
829
830
# File 'lib/v20201028/models.rb', line 828

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



836
837
838
839
840
841
842
843
844
845
846
847
# File 'lib/v20201028/models.rb', line 836

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['CommandSet'].nil?
    @CommandSet = []
    params['CommandSet'].each do |i|
      command_tmp = Command.new
      command_tmp.deserialize(i)
      @CommandSet << command_tmp
    end
  end
  @RequestId = params['RequestId']
end