tencentcloud-sdk-tiia 3.0.492 → 3.0.493
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190529/client.rb +29 -0
- data/lib/v20190529/models.rb +44 -0
- 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: 5244e15843d4605261bc1abd0c0053e9a2651016
|
4
|
+
data.tar.gz: 4db54afe93e6036ce911dd09bf76ab639b315787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b2a05da78b825d132c5ab79f0b5938ec4ef1f7f589d4da9eb95da894743e0b484f6f34a3aff922a7103818dacff06408e0a511bd00507992783a1310bed249e
|
7
|
+
data.tar.gz: fdc765ad289db91156569ad2736f5809d07c229eba9678ff8ab680d752fb85fc2d77aef1fe623f5b32c489e123e623d737bc07c80b5f37d228f18115d753f913
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.493
|
data/lib/v20190529/client.rb
CHANGED
@@ -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
|
data/lib/v20190529/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 3.0.493
|
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-
|
11
|
+
date: 2023-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|