Class: TencentCloud::Sqlserver::V20180328::BackupFile
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Sqlserver::V20180328::BackupFile
- Defined in:
- lib/v20180328/models.rb
Overview
在非打包上传备份模式下,每个库对应一个备份文件
Instance Attribute Summary collapse
- #CrossBackupAddr ⇒ Object
- #DBs ⇒ Object
- #DownloadLink ⇒ Object
- #FileName ⇒ Object
- #Id ⇒ Object
- #Region ⇒ Object
- #Size ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, filename = nil, size = nil, dbs = nil, downloadlink = nil, region = nil, crossbackupaddr = nil) ⇒ BackupFile
constructor
A new instance of BackupFile.
Constructor Details
#initialize(id = nil, filename = nil, size = nil, dbs = nil, downloadlink = nil, region = nil, crossbackupaddr = nil) ⇒ BackupFile
Returns a new instance of BackupFile.
409 410 411 412 413 414 415 416 417 |
# File 'lib/v20180328/models.rb', line 409 def initialize(id=nil, filename=nil, size=nil, dbs=nil, downloadlink=nil, region=nil, crossbackupaddr=nil) @Id = id @FileName = filename @Size = size @DBs = dbs @DownloadLink = downloadlink @Region = region @CrossBackupAddr = crossbackupaddr end |
Instance Attribute Details
#CrossBackupAddr ⇒ Object
407 408 409 |
# File 'lib/v20180328/models.rb', line 407 def CrossBackupAddr @CrossBackupAddr end |
#DBs ⇒ Object
407 408 409 |
# File 'lib/v20180328/models.rb', line 407 def DBs @DBs end |
#DownloadLink ⇒ Object
407 408 409 |
# File 'lib/v20180328/models.rb', line 407 def DownloadLink @DownloadLink end |
#FileName ⇒ Object
407 408 409 |
# File 'lib/v20180328/models.rb', line 407 def FileName @FileName end |
#Id ⇒ Object
407 408 409 |
# File 'lib/v20180328/models.rb', line 407 def Id @Id end |
#Region ⇒ Object
407 408 409 |
# File 'lib/v20180328/models.rb', line 407 def Region @Region end |
#Size ⇒ Object
407 408 409 |
# File 'lib/v20180328/models.rb', line 407 def Size @Size end |
Instance Method Details
#deserialize(params) ⇒ Object
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'lib/v20180328/models.rb', line 419 def deserialize(params) @Id = params['Id'] @FileName = params['FileName'] @Size = params['Size'] @DBs = params['DBs'] @DownloadLink = params['DownloadLink'] @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 end |