tencentcloud-sdk-ims 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5bb759c6917f37519acda8b72885f6bfc5f7613a
4
+ data.tar.gz: ba0cf9fc99f9b6733e46aa4e7fe67d2c8527de94
5
+ SHA512:
6
+ metadata.gz: 721e931b73d0c0355d337a4eef7e6882519af85f4fc73e1a342c6a5e770a21b06b38e7ae4a5d7e121c38f4408e020e4bf9dfc6a0c661f0cd79cb8924e7d8cc01
7
+ data.tar.gz: 9179a9781f4e2d73b034b145b72d0afc637e0f8a972920a3e245c563132142f6baa14cfe743841734350d33c2f13e78b8473f6fca21651595e2f081a697ea95d
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20201229/client'
6
+ require_relative 'v20201229/models'
7
+
8
+ require_relative 'v20200713/client'
9
+ require_relative 'v20200713/models'
10
+
11
+ module TencentCloud
12
+ module Ims
13
+ end
14
+ end
@@ -0,0 +1,124 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Ims
21
+ module V20200713
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-07-13'
26
+ api_endpoint = 'ims.tencentcloudapi.com'
27
+ sdk_version = 'IMS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 控制台识别统计
33
+
34
+ # @param request: Request instance for DescribeImageStat.
35
+ # @type request: :class:`Tencentcloud::ims::V20200713::DescribeImageStatRequest`
36
+ # @rtype: :class:`Tencentcloud::ims::V20200713::DescribeImageStatResponse`
37
+ def DescribeImageStat(request)
38
+ body = send_request('DescribeImageStat', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeImageStatResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 图片机器审核明细
57
+
58
+ # @param request: Request instance for DescribeImsList.
59
+ # @type request: :class:`Tencentcloud::ims::V20200713::DescribeImsListRequest`
60
+ # @rtype: :class:`Tencentcloud::ims::V20200713::DescribeImsListResponse`
61
+ def DescribeImsList(request)
62
+ body = send_request('DescribeImsList', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeImsListResponse.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
+
80
+ # 图片内容检测服务(Image Moderation, IM)能自动扫描图片,识别可能令人反感、不安全或不适宜的内容,同时支持用户配置图片黑名单,打击自定义识别类型的图片。
81
+
82
+ # <div class="rno-api-explorer" style="margin-bottom:20px">
83
+ # <div class="rno-api-explorer-inner">
84
+ # <div class="rno-api-explorer-hd">
85
+ # <div class="rno-api-explorer-title">
86
+ # 关于版本迭代的描述
87
+ # </div>
88
+ # </div>
89
+ # <div class="rno-api-explorer-body">
90
+ # <div class="rno-api-explorer-cont">
91
+ # <p>当前页面版本为图片内容安全2020版本,2020.11.3日前接入的图片内容安全接口为2019版本,在此时间前接入的用户可直接访问以下链接进行维护操作:<a href="https://cloud.tencent.com/document/product/1125/38206" target="_blank">图片内容安全-2019版本</a></p>
92
+ # <p>2020版本相对2019版本进行了升级,支持更灵活的多场景业务策略配置以及更丰富的识别回调信息,满足不同业务的识别需求,建议按照2020版本接入指引进行接口升级;同时,2019版本也会持续维护直至用户不再使用为止。</p>
93
+ # </div>
94
+ # </div>
95
+ # </div>
96
+ # </div>
97
+
98
+ # @param request: Request instance for ImageModeration.
99
+ # @type request: :class:`Tencentcloud::ims::V20200713::ImageModerationRequest`
100
+ # @rtype: :class:`Tencentcloud::ims::V20200713::ImageModerationResponse`
101
+ def ImageModeration(request)
102
+ body = send_request('ImageModeration', request.serialize)
103
+ response = JSON.parse(body)
104
+ if response['Response'].key?('Error') == false
105
+ model = ImageModerationResponse.new
106
+ model.deserialize(response['Response'])
107
+ model
108
+ else
109
+ code = response['Response']['Error']['Code']
110
+ message = response['Response']['Error']['Message']
111
+ reqid = response['Response']['RequestId']
112
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
113
+ end
114
+ rescue TencentCloud::Common::TencentCloudSDKException => e
115
+ raise e
116
+ rescue StandardError => e
117
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
118
+ end
119
+
120
+
121
+ end
122
+ end
123
+ end
124
+ end