Class: TencentCloud::Sqlserver::V20180328::Backup
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Sqlserver::V20180328::Backup
- Defined in:
- lib/v20180328/models.rb
Overview
备份文件详细信息
Instance Attribute Summary collapse
- #BackupFormat ⇒ Object
- #BackupName ⇒ Object
- #BackupWay ⇒ Object
- #CrossBackupAddr ⇒ Object
- #CrossBackupStatus ⇒ Object
- #DBs ⇒ Object
- #EndTime ⇒ Object
- #ExternalAddr ⇒ Object
- #FileName ⇒ Object
- #GroupId ⇒ Object
- #Id ⇒ Object
- #InternalAddr ⇒ Object
- #Region ⇒ Object
- #Size ⇒ Object
- #StartTime ⇒ Object
- #Status ⇒ Object
- #StorageStrategy ⇒ Object
- #Strategy ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(filename = nil, size = nil, starttime = nil, endtime = nil, internaladdr = nil, externaladdr = nil, id = nil, status = nil, dbs = nil, strategy = nil, storagestrategy = nil, backupway = nil, backupname = nil, groupid = nil, backupformat = nil, region = nil, crossbackupaddr = nil, crossbackupstatus = nil) ⇒ Backup
constructor
A new instance of Backup.
Constructor Details
#initialize(filename = nil, size = nil, starttime = nil, endtime = nil, internaladdr = nil, externaladdr = nil, id = nil, status = nil, dbs = nil, strategy = nil, storagestrategy = nil, backupway = nil, backupname = nil, groupid = nil, backupformat = nil, region = nil, crossbackupaddr = nil, crossbackupstatus = nil) ⇒ Backup
Returns a new instance of Backup.
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 |
# File 'lib/v20180328/models.rb', line 333 def initialize(filename=nil, size=nil, starttime=nil, endtime=nil, internaladdr=nil, externaladdr=nil, id=nil, status=nil, dbs=nil, strategy=nil, storagestrategy=nil, backupway=nil, backupname=nil, groupid=nil, backupformat=nil, region=nil, crossbackupaddr=nil, crossbackupstatus=nil) @FileName = filename @Size = size @StartTime = starttime @EndTime = endtime @InternalAddr = internaladdr @ExternalAddr = externaladdr @Id = id @Status = status @DBs = dbs @Strategy = strategy @StorageStrategy = storagestrategy @BackupWay = backupway @BackupName = backupname @GroupId = groupid @BackupFormat = backupformat @Region = region @CrossBackupAddr = crossbackupaddr @CrossBackupStatus = crossbackupstatus end |
Instance Attribute Details
#BackupFormat ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def BackupFormat @BackupFormat end |
#BackupName ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def BackupName @BackupName end |
#BackupWay ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def BackupWay @BackupWay end |
#CrossBackupAddr ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def CrossBackupAddr @CrossBackupAddr end |
#CrossBackupStatus ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def CrossBackupStatus @CrossBackupStatus end |
#DBs ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def DBs @DBs end |
#EndTime ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def EndTime @EndTime end |
#ExternalAddr ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def ExternalAddr @ExternalAddr end |
#FileName ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def FileName @FileName end |
#GroupId ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def GroupId @GroupId end |
#Id ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def Id @Id end |
#InternalAddr ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def InternalAddr @InternalAddr end |
#Region ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def Region @Region end |
#Size ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def Size @Size end |
#StartTime ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def StartTime @StartTime end |
#Status ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def Status @Status end |
#StorageStrategy ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def StorageStrategy @StorageStrategy end |
#Strategy ⇒ Object
331 332 333 |
# File 'lib/v20180328/models.rb', line 331 def Strategy @Strategy end |
Instance Method Details
#deserialize(params) ⇒ Object
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 |
# File 'lib/v20180328/models.rb', line 354 def deserialize(params) @FileName = params['FileName'] @Size = params['Size'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @InternalAddr = params['InternalAddr'] @ExternalAddr = params['ExternalAddr'] @Id = params['Id'] @Status = params['Status'] @DBs = params['DBs'] @Strategy = params['Strategy'] @StorageStrategy = params['StorageStrategy'] @BackupWay = params['BackupWay'] @BackupName = params['BackupName'] @GroupId = params['GroupId'] @BackupFormat = params['BackupFormat'] @Region = params['Region'] unless params['CrossBackupAddr'].nil? @CrossBackupAddr = [] params['CrossBackupAddr'].each do |i| crossbackupaddr_tmp = CrossBackupAddr.new crossbackupaddr_tmp.deserialize(i) @CrossBackupAddr << crossbackupaddr_tmp end end unless params['CrossBackupStatus'].nil? @CrossBackupStatus = [] params['CrossBackupStatus'].each do |i| crossregionstatus_tmp = CrossRegionStatus.new crossregionstatus_tmp.deserialize(i) @CrossBackupStatus << crossregionstatus_tmp end end end |