Class: TencentCloud::Cwp::V20180228::DescribeMachineSnapshotResponse

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

Overview

DescribeMachineSnapshot返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(list = nil, totalcount = nil, snapshotcheck = nil, requestid = nil) ⇒ DescribeMachineSnapshotResponse

Returns a new instance of DescribeMachineSnapshotResponse.



17830
17831
17832
17833
17834
17835
# File 'lib/v20180228/models.rb', line 17830

def initialize(list=nil, totalcount=nil, snapshotcheck=nil, requestid=nil)
  @List = list
  @TotalCount = totalcount
  @SnapshotCheck = snapshotcheck
  @RequestId = requestid
end

Instance Attribute Details

#ListObject

Parameters:

  • List:

    主机快照列表

  • TotalCount:

    总个数

  • SnapshotCheck:

    是否都有24小时内创建的快照

  • RequestId:

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



17828
17829
17830
# File 'lib/v20180228/models.rb', line 17828

def List
  @List
end

#RequestIdObject

Parameters:

  • List:

    主机快照列表

  • TotalCount:

    总个数

  • SnapshotCheck:

    是否都有24小时内创建的快照

  • RequestId:

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



17828
17829
17830
# File 'lib/v20180228/models.rb', line 17828

def RequestId
  @RequestId
end

#SnapshotCheckObject

Parameters:

  • List:

    主机快照列表

  • TotalCount:

    总个数

  • SnapshotCheck:

    是否都有24小时内创建的快照

  • RequestId:

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



17828
17829
17830
# File 'lib/v20180228/models.rb', line 17828

def SnapshotCheck
  @SnapshotCheck
end

#TotalCountObject

Parameters:

  • List:

    主机快照列表

  • TotalCount:

    总个数

  • SnapshotCheck:

    是否都有24小时内创建的快照

  • RequestId:

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



17828
17829
17830
# File 'lib/v20180228/models.rb', line 17828

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
# File 'lib/v20180228/models.rb', line 17837

def deserialize(params)
  unless params['List'].nil?
    @List = []
    params['List'].each do |i|
      machinesnapshotinfo_tmp = MachineSnapshotInfo.new
      machinesnapshotinfo_tmp.deserialize(i)
      @List << machinesnapshotinfo_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @SnapshotCheck = params['SnapshotCheck']
  @RequestId = params['RequestId']
end