tencentcloud-sdk-tiia 3.0.492 → 3.0.494

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: c03197747276aa226841273830effe0fdf1c426a
4
- data.tar.gz: 28809ca7096be1382dd896ecca7552eeb7f0511f
3
+ metadata.gz: 6026af5a84ebfc1c7a5954633af257ab921f7234
4
+ data.tar.gz: 20f31d73cd1f33e290ce3092c994fcc56b8862d7
5
5
  SHA512:
6
- metadata.gz: 6ae94d44e8d2746fe9c57edf7803251943a09b1bd2d041d21d61a61b7a750fa86d9cf638003ec3c0f62324e77c11168cdfa0c4b4dbfc8ce6c361ea0c457785e8
7
- data.tar.gz: 36fa33ddfd055730849c514652e2d25cbfc35d5b2c59157792ed2d48eb674b294f384129010654920c672a48e123b757244f1abe04da657a7e02a59776548b06
6
+ metadata.gz: b57fdb9f7c8e5515719f80afb31deaad216d0c39b5cfc544b926f3c21f2127bc7d3e9a3cedf1f5486a7412094220786d4d1fafb139afd40b409f17cf257a893e
7
+ data.tar.gz: effeab3eb1eb4bf264e51525e68dbc8fe83ef4d04129ae797e7710efce2a5323104ff93f73f1e6a03d7f95ffe462626b99feeff1573ea6bef323a27d52eaef98
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.492
1
+ 3.0.494
@@ -668,6 +668,7 @@ module TencentCloud
668
668
  # >
669
669
  # - 可前往 [图像搜索](https://cloud.tencent.com/document/product/1589) 产品文档中查看更多产品信息。
670
670
 
671
+
671
672
  # @param request: Request instance for SearchImage.
672
673
  # @type request: :class:`Tencentcloud::tiia::V20190529::SearchImageRequest`
673
674
  # @rtype: :class:`Tencentcloud::tiia::V20190529::SearchImageResponse`
@@ -690,6 +691,34 @@ module TencentCloud
690
691
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
691
692
  end
692
693
 
694
+ # 本接口支持根据图库ID、物品ID、图片名称来修改图片信息(暂仅支持修改Tags)
695
+
696
+ # >
697
+ # - 可前往 [图像搜索](https://cloud.tencent.com/document/product/1589) 产品文档中查看更多产品信息。
698
+
699
+
700
+ # @param request: Request instance for UpdateImage.
701
+ # @type request: :class:`Tencentcloud::tiia::V20190529::UpdateImageRequest`
702
+ # @rtype: :class:`Tencentcloud::tiia::V20190529::UpdateImageResponse`
703
+ def UpdateImage(request)
704
+ body = send_request('UpdateImage', request.serialize)
705
+ response = JSON.parse(body)
706
+ if response['Response'].key?('Error') == false
707
+ model = UpdateImageResponse.new
708
+ model.deserialize(response['Response'])
709
+ model
710
+ else
711
+ code = response['Response']['Error']['Code']
712
+ message = response['Response']['Error']['Message']
713
+ reqid = response['Response']['RequestId']
714
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
715
+ end
716
+ rescue TencentCloud::Common::TencentCloudSDKException => e
717
+ raise e
718
+ rescue StandardError => e
719
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
720
+ end
721
+
693
722
 
694
723
  end
695
724
  end
@@ -2355,6 +2355,50 @@ module TencentCloud
2355
2355
  end
2356
2356
  end
2357
2357
 
2358
+ # UpdateImage请求参数结构体
2359
+ class UpdateImageRequest < TencentCloud::Common::AbstractModel
2360
+ # @param GroupId: 图库ID。
2361
+ # @type GroupId: String
2362
+ # @param EntityId: 物品ID,最多支持64个字符。
2363
+ # @type EntityId: String
2364
+ # @param PicName: 图片名称,最多支持64个字符。
2365
+ # @type PicName: String
2366
+ # @param Tags: 新的自定义标签,最多不超过10个,格式为JSON。
2367
+ # @type Tags: String
2368
+
2369
+ attr_accessor :GroupId, :EntityId, :PicName, :Tags
2370
+
2371
+ def initialize(groupid=nil, entityid=nil, picname=nil, tags=nil)
2372
+ @GroupId = groupid
2373
+ @EntityId = entityid
2374
+ @PicName = picname
2375
+ @Tags = tags
2376
+ end
2377
+
2378
+ def deserialize(params)
2379
+ @GroupId = params['GroupId']
2380
+ @EntityId = params['EntityId']
2381
+ @PicName = params['PicName']
2382
+ @Tags = params['Tags']
2383
+ end
2384
+ end
2385
+
2386
+ # UpdateImage返回参数结构体
2387
+ class UpdateImageResponse < TencentCloud::Common::AbstractModel
2388
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2389
+ # @type RequestId: String
2390
+
2391
+ attr_accessor :RequestId
2392
+
2393
+ def initialize(requestid=nil)
2394
+ @RequestId = requestid
2395
+ end
2396
+
2397
+ def deserialize(params)
2398
+ @RequestId = params['RequestId']
2399
+ end
2400
+ end
2401
+
2358
2402
  end
2359
2403
  end
2360
2404
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tiia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.492
4
+ version: 3.0.494
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-01-12 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common