Class: TencentCloud::Cbs::V20170312::ApplySnapshotGroupRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cbs::V20170312::ApplySnapshotGroupRequest
- Defined in:
- lib/v20170312/models.rb
Overview
ApplySnapshotGroup请求参数结构体
Instance Attribute Summary collapse
- #ApplyDisks ⇒ Object
- #AutoStartInstance ⇒ Object
- #AutoStopInstance ⇒ Object
- #SnapshotGroupId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(snapshotgroupid = nil, applydisks = nil, autostopinstance = nil, autostartinstance = nil) ⇒ ApplySnapshotGroupRequest
constructor
A new instance of ApplySnapshotGroupRequest.
Constructor Details
#initialize(snapshotgroupid = nil, applydisks = nil, autostopinstance = nil, autostartinstance = nil) ⇒ ApplySnapshotGroupRequest
Returns a new instance of ApplySnapshotGroupRequest.
125 126 127 128 129 130 |
# File 'lib/v20170312/models.rb', line 125 def initialize(snapshotgroupid=nil, applydisks=nil, autostopinstance=nil, autostartinstance=nil) @SnapshotGroupId = snapshotgroupid @ApplyDisks = applydisks @AutoStopInstance = autostopinstance @AutoStartInstance = autostartinstance end |
Instance Attribute Details
#ApplyDisks ⇒ Object
123 124 125 |
# File 'lib/v20170312/models.rb', line 123 def ApplyDisks @ApplyDisks end |
#AutoStartInstance ⇒ Object
123 124 125 |
# File 'lib/v20170312/models.rb', line 123 def AutoStartInstance @AutoStartInstance end |
#AutoStopInstance ⇒ Object
123 124 125 |
# File 'lib/v20170312/models.rb', line 123 def AutoStopInstance @AutoStopInstance end |
#SnapshotGroupId ⇒ Object
123 124 125 |
# File 'lib/v20170312/models.rb', line 123 def SnapshotGroupId @SnapshotGroupId end |
Instance Method Details
#deserialize(params) ⇒ Object
132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/v20170312/models.rb', line 132 def deserialize(params) @SnapshotGroupId = params['SnapshotGroupId'] unless params['ApplyDisks'].nil? @ApplyDisks = [] params['ApplyDisks'].each do |i| applydisk_tmp = ApplyDisk.new applydisk_tmp.deserialize(i) @ApplyDisks << applydisk_tmp end end @AutoStopInstance = params['AutoStopInstance'] @AutoStartInstance = params['AutoStartInstance'] end |