tencentcloud-sdk-mna 3.0.884 → 3.0.886
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210119/client.rb +24 -0
- data/lib/v20210119/models.rb +54 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 185e61ffe4c83e1f9f993a3d8a0874dc061c6af1
|
4
|
+
data.tar.gz: 6f6b25c87a35799b218bbefe684418f09068dbe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3610a9522648f48a4fd28951bbc0f960498b2761baacb9c11de9026a9af36a10ebd12be305c589e37ec8f89db1abb683377b2c5d4587c3430aa5047681e5073
|
7
|
+
data.tar.gz: 8fd8bcd9053cbf33bffe2787537694e082c56bcf07578d9136f65ab2101de4344355822ef2b8c80ac6b475e5548e66a6796eb1c862c14c1abfe710e1938b5523
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.886
|
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
|
+
# 购买一次性授权License
|
825
|
+
|
826
|
+
# @param request: Request instance for OrderPerLicense.
|
827
|
+
# @type request: :class:`Tencentcloud::mna::V20210119::OrderPerLicenseRequest`
|
828
|
+
# @rtype: :class:`Tencentcloud::mna::V20210119::OrderPerLicenseResponse`
|
829
|
+
def OrderPerLicense(request)
|
830
|
+
body = send_request('OrderPerLicense', request.serialize)
|
831
|
+
response = JSON.parse(body)
|
832
|
+
if response['Response'].key?('Error') == false
|
833
|
+
model = OrderPerLicenseResponse.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
@@ -2690,6 +2690,60 @@ module TencentCloud
|
|
2690
2690
|
end
|
2691
2691
|
end
|
2692
2692
|
|
2693
|
+
# OrderPerLicense请求参数结构体
|
2694
|
+
class OrderPerLicenseRequest < TencentCloud::Common::AbstractModel
|
2695
|
+
# @param DeviceId: 购买永久授权License的设备ID,如果是厂商未激活设备采用HardwareId
|
2696
|
+
# @type DeviceId: String
|
2697
|
+
# @param Type: 设备类型,0: SDK,1: CPE,作为用户创建或激活设备时传0,作为厂商创建待激活设备时传1
|
2698
|
+
# @type Type: Integer
|
2699
|
+
# @param RollBack: 购买失败后是否回滚(删除)设备,默认true,如果设备绑定了生效中的流量包则不能回滚。
|
2700
|
+
# @type RollBack: Boolean
|
2701
|
+
# @param AutoVoucher: 是否自动选择代金券,默认false。
|
2702
|
+
# 有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。
|
2703
|
+
# @type AutoVoucher: Boolean
|
2704
|
+
# @param VoucherIds: 指定代金券ID。自动选择代金券时此参数无效。目前只允许传入一张代金券。
|
2705
|
+
# 注:若指定的代金券不符合订单抵扣条件,则正常支付,不扣券
|
2706
|
+
# @type VoucherIds: Array
|
2707
|
+
|
2708
|
+
attr_accessor :DeviceId, :Type, :RollBack, :AutoVoucher, :VoucherIds
|
2709
|
+
|
2710
|
+
def initialize(deviceid=nil, type=nil, rollback=nil, autovoucher=nil, voucherids=nil)
|
2711
|
+
@DeviceId = deviceid
|
2712
|
+
@Type = type
|
2713
|
+
@RollBack = rollback
|
2714
|
+
@AutoVoucher = autovoucher
|
2715
|
+
@VoucherIds = voucherids
|
2716
|
+
end
|
2717
|
+
|
2718
|
+
def deserialize(params)
|
2719
|
+
@DeviceId = params['DeviceId']
|
2720
|
+
@Type = params['Type']
|
2721
|
+
@RollBack = params['RollBack']
|
2722
|
+
@AutoVoucher = params['AutoVoucher']
|
2723
|
+
@VoucherIds = params['VoucherIds']
|
2724
|
+
end
|
2725
|
+
end
|
2726
|
+
|
2727
|
+
# OrderPerLicense返回参数结构体
|
2728
|
+
class OrderPerLicenseResponse < TencentCloud::Common::AbstractModel
|
2729
|
+
# @param ResourceId: 一次性授权License的资源ID
|
2730
|
+
# @type ResourceId: String
|
2731
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2732
|
+
# @type RequestId: String
|
2733
|
+
|
2734
|
+
attr_accessor :ResourceId, :RequestId
|
2735
|
+
|
2736
|
+
def initialize(resourceid=nil, requestid=nil)
|
2737
|
+
@ResourceId = resourceid
|
2738
|
+
@RequestId = requestid
|
2739
|
+
end
|
2740
|
+
|
2741
|
+
def deserialize(params)
|
2742
|
+
@ResourceId = params['ResourceId']
|
2743
|
+
@RequestId = params['RequestId']
|
2744
|
+
end
|
2745
|
+
end
|
2746
|
+
|
2693
2747
|
# SetNotifyUrl请求参数结构体
|
2694
2748
|
class SetNotifyUrlRequest < TencentCloud::Common::AbstractModel
|
2695
2749
|
# @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.886
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/tencentcloud-sdk-mna.rb
|
37
36
|
- lib/v20210119/models.rb
|
38
37
|
- lib/v20210119/client.rb
|
38
|
+
- lib/tencentcloud-sdk-mna.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|