tencentcloud-sdk-trp 3.0.837 → 3.0.838
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 +24 -0
- data/lib/v20210515/models.rb +105 -6
- 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: 60b0749a681af86ab0fa7b545b5e3ea674ff2dc6
|
4
|
+
data.tar.gz: cf81635576e6a55d828abd2a4a4c33e1721f2c58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea8244dfd8b7def57d569c33e3c6c563defb0713aeb17e3403ac815fa99dbb79ebeb7531d3c920c565fe1532c58521003548aeb1e397e7d493b25438d247aa4c
|
7
|
+
data.tar.gz: aedfb454ae95f7f87a81fd8fa2d7df2b3a8311b40dbe1259c3e687c6cae47525677641631c18ad4c13464fea42f86a944295e5dbff73e6ffb42d02d20a47f380
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.838
|
data/lib/v20210515/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 批量上链接口
|
57
|
+
|
58
|
+
# @param request: Request instance for CreateChainBatch.
|
59
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::CreateChainBatchRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::CreateChainBatchResponse`
|
61
|
+
def CreateChainBatch(request)
|
62
|
+
body = send_request('CreateChainBatch', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateChainBatchResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 新增批次
|
57
81
|
|
58
82
|
# @param request: Request instance for CreateCodeBatch.
|
data/lib/v20210515/models.rb
CHANGED
@@ -118,6 +118,35 @@ module TencentCloud
|
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
121
|
+
# 上链数据
|
122
|
+
class Chain < TencentCloud::Common::AbstractModel
|
123
|
+
# @param Code: 码url
|
124
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
125
|
+
# @type Code: String
|
126
|
+
# @param Data: 上链数据
|
127
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
128
|
+
# @type Data: Array
|
129
|
+
|
130
|
+
attr_accessor :Code, :Data
|
131
|
+
|
132
|
+
def initialize(code=nil, data=nil)
|
133
|
+
@Code = code
|
134
|
+
@Data = data
|
135
|
+
end
|
136
|
+
|
137
|
+
def deserialize(params)
|
138
|
+
@Code = params['Code']
|
139
|
+
unless params['Data'].nil?
|
140
|
+
@Data = []
|
141
|
+
params['Data'].each do |i|
|
142
|
+
chainvalue_tmp = ChainValue.new
|
143
|
+
chainvalue_tmp.deserialize(i)
|
144
|
+
@Data << chainvalue_tmp
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
121
150
|
# 上链数据
|
122
151
|
class ChainData < TencentCloud::Common::AbstractModel
|
123
152
|
# @param BlockHash: 区块hash
|
@@ -145,6 +174,33 @@ module TencentCloud
|
|
145
174
|
end
|
146
175
|
end
|
147
176
|
|
177
|
+
# 上链数据 key-value
|
178
|
+
class ChainValue < TencentCloud::Common::AbstractModel
|
179
|
+
# @param Label: 标题名字
|
180
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
181
|
+
# @type Label: String
|
182
|
+
# @param Type: 类型,文字:"text",图片:"image"
|
183
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
184
|
+
# @type Type: String
|
185
|
+
# @param Value: 值,文字类型:"abc",图片类型:""/images/img.png"
|
186
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
187
|
+
# @type Value: String
|
188
|
+
|
189
|
+
attr_accessor :Label, :Type, :Value
|
190
|
+
|
191
|
+
def initialize(label=nil, type=nil, value=nil)
|
192
|
+
@Label = label
|
193
|
+
@Type = type
|
194
|
+
@Value = value
|
195
|
+
end
|
196
|
+
|
197
|
+
def deserialize(params)
|
198
|
+
@Label = params['Label']
|
199
|
+
@Type = params['Type']
|
200
|
+
@Value = params['Value']
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
148
204
|
# 批次
|
149
205
|
class CodeBatch < TencentCloud::Common::AbstractModel
|
150
206
|
# @param BatchId: 批次号
|
@@ -209,8 +265,8 @@ module TencentCloud
|
|
209
265
|
|
210
266
|
attr_accessor :BatchId, :CorpId, :BatchCode, :CodeCnt, :MerchantId, :ProductId, :BatchType, :Remark, :MpTpl, :Status, :CreateTime, :UpdateTime, :MerchantName, :ProductName, :Ext, :TplName, :Job, :ProductionDate, :ValidDate, :Attrs
|
211
267
|
extend Gem::Deprecate
|
212
|
-
deprecate :Ext, :none, 2024,
|
213
|
-
deprecate :Ext=, :none, 2024,
|
268
|
+
deprecate :Ext, :none, 2024, 6
|
269
|
+
deprecate :Ext=, :none, 2024, 6
|
214
270
|
|
215
271
|
def initialize(batchid=nil, corpid=nil, batchcode=nil, codecnt=nil, merchantid=nil, productid=nil, batchtype=nil, remark=nil, mptpl=nil, status=nil, createtime=nil, updatetime=nil, merchantname=nil, productname=nil, ext=nil, tplname=nil, job=nil, productiondate=nil, validdate=nil, attrs=nil)
|
216
272
|
@BatchId = batchid
|
@@ -522,6 +578,49 @@ module TencentCloud
|
|
522
578
|
end
|
523
579
|
end
|
524
580
|
|
581
|
+
# CreateChainBatch请求参数结构体
|
582
|
+
class CreateChainBatchRequest < TencentCloud::Common::AbstractModel
|
583
|
+
# @param CorpId: 企业ID
|
584
|
+
# @type CorpId: Integer
|
585
|
+
# @param ChainList: 溯源ID
|
586
|
+
# @type ChainList: Array
|
587
|
+
|
588
|
+
attr_accessor :CorpId, :ChainList
|
589
|
+
|
590
|
+
def initialize(corpid=nil, chainlist=nil)
|
591
|
+
@CorpId = corpid
|
592
|
+
@ChainList = chainlist
|
593
|
+
end
|
594
|
+
|
595
|
+
def deserialize(params)
|
596
|
+
@CorpId = params['CorpId']
|
597
|
+
unless params['ChainList'].nil?
|
598
|
+
@ChainList = []
|
599
|
+
params['ChainList'].each do |i|
|
600
|
+
chain_tmp = Chain.new
|
601
|
+
chain_tmp.deserialize(i)
|
602
|
+
@ChainList << chain_tmp
|
603
|
+
end
|
604
|
+
end
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
608
|
+
# CreateChainBatch返回参数结构体
|
609
|
+
class CreateChainBatchResponse < TencentCloud::Common::AbstractModel
|
610
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
611
|
+
# @type RequestId: String
|
612
|
+
|
613
|
+
attr_accessor :RequestId
|
614
|
+
|
615
|
+
def initialize(requestid=nil)
|
616
|
+
@RequestId = requestid
|
617
|
+
end
|
618
|
+
|
619
|
+
def deserialize(params)
|
620
|
+
@RequestId = params['RequestId']
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
525
624
|
# CreateCodeBatch请求参数结构体
|
526
625
|
class CreateCodeBatchRequest < TencentCloud::Common::AbstractModel
|
527
626
|
# @param CorpId: 企业ID
|
@@ -2639,8 +2738,8 @@ module TencentCloud
|
|
2639
2738
|
|
2640
2739
|
attr_accessor :Products, :TotalCount, :ScanLogs, :RequestId
|
2641
2740
|
extend Gem::Deprecate
|
2642
|
-
deprecate :Products, :none, 2024,
|
2643
|
-
deprecate :Products=, :none, 2024,
|
2741
|
+
deprecate :Products, :none, 2024, 6
|
2742
|
+
deprecate :Products=, :none, 2024, 6
|
2644
2743
|
|
2645
2744
|
def initialize(products=nil, totalcount=nil, scanlogs=nil, requestid=nil)
|
2646
2745
|
@Products = products
|
@@ -3051,8 +3150,8 @@ module TencentCloud
|
|
3051
3150
|
|
3052
3151
|
attr_accessor :Value
|
3053
3152
|
extend Gem::Deprecate
|
3054
|
-
deprecate :Value, :none, 2024,
|
3055
|
-
deprecate :Value=, :none, 2024,
|
3153
|
+
deprecate :Value, :none, 2024, 6
|
3154
|
+
deprecate :Value=, :none, 2024, 6
|
3056
3155
|
|
3057
3156
|
def initialize(value=nil)
|
3058
3157
|
@Value = value
|
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.838
|
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-06-
|
11
|
+
date: 2024-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|