tencentcloud-sdk-trp 3.0.481 → 3.0.483
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/v20210515/client.rb +25 -0
- data/lib/v20210515/models.rb +53 -1
- 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: 1fe3d84ac1355db6d2e2069e2ff3bec62aa18452
|
4
|
+
data.tar.gz: 495f4ee7efb096c015f04306484ebabfcc0617df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7b3fed57fa5af8ded11cc20bcc963031576e4ac11ef7f4c40b803e2d311ef97d2d69035276c343f508a18f1634649f91fd4c98c3e755427f05ced8f2e4710c1
|
7
|
+
data.tar.gz: 5704e72130f115996d0d300654b8b09f12520a0bf529a158d60706ae0539d30331f6cd2785de1651a9a70f8ae14f5560eda34a07d43c2836cb77e9b91b7a1e58
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.483
|
data/lib/v20210515/client.rb
CHANGED
@@ -965,6 +965,31 @@ module TencentCloud
|
|
965
965
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
966
|
end
|
967
967
|
|
968
|
+
# 解绑溯源码和批次的关系,让溯源码重置为未关联的状态,以便关联其他批次
|
969
|
+
# 注意:溯源码必须属于指定的批次才会解绑
|
970
|
+
|
971
|
+
# @param request: Request instance for ModifyTraceCodeUnlink.
|
972
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::ModifyTraceCodeUnlinkRequest`
|
973
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::ModifyTraceCodeUnlinkResponse`
|
974
|
+
def ModifyTraceCodeUnlink(request)
|
975
|
+
body = send_request('ModifyTraceCodeUnlink', request.serialize)
|
976
|
+
response = JSON.parse(body)
|
977
|
+
if response['Response'].key?('Error') == false
|
978
|
+
model = ModifyTraceCodeUnlinkResponse.new
|
979
|
+
model.deserialize(response['Response'])
|
980
|
+
model
|
981
|
+
else
|
982
|
+
code = response['Response']['Error']['Code']
|
983
|
+
message = response['Response']['Error']['Message']
|
984
|
+
reqid = response['Response']['RequestId']
|
985
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
986
|
+
end
|
987
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
988
|
+
raise e
|
989
|
+
rescue StandardError => e
|
990
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
991
|
+
end
|
992
|
+
|
968
993
|
# 修改溯源信息
|
969
994
|
|
970
995
|
# @param request: Request instance for ModifyTraceData.
|
data/lib/v20210515/models.rb
CHANGED
@@ -2345,7 +2345,7 @@ module TencentCloud
|
|
2345
2345
|
# @type CorpId: Integer
|
2346
2346
|
# @param Status: 状态 0: 未激活 1: 已激活 -1: 已冻结
|
2347
2347
|
# @type Status: Integer
|
2348
|
-
# @param MpTpl:
|
2348
|
+
# @param MpTpl: 模板ID,或者活动ID
|
2349
2349
|
# @type MpTpl: String
|
2350
2350
|
# @param MerchantId: 商户ID
|
2351
2351
|
# @type MerchantId: String
|
@@ -2667,6 +2667,58 @@ module TencentCloud
|
|
2667
2667
|
end
|
2668
2668
|
end
|
2669
2669
|
|
2670
|
+
# ModifyTraceCodeUnlink请求参数结构体
|
2671
|
+
class ModifyTraceCodeUnlinkRequest < TencentCloud::Common::AbstractModel
|
2672
|
+
# @param BatchId: 批次ID
|
2673
|
+
# @type BatchId: String
|
2674
|
+
# @param Codes: 溯源码列表
|
2675
|
+
# @type Codes: Array
|
2676
|
+
# @param CorpId: 企业ID
|
2677
|
+
# @type CorpId: Integer
|
2678
|
+
|
2679
|
+
attr_accessor :BatchId, :Codes, :CorpId
|
2680
|
+
|
2681
|
+
def initialize(batchid=nil, codes=nil, corpid=nil)
|
2682
|
+
@BatchId = batchid
|
2683
|
+
@Codes = codes
|
2684
|
+
@CorpId = corpid
|
2685
|
+
end
|
2686
|
+
|
2687
|
+
def deserialize(params)
|
2688
|
+
@BatchId = params['BatchId']
|
2689
|
+
@Codes = params['Codes']
|
2690
|
+
@CorpId = params['CorpId']
|
2691
|
+
end
|
2692
|
+
end
|
2693
|
+
|
2694
|
+
# ModifyTraceCodeUnlink返回参数结构体
|
2695
|
+
class ModifyTraceCodeUnlinkResponse < TencentCloud::Common::AbstractModel
|
2696
|
+
# @param UnlinkCnt: 成功解绑溯源码的数量
|
2697
|
+
# @type UnlinkCnt: Integer
|
2698
|
+
# @param CodeCnt: 当前批次的码数量
|
2699
|
+
# @type CodeCnt: Integer
|
2700
|
+
# @param BatchId: 批次ID
|
2701
|
+
# @type BatchId: String
|
2702
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2703
|
+
# @type RequestId: String
|
2704
|
+
|
2705
|
+
attr_accessor :UnlinkCnt, :CodeCnt, :BatchId, :RequestId
|
2706
|
+
|
2707
|
+
def initialize(unlinkcnt=nil, codecnt=nil, batchid=nil, requestid=nil)
|
2708
|
+
@UnlinkCnt = unlinkcnt
|
2709
|
+
@CodeCnt = codecnt
|
2710
|
+
@BatchId = batchid
|
2711
|
+
@RequestId = requestid
|
2712
|
+
end
|
2713
|
+
|
2714
|
+
def deserialize(params)
|
2715
|
+
@UnlinkCnt = params['UnlinkCnt']
|
2716
|
+
@CodeCnt = params['CodeCnt']
|
2717
|
+
@BatchId = params['BatchId']
|
2718
|
+
@RequestId = params['RequestId']
|
2719
|
+
end
|
2720
|
+
end
|
2721
|
+
|
2670
2722
|
# ModifyTraceDataRanks请求参数结构体
|
2671
2723
|
class ModifyTraceDataRanksRequest < TencentCloud::Common::AbstractModel
|
2672
2724
|
# @param CorpId: 企业ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-trp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.483
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|