Class: TencentCloud::Lighthouse::V20200324::Snapshot
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lighthouse::V20200324::Snapshot
- Defined in:
- lib/v20200324/models.rb
Overview
描述了快照相关信息。
Instance Attribute Summary collapse
-
#CreatedTime ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#DiskId ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#DiskSize ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#DiskUsage ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#LatestOperation ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#LatestOperationRequestId ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#LatestOperationState ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#Percent ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#SnapshotId ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#SnapshotName ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#SnapshotState ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
. -
#Tags ⇒ Object
- NORMAL:正常
- CREATING:创建中
- ROLLBACKING:回滚中。
取值如 CreateInstanceSnapshot,RollbackInstanceSnapshot。 取值范围:- SUCCESS:表示操作成功
- OPERATING:表示操作执行中
- FAILED:表示操作失败
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(snapshotid = nil, diskusage = nil, diskid = nil, disksize = nil, snapshotname = nil, snapshotstate = nil, percent = nil, latestoperation = nil, latestoperationstate = nil, latestoperationrequestid = nil, createdtime = nil, tags = nil) ⇒ Snapshot
constructor
A new instance of Snapshot.
Constructor Details
#initialize(snapshotid = nil, diskusage = nil, diskid = nil, disksize = nil, snapshotname = nil, snapshotstate = nil, percent = nil, latestoperation = nil, latestoperationstate = nil, latestoperationrequestid = nil, createdtime = nil, tags = nil) ⇒ Snapshot
Returns a new instance of Snapshot.
8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 |
# File 'lib/v20200324/models.rb', line 8199 def initialize(snapshotid=nil, diskusage=nil, diskid=nil, disksize=nil, snapshotname=nil, snapshotstate=nil, percent=nil, latestoperation=nil, latestoperationstate=nil, latestoperationrequestid=nil, createdtime=nil, =nil) @SnapshotId = snapshotid @DiskUsage = diskusage @DiskId = diskid @DiskSize = disksize @SnapshotName = snapshotname @SnapshotState = snapshotstate @Percent = percent @LatestOperation = latestoperation @LatestOperationState = latestoperationstate @LatestOperationRequestId = latestoperationrequestid @CreatedTime = createdtime @Tags = end |
Instance Attribute Details
#CreatedTime ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def CreatedTime @CreatedTime end |
#DiskId ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def DiskId @DiskId end |
#DiskSize ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def DiskSize @DiskSize end |
#DiskUsage ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def DiskUsage @DiskUsage end |
#LatestOperation ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def LatestOperation @LatestOperation end |
#LatestOperationRequestId ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def LatestOperationRequestId @LatestOperationRequestId end |
#LatestOperationState ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def LatestOperationState @LatestOperationState end |
#Percent ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def Percent @Percent end |
#SnapshotId ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def SnapshotId @SnapshotId end |
#SnapshotName ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def SnapshotName @SnapshotName end |
#SnapshotState ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def SnapshotState @SnapshotState end |
#Tags ⇒ Object
8197 8198 8199 |
# File 'lib/v20200324/models.rb', line 8197 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 |
# File 'lib/v20200324/models.rb', line 8214 def deserialize(params) @SnapshotId = params['SnapshotId'] @DiskUsage = params['DiskUsage'] @DiskId = params['DiskId'] @DiskSize = params['DiskSize'] @SnapshotName = params['SnapshotName'] @SnapshotState = params['SnapshotState'] @Percent = params['Percent'] @LatestOperation = params['LatestOperation'] @LatestOperationState = params['LatestOperationState'] @LatestOperationRequestId = params['LatestOperationRequestId'] @CreatedTime = params['CreatedTime'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |