tencentcloud-sdk-trp 3.0.551 → 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: 56fbe49f4dfd8ef5db87663be5542a903d277157
4
- data.tar.gz: f0bccd0b80e7deb295cab160f6e099612270a687
3
+ metadata.gz: a3ea5327265e1b8df0e3fafac5a0fe6eab4353f7
4
+ data.tar.gz: 5c1aee180b7eeb78591bd85b07de2a7e24f67e5e
5
5
  SHA512:
6
- metadata.gz: 93a572dca79fca3d921facc4c459552f513f0ed772684af6ab84bdbe007fd1bfc601e0ff7187a58159895f58fdf5540cf78bc66b99cc718f7e12ded66f49008d
7
- data.tar.gz: 78ad1d08a1180d587a15f7c1e730e043a804679cb4a60d648a90578e13936fee8b905734059ffc461088eca8b73eb5fa7609331004b226a552b4f96c30cb1596
6
+ metadata.gz: 53c23f54469beddf78cc7782d345fcc9e74d20c23f03ed42f232614d39ce8863da52c682b20acf9471eb61b14c371d3f3f850ea73051a3be5ef997f89627087a
7
+ data.tar.gz: 50dd061aa0dc7c5b12598f57374e9dfa8ae321629718f3d310d4aa0c112908bbdb245f71ee3f9904e1b7fd687ccb29de647ca8e3ec12cdb227ae0f6c54fd1095
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.551
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.551
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-14 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