Class: TencentCloud::Cfs::V20190719::DescribeCfsSnapshotsResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfs::V20190719::DescribeCfsSnapshotsResponse
- Defined in:
- lib/v20190719/models.rb
Overview
DescribeCfsSnapshots返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, snapshots = nil, totalsize = nil, requestid = nil) ⇒ DescribeCfsSnapshotsResponse
constructor
A new instance of DescribeCfsSnapshotsResponse.
Constructor Details
#initialize(totalcount = nil, snapshots = nil, totalsize = nil, requestid = nil) ⇒ DescribeCfsSnapshotsResponse
Returns a new instance of DescribeCfsSnapshotsResponse.
2107 2108 2109 2110 2111 2112 |
# File 'lib/v20190719/models.rb', line 2107 def initialize(totalcount=nil, snapshots=nil, totalsize=nil, requestid=nil) @TotalCount = totalcount @Snapshots = snapshots @TotalSize = totalsize @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
2105 2106 2107 |
# File 'lib/v20190719/models.rb', line 2105 def RequestId @RequestId end |
#Snapshots ⇒ Object
2105 2106 2107 |
# File 'lib/v20190719/models.rb', line 2105 def Snapshots @Snapshots end |
#TotalCount ⇒ Object
2105 2106 2107 |
# File 'lib/v20190719/models.rb', line 2105 def TotalCount @TotalCount end |
#TotalSize ⇒ Object
2105 2106 2107 |
# File 'lib/v20190719/models.rb', line 2105 def TotalSize @TotalSize end |
Instance Method Details
#deserialize(params) ⇒ Object
2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 |
# File 'lib/v20190719/models.rb', line 2114 def deserialize(params) @TotalCount = params['TotalCount'] unless params['Snapshots'].nil? @Snapshots = [] params['Snapshots'].each do |i| snapshotinfo_tmp = SnapshotInfo.new snapshotinfo_tmp.deserialize(i) @Snapshots << snapshotinfo_tmp end end @TotalSize = params['TotalSize'] @RequestId = params['RequestId'] end |