Class: TencentCloud::Cbs::V20170312::DescribeDiskAssociatedAutoSnapshotPolicyResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cbs::V20170312::DescribeDiskAssociatedAutoSnapshotPolicyResponse
- Defined in:
- lib/v20170312/models.rb
Overview
DescribeDiskAssociatedAutoSnapshotPolicy返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, autosnapshotpolicyset = nil, requestid = nil) ⇒ DescribeDiskAssociatedAutoSnapshotPolicyResponse
constructor
A new instance of DescribeDiskAssociatedAutoSnapshotPolicyResponse.
Constructor Details
#initialize(totalcount = nil, autosnapshotpolicyset = nil, requestid = nil) ⇒ DescribeDiskAssociatedAutoSnapshotPolicyResponse
Returns a new instance of DescribeDiskAssociatedAutoSnapshotPolicyResponse.
1208 1209 1210 1211 1212 |
# File 'lib/v20170312/models.rb', line 1208 def initialize(totalcount=nil, autosnapshotpolicyset=nil, requestid=nil) @TotalCount = totalcount @AutoSnapshotPolicySet = autosnapshotpolicyset @RequestId = requestid end |
Instance Attribute Details
#AutoSnapshotPolicySet ⇒ Object
1206 1207 1208 |
# File 'lib/v20170312/models.rb', line 1206 def AutoSnapshotPolicySet @AutoSnapshotPolicySet end |
#RequestId ⇒ Object
1206 1207 1208 |
# File 'lib/v20170312/models.rb', line 1206 def RequestId @RequestId end |
#TotalCount ⇒ Object
1206 1207 1208 |
# File 'lib/v20170312/models.rb', line 1206 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 |
# File 'lib/v20170312/models.rb', line 1214 def deserialize(params) @TotalCount = params['TotalCount'] unless params['AutoSnapshotPolicySet'].nil? @AutoSnapshotPolicySet = [] params['AutoSnapshotPolicySet'].each do |i| autosnapshotpolicy_tmp = AutoSnapshotPolicy.new autosnapshotpolicy_tmp.deserialize(i) @AutoSnapshotPolicySet << autosnapshotpolicy_tmp end end @RequestId = params['RequestId'] end |