Class: TencentCloud::Cwp::V20180228::DescribeMachineSnapshotResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::DescribeMachineSnapshotResponse
- Defined in:
- lib/v20180228/models.rb
Overview
DescribeMachineSnapshot返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(list = nil, totalcount = nil, snapshotcheck = nil, requestid = nil) ⇒ DescribeMachineSnapshotResponse
constructor
A new instance of DescribeMachineSnapshotResponse.
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
#List ⇒ Object
17828 17829 17830 |
# File 'lib/v20180228/models.rb', line 17828 def List @List end |
#RequestId ⇒ Object
17828 17829 17830 |
# File 'lib/v20180228/models.rb', line 17828 def RequestId @RequestId end |
#SnapshotCheck ⇒ Object
17828 17829 17830 |
# File 'lib/v20180228/models.rb', line 17828 def SnapshotCheck @SnapshotCheck end |
#TotalCount ⇒ Object
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 |