class TencentCloud::Cynosdb::V20190107::Package
资源包
def deserialize(params)
def deserialize(params) @AppId = params['AppId'] @PackageId = params['PackageId'] @PackageName = params['PackageName'] @PackageType = params['PackageType'] @PackageRegion = params['PackageRegion'] @Status = params['Status'] @PackageTotalSpec = params['PackageTotalSpec'] @PackageUsedSpec = params['PackageUsedSpec'] @HasQuota = params['HasQuota'] unless params['BindInstanceInfos'].nil? @BindInstanceInfos = [] params['BindInstanceInfos'].each do |i| bindinstanceinfo_tmp = BindInstanceInfo.new bindinstanceinfo_tmp.deserialize(i) @BindInstanceInfos << bindinstanceinfo_tmp end end @StartTime = params['StartTime'] @ExpireTime = params['ExpireTime'] unless params['HistoryBindResourceInfos'].nil? @HistoryBindResourceInfos = [] params['HistoryBindResourceInfos'].each do |i| bindinstanceinfo_tmp = BindInstanceInfo.new bindinstanceinfo_tmp.deserialize(i) @HistoryBindResourceInfos << bindinstanceinfo_tmp end end end
def initialize(appid=nil, packageid=nil, packagename=nil, packagetype=nil, packageregion=nil, status=nil, packagetotalspec=nil, packageusedspec=nil, hasquota=nil, bindinstanceinfos=nil, starttime=nil, expiretime=nil, historybindresourceinfos=nil)
def initialize(appid=nil, packageid=nil, packagename=nil, packagetype=nil, packageregion=nil, status=nil, packagetotalspec=nil, packageusedspec=nil, hasquota=nil, bindinstanceinfos=nil, starttime=nil, expiretime=nil, historybindresourceinfos=nil) @AppId = appid @PackageId = packageid @PackageName = packagename @PackageType = packagetype @PackageRegion = packageregion @Status = status @PackageTotalSpec = packagetotalspec @PackageUsedSpec = packageusedspec @HasQuota = hasquota @BindInstanceInfos = bindinstanceinfos @StartTime = starttime @ExpireTime = expiretime @HistoryBindResourceInfos = historybindresourceinfos end