Class: TencentCloud::Cdb::V20170320::DescribeBackupsResponse

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20170320/models.rb

Overview

DescribeBackups返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, items = nil, requestid = nil) ⇒ DescribeBackupsResponse

Returns a new instance of DescribeBackupsResponse.



5442
5443
5444
5445
5446
# File 'lib/v20170320/models.rb', line 5442

def initialize(totalcount=nil, items=nil, requestid=nil)
  @TotalCount = totalcount
  @Items = items
  @RequestId = requestid
end

Instance Attribute Details

#ItemsObject

Parameters:

  • TotalCount:

    符合查询条件的实例总数。

  • Items:

    符合查询条件的备份信息详情。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5440
5441
5442
# File 'lib/v20170320/models.rb', line 5440

def Items
  @Items
end

#RequestIdObject

Parameters:

  • TotalCount:

    符合查询条件的实例总数。

  • Items:

    符合查询条件的备份信息详情。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5440
5441
5442
# File 'lib/v20170320/models.rb', line 5440

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    符合查询条件的实例总数。

  • Items:

    符合查询条件的备份信息详情。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5440
5441
5442
# File 'lib/v20170320/models.rb', line 5440

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
# File 'lib/v20170320/models.rb', line 5448

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      backupinfo_tmp = BackupInfo.new
      backupinfo_tmp.deserialize(i)
      @Items << backupinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end