# frozen_string_literal: true # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module TencentCloud module Mna module V20210119 # AddDevice请求参数结构体 class AddDeviceRequest < TencentCloud::Common::AbstractModel # @param DeviceName: 新建设备的名称 # @type DeviceName: String # @param Remark: 新建设备的备注 # @type Remark: String # @param DataKey: 新建设备的base64密钥字符串,非必选,如果不填写则由系统自动生成 # @type DataKey: String # @param Encrypted: 是否设置预置密钥 # @type Encrypted: Boolean attr_accessor :DeviceName, :Remark, :DataKey, :Encrypted def initialize(devicename=nil, remark=nil, datakey=nil, encrypted=nil) @DeviceName = devicename @Remark = remark @DataKey = datakey @Encrypted = encrypted end def deserialize(params) @DeviceName = params['DeviceName'] @Remark = params['Remark'] @DataKey = params['DataKey'] @Encrypted = params['Encrypted'] end end # AddDevice返回参数结构体 class AddDeviceResponse < TencentCloud::Common::AbstractModel # @param DataKey: 经过加密算法加密后的base64格式密钥 # @type DataKey: String # @param DeviceId: 设备ID # @type DeviceId: String # @param Signature: 签名字符串 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Signature: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DataKey, :DeviceId, :Signature, :RequestId def initialize(datakey=nil, deviceid=nil, signature=nil, requestid=nil) @DataKey = datakey @DeviceId = deviceid @Signature = signature @RequestId = requestid end def deserialize(params) @DataKey = params['DataKey'] @DeviceId = params['DeviceId'] @Signature = params['Signature'] @RequestId = params['RequestId'] end end # 接口能力扩展,用于填充电信的加速Token,并为未来参数提供兼容空间 class Capacity < TencentCloud::Common::AbstractModel # @param CTCCToken: 电信鉴权的Token。要加速的电信手机终端访问 http://qos.189.cn/qos-api/getToken?appid=TencentCloud 页面,获取返回结果中result的值 # @type CTCCToken: String # @param Province: 终端所处在的省份,建议不填写由服务端自动获取,若需填写请填写带有省、市、自治区、特别行政区等后缀的省份中文全称 # @type Province: String attr_accessor :CTCCToken, :Province def initialize(ctcctoken=nil, province=nil) @CTCCToken = ctcctoken @Province = province end def deserialize(params) @CTCCToken = params['CTCCToken'] @Province = params['Province'] end end # 加速策略关键数据 class Context < TencentCloud::Common::AbstractModel # @param NetworkData: 测速数据 # @type NetworkData: :class:`Tencentcloud::Mna.v20210119.models.NetworkData` # @param ExpectedLowThreshold: 用户期望最低门限 # @type ExpectedLowThreshold: :class:`Tencentcloud::Mna.v20210119.models.ExpectedThreshold` # @param ExpectedHighThreshold: 用户期望最高门限 # @type ExpectedHighThreshold: :class:`Tencentcloud::Mna.v20210119.models.ExpectedThreshold` attr_accessor :NetworkData, :ExpectedLowThreshold, :ExpectedHighThreshold def initialize(networkdata=nil, expectedlowthreshold=nil, expectedhighthreshold=nil) @NetworkData = networkdata @ExpectedLowThreshold = expectedlowthreshold @ExpectedHighThreshold = expectedhighthreshold end def deserialize(params) unless params['NetworkData'].nil? @NetworkData = NetworkData.new @NetworkData.deserialize(params['NetworkData']) end unless params['ExpectedLowThreshold'].nil? @ExpectedLowThreshold = ExpectedThreshold.new @ExpectedLowThreshold.deserialize(params['ExpectedLowThreshold']) end unless params['ExpectedHighThreshold'].nil? @ExpectedHighThreshold = ExpectedThreshold.new @ExpectedHighThreshold.deserialize(params['ExpectedHighThreshold']) end end end # CreateEncryptedKey请求参数结构体 class CreateEncryptedKeyRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # CreateEncryptedKey返回参数结构体 class CreateEncryptedKeyResponse < TencentCloud::Common::AbstractModel # @param EncryptedKey: 预置密钥 # @type EncryptedKey: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :EncryptedKey, :RequestId def initialize(encryptedkey=nil, requestid=nil) @EncryptedKey = encryptedkey @RequestId = requestid end def deserialize(params) @EncryptedKey = params['EncryptedKey'] @RequestId = params['RequestId'] end end # CreateQos请求参数结构体 class CreateQosRequest < TencentCloud::Common::AbstractModel # @param SrcAddressInfo: 加速业务源地址信息,SrcIpv6和(SrcIpv4+SrcPublicIpv4)二选一,目前Ipv6不可用,全部填写以Ipv4参数为准。 # @type SrcAddressInfo: :class:`Tencentcloud::Mna.v20210119.models.SrcAddressInfo` # @param DestAddressInfo: 加速业务目标地址信息 # @type DestAddressInfo: :class:`Tencentcloud::Mna.v20210119.models.DestAddressInfo` # @param QosMenu: 加速套餐 # T100K:时延性保障 + 带宽保障上下行保障 100kbps # T200K:时延性保障 + 带宽保障上下行保障 200kbps # T400K:时延性保障 + 带宽保障上下行保障 400kbps # BD1M:带宽型保障 + 下行带宽保障1Mbps # BD2M:带宽型保障 + 下行带宽保障2Mbps # BD4M:带宽型保障 + 下行带宽保障4Mbps # BU1M:带宽型保障 + 上行带宽保障1Mbps # BU2M:带宽型保障 + 上行带宽保障2Mbps # BU4M:带宽型保障 + 上行带宽保障4Mbps # @type QosMenu: String # @param DeviceInfo: 申请加速的设备信息,包括运营商,操作系统,设备唯一标识等。 # @type DeviceInfo: :class:`Tencentcloud::Mna.v20210119.models.DeviceInfo` # @param Duration: 期望加速时长(单位分钟),默认值30分钟 # @type Duration: Integer # @param Capacity: 接口能力扩展,如果是电信用户,必须填充CTCC Token字段 # @type Capacity: :class:`Tencentcloud::Mna.v20210119.models.Capacity` # @param TemplateId: 应用模板ID # @type TemplateId: String # @param Protocol: 针对特殊协议进行加速 # 1. IP (默认值) # 2. UDP # 3. TCP # @type Protocol: Integer # @param Context: 加速策略关键数据 # @type Context: :class:`Tencentcloud::Mna.v20210119.models.Context` # @param Extern: 签名 # @type Extern: String attr_accessor :SrcAddressInfo, :DestAddressInfo, :QosMenu, :DeviceInfo, :Duration, :Capacity, :TemplateId, :Protocol, :Context, :Extern def initialize(srcaddressinfo=nil, destaddressinfo=nil, qosmenu=nil, deviceinfo=nil, duration=nil, capacity=nil, templateid=nil, protocol=nil, context=nil, extern=nil) @SrcAddressInfo = srcaddressinfo @DestAddressInfo = destaddressinfo @QosMenu = qosmenu @DeviceInfo = deviceinfo @Duration = duration @Capacity = capacity @TemplateId = templateid @Protocol = protocol @Context = context @Extern = extern end def deserialize(params) unless params['SrcAddressInfo'].nil? @SrcAddressInfo = SrcAddressInfo.new @SrcAddressInfo.deserialize(params['SrcAddressInfo']) end unless params['DestAddressInfo'].nil? @DestAddressInfo = DestAddressInfo.new @DestAddressInfo.deserialize(params['DestAddressInfo']) end @QosMenu = params['QosMenu'] unless params['DeviceInfo'].nil? @DeviceInfo = DeviceInfo.new @DeviceInfo.deserialize(params['DeviceInfo']) end @Duration = params['Duration'] unless params['Capacity'].nil? @Capacity = Capacity.new @Capacity.deserialize(params['Capacity']) end @TemplateId = params['TemplateId'] @Protocol = params['Protocol'] unless params['Context'].nil? @Context = Context.new @Context.deserialize(params['Context']) end @Extern = params['Extern'] end end # CreateQos返回参数结构体 class CreateQosResponse < TencentCloud::Common::AbstractModel # @param SessionId: 单次加速唯一 Id # @type SessionId: String # @param Duration: 当前加速剩余时长(单位秒) # @type Duration: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SessionId, :Duration, :RequestId def initialize(sessionid=nil, duration=nil, requestid=nil) @SessionId = sessionid @Duration = duration @RequestId = requestid end def deserialize(params) @SessionId = params['SessionId'] @Duration = params['Duration'] @RequestId = params['RequestId'] end end # DeleteDevice请求参数结构体 class DeleteDeviceRequest < TencentCloud::Common::AbstractModel # @param DeviceId: 删除设备的唯一ID # @type DeviceId: String attr_accessor :DeviceId def initialize(deviceid=nil) @DeviceId = deviceid end def deserialize(params) @DeviceId = params['DeviceId'] end end # DeleteDevice返回参数结构体 class DeleteDeviceResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # DeleteQos请求参数结构体 class DeleteQosRequest < TencentCloud::Common::AbstractModel # @param SessionId: 单次加速唯一 Id # @type SessionId: String attr_accessor :SessionId def initialize(sessionid=nil) @SessionId = sessionid end def deserialize(params) @SessionId = params['SessionId'] end end # DeleteQos返回参数结构体 class DeleteQosResponse < TencentCloud::Common::AbstractModel # @param SessionId: 单次加速唯一 Id # @type SessionId: String # @param Duration: 本次加速会话持续时间(单位秒) # @type Duration: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SessionId, :Duration, :RequestId def initialize(sessionid=nil, duration=nil, requestid=nil) @SessionId = sessionid @Duration = duration @RequestId = requestid end def deserialize(params) @SessionId = params['SessionId'] @Duration = params['Duration'] @RequestId = params['RequestId'] end end # DescribeQos请求参数结构体 class DescribeQosRequest < TencentCloud::Common::AbstractModel # @param SessionId: 单次加速唯一 Id # @type SessionId: String attr_accessor :SessionId def initialize(sessionid=nil) @SessionId = sessionid end def deserialize(params) @SessionId = params['SessionId'] end end # DescribeQos返回参数结构体 class DescribeQosResponse < TencentCloud::Common::AbstractModel # @param Status: 0:无匹配的加速中会话 # 1:存在匹配的加速中会话 # @type Status: Integer # @param SrcPublicIpv4: 手机公网出口IP,仅匹配时返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SrcPublicIpv4: String # @param DestIpv4: 业务访问目的IP,仅匹配时返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DestIpv4: Array # @param Duration: 当前加速剩余时长(单位秒)有,仅匹配时返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Duration: Integer # @param QosMenu: 加速套餐类型,仅匹配时返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type QosMenu: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Status, :SrcPublicIpv4, :DestIpv4, :Duration, :QosMenu, :RequestId def initialize(status=nil, srcpublicipv4=nil, destipv4=nil, duration=nil, qosmenu=nil, requestid=nil) @Status = status @SrcPublicIpv4 = srcpublicipv4 @DestIpv4 = destipv4 @Duration = duration @QosMenu = qosmenu @RequestId = requestid end def deserialize(params) @Status = params['Status'] @SrcPublicIpv4 = params['SrcPublicIpv4'] @DestIpv4 = params['DestIpv4'] @Duration = params['Duration'] @QosMenu = params['QosMenu'] @RequestId = params['RequestId'] end end # 移动网络加速目标地址结构体 class DestAddressInfo < TencentCloud::Common::AbstractModel # @param DestIp: 加速业务目标 ip 地址数组 # @type DestIp: Array attr_accessor :DestIp def initialize(destip=nil) @DestIp = destip end def deserialize(params) @DestIp = params['DestIp'] end end # 设备的基本信息 class DeviceBaseInfo < TencentCloud::Common::AbstractModel # @param DeviceId: 设备唯一ID # @type DeviceId: String # @param DeviceName: 设备名称 # @type DeviceName: String # @param CreateTime: 设备创建的时间,单位:ms # @type CreateTime: String # @param LastTime: 设备最后在线时间,单位:ms # @type LastTime: String # @param Remark: 设备的备注 # @type Remark: String attr_accessor :DeviceId, :DeviceName, :CreateTime, :LastTime, :Remark def initialize(deviceid=nil, devicename=nil, createtime=nil, lasttime=nil, remark=nil) @DeviceId = deviceid @DeviceName = devicename @CreateTime = createtime @LastTime = lasttime @Remark = remark end def deserialize(params) @DeviceId = params['DeviceId'] @DeviceName = params['DeviceName'] @CreateTime = params['CreateTime'] @LastTime = params['LastTime'] @Remark = params['Remark'] end end # 设备详细信息 class DeviceDetails < TencentCloud::Common::AbstractModel # @param DeviceBaseInfo: 设备基本信息 # @type DeviceBaseInfo: :class:`Tencentcloud::Mna.v20210119.models.DeviceBaseInfo` # @param DeviceNetInfo: 设备网络信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DeviceNetInfo: Array attr_accessor :DeviceBaseInfo, :DeviceNetInfo def initialize(devicebaseinfo=nil, devicenetinfo=nil) @DeviceBaseInfo = devicebaseinfo @DeviceNetInfo = devicenetinfo end def deserialize(params) unless params['DeviceBaseInfo'].nil? @DeviceBaseInfo = DeviceBaseInfo.new @DeviceBaseInfo.deserialize(params['DeviceBaseInfo']) end unless params['DeviceNetInfo'].nil? @DeviceNetInfo = [] params['DeviceNetInfo'].each do |i| devicenetinfo_tmp = DeviceNetInfo.new devicenetinfo_tmp.deserialize(i) @DeviceNetInfo << devicenetinfo_tmp end end end end # 设备信息结构体 class DeviceInfo < TencentCloud::Common::AbstractModel # @param Vendor: 运营商 # 1:移动 # 2:电信 # 3:联通 # 4:广电 # 99:其他 # @type Vendor: Integer # @param OS: 设备操作系统: # 1:Android # 2: IOS # 99:其他 # @type OS: Integer # @param DeviceId: 设备唯一标识 # IOS 填写 IDFV # Android 填写 IMEI # @type DeviceId: String # @param PhoneNum: 用户手机号码 # @type PhoneNum: String # @param Wireless: 无线信息 # 1:4G # 2:5G # 3:WIFI # 99:其他 # @type Wireless: Integer attr_accessor :Vendor, :OS, :DeviceId, :PhoneNum, :Wireless def initialize(vendor=nil, os=nil, deviceid=nil, phonenum=nil, wireless=nil) @Vendor = vendor @OS = os @DeviceId = deviceid @PhoneNum = phonenum @Wireless = wireless end def deserialize(params) @Vendor = params['Vendor'] @OS = params['OS'] @DeviceId = params['DeviceId'] @PhoneNum = params['PhoneNum'] @Wireless = params['Wireless'] end end # 设备网络状态信息 class DeviceNetInfo < TencentCloud::Common::AbstractModel # @param Type: 网络类型: # 0:数据 # 1:Wi-Fi # 2:有线 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Type: Integer # @param DataEnable: 启用/禁用 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DataEnable: Boolean # @param UploadLimit: 上行限速 # 注意:此字段可能返回 null,表示取不到有效值。 # @type UploadLimit: String # @param DownloadLimit: 下行限速 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DownloadLimit: String # @param DataRx: 接收实时速率 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DataRx: Integer # @param DataTx: 发送实时速率 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DataTx: Integer # @param Vendor: 运营商类型: # 1: 中国移动; # 2: 中国电信; # 3: 中国联通 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Vendor: Integer # @param State: 连接状态: # 0:无连接 # 1:连接中 # 2:已连接 # 注意:此字段可能返回 null,表示取不到有效值。 # @type State: Integer # @param PublicIp: 公网IP # 注意:此字段可能返回 null,表示取不到有效值。 # @type PublicIp: String # @param SignalStrength: 信号强度/单位:dbm # 注意:此字段可能返回 null,表示取不到有效值。 # @type SignalStrength: Integer # @param Rat: 数据网络类型: # -1 :无效值 # 2:2G # 3:3G # 4:4G # 5:5G # 注意:此字段可能返回 null,表示取不到有效值。 # @type Rat: Integer # @param NetInfoName: 网卡名 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NetInfoName: String attr_accessor :Type, :DataEnable, :UploadLimit, :DownloadLimit, :DataRx, :DataTx, :Vendor, :State, :PublicIp, :SignalStrength, :Rat, :NetInfoName def initialize(type=nil, dataenable=nil, uploadlimit=nil, downloadlimit=nil, datarx=nil, datatx=nil, vendor=nil, state=nil, publicip=nil, signalstrength=nil, rat=nil, netinfoname=nil) @Type = type @DataEnable = dataenable @UploadLimit = uploadlimit @DownloadLimit = downloadlimit @DataRx = datarx @DataTx = datatx @Vendor = vendor @State = state @PublicIp = publicip @SignalStrength = signalstrength @Rat = rat @NetInfoName = netinfoname end def deserialize(params) @Type = params['Type'] @DataEnable = params['DataEnable'] @UploadLimit = params['UploadLimit'] @DownloadLimit = params['DownloadLimit'] @DataRx = params['DataRx'] @DataTx = params['DataTx'] @Vendor = params['Vendor'] @State = params['State'] @PublicIp = params['PublicIp'] @SignalStrength = params['SignalStrength'] @Rat = params['Rat'] @NetInfoName = params['NetInfoName'] end end # 用户期望门限 class ExpectedThreshold < TencentCloud::Common::AbstractModel # @param RTT: 期望发起加速的时延阈值 # @type RTT: Float # @param Loss: 期望发起加速的丢包率阈值 # @type Loss: Float # @param Jitter: 期望发起加速的抖动阈值 # @type Jitter: Float attr_accessor :RTT, :Loss, :Jitter def initialize(rtt=nil, loss=nil, jitter=nil) @RTT = rtt @Loss = loss @Jitter = jitter end def deserialize(params) @RTT = params['RTT'] @Loss = params['Loss'] @Jitter = params['Jitter'] end end # GetDevice请求参数结构体 class GetDeviceRequest < TencentCloud::Common::AbstractModel # @param DeviceId: 搜索指定设备的id # @type DeviceId: String attr_accessor :DeviceId def initialize(deviceid=nil) @DeviceId = deviceid end def deserialize(params) @DeviceId = params['DeviceId'] end end # GetDevice返回参数结构体 class GetDeviceResponse < TencentCloud::Common::AbstractModel # @param DeviceDetails: 设备详细信息 # @type DeviceDetails: :class:`Tencentcloud::Mna.v20210119.models.DeviceDetails` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DeviceDetails, :RequestId def initialize(devicedetails=nil, requestid=nil) @DeviceDetails = devicedetails @RequestId = requestid end def deserialize(params) unless params['DeviceDetails'].nil? @DeviceDetails = DeviceDetails.new @DeviceDetails.deserialize(params['DeviceDetails']) end @RequestId = params['RequestId'] end end # GetDevices请求参数结构体 class GetDevicesRequest < TencentCloud::Common::AbstractModel # @param PageSize: 每页显示记录数,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备 # @type PageSize: Integer # @param PageNumber: 当前查看页码,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备 # @type PageNumber: Integer # @param Keyword: 搜索设备的关键字(ID或者设备名),为空时匹配所有设备 # @type Keyword: String attr_accessor :PageSize, :PageNumber, :Keyword def initialize(pagesize=nil, pagenumber=nil, keyword=nil) @PageSize = pagesize @PageNumber = pagenumber @Keyword = keyword end def deserialize(params) @PageSize = params['PageSize'] @PageNumber = params['PageNumber'] @Keyword = params['Keyword'] end end # GetDevices返回参数结构体 class GetDevicesResponse < TencentCloud::Common::AbstractModel # @param DeviceInfos: 设备信息列表 # @type DeviceInfos: Array # @param Length: 设备总记录条数 # @type Length: Integer # @param TotalPage: 总页数 # @type TotalPage: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DeviceInfos, :Length, :TotalPage, :RequestId def initialize(deviceinfos=nil, length=nil, totalpage=nil, requestid=nil) @DeviceInfos = deviceinfos @Length = length @TotalPage = totalpage @RequestId = requestid end def deserialize(params) unless params['DeviceInfos'].nil? @DeviceInfos = [] params['DeviceInfos'].each do |i| devicebaseinfo_tmp = DeviceBaseInfo.new devicebaseinfo_tmp.deserialize(i) @DeviceInfos << devicebaseinfo_tmp end end @Length = params['Length'] @TotalPage = params['TotalPage'] @RequestId = params['RequestId'] end end # GetFlowStatistic请求参数结构体 class GetFlowStatisticRequest < TencentCloud::Common::AbstractModel # @param DeviceId: 设备ID,ID="-1"时默认查找所有设备 # @type DeviceId: String # @param BeginTime: 开始查找时间 # @type BeginTime: Integer # @param EndTime: 截止时间 # @type EndTime: Integer # @param Type: 流量种类(1:上行流量,2:下行流量) # @type Type: Integer # @param TimeGranularity: 时间粒度(1:按小时统计,2:按天统计) # @type TimeGranularity: Integer attr_accessor :DeviceId, :BeginTime, :EndTime, :Type, :TimeGranularity def initialize(deviceid=nil, begintime=nil, endtime=nil, type=nil, timegranularity=nil) @DeviceId = deviceid @BeginTime = begintime @EndTime = endtime @Type = type @TimeGranularity = timegranularity end def deserialize(params) @DeviceId = params['DeviceId'] @BeginTime = params['BeginTime'] @EndTime = params['EndTime'] @Type = params['Type'] @TimeGranularity = params['TimeGranularity'] end end # GetFlowStatistic返回参数结构体 class GetFlowStatisticResponse < TencentCloud::Common::AbstractModel # @param NetDetails: 流量详细信息 # @type NetDetails: Array # @param MaxValue: 查找时间段流量使用最大值(单位:bit) # @type MaxValue: Float # @param AvgValue: 查找时间段流量使用平均值(单位:bit) # @type AvgValue: Float # @param TotalValue: 查找时间段流量使用总量(单位:bit) # @type TotalValue: Float # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :NetDetails, :MaxValue, :AvgValue, :TotalValue, :RequestId def initialize(netdetails=nil, maxvalue=nil, avgvalue=nil, totalvalue=nil, requestid=nil) @NetDetails = netdetails @MaxValue = maxvalue @AvgValue = avgvalue @TotalValue = totalvalue @RequestId = requestid end def deserialize(params) unless params['NetDetails'].nil? @NetDetails = [] params['NetDetails'].each do |i| netdetails_tmp = NetDetails.new netdetails_tmp.deserialize(i) @NetDetails << netdetails_tmp end end @MaxValue = params['MaxValue'] @AvgValue = params['AvgValue'] @TotalValue = params['TotalValue'] @RequestId = params['RequestId'] end end # GetPublicKey请求参数结构体 class GetPublicKeyRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # GetPublicKey返回参数结构体 class GetPublicKeyResponse < TencentCloud::Common::AbstractModel # @param PublicKey: 非对称公钥 # @type PublicKey: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :PublicKey, :RequestId def initialize(publickey=nil, requestid=nil) @PublicKey = publickey @RequestId = requestid end def deserialize(params) @PublicKey = params['PublicKey'] @RequestId = params['RequestId'] end end # GetStatisticData请求参数结构体 class GetStatisticDataRequest < TencentCloud::Common::AbstractModel # @param DeviceId: 设备ID,设备ID="-1"获取所有设备流量统计 # @type DeviceId: String # @param BeginTime: 统计开始时间,单位:s # @type BeginTime: Integer # @param EndTime: 统计结束时间,单位:s # @type EndTime: Integer # @param TimeGranularity: 聚合粒度: # 1:按小时统计 # 2:按天统计 # @type TimeGranularity: Integer attr_accessor :DeviceId, :BeginTime, :EndTime, :TimeGranularity def initialize(deviceid=nil, begintime=nil, endtime=nil, timegranularity=nil) @DeviceId = deviceid @BeginTime = begintime @EndTime = endtime @TimeGranularity = timegranularity end def deserialize(params) @DeviceId = params['DeviceId'] @BeginTime = params['BeginTime'] @EndTime = params['EndTime'] @TimeGranularity = params['TimeGranularity'] end end # GetStatisticData返回参数结构体 class GetStatisticDataResponse < TencentCloud::Common::AbstractModel # @param FilePath: 文件地址url # @type FilePath: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FilePath, :RequestId def initialize(filepath=nil, requestid=nil) @FilePath = filepath @RequestId = requestid end def deserialize(params) @FilePath = params['FilePath'] @RequestId = params['RequestId'] end end # 网络详细信息 class NetDetails < TencentCloud::Common::AbstractModel # @param Time: 时间点,单位:s # @type Time: String # @param Current: 流量值(bit) # @type Current: Float attr_accessor :Time, :Current def initialize(time=nil, current=nil) @Time = time @Current = current end def deserialize(params) @Time = params['Time'] @Current = params['Current'] end end # 测速数据 class NetworkData < TencentCloud::Common::AbstractModel # @param RTT: 时延数组,最大长度30 # @type RTT: Array # @param Loss: 丢包率 # @type Loss: Float # @param Jitter: 抖动 # @type Jitter: Float # @param Timestamp: 10位秒级时间戳 # @type Timestamp: Integer attr_accessor :RTT, :Loss, :Jitter, :Timestamp def initialize(rtt=nil, loss=nil, jitter=nil, timestamp=nil) @RTT = rtt @Loss = loss @Jitter = jitter @Timestamp = timestamp end def deserialize(params) @RTT = params['RTT'] @Loss = params['Loss'] @Jitter = params['Jitter'] @Timestamp = params['Timestamp'] end end # 移动网络加速源地址结构体 class SrcAddressInfo < TencentCloud::Common::AbstractModel # @param SrcIpv4: 用户私网 ipv4 地址 # @type SrcIpv4: String # @param SrcPublicIpv4: 用户公网 ipv4 地址 # @type SrcPublicIpv4: String # @param SrcIpv6: 用户 ipv6 地址 # @type SrcIpv6: String attr_accessor :SrcIpv4, :SrcPublicIpv4, :SrcIpv6 def initialize(srcipv4=nil, srcpublicipv4=nil, srcipv6=nil) @SrcIpv4 = srcipv4 @SrcPublicIpv4 = srcpublicipv4 @SrcIpv6 = srcipv6 end def deserialize(params) @SrcIpv4 = params['SrcIpv4'] @SrcPublicIpv4 = params['SrcPublicIpv4'] @SrcIpv6 = params['SrcIpv6'] end end # UpdateDevice请求参数结构体 class UpdateDeviceRequest < TencentCloud::Common::AbstractModel # @param DeviceId: 设备id # @type DeviceId: String # @param DeviceName: 设备名称 # @type DeviceName: String # @param Remark: 设备备注 # @type Remark: String # @param UpdateNetInfo: 更新设备网络信息 # @type UpdateNetInfo: Array attr_accessor :DeviceId, :DeviceName, :Remark, :UpdateNetInfo def initialize(deviceid=nil, devicename=nil, remark=nil, updatenetinfo=nil) @DeviceId = deviceid @DeviceName = devicename @Remark = remark @UpdateNetInfo = updatenetinfo end def deserialize(params) @DeviceId = params['DeviceId'] @DeviceName = params['DeviceName'] @Remark = params['Remark'] unless params['UpdateNetInfo'].nil? @UpdateNetInfo = [] params['UpdateNetInfo'].each do |i| updatenetinfo_tmp = UpdateNetInfo.new updatenetinfo_tmp.deserialize(i) @UpdateNetInfo << updatenetinfo_tmp end end end end # UpdateDevice返回参数结构体 class UpdateDeviceResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 更新设备网络状态信息 class UpdateNetInfo < TencentCloud::Common::AbstractModel # @param Type: 网络类型: # 0:数据 # 1:Wi-Fi # @type Type: Integer # @param DataEnable: 启用/禁用 # @type DataEnable: Boolean # @param UploadLimit: 上行限速:bit # @type UploadLimit: Integer # @param DownloadLimit: 下行限速:bit # @type DownloadLimit: Integer # @param NetInfoName: 网卡名 # @type NetInfoName: String attr_accessor :Type, :DataEnable, :UploadLimit, :DownloadLimit, :NetInfoName def initialize(type=nil, dataenable=nil, uploadlimit=nil, downloadlimit=nil, netinfoname=nil) @Type = type @DataEnable = dataenable @UploadLimit = uploadlimit @DownloadLimit = downloadlimit @NetInfoName = netinfoname end def deserialize(params) @Type = params['Type'] @DataEnable = params['DataEnable'] @UploadLimit = params['UploadLimit'] @DownloadLimit = params['DownloadLimit'] @NetInfoName = params['NetInfoName'] end end end end end