tencentcloud-sdk-trp 3.0.550 → 3.0.552

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9345c409eb57b8777dd5e3d9bd733545b8c3cf4a
4
- data.tar.gz: f929aa1cef12e63e41a4492178cb4216ddf023ef
3
+ metadata.gz: a3ea5327265e1b8df0e3fafac5a0fe6eab4353f7
4
+ data.tar.gz: 5c1aee180b7eeb78591bd85b07de2a7e24f67e5e
5
5
  SHA512:
6
- metadata.gz: 951810b04a70f247edbc2715722781786aa12c072803dc404bb58459ac37066e9a4ac64d145b8ef319b09062822cbc92df9d3e1df5c9f7709eaf33943a739464
7
- data.tar.gz: 5fae35d3c46f7454374d586b73d220a22036c06a14b1e48e4c94d87ad513306c2faaa2ec60b106c879a8018c4b6f7d9aeff265055b89c931eedd97530e69371e
6
+ metadata.gz: 53c23f54469beddf78cc7782d345fcc9e74d20c23f03ed42f232614d39ce8863da52c682b20acf9471eb61b14c371d3f3f850ea73051a3be5ef997f89627087a
7
+ data.tar.gz: 50dd061aa0dc7c5b12598f57374e9dfa8ae321629718f3d310d4aa0c112908bbdb245f71ee3f9904e1b7fd687ccb29de647ca8e3ec12cdb227ae0f6c54fd1095
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.550
1
+ 3.0.552
@@ -846,6 +846,30 @@ module TencentCloud
846
846
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
847
847
  end
848
848
 
849
+ # 查询溯源ID查溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的
850
+
851
+ # @param request: Request instance for DescribeTraceDataById.
852
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeTraceDataByIdRequest`
853
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeTraceDataByIdResponse`
854
+ def DescribeTraceDataById(request)
855
+ body = send_request('DescribeTraceDataById', request.serialize)
856
+ response = JSON.parse(body)
857
+ if response['Response'].key?('Error') == false
858
+ model = DescribeTraceDataByIdResponse.new
859
+ model.deserialize(response['Response'])
860
+ model
861
+ else
862
+ code = response['Response']['Error']['Code']
863
+ message = response['Response']['Error']['Message']
864
+ reqid = response['Response']['RequestId']
865
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
866
+ end
867
+ rescue TencentCloud::Common::TencentCloudSDKException => e
868
+ raise e
869
+ rescue StandardError => e
870
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
871
+ end
872
+
849
873
  # 查询溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的
850
874
 
851
875
  # @param request: Request instance for DescribeTraceDataList.
@@ -2315,6 +2315,49 @@ module TencentCloud
2315
2315
  end
2316
2316
  end
2317
2317
 
2318
+ # DescribeTraceDataById请求参数结构体
2319
+ class DescribeTraceDataByIdRequest < TencentCloud::Common::AbstractModel
2320
+ # @param Id: 溯源ID
2321
+ # @type Id: String
2322
+ # @param CorpId: 企业ID
2323
+ # @type CorpId: Integer
2324
+
2325
+ attr_accessor :Id, :CorpId
2326
+
2327
+ def initialize(id=nil, corpid=nil)
2328
+ @Id = id
2329
+ @CorpId = corpid
2330
+ end
2331
+
2332
+ def deserialize(params)
2333
+ @Id = params['Id']
2334
+ @CorpId = params['CorpId']
2335
+ end
2336
+ end
2337
+
2338
+ # DescribeTraceDataById返回参数结构体
2339
+ class DescribeTraceDataByIdResponse < TencentCloud::Common::AbstractModel
2340
+ # @param TraceData: 无
2341
+ # @type TraceData: :class:`Tencentcloud::Trp.v20210515.models.TraceData`
2342
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2343
+ # @type RequestId: String
2344
+
2345
+ attr_accessor :TraceData, :RequestId
2346
+
2347
+ def initialize(tracedata=nil, requestid=nil)
2348
+ @TraceData = tracedata
2349
+ @RequestId = requestid
2350
+ end
2351
+
2352
+ def deserialize(params)
2353
+ unless params['TraceData'].nil?
2354
+ @TraceData = TraceData.new
2355
+ @TraceData.deserialize(params['TraceData'])
2356
+ end
2357
+ @RequestId = params['RequestId']
2358
+ end
2359
+ end
2360
+
2318
2361
  # DescribeTraceDataList请求参数结构体
2319
2362
  class DescribeTraceDataListRequest < TencentCloud::Common::AbstractModel
2320
2363
  # @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.550
4
+ version: 3.0.552
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-13 00:00:00.000000000 Z
11
+ date: 2023-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common