# 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 # 激活设备 class ActivateHardware < TencentCloud::Common::AbstractModel # @param Vendor: 厂商名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Vendor: String # @param SN: 设备SN序列号 # @type SN: String # @param DeviceName: 设备名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DeviceName: String # @param Description: 备注 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Description: String # @param DataKey: 设备密钥 # @type DataKey: String attr_accessor :Vendor, :SN, :DeviceName, :Description, :DataKey def initialize(vendor=nil, sn=nil, devicename=nil, description=nil, datakey=nil) @Vendor = vendor @SN = sn @DeviceName = devicename @Description = description @DataKey = datakey end def deserialize(params) @Vendor = params['Vendor'] @SN = params['SN'] @DeviceName = params['DeviceName'] @Description = params['Description'] @DataKey = params['DataKey'] end end # ActivateHardware请求参数结构体 class ActivateHardwareRequest < TencentCloud::Common::AbstractModel # @param Hardware: 待激活的设备列表 # @type Hardware: Array attr_accessor :Hardware def initialize(hardware=nil) @Hardware = hardware end def deserialize(params) unless params['Hardware'].nil? @Hardware = [] params['Hardware'].each do |i| activatehardware_tmp = ActivateHardware.new activatehardware_tmp.deserialize(i) @Hardware << activatehardware_tmp end end end end # ActivateHardware返回参数结构体 class ActivateHardwareResponse < TencentCloud::Common::AbstractModel # @param HardwareInfo: 完成激活的设备信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type HardwareInfo: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :HardwareInfo, :RequestId def initialize(hardwareinfo=nil, requestid=nil) @HardwareInfo = hardwareinfo @RequestId = requestid end def deserialize(params) unless params['HardwareInfo'].nil? @HardwareInfo = [] params['HardwareInfo'].each do |i| activatehardware_tmp = ActivateHardware.new activatehardware_tmp.deserialize(i) @HardwareInfo << activatehardware_tmp end end @RequestId = params['RequestId'] end end # 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 # AddHardware请求参数结构体 class AddHardwareRequest < TencentCloud::Common::AbstractModel # @param Hardware: 硬件列表 # @type Hardware: Array attr_accessor :Hardware def initialize(hardware=nil) @Hardware = hardware end def deserialize(params) unless params['Hardware'].nil? @Hardware = [] params['Hardware'].each do |i| hardware_tmp = Hardware.new hardware_tmp.deserialize(i) @Hardware << hardware_tmp end end end end # AddHardware返回参数结构体 class AddHardwareResponse < TencentCloud::Common::AbstractModel # @param Hardware: 硬件设备 # @type Hardware: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Hardware, :RequestId def initialize(hardware=nil, requestid=nil) @Hardware = hardware @RequestId = requestid end def deserialize(params) unless params['Hardware'].nil? @Hardware = [] params['Hardware'].each do |i| hardware_tmp = Hardware.new hardware_tmp.deserialize(i) @Hardware << hardware_tmp end end @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 # @param GatewaySite: 聚合服务器地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type GatewaySite: String # @param BusinessDownRate: 业务下行速率 # 注意:此字段可能返回 null,表示取不到有效值。 # @type BusinessDownRate: Float # @param BusinessUpRate: 业务上行速率 # 注意:此字段可能返回 null,表示取不到有效值。 # @type BusinessUpRate: Float attr_accessor :DeviceBaseInfo, :DeviceNetInfo, :GatewaySite, :BusinessDownRate, :BusinessUpRate def initialize(devicebaseinfo=nil, devicenetinfo=nil, gatewaysite=nil, businessdownrate=nil, businessuprate=nil) @DeviceBaseInfo = devicebaseinfo @DeviceNetInfo = devicenetinfo @GatewaySite = gatewaysite @BusinessDownRate = businessdownrate @BusinessUpRate = businessuprate 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 @GatewaySite = params['GatewaySite'] @BusinessDownRate = params['BusinessDownRate'] @BusinessUpRate = params['BusinessUpRate'] 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 # @param DownRate: 下行实时速率(浮点数类型代替上一版本DataRx的整型) # 注意:此字段可能返回 null,表示取不到有效值。 # @type DownRate: Float # @param UpRate: 上行实时速率(浮点数类型代替上一版本TxRate的整型) # 注意:此字段可能返回 null,表示取不到有效值。 # @type UpRate: Float attr_accessor :Type, :DataEnable, :UploadLimit, :DownloadLimit, :DataRx, :DataTx, :Vendor, :State, :PublicIp, :SignalStrength, :Rat, :NetInfoName, :DownRate, :UpRate 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, downrate=nil, uprate=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 @DownRate = downrate @UpRate = uprate 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'] @DownRate = params['DownRate'] @UpRate = params['UpRate'] end end # 设备付费模式信息 class DevicePayModeInfo < TencentCloud::Common::AbstractModel # @param DeviceId: 设备ID # @type DeviceId: String # @param PayMode: 付费模式。 # 1:预付费流量包 # 0:按流量后付费 # @type PayMode: Integer # @param PayModeDesc: 付费模式描述 # @type PayModeDesc: String # @param ResourceId: 流量包ID,仅当付费模式为流量包类型时才有。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ResourceId: String attr_accessor :DeviceId, :PayMode, :PayModeDesc, :ResourceId def initialize(deviceid=nil, paymode=nil, paymodedesc=nil, resourceid=nil) @DeviceId = deviceid @PayMode = paymode @PayModeDesc = paymodedesc @ResourceId = resourceid end def deserialize(params) @DeviceId = params['DeviceId'] @PayMode = params['PayMode'] @PayModeDesc = params['PayModeDesc'] @ResourceId = params['ResourceId'] 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 # 设备流量信息 class FlowDetails < TencentCloud::Common::AbstractModel # @param NetDetails: 流量数据点 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NetDetails: Array # @param DeviceId: 设备ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type DeviceId: String # @param MaxValue: 流量最大值(单位:bytes) # 注意:此字段可能返回 null,表示取不到有效值。 # @type MaxValue: Float # @param AvgValue: 流量平均值(单位:bytes) # 注意:此字段可能返回 null,表示取不到有效值。 # @type AvgValue: Float # @param TotalValue: 流量总值(单位:bytes) # 注意:此字段可能返回 null,表示取不到有效值。 # @type TotalValue: Float attr_accessor :NetDetails, :DeviceId, :MaxValue, :AvgValue, :TotalValue def initialize(netdetails=nil, deviceid=nil, maxvalue=nil, avgvalue=nil, totalvalue=nil) @NetDetails = netdetails @DeviceId = deviceid @MaxValue = maxvalue @AvgValue = avgvalue @TotalValue = totalvalue 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 @DeviceId = params['DeviceId'] @MaxValue = params['MaxValue'] @AvgValue = params['AvgValue'] @TotalValue = params['TotalValue'] end end # 流量包信息 class FlowPackageInfo < TencentCloud::Common::AbstractModel # @param ResourceId: 流量包的唯一资源ID # @type ResourceId: String # @param AppId: 流量包所属的用户AppId # @type AppId: Integer # @param PackageType: 流量包规格类型。可取值如下: # DEVICE_1_FLOW_20G、DEVICE_2_FLOW_50G、 # DEVICE_3_FLOW_100G、 # DEVICE_5_FLOW_500G,分别代表20G、50G、100G、500G档位的流量包。 # 档位也影响流量包可绑定的设备数量上限: # 20G:最多绑定1个设备 # 50G:最多绑定2个设备 # 100G:最多绑定3个设备 # 500G:最多绑定5个设备 # @type PackageType: String # @param Status: 流量包状态,0:未生效,1:有效期内,2:已过期 # @type Status: Integer # @param ActiveTime: 生效时间,Unix时间戳格式,单位:秒 # @type ActiveTime: Integer # @param ExpireTime: 过期时间,Unix时间戳格式,单位:秒 # @type ExpireTime: Integer # @param DeviceList: 流量包绑定的设备ID列表 # @type DeviceList: Array # @param CapacitySize: 流量包总容量,单位:MB # @type CapacitySize: Integer # @param CapacityRemain: 流量包余量,单位:MB # @type CapacityRemain: Integer # @param RenewFlag: 自动续费标识。true代表自动续费,false代表不自动续费 # @type RenewFlag: Boolean attr_accessor :ResourceId, :AppId, :PackageType, :Status, :ActiveTime, :ExpireTime, :DeviceList, :CapacitySize, :CapacityRemain, :RenewFlag def initialize(resourceid=nil, appid=nil, packagetype=nil, status=nil, activetime=nil, expiretime=nil, devicelist=nil, capacitysize=nil, capacityremain=nil, renewflag=nil) @ResourceId = resourceid @AppId = appid @PackageType = packagetype @Status = status @ActiveTime = activetime @ExpireTime = expiretime @DeviceList = devicelist @CapacitySize = capacitysize @CapacityRemain = capacityremain @RenewFlag = renewflag end def deserialize(params) @ResourceId = params['ResourceId'] @AppId = params['AppId'] @PackageType = params['PackageType'] @Status = params['Status'] @ActiveTime = params['ActiveTime'] @ExpireTime = params['ExpireTime'] @DeviceList = params['DeviceList'] @CapacitySize = params['CapacitySize'] @CapacityRemain = params['CapacityRemain'] @RenewFlag = params['RenewFlag'] end end # GetDevicePayMode请求参数结构体 class GetDevicePayModeRequest < TencentCloud::Common::AbstractModel # @param DeviceIdList: 设备ID列表 # @type DeviceIdList: Array attr_accessor :DeviceIdList def initialize(deviceidlist=nil) @DeviceIdList = deviceidlist end def deserialize(params) @DeviceIdList = params['DeviceIdList'] end end # GetDevicePayMode返回参数结构体 class GetDevicePayModeResponse < TencentCloud::Common::AbstractModel # @param Result: 结果信息 # @type Result: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Result, :RequestId def initialize(result=nil, requestid=nil) @Result = result @RequestId = requestid end def deserialize(params) unless params['Result'].nil? @Result = [] params['Result'].each do |i| devicepaymodeinfo_tmp = DevicePayModeInfo.new devicepaymodeinfo_tmp.deserialize(i) @Result << devicepaymodeinfo_tmp end end @RequestId = params['RequestId'] 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 # @param DeviceType: DeviceType # 不传:返回所有设备; # 1:自有设备; # 2:三方设备 # @type DeviceType: Integer attr_accessor :PageSize, :PageNumber, :Keyword, :DeviceType def initialize(pagesize=nil, pagenumber=nil, keyword=nil, devicetype=nil) @PageSize = pagesize @PageNumber = pagenumber @Keyword = keyword @DeviceType = devicetype end def deserialize(params) @PageSize = params['PageSize'] @PageNumber = params['PageNumber'] @Keyword = params['Keyword'] @DeviceType = params['DeviceType'] 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 # GetFlowPackages请求参数结构体 class GetFlowPackagesRequest < TencentCloud::Common::AbstractModel # @param PageNumber: 页码,从1开始 # @type PageNumber: Integer # @param PageSize: 每页个数 # @type PageSize: Integer # @param ResourceId: 流量包的唯一资源ID # @type ResourceId: String # @param DeviceId: 流量包绑定的设备ID # @type DeviceId: String # @param Status: 流量包状态,0:未生效,1:有效期内,2:已过期 # @type Status: Integer attr_accessor :PageNumber, :PageSize, :ResourceId, :DeviceId, :Status def initialize(pagenumber=nil, pagesize=nil, resourceid=nil, deviceid=nil, status=nil) @PageNumber = pagenumber @PageSize = pagesize @ResourceId = resourceid @DeviceId = deviceid @Status = status end def deserialize(params) @PageNumber = params['PageNumber'] @PageSize = params['PageSize'] @ResourceId = params['ResourceId'] @DeviceId = params['DeviceId'] @Status = params['Status'] end end # GetFlowPackages返回参数结构体 class GetFlowPackagesResponse < TencentCloud::Common::AbstractModel # @param PackageList: 流量包列表 # @type PackageList: Array # @param Total: 总数 # @type Total: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :PackageList, :Total, :RequestId def initialize(packagelist=nil, total=nil, requestid=nil) @PackageList = packagelist @Total = total @RequestId = requestid end def deserialize(params) unless params['PackageList'].nil? @PackageList = [] params['PackageList'].each do |i| flowpackageinfo_tmp = FlowPackageInfo.new flowpackageinfo_tmp.deserialize(i) @PackageList << flowpackageinfo_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end end # GetFlowStatistic请求参数结构体 class GetFlowStatisticRequest < TencentCloud::Common::AbstractModel # @param DeviceId: 设备ID # @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: 查找时间段流量使用最大值(单位:byte) # @type MaxValue: Float # @param AvgValue: 查找时间段流量使用平均值(单位:byte) # @type AvgValue: Float # @param TotalValue: 查找时间段流量使用总量(单位:byte) # @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 # GetHardwareList请求参数结构体 class GetHardwareListRequest < TencentCloud::Common::AbstractModel # @param PageNumber: 页码 # @type PageNumber: Integer # @param PageSize: 页面设备数量 # @type PageSize: Integer # @param Keyword: 关键字 # @type Keyword: String attr_accessor :PageNumber, :PageSize, :Keyword def initialize(pagenumber=nil, pagesize=nil, keyword=nil) @PageNumber = pagenumber @PageSize = pagesize @Keyword = keyword end def deserialize(params) @PageNumber = params['PageNumber'] @PageSize = params['PageSize'] @Keyword = params['Keyword'] end end # GetHardwareList返回参数结构体 class GetHardwareListResponse < TencentCloud::Common::AbstractModel # @param HardwareInfos: 硬件信息列表 # @type HardwareInfos: Array # @param Length: 硬件总数 # @type Length: Integer # @param TotalPage: 总页数 # @type TotalPage: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :HardwareInfos, :Length, :TotalPage, :RequestId def initialize(hardwareinfos=nil, length=nil, totalpage=nil, requestid=nil) @HardwareInfos = hardwareinfos @Length = length @TotalPage = totalpage @RequestId = requestid end def deserialize(params) unless params['HardwareInfos'].nil? @HardwareInfos = [] params['HardwareInfos'].each do |i| hardwareinfo_tmp = HardwareInfo.new hardwareinfo_tmp.deserialize(i) @HardwareInfos << hardwareinfo_tmp end end @Length = params['Length'] @TotalPage = params['TotalPage'] @RequestId = params['RequestId'] end end # GetMultiFlowStatistic请求参数结构体 class GetMultiFlowStatisticRequest < TencentCloud::Common::AbstractModel # @param DeviceIds: 设备id列表,单次最多请求10个设备 # @type DeviceIds: Array # @param BeginTime: 1659514436 # @type BeginTime: Integer # @param EndTime: 1659515000 # @type EndTime: Integer # @param Type: 统计流量类型(1:上行流量,2:下行流量) # @type Type: Integer # @param TimeGranularity: 统计时间粒度(1:按小时统计,2:按天统计) # @type TimeGranularity: Integer attr_accessor :DeviceIds, :BeginTime, :EndTime, :Type, :TimeGranularity def initialize(deviceids=nil, begintime=nil, endtime=nil, type=nil, timegranularity=nil) @DeviceIds = deviceids @BeginTime = begintime @EndTime = endtime @Type = type @TimeGranularity = timegranularity end def deserialize(params) @DeviceIds = params['DeviceIds'] @BeginTime = params['BeginTime'] @EndTime = params['EndTime'] @Type = params['Type'] @TimeGranularity = params['TimeGranularity'] end end # GetMultiFlowStatistic返回参数结构体 class GetMultiFlowStatisticResponse < TencentCloud::Common::AbstractModel # @param FlowDetails: 批量设备流量信息 # @type FlowDetails: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowDetails, :RequestId def initialize(flowdetails=nil, requestid=nil) @FlowDetails = flowdetails @RequestId = requestid end def deserialize(params) unless params['FlowDetails'].nil? @FlowDetails = [] params['FlowDetails'].each do |i| flowdetails_tmp = FlowDetails.new flowdetails_tmp.deserialize(i) @FlowDetails << flowdetails_tmp end end @RequestId = params['RequestId'] end end # GetNetMonitor请求参数结构体 class GetNetMonitorRequest < TencentCloud::Common::AbstractModel # @param DeviceId: 设备id # @type DeviceId: String # @param BeginTime: 开始时间 # @type BeginTime: Integer # @param EndTime: 结束时间 # @type EndTime: Integer # @param Metrics: 统计指标(上行速率:"TxRate":bit/s,下行速率:"RxRate":bit/s,丢包:"Loss":%,时延:"RTT":ms) # @type Metrics: String attr_accessor :DeviceId, :BeginTime, :EndTime, :Metrics def initialize(deviceid=nil, begintime=nil, endtime=nil, metrics=nil) @DeviceId = deviceid @BeginTime = begintime @EndTime = endtime @Metrics = metrics end def deserialize(params) @DeviceId = params['DeviceId'] @BeginTime = params['BeginTime'] @EndTime = params['EndTime'] @Metrics = params['Metrics'] end end # GetNetMonitor返回参数结构体 class GetNetMonitorResponse < TencentCloud::Common::AbstractModel # @param MonitorData: 监控数据 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MonitorData: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :MonitorData, :RequestId def initialize(monitordata=nil, requestid=nil) @MonitorData = monitordata @RequestId = requestid end def deserialize(params) unless params['MonitorData'].nil? @MonitorData = [] params['MonitorData'].each do |i| monitordata_tmp = MonitorData.new monitordata_tmp.deserialize(i) @MonitorData << monitordata_tmp end end @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 # @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 # GetVendorHardware请求参数结构体 class GetVendorHardwareRequest < TencentCloud::Common::AbstractModel # @param PageNumber: 页码 # @type PageNumber: Integer # @param PageSize: 页面数量 # @type PageSize: Integer # @param Keyword: 关键字 # @type Keyword: String # @param Status: 激活状态, # 空:全部; # 1:待激活; # 2:已激活; # @type Status: Integer attr_accessor :PageNumber, :PageSize, :Keyword, :Status def initialize(pagenumber=nil, pagesize=nil, keyword=nil, status=nil) @PageNumber = pagenumber @PageSize = pagesize @Keyword = keyword @Status = status end def deserialize(params) @PageNumber = params['PageNumber'] @PageSize = params['PageSize'] @Keyword = params['Keyword'] @Status = params['Status'] end end # GetVendorHardware返回参数结构体 class GetVendorHardwareResponse < TencentCloud::Common::AbstractModel # @param VendorHardware: 硬件信息列表 # @type VendorHardware: Array # @param Length: 设备总数 # @type Length: Integer # @param TotalPage: 总页数 # @type TotalPage: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :VendorHardware, :Length, :TotalPage, :RequestId def initialize(vendorhardware=nil, length=nil, totalpage=nil, requestid=nil) @VendorHardware = vendorhardware @Length = length @TotalPage = totalpage @RequestId = requestid end def deserialize(params) unless params['VendorHardware'].nil? @VendorHardware = [] params['VendorHardware'].each do |i| vendorhardware_tmp = VendorHardware.new vendorhardware_tmp.deserialize(i) @VendorHardware << vendorhardware_tmp end end @Length = params['Length'] @TotalPage = params['TotalPage'] @RequestId = params['RequestId'] end end # 新建Hardware入参 class Hardware < TencentCloud::Common::AbstractModel # @param SN: 硬件序列号 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SN: String # @param LicenseChargingMode: license计费模式: # 1,租户月付费 # 2,厂商月付费 # 3,license永久授权 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LicenseChargingMode: Integer # @param Description: 设备描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Description: String # @param HardwareId: 硬件ID,入参无需传递 # 注意:此字段可能返回 null,表示取不到有效值。 # @type HardwareId: String attr_accessor :SN, :LicenseChargingMode, :Description, :HardwareId def initialize(sn=nil, licensechargingmode=nil, description=nil, hardwareid=nil) @SN = sn @LicenseChargingMode = licensechargingmode @Description = description @HardwareId = hardwareid end def deserialize(params) @SN = params['SN'] @LicenseChargingMode = params['LicenseChargingMode'] @Description = params['Description'] @HardwareId = params['HardwareId'] end end # 硬件信息 class HardwareInfo < TencentCloud::Common::AbstractModel # @param DeviceId: 设备ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type DeviceId: String # @param DeviceName: 设备名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DeviceName: String # @param ActiveTime: 激活时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActiveTime: String # @param LastOnlineTime: 最后在线时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LastOnlineTime: String # @param Description: 备注 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Description: String # @param VendorDescription: 厂商备注 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VendorDescription: String # @param LicenseChargingMode: license计费模式: 1,租户月付费 2,厂商月付费 3,license永久授权 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LicenseChargingMode: Integer # @param CreateTime: 创建时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CreateTime: String # @param SN: 硬件序列号 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SN: String attr_accessor :DeviceId, :DeviceName, :ActiveTime, :LastOnlineTime, :Description, :VendorDescription, :LicenseChargingMode, :CreateTime, :SN def initialize(deviceid=nil, devicename=nil, activetime=nil, lastonlinetime=nil, description=nil, vendordescription=nil, licensechargingmode=nil, createtime=nil, sn=nil) @DeviceId = deviceid @DeviceName = devicename @ActiveTime = activetime @LastOnlineTime = lastonlinetime @Description = description @VendorDescription = vendordescription @LicenseChargingMode = licensechargingmode @CreateTime = createtime @SN = sn end def deserialize(params) @DeviceId = params['DeviceId'] @DeviceName = params['DeviceName'] @ActiveTime = params['ActiveTime'] @LastOnlineTime = params['LastOnlineTime'] @Description = params['Description'] @VendorDescription = params['VendorDescription'] @LicenseChargingMode = params['LicenseChargingMode'] @CreateTime = params['CreateTime'] @SN = params['SN'] end end # ModifyPackageRenewFlag请求参数结构体 class ModifyPackageRenewFlagRequest < TencentCloud::Common::AbstractModel # @param ResourceId: 流量包的唯一资源ID # @type ResourceId: String # @param RenewFlag: 自动续费标识。true代表自动续费,false代表不自动续费 # @type RenewFlag: Boolean attr_accessor :ResourceId, :RenewFlag def initialize(resourceid=nil, renewflag=nil) @ResourceId = resourceid @RenewFlag = renewflag end def deserialize(params) @ResourceId = params['ResourceId'] @RenewFlag = params['RenewFlag'] end end # ModifyPackageRenewFlag返回参数结构体 class ModifyPackageRenewFlagResponse < 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 MonitorData < TencentCloud::Common::AbstractModel # @param Time: 时间点:s # @type Time: String # @param BusinessMetrics: 业务指标(bps/ms/%) # 注意:此字段可能返回 null,表示取不到有效值。 # @type BusinessMetrics: Float # @param SlotNetInfo: 网卡状态信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SlotNetInfo: Array attr_accessor :Time, :BusinessMetrics, :SlotNetInfo def initialize(time=nil, businessmetrics=nil, slotnetinfo=nil) @Time = time @BusinessMetrics = businessmetrics @SlotNetInfo = slotnetinfo end def deserialize(params) @Time = params['Time'] @BusinessMetrics = params['BusinessMetrics'] unless params['SlotNetInfo'].nil? @SlotNetInfo = [] params['SlotNetInfo'].each do |i| slotnetinfo_tmp = SlotNetInfo.new slotnetinfo_tmp.deserialize(i) @SlotNetInfo << slotnetinfo_tmp end end end end # 网络详细信息 class NetDetails < TencentCloud::Common::AbstractModel # @param Current: 流量值(bit) # @type Current: Float # @param Time: 时间点,单位:s # @type Time: String attr_accessor :Current, :Time def initialize(current=nil, time=nil) @Current = current @Time = time end def deserialize(params) @Current = params['Current'] @Time = params['Time'] 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 # OrderFlowPackage请求参数结构体 class OrderFlowPackageRequest < TencentCloud::Common::AbstractModel # @param PackageType: 流量包规格类型。可取值如下: # DEVICE_1_FLOW_20G、DEVICE_2_FLOW_50G、 # DEVICE_3_FLOW_100G、 # DEVICE_5_FLOW_500G,分别代表20G、50G、100G、500G档位的流量包。 # 档位也影响流量包可绑定的设备数量上限: # 20G:最多绑定1个设备 # 50G:最多绑定2个设备 # 100G:最多绑定3个设备 # 500G:最多绑定5个设备 # @type PackageType: String # @param DeviceList: 流量包绑定的设备ID列表。捆绑设备个数上限取决于包的规格档位: # 20G:最多绑定1个设备 # 50G:最多绑定2个设备 # 100G:最多绑定3个设备 # 500G:最多绑定5个设备 # @type DeviceList: Array # @param AutoRenewFlag: 是否自动续费 # @type AutoRenewFlag: Boolean # @param PackageRegion: 区域标识,0:国内,1:国外 # @type PackageRegion: Integer attr_accessor :PackageType, :DeviceList, :AutoRenewFlag, :PackageRegion def initialize(packagetype=nil, devicelist=nil, autorenewflag=nil, packageregion=nil) @PackageType = packagetype @DeviceList = devicelist @AutoRenewFlag = autorenewflag @PackageRegion = packageregion end def deserialize(params) @PackageType = params['PackageType'] @DeviceList = params['DeviceList'] @AutoRenewFlag = params['AutoRenewFlag'] @PackageRegion = params['PackageRegion'] end end # OrderFlowPackage返回参数结构体 class OrderFlowPackageResponse < TencentCloud::Common::AbstractModel # @param ResourceId: 流量包的唯一资源ID # @type ResourceId: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ResourceId, :RequestId def initialize(resourceid=nil, requestid=nil) @ResourceId = resourceid @RequestId = requestid end def deserialize(params) @ResourceId = params['ResourceId'] @RequestId = params['RequestId'] end end # 网卡流量指标数据 class SlotNetInfo < TencentCloud::Common::AbstractModel # @param NetInfoName: 网卡名 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NetInfoName: String # @param PublicIP: 公网IP # 注意:此字段可能返回 null,表示取不到有效值。 # @type PublicIP: String # @param Current: 指标数据(bps/ms/%) # 注意:此字段可能返回 null,表示取不到有效值。 # @type Current: Float attr_accessor :NetInfoName, :PublicIP, :Current def initialize(netinfoname=nil, publicip=nil, current=nil) @NetInfoName = netinfoname @PublicIP = publicip @Current = current end def deserialize(params) @NetInfoName = params['NetInfoName'] @PublicIP = params['PublicIP'] @Current = params['Current'] 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 # UpdateHardware请求参数结构体 class UpdateHardwareRequest < TencentCloud::Common::AbstractModel # @param HardwareId: 硬件ID # @type HardwareId: String # @param SN: 硬件序列号 # @type SN: String # @param Description: 设备备注 # @type Description: String attr_accessor :HardwareId, :SN, :Description def initialize(hardwareid=nil, sn=nil, description=nil) @HardwareId = hardwareid @SN = sn @Description = description end def deserialize(params) @HardwareId = params['HardwareId'] @SN = params['SN'] @Description = params['Description'] end end # UpdateHardware返回参数结构体 class UpdateHardwareResponse < 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 # 厂商硬件详细信息 class VendorHardware < TencentCloud::Common::AbstractModel # @param HardwareId: 硬件id # 注意:此字段可能返回 null,表示取不到有效值。 # @type HardwareId: String # @param SN: 硬件序列号 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SN: String # @param CreateTime: 创建时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CreateTime: String # @param Status: 激活状态, 空:全部; 1:待激活; 2:已激活 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Status: Integer # @param ActiveTime: 激活时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ActiveTime: String # @param Description: 厂商备注 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Description: String # @param DeviceId: 设备id # 注意:此字段可能返回 null,表示取不到有效值。 # @type DeviceId: String # @param LicenseChargingMode: license计费模式: 1,租户月付费 2,厂商月付费 3,license永久授权 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LicenseChargingMode: Integer # @param LastOnlineTime: 最后在线时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LastOnlineTime: String attr_accessor :HardwareId, :SN, :CreateTime, :Status, :ActiveTime, :Description, :DeviceId, :LicenseChargingMode, :LastOnlineTime def initialize(hardwareid=nil, sn=nil, createtime=nil, status=nil, activetime=nil, description=nil, deviceid=nil, licensechargingmode=nil, lastonlinetime=nil) @HardwareId = hardwareid @SN = sn @CreateTime = createtime @Status = status @ActiveTime = activetime @Description = description @DeviceId = deviceid @LicenseChargingMode = licensechargingmode @LastOnlineTime = lastonlinetime end def deserialize(params) @HardwareId = params['HardwareId'] @SN = params['SN'] @CreateTime = params['CreateTime'] @Status = params['Status'] @ActiveTime = params['ActiveTime'] @Description = params['Description'] @DeviceId = params['DeviceId'] @LicenseChargingMode = params['LicenseChargingMode'] @LastOnlineTime = params['LastOnlineTime'] end end end end end