tencentcloud-sdk-smpn 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-smpn.rb +11 -0
- data/lib/v20190822/client.rb +156 -0
- data/lib/v20190822/models.rb +457 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 84e51ebc05ed6ecf0a7ed89a5192a805aeecbdc5
|
4
|
+
data.tar.gz: 0371eafaadce20bd748f105797e477cb4fc82ac1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 888c5a034e5aa11a6e97fface4e0cc96d1d49ae7531f4a19a6c65134ce388c0c4d49e161596bdc8df2ff2e62fc3eabb9820f3fe2b2bfa96cdbc21973ae14a9a0
|
7
|
+
data.tar.gz: d8a76aaa21dfa7345e1d61a7d70dbd14367c15a62be492a4dcfc3fc3dd1e83bbc15be07928fdc0273c738f1999bc94c7f48e865f3bb52e7313f4278feec49fac
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,156 @@
|
|
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 Smpn
|
21
|
+
module V20190822
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2019-08-22'
|
26
|
+
api_endpoint = 'smpn.tencentcloudapi.com'
|
27
|
+
sdk_version = 'SMPN_' + 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 CreateSmpnEpa.
|
35
|
+
# @type request: :class:`Tencentcloud::smpn::V20190822::CreateSmpnEpaRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::smpn::V20190822::CreateSmpnEpaResponse`
|
37
|
+
def CreateSmpnEpa(request)
|
38
|
+
body = send_request('CreateSmpnEpa', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateSmpnEpaResponse.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 DescribeSmpnChp.
|
59
|
+
# @type request: :class:`Tencentcloud::smpn::V20190822::DescribeSmpnChpRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::smpn::V20190822::DescribeSmpnChpResponse`
|
61
|
+
def DescribeSmpnChp(request)
|
62
|
+
body = send_request('DescribeSmpnChp', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeSmpnChpResponse.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
|
+
# 虚假号码识别
|
81
|
+
|
82
|
+
# @param request: Request instance for DescribeSmpnFnr.
|
83
|
+
# @type request: :class:`Tencentcloud::smpn::V20190822::DescribeSmpnFnrRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::smpn::V20190822::DescribeSmpnFnrResponse`
|
85
|
+
def DescribeSmpnFnr(request)
|
86
|
+
body = send_request('DescribeSmpnFnr', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DescribeSmpnFnrResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
104
|
+
# 号码营销监控
|
105
|
+
|
106
|
+
# @param request: Request instance for DescribeSmpnMhm.
|
107
|
+
# @type request: :class:`Tencentcloud::smpn::V20190822::DescribeSmpnMhmRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::smpn::V20190822::DescribeSmpnMhmResponse`
|
109
|
+
def DescribeSmpnMhm(request)
|
110
|
+
body = send_request('DescribeSmpnMhm', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = DescribeSmpnMhmResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
128
|
+
# 查询号码恶意标记等级
|
129
|
+
|
130
|
+
# @param request: Request instance for DescribeSmpnMrl.
|
131
|
+
# @type request: :class:`Tencentcloud::smpn::V20190822::DescribeSmpnMrlRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::smpn::V20190822::DescribeSmpnMrlResponse`
|
133
|
+
def DescribeSmpnMrl(request)
|
134
|
+
body = send_request('DescribeSmpnMrl', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DescribeSmpnMrlResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -0,0 +1,457 @@
|
|
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
|
+
module TencentCloud
|
18
|
+
module Smpn
|
19
|
+
module V20190822
|
20
|
+
# 终端骚扰保护请求内容
|
21
|
+
class CHPRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param PhoneNumber: 电话号码
|
23
|
+
# @type PhoneNumber: String
|
24
|
+
|
25
|
+
attr_accessor :PhoneNumber
|
26
|
+
|
27
|
+
def initialize(phonenumber=nil)
|
28
|
+
@PhoneNumber = phonenumber
|
29
|
+
end
|
30
|
+
|
31
|
+
def deserialize(params)
|
32
|
+
@PhoneNumber = params['PhoneNumber']
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# 终端骚扰保护
|
37
|
+
class CHPResponse < TencentCloud::Common::AbstractModel
|
38
|
+
# @param TagType: 标记类型
|
39
|
+
# 0: 无标记
|
40
|
+
# 50:骚扰电话
|
41
|
+
# 51:房产中介
|
42
|
+
# 52:保险理财
|
43
|
+
# 53:广告推销
|
44
|
+
# 54:诈骗电话
|
45
|
+
# 55:快递电话
|
46
|
+
# 56:出租车专车
|
47
|
+
# @type TagType: Integer
|
48
|
+
# @param TagCount: 标记次数
|
49
|
+
# @type TagCount: Integer
|
50
|
+
|
51
|
+
attr_accessor :TagType, :TagCount
|
52
|
+
|
53
|
+
def initialize(tagtype=nil, tagcount=nil)
|
54
|
+
@TagType = tagtype
|
55
|
+
@TagCount = tagcount
|
56
|
+
end
|
57
|
+
|
58
|
+
def deserialize(params)
|
59
|
+
@TagType = params['TagType']
|
60
|
+
@TagCount = params['TagCount']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# CreateSmpnEpa请求参数结构体
|
65
|
+
class CreateSmpnEpaRequest < TencentCloud::Common::AbstractModel
|
66
|
+
# @param RequestData: 企业号码认证请求内容
|
67
|
+
# @type RequestData: :class:`Tencentcloud::Smpn.v20190822.models.EPARequest`
|
68
|
+
# @param ResourceId: 用于计费的资源ID
|
69
|
+
# @type ResourceId: String
|
70
|
+
|
71
|
+
attr_accessor :RequestData, :ResourceId
|
72
|
+
|
73
|
+
def initialize(requestdata=nil, resourceid=nil)
|
74
|
+
@RequestData = requestdata
|
75
|
+
@ResourceId = resourceid
|
76
|
+
end
|
77
|
+
|
78
|
+
def deserialize(params)
|
79
|
+
unless params['RequestData'].nil?
|
80
|
+
@RequestData = EPARequest.new
|
81
|
+
@RequestData.deserialize(params['RequestData'])
|
82
|
+
end
|
83
|
+
@ResourceId = params['ResourceId']
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# CreateSmpnEpa返回参数结构体
|
88
|
+
class CreateSmpnEpaResponse < TencentCloud::Common::AbstractModel
|
89
|
+
# @param ResponseData: 业号码认证回应内容
|
90
|
+
# @type ResponseData: :class:`Tencentcloud::Smpn.v20190822.models.EPAResponse`
|
91
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
92
|
+
# @type RequestId: String
|
93
|
+
|
94
|
+
attr_accessor :ResponseData, :RequestId
|
95
|
+
|
96
|
+
def initialize(responsedata=nil, requestid=nil)
|
97
|
+
@ResponseData = responsedata
|
98
|
+
@RequestId = requestid
|
99
|
+
end
|
100
|
+
|
101
|
+
def deserialize(params)
|
102
|
+
unless params['ResponseData'].nil?
|
103
|
+
@ResponseData = EPAResponse.new
|
104
|
+
@ResponseData.deserialize(params['ResponseData'])
|
105
|
+
end
|
106
|
+
@RequestId = params['RequestId']
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# DescribeSmpnChp请求参数结构体
|
111
|
+
class DescribeSmpnChpRequest < TencentCloud::Common::AbstractModel
|
112
|
+
# @param ResourceId: 客户用于计费的资源Id
|
113
|
+
# @type ResourceId: String
|
114
|
+
# @param RequestData: 终端骚扰保护请求
|
115
|
+
# @type RequestData: :class:`Tencentcloud::Smpn.v20190822.models.CHPRequest`
|
116
|
+
|
117
|
+
attr_accessor :ResourceId, :RequestData
|
118
|
+
|
119
|
+
def initialize(resourceid=nil, requestdata=nil)
|
120
|
+
@ResourceId = resourceid
|
121
|
+
@RequestData = requestdata
|
122
|
+
end
|
123
|
+
|
124
|
+
def deserialize(params)
|
125
|
+
@ResourceId = params['ResourceId']
|
126
|
+
unless params['RequestData'].nil?
|
127
|
+
@RequestData = CHPRequest.new
|
128
|
+
@RequestData.deserialize(params['RequestData'])
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
# DescribeSmpnChp返回参数结构体
|
134
|
+
class DescribeSmpnChpResponse < TencentCloud::Common::AbstractModel
|
135
|
+
# @param ResponseData: 终端骚扰保护回应
|
136
|
+
# @type ResponseData: :class:`Tencentcloud::Smpn.v20190822.models.CHPResponse`
|
137
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
138
|
+
# @type RequestId: String
|
139
|
+
|
140
|
+
attr_accessor :ResponseData, :RequestId
|
141
|
+
|
142
|
+
def initialize(responsedata=nil, requestid=nil)
|
143
|
+
@ResponseData = responsedata
|
144
|
+
@RequestId = requestid
|
145
|
+
end
|
146
|
+
|
147
|
+
def deserialize(params)
|
148
|
+
unless params['ResponseData'].nil?
|
149
|
+
@ResponseData = CHPResponse.new
|
150
|
+
@ResponseData.deserialize(params['ResponseData'])
|
151
|
+
end
|
152
|
+
@RequestId = params['RequestId']
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# DescribeSmpnFnr请求参数结构体
|
157
|
+
class DescribeSmpnFnrRequest < TencentCloud::Common::AbstractModel
|
158
|
+
# @param RequestData: 虚假号码识别请求内容
|
159
|
+
# @type RequestData: :class:`Tencentcloud::Smpn.v20190822.models.FNRRequest`
|
160
|
+
# @param ResourceId: 用于计费的资源ID
|
161
|
+
# @type ResourceId: String
|
162
|
+
|
163
|
+
attr_accessor :RequestData, :ResourceId
|
164
|
+
|
165
|
+
def initialize(requestdata=nil, resourceid=nil)
|
166
|
+
@RequestData = requestdata
|
167
|
+
@ResourceId = resourceid
|
168
|
+
end
|
169
|
+
|
170
|
+
def deserialize(params)
|
171
|
+
unless params['RequestData'].nil?
|
172
|
+
@RequestData = FNRRequest.new
|
173
|
+
@RequestData.deserialize(params['RequestData'])
|
174
|
+
end
|
175
|
+
@ResourceId = params['ResourceId']
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# DescribeSmpnFnr返回参数结构体
|
180
|
+
class DescribeSmpnFnrResponse < TencentCloud::Common::AbstractModel
|
181
|
+
# @param ResponseData: 虚假号码识别回应内容
|
182
|
+
# @type ResponseData: :class:`Tencentcloud::Smpn.v20190822.models.FNRResponse`
|
183
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
184
|
+
# @type RequestId: String
|
185
|
+
|
186
|
+
attr_accessor :ResponseData, :RequestId
|
187
|
+
|
188
|
+
def initialize(responsedata=nil, requestid=nil)
|
189
|
+
@ResponseData = responsedata
|
190
|
+
@RequestId = requestid
|
191
|
+
end
|
192
|
+
|
193
|
+
def deserialize(params)
|
194
|
+
unless params['ResponseData'].nil?
|
195
|
+
@ResponseData = FNRResponse.new
|
196
|
+
@ResponseData.deserialize(params['ResponseData'])
|
197
|
+
end
|
198
|
+
@RequestId = params['RequestId']
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# DescribeSmpnMhm请求参数结构体
|
203
|
+
class DescribeSmpnMhmRequest < TencentCloud::Common::AbstractModel
|
204
|
+
# @param RequestData: 号码营销监控请求内容
|
205
|
+
# @type RequestData: :class:`Tencentcloud::Smpn.v20190822.models.MHMRequest`
|
206
|
+
# @param ResourceId: 用于计费的资源ID
|
207
|
+
# @type ResourceId: String
|
208
|
+
|
209
|
+
attr_accessor :RequestData, :ResourceId
|
210
|
+
|
211
|
+
def initialize(requestdata=nil, resourceid=nil)
|
212
|
+
@RequestData = requestdata
|
213
|
+
@ResourceId = resourceid
|
214
|
+
end
|
215
|
+
|
216
|
+
def deserialize(params)
|
217
|
+
unless params['RequestData'].nil?
|
218
|
+
@RequestData = MHMRequest.new
|
219
|
+
@RequestData.deserialize(params['RequestData'])
|
220
|
+
end
|
221
|
+
@ResourceId = params['ResourceId']
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
# DescribeSmpnMhm返回参数结构体
|
226
|
+
class DescribeSmpnMhmResponse < TencentCloud::Common::AbstractModel
|
227
|
+
# @param ResponseData: 号码营销监控回应内容
|
228
|
+
# @type ResponseData: :class:`Tencentcloud::Smpn.v20190822.models.MHMResponse`
|
229
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
230
|
+
# @type RequestId: String
|
231
|
+
|
232
|
+
attr_accessor :ResponseData, :RequestId
|
233
|
+
|
234
|
+
def initialize(responsedata=nil, requestid=nil)
|
235
|
+
@ResponseData = responsedata
|
236
|
+
@RequestId = requestid
|
237
|
+
end
|
238
|
+
|
239
|
+
def deserialize(params)
|
240
|
+
unless params['ResponseData'].nil?
|
241
|
+
@ResponseData = MHMResponse.new
|
242
|
+
@ResponseData.deserialize(params['ResponseData'])
|
243
|
+
end
|
244
|
+
@RequestId = params['RequestId']
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
# DescribeSmpnMrl请求参数结构体
|
249
|
+
class DescribeSmpnMrlRequest < TencentCloud::Common::AbstractModel
|
250
|
+
# @param RequestData: 恶意标记等级请求内容
|
251
|
+
# @type RequestData: :class:`Tencentcloud::Smpn.v20190822.models.MRLRequest`
|
252
|
+
# @param ResourceId: 用于计费的资源ID
|
253
|
+
# @type ResourceId: String
|
254
|
+
|
255
|
+
attr_accessor :RequestData, :ResourceId
|
256
|
+
|
257
|
+
def initialize(requestdata=nil, resourceid=nil)
|
258
|
+
@RequestData = requestdata
|
259
|
+
@ResourceId = resourceid
|
260
|
+
end
|
261
|
+
|
262
|
+
def deserialize(params)
|
263
|
+
unless params['RequestData'].nil?
|
264
|
+
@RequestData = MRLRequest.new
|
265
|
+
@RequestData.deserialize(params['RequestData'])
|
266
|
+
end
|
267
|
+
@ResourceId = params['ResourceId']
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
# DescribeSmpnMrl返回参数结构体
|
272
|
+
class DescribeSmpnMrlResponse < TencentCloud::Common::AbstractModel
|
273
|
+
# @param ResponseData: 恶意标记等级回应内容
|
274
|
+
# @type ResponseData: :class:`Tencentcloud::Smpn.v20190822.models.MRLResponse`
|
275
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
276
|
+
# @type RequestId: String
|
277
|
+
|
278
|
+
attr_accessor :ResponseData, :RequestId
|
279
|
+
|
280
|
+
def initialize(responsedata=nil, requestid=nil)
|
281
|
+
@ResponseData = responsedata
|
282
|
+
@RequestId = requestid
|
283
|
+
end
|
284
|
+
|
285
|
+
def deserialize(params)
|
286
|
+
unless params['ResponseData'].nil?
|
287
|
+
@ResponseData = MRLResponse.new
|
288
|
+
@ResponseData.deserialize(params['ResponseData'])
|
289
|
+
end
|
290
|
+
@RequestId = params['RequestId']
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
# 企业号码认证请求
|
295
|
+
class EPARequest < TencentCloud::Common::AbstractModel
|
296
|
+
# @param PhoneNumber: 电话号码
|
297
|
+
# @type PhoneNumber: String
|
298
|
+
# @param Name: 黄页名称
|
299
|
+
# @type Name: String
|
300
|
+
|
301
|
+
attr_accessor :PhoneNumber, :Name
|
302
|
+
|
303
|
+
def initialize(phonenumber=nil, name=nil)
|
304
|
+
@PhoneNumber = phonenumber
|
305
|
+
@Name = name
|
306
|
+
end
|
307
|
+
|
308
|
+
def deserialize(params)
|
309
|
+
@PhoneNumber = params['PhoneNumber']
|
310
|
+
@Name = params['Name']
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
# 企业号码认证回应
|
315
|
+
class EPAResponse < TencentCloud::Common::AbstractModel
|
316
|
+
# @param RetCode: 0成功 其他失败
|
317
|
+
# @type RetCode: Integer
|
318
|
+
|
319
|
+
attr_accessor :RetCode
|
320
|
+
|
321
|
+
def initialize(retcode=nil)
|
322
|
+
@RetCode = retcode
|
323
|
+
end
|
324
|
+
|
325
|
+
def deserialize(params)
|
326
|
+
@RetCode = params['RetCode']
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# 虚假号码识别请求
|
331
|
+
class FNRRequest < TencentCloud::Common::AbstractModel
|
332
|
+
# @param PhoneNumber: 电话号码
|
333
|
+
# @type PhoneNumber: String
|
334
|
+
|
335
|
+
attr_accessor :PhoneNumber
|
336
|
+
|
337
|
+
def initialize(phonenumber=nil)
|
338
|
+
@PhoneNumber = phonenumber
|
339
|
+
end
|
340
|
+
|
341
|
+
def deserialize(params)
|
342
|
+
@PhoneNumber = params['PhoneNumber']
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
# 虚假号码识别回应
|
347
|
+
class FNRResponse < TencentCloud::Common::AbstractModel
|
348
|
+
# @param Status: 虚假号码描述
|
349
|
+
# @type Status: Integer
|
350
|
+
|
351
|
+
attr_accessor :Status
|
352
|
+
|
353
|
+
def initialize(status=nil)
|
354
|
+
@Status = status
|
355
|
+
end
|
356
|
+
|
357
|
+
def deserialize(params)
|
358
|
+
@Status = params['Status']
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
# 号码营销监控请求
|
363
|
+
class MHMRequest < TencentCloud::Common::AbstractModel
|
364
|
+
# @param PhoneNumber: 电话号码
|
365
|
+
# @type PhoneNumber: String
|
366
|
+
|
367
|
+
attr_accessor :PhoneNumber
|
368
|
+
|
369
|
+
def initialize(phonenumber=nil)
|
370
|
+
@PhoneNumber = phonenumber
|
371
|
+
end
|
372
|
+
|
373
|
+
def deserialize(params)
|
374
|
+
@PhoneNumber = params['PhoneNumber']
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
# 号码营销监控回应
|
379
|
+
class MHMResponse < TencentCloud::Common::AbstractModel
|
380
|
+
# @param TagType: 标记类型
|
381
|
+
# 0: 无标记
|
382
|
+
# 50:骚扰电话
|
383
|
+
# 51:房产中介
|
384
|
+
# 52:保险理财
|
385
|
+
# 53:广告推销
|
386
|
+
# 54:诈骗电话
|
387
|
+
# 55:快递电话
|
388
|
+
# 56:出租车专车
|
389
|
+
# @type TagType: Integer
|
390
|
+
# @param TagCount: 标记次数
|
391
|
+
# @type TagCount: Integer
|
392
|
+
|
393
|
+
attr_accessor :TagType, :TagCount
|
394
|
+
|
395
|
+
def initialize(tagtype=nil, tagcount=nil)
|
396
|
+
@TagType = tagtype
|
397
|
+
@TagCount = tagcount
|
398
|
+
end
|
399
|
+
|
400
|
+
def deserialize(params)
|
401
|
+
@TagType = params['TagType']
|
402
|
+
@TagCount = params['TagCount']
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
# 号码恶意标记等级请求
|
407
|
+
class MRLRequest < TencentCloud::Common::AbstractModel
|
408
|
+
# @param PhoneNumber: 电话号码
|
409
|
+
# @type PhoneNumber: String
|
410
|
+
|
411
|
+
attr_accessor :PhoneNumber
|
412
|
+
|
413
|
+
def initialize(phonenumber=nil)
|
414
|
+
@PhoneNumber = phonenumber
|
415
|
+
end
|
416
|
+
|
417
|
+
def deserialize(params)
|
418
|
+
@PhoneNumber = params['PhoneNumber']
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
# 号码恶意标记等级
|
423
|
+
class MRLResponse < TencentCloud::Common::AbstractModel
|
424
|
+
# @param DisturbLevel: 骚扰电话恶意标记等级
|
425
|
+
# @type DisturbLevel: Integer
|
426
|
+
# @param HouseAgentLevel: 房产中介恶意标记等级
|
427
|
+
# @type HouseAgentLevel: Integer
|
428
|
+
# @param InsuranceLevel: 保险理财恶意标记等级
|
429
|
+
# @type InsuranceLevel: Integer
|
430
|
+
# @param SalesLevel: 广告推销恶意标记等级
|
431
|
+
# @type SalesLevel: Integer
|
432
|
+
# @param CheatLevel: 诈骗电话恶意标记等级
|
433
|
+
# @type CheatLevel: Integer
|
434
|
+
|
435
|
+
attr_accessor :DisturbLevel, :HouseAgentLevel, :InsuranceLevel, :SalesLevel, :CheatLevel
|
436
|
+
|
437
|
+
def initialize(disturblevel=nil, houseagentlevel=nil, insurancelevel=nil, saleslevel=nil, cheatlevel=nil)
|
438
|
+
@DisturbLevel = disturblevel
|
439
|
+
@HouseAgentLevel = houseagentlevel
|
440
|
+
@InsuranceLevel = insurancelevel
|
441
|
+
@SalesLevel = saleslevel
|
442
|
+
@CheatLevel = cheatlevel
|
443
|
+
end
|
444
|
+
|
445
|
+
def deserialize(params)
|
446
|
+
@DisturbLevel = params['DisturbLevel']
|
447
|
+
@HouseAgentLevel = params['HouseAgentLevel']
|
448
|
+
@InsuranceLevel = params['InsuranceLevel']
|
449
|
+
@SalesLevel = params['SalesLevel']
|
450
|
+
@CheatLevel = params['CheatLevel']
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
454
|
+
end
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-smpn
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.200
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tencentcloud-sdk-common
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
description: Tencent Cloud Ruby SDK is the official software development kit, which
|
28
|
+
allows Ruby developers to write software that makes use of Tencent Cloud service
|
29
|
+
SMPN.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-smpn.rb
|
38
|
+
- lib/v20190822/client.rb
|
39
|
+
- lib/v20190822/models.rb
|
40
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
|
+
licenses:
|
42
|
+
- Apache-2.0
|
43
|
+
metadata:
|
44
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-smpn
|
45
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.6.14
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Tencent Cloud SDK for Ruby - SMPN
|
66
|
+
test_files: []
|