lib/v20200210/models.rb in tencentcloud-sdk-taf-1.0.229 vs lib/v20200210/models.rb in tencentcloud-sdk-taf-1.0.230
- old
+ new
@@ -65,10 +65,30 @@
end
@RequestId = params['RequestId']
end
end
+ # 业务入参
+ class Device < TencentCloud::Common::AbstractModel
+ # @param DeviceId: 业务入参id
+ # @type DeviceId: String
+ # @param DeviceType: 业务入参类型
+ # @type DeviceType: Integer
+
+ attr_accessor :DeviceId, :DeviceType
+
+ def initialize(deviceid=nil, devicetype=nil)
+ @DeviceId = deviceid
+ @DeviceType = devicetype
+ end
+
+ def deserialize(params)
+ @DeviceId = params['DeviceId']
+ @DeviceType = params['DeviceType']
+ end
+ end
+
# EnhanceTaDegree请求参数结构体
class EnhanceTaDegreeRequest < TencentCloud::Common::AbstractModel
# @param BspData: 业务数据
# @type BspData: :class:`Tencentcloud::Taf.v20200210.models.InputTaBspData`
# @param BusinessEncryptData: 业务加密数据
@@ -276,14 +296,16 @@
# @type AppVer: String
# @param ReqType: 竞价模式1:rtb 2:pd
# @type ReqType: Integer
# @param IsAuthorized: 用户是否授权,1为授权,0为未授权
# @type IsAuthorized: Integer
+ # @param DeviceList: 设备信息
+ # @type DeviceList: Array
- attr_accessor :Uid, :AccountType, :ModelIdList, :Ip, :Os, :Osv, :Lat, :Lon, :DeviceModel, :BidFloor, :Age, :Gender, :Location, :DeliveryMode, :AdvertisingType, :Mac, :Phone, :Ua, :App, :Package, :Maker, :DeviceType, :AccessMode, :Sp, :DeviceW, :DeviceH, :FullScreen, :ImpBannerW, :ImpBannerH, :Url, :Context, :Channel, :ReqId, :ReqMd5, :AdType, :AppName, :AppVer, :ReqType, :IsAuthorized
+ attr_accessor :Uid, :AccountType, :ModelIdList, :Ip, :Os, :Osv, :Lat, :Lon, :DeviceModel, :BidFloor, :Age, :Gender, :Location, :DeliveryMode, :AdvertisingType, :Mac, :Phone, :Ua, :App, :Package, :Maker, :DeviceType, :AccessMode, :Sp, :DeviceW, :DeviceH, :FullScreen, :ImpBannerW, :ImpBannerH, :Url, :Context, :Channel, :ReqId, :ReqMd5, :AdType, :AppName, :AppVer, :ReqType, :IsAuthorized, :DeviceList
- def initialize(uid=nil, accounttype=nil, modelidlist=nil, ip=nil, os=nil, osv=nil, lat=nil, lon=nil, devicemodel=nil, bidfloor=nil, age=nil, gender=nil, location=nil, deliverymode=nil, advertisingtype=nil, mac=nil, phone=nil, ua=nil, app=nil, package=nil, maker=nil, devicetype=nil, accessmode=nil, sp=nil, devicew=nil, deviceh=nil, fullscreen=nil, impbannerw=nil, impbannerh=nil, url=nil, context=nil, channel=nil, reqid=nil, reqmd5=nil, adtype=nil, appname=nil, appver=nil, reqtype=nil, isauthorized=nil)
+ def initialize(uid=nil, accounttype=nil, modelidlist=nil, ip=nil, os=nil, osv=nil, lat=nil, lon=nil, devicemodel=nil, bidfloor=nil, age=nil, gender=nil, location=nil, deliverymode=nil, advertisingtype=nil, mac=nil, phone=nil, ua=nil, app=nil, package=nil, maker=nil, devicetype=nil, accessmode=nil, sp=nil, devicew=nil, deviceh=nil, fullscreen=nil, impbannerw=nil, impbannerh=nil, url=nil, context=nil, channel=nil, reqid=nil, reqmd5=nil, adtype=nil, appname=nil, appver=nil, reqtype=nil, isauthorized=nil, devicelist=nil)
@Uid = uid
@AccountType = accounttype
@ModelIdList = modelidlist
@Ip = ip
@Os = os
@@ -319,10 +341,11 @@
@AdType = adtype
@AppName = appname
@AppVer = appver
@ReqType = reqtype
@IsAuthorized = isauthorized
+ @DeviceList = devicelist
end
def deserialize(params)
@Uid = params['Uid']
@AccountType = params['AccountType']
@@ -361,9 +384,17 @@
@AdType = params['AdType']
@AppName = params['AppName']
@AppVer = params['AppVer']
@ReqType = params['ReqType']
@IsAuthorized = params['IsAuthorized']
+ unless params['DeviceList'].nil?
+ @DeviceList = []
+ params['DeviceList'].each do |i|
+ device_tmp = Device.new
+ device_tmp.deserialize(i)
+ @DeviceList << device_tmp
+ end
+ end
end
end
# 业务入参
class InputSendTrafficSecuritySmsMsg < TencentCloud::Common::AbstractModel