tencentcloud-sdk-mna 3.0.1127 → 3.0.1131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210119/client.rb +24 -0
- data/lib/v20210119/models.rb +87 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4f3a5713b5bae5961dfce61ee1fa024a70bef82
|
4
|
+
data.tar.gz: cf443b3de8b025ce970e59de19f999b65774b738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 016ec0de47b74f6fb649f8c14534bb8185ac1a1bed163fc5681c4e06bba3c181284775040104fb72fb8c2d3cb4d94c7b821459eb3736b7c77556a44a03c9e6a8
|
7
|
+
data.tar.gz: 2802666392d3ca3994f39d84f40d2a212bb9ad9e00310ff7b73307da4043aa980423ecea64b26c19363feb30c86c8b569c2874d94675dd256474c7144ff97a6e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1131
|
data/lib/v20210119/client.rb
CHANGED
@@ -821,6 +821,30 @@ module TencentCloud
|
|
821
821
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
822
|
end
|
823
823
|
|
824
|
+
# 用户上报自定义的订单信息,多网聚合加速服务将相关信息进行保存
|
825
|
+
|
826
|
+
# @param request: Request instance for ReportOrder.
|
827
|
+
# @type request: :class:`Tencentcloud::mna::V20210119::ReportOrderRequest`
|
828
|
+
# @rtype: :class:`Tencentcloud::mna::V20210119::ReportOrderResponse`
|
829
|
+
def ReportOrder(request)
|
830
|
+
body = send_request('ReportOrder', request.serialize)
|
831
|
+
response = JSON.parse(body)
|
832
|
+
if response['Response'].key?('Error') == false
|
833
|
+
model = ReportOrderResponse.new
|
834
|
+
model.deserialize(response['Response'])
|
835
|
+
model
|
836
|
+
else
|
837
|
+
code = response['Response']['Error']['Code']
|
838
|
+
message = response['Response']['Error']['Message']
|
839
|
+
reqid = response['Response']['RequestId']
|
840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
841
|
+
end
|
842
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
843
|
+
raise e
|
844
|
+
rescue StandardError => e
|
845
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
|
+
end
|
847
|
+
|
824
848
|
# 设置用户流量告警信息接口,通过该接口设置流量包告警阈值以及告警时回调的url和key
|
825
849
|
|
826
850
|
# @param request: Request instance for SetNotifyUrl.
|
data/lib/v20210119/models.rb
CHANGED
@@ -2419,6 +2419,42 @@ module TencentCloud
|
|
2419
2419
|
end
|
2420
2420
|
end
|
2421
2421
|
|
2422
|
+
# 返回上报的订单信息
|
2423
|
+
class OrderInfo < TencentCloud::Common::AbstractModel
|
2424
|
+
# @param Uin: 父帐号uin
|
2425
|
+
# @type Uin: String
|
2426
|
+
# @param ProjectId: 项目id
|
2427
|
+
# @type ProjectId: String
|
2428
|
+
# @param PackageType: 用量类型
|
2429
|
+
# @type PackageType: String
|
2430
|
+
# @param OrderId: 订单编号唯一标识符
|
2431
|
+
# @type OrderId: String
|
2432
|
+
# @param ReportMonth: 上报月份,默认当前月
|
2433
|
+
# @type ReportMonth: String
|
2434
|
+
# @param Updated: 数据更新时间
|
2435
|
+
# @type Updated: String
|
2436
|
+
|
2437
|
+
attr_accessor :Uin, :ProjectId, :PackageType, :OrderId, :ReportMonth, :Updated
|
2438
|
+
|
2439
|
+
def initialize(uin=nil, projectid=nil, packagetype=nil, orderid=nil, reportmonth=nil, updated=nil)
|
2440
|
+
@Uin = uin
|
2441
|
+
@ProjectId = projectid
|
2442
|
+
@PackageType = packagetype
|
2443
|
+
@OrderId = orderid
|
2444
|
+
@ReportMonth = reportmonth
|
2445
|
+
@Updated = updated
|
2446
|
+
end
|
2447
|
+
|
2448
|
+
def deserialize(params)
|
2449
|
+
@Uin = params['Uin']
|
2450
|
+
@ProjectId = params['ProjectId']
|
2451
|
+
@PackageType = params['PackageType']
|
2452
|
+
@OrderId = params['OrderId']
|
2453
|
+
@ReportMonth = params['ReportMonth']
|
2454
|
+
@Updated = params['Updated']
|
2455
|
+
end
|
2456
|
+
end
|
2457
|
+
|
2422
2458
|
# OrderPerLicense请求参数结构体
|
2423
2459
|
class OrderPerLicenseRequest < TencentCloud::Common::AbstractModel
|
2424
2460
|
# @param DeviceId: 购买永久授权License的设备ID,如果是厂商未激活设备采用HardwareId
|
@@ -2473,6 +2509,57 @@ module TencentCloud
|
|
2473
2509
|
end
|
2474
2510
|
end
|
2475
2511
|
|
2512
|
+
# ReportOrder请求参数结构体
|
2513
|
+
class ReportOrderRequest < TencentCloud::Common::AbstractModel
|
2514
|
+
# @param OrderId: 订单编号唯一标识符
|
2515
|
+
# @type OrderId: String
|
2516
|
+
# @param ProjectId: 项目id
|
2517
|
+
# @type ProjectId: String
|
2518
|
+
# @param PackageType: 用量类型
|
2519
|
+
# @type PackageType: String
|
2520
|
+
# @param ReportMonth: 上报月份,默认当前月
|
2521
|
+
# @type ReportMonth: String
|
2522
|
+
|
2523
|
+
attr_accessor :OrderId, :ProjectId, :PackageType, :ReportMonth
|
2524
|
+
|
2525
|
+
def initialize(orderid=nil, projectid=nil, packagetype=nil, reportmonth=nil)
|
2526
|
+
@OrderId = orderid
|
2527
|
+
@ProjectId = projectid
|
2528
|
+
@PackageType = packagetype
|
2529
|
+
@ReportMonth = reportmonth
|
2530
|
+
end
|
2531
|
+
|
2532
|
+
def deserialize(params)
|
2533
|
+
@OrderId = params['OrderId']
|
2534
|
+
@ProjectId = params['ProjectId']
|
2535
|
+
@PackageType = params['PackageType']
|
2536
|
+
@ReportMonth = params['ReportMonth']
|
2537
|
+
end
|
2538
|
+
end
|
2539
|
+
|
2540
|
+
# ReportOrder返回参数结构体
|
2541
|
+
class ReportOrderResponse < TencentCloud::Common::AbstractModel
|
2542
|
+
# @param OrderInfo: 订单信息
|
2543
|
+
# @type OrderInfo: :class:`Tencentcloud::Mna.v20210119.models.OrderInfo`
|
2544
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2545
|
+
# @type RequestId: String
|
2546
|
+
|
2547
|
+
attr_accessor :OrderInfo, :RequestId
|
2548
|
+
|
2549
|
+
def initialize(orderinfo=nil, requestid=nil)
|
2550
|
+
@OrderInfo = orderinfo
|
2551
|
+
@RequestId = requestid
|
2552
|
+
end
|
2553
|
+
|
2554
|
+
def deserialize(params)
|
2555
|
+
unless params['OrderInfo'].nil?
|
2556
|
+
@OrderInfo = OrderInfo.new
|
2557
|
+
@OrderInfo.deserialize(params['OrderInfo'])
|
2558
|
+
end
|
2559
|
+
@RequestId = params['RequestId']
|
2560
|
+
end
|
2561
|
+
end
|
2562
|
+
|
2476
2563
|
# SetNotifyUrl请求参数结构体
|
2477
2564
|
class SetNotifyUrlRequest < TencentCloud::Common::AbstractModel
|
2478
2565
|
# @param NotifyUrl: 告警通知回调url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1131
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|