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.



17549
17550
17551
17552
17553
17554
# File 'lib/v20180228/models.rb', line 17549

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。



17547
17548
17549
# File 'lib/v20180228/models.rb', line 17547

def List
  @List
end

#RequestIdObject

Parameters:

  • List:

    主机快照列表

  • TotalCount:

    总个数

  • SnapshotCheck:

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

  • RequestId:

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



17547
17548
17549
# File 'lib/v20180228/models.rb', line 17547

def RequestId
  @RequestId
end

#SnapshotCheckObject

Parameters:

  • List:

    主机快照列表

  • TotalCount:

    总个数

  • SnapshotCheck:

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

  • RequestId:

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



17547
17548
17549
# File 'lib/v20180228/models.rb', line 17547

def SnapshotCheck
  @SnapshotCheck
end

#TotalCountObject

Parameters:

  • List:

    主机快照列表

  • TotalCount:

    总个数

  • SnapshotCheck:

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

  • RequestId:

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



17547
17548
17549
# File 'lib/v20180228/models.rb', line 17547

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
# File 'lib/v20180228/models.rb', line 17556

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