tencentcloud-sdk-pds 1.0.200

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 986da3f79d1fdf4925f41b289a7ea09c89b344d9
4
+ data.tar.gz: f84a905a54943cda27d5865a08941e604ab746cb
5
+ SHA512:
6
+ metadata.gz: b0767a207b76e035bfd7909516f5eb6980e7e3431f35fed2c89f5a3bc66d4c9c274d072683a600775977140a4ceaa6d27c9b5f6c912f3bbd0d38414afc59c677
7
+ data.tar.gz: 14fdaff780c9a7b782fa5c54948fa75c5d31eed54c46fff243db905ca1e4cea74a23f571a3605d420c35129261e1f5fd203b9870403bd01721b7c7ddf888a932
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20210701/client'
6
+ require_relative 'v20210701/models'
7
+
8
+ module TencentCloud
9
+ module Pds
10
+ end
11
+ end
@@ -0,0 +1,84 @@
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 Pds
21
+ module V20210701
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2021-07-01'
26
+ api_endpoint = 'pds.tencentcloudapi.com'
27
+ sdk_version = 'PDS_' + 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 DescribeNewUserAcquisition.
35
+ # @type request: :class:`Tencentcloud::pds::V20210701::DescribeNewUserAcquisitionRequest`
36
+ # @rtype: :class:`Tencentcloud::pds::V20210701::DescribeNewUserAcquisitionResponse`
37
+ def DescribeNewUserAcquisition(request)
38
+ body = send_request('DescribeNewUserAcquisition', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeNewUserAcquisitionResponse.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 DescribeStockEstimation.
59
+ # @type request: :class:`Tencentcloud::pds::V20210701::DescribeStockEstimationRequest`
60
+ # @rtype: :class:`Tencentcloud::pds::V20210701::DescribeStockEstimationResponse`
61
+ def DescribeStockEstimation(request)
62
+ body = send_request('DescribeStockEstimation', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeStockEstimationResponse.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
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,163 @@
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 Pds
19
+ module V20210701
20
+ # DescribeNewUserAcquisition请求参数结构体
21
+ class DescribeNewUserAcquisitionRequest < TencentCloud::Common::AbstractModel
22
+ # @param ServiceParams: 用户信息
23
+ # @type ServiceParams: :class:`Tencentcloud::Pds.v20210701.models.UserInfos`
24
+
25
+ attr_accessor :ServiceParams
26
+
27
+ def initialize(serviceparams=nil)
28
+ @ServiceParams = serviceparams
29
+ end
30
+
31
+ def deserialize(params)
32
+ unless params['ServiceParams'].nil?
33
+ @ServiceParams = UserInfos.new
34
+ @ServiceParams.deserialize(params['ServiceParams'])
35
+ end
36
+ end
37
+ end
38
+
39
+ # DescribeNewUserAcquisition返回参数结构体
40
+ class DescribeNewUserAcquisitionResponse < TencentCloud::Common::AbstractModel
41
+ # @param ServiceRsp: 用户信誉分,1-5从低到高
42
+ # @type ServiceRsp: :class:`Tencentcloud::Pds.v20210701.models.Score`
43
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
44
+ # @type RequestId: String
45
+
46
+ attr_accessor :ServiceRsp, :RequestId
47
+
48
+ def initialize(servicersp=nil, requestid=nil)
49
+ @ServiceRsp = servicersp
50
+ @RequestId = requestid
51
+ end
52
+
53
+ def deserialize(params)
54
+ unless params['ServiceRsp'].nil?
55
+ @ServiceRsp = Score.new
56
+ @ServiceRsp.deserialize(params['ServiceRsp'])
57
+ end
58
+ @RequestId = params['RequestId']
59
+ end
60
+ end
61
+
62
+ # DescribeStockEstimation请求参数结构体
63
+ class DescribeStockEstimationRequest < TencentCloud::Common::AbstractModel
64
+ # @param ServiceParams: 用户信息
65
+ # @type ServiceParams: :class:`Tencentcloud::Pds.v20210701.models.UserInfos`
66
+
67
+ attr_accessor :ServiceParams
68
+
69
+ def initialize(serviceparams=nil)
70
+ @ServiceParams = serviceparams
71
+ end
72
+
73
+ def deserialize(params)
74
+ unless params['ServiceParams'].nil?
75
+ @ServiceParams = UserInfos.new
76
+ @ServiceParams.deserialize(params['ServiceParams'])
77
+ end
78
+ end
79
+ end
80
+
81
+ # DescribeStockEstimation返回参数结构体
82
+ class DescribeStockEstimationResponse < TencentCloud::Common::AbstractModel
83
+ # @param ServiceRsp: 用户信誉分,1-5从低到高
84
+ # @type ServiceRsp: :class:`Tencentcloud::Pds.v20210701.models.Score`
85
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
86
+ # @type RequestId: String
87
+
88
+ attr_accessor :ServiceRsp, :RequestId
89
+
90
+ def initialize(servicersp=nil, requestid=nil)
91
+ @ServiceRsp = servicersp
92
+ @RequestId = requestid
93
+ end
94
+
95
+ def deserialize(params)
96
+ unless params['ServiceRsp'].nil?
97
+ @ServiceRsp = Score.new
98
+ @ServiceRsp.deserialize(params['ServiceRsp'])
99
+ end
100
+ @RequestId = params['RequestId']
101
+ end
102
+ end
103
+
104
+ # 信誉分,1-5从低到高
105
+ class Score < TencentCloud::Common::AbstractModel
106
+ # @param Star: 信誉分,1-5从低到高
107
+ # @type Star: Integer
108
+
109
+ attr_accessor :Star
110
+
111
+ def initialize(star=nil)
112
+ @Star = star
113
+ end
114
+
115
+ def deserialize(params)
116
+ @Star = params['Star']
117
+ end
118
+ end
119
+
120
+ # 用户信息
121
+ class UserInfos < TencentCloud::Common::AbstractModel
122
+ # @param PhoneNum: 用户的手机号
123
+ # @type PhoneNum: String
124
+ # @param Openid: 用户的微信OpenID
125
+ # @type Openid: String
126
+ # @param IP: 用户移动设备的客户端IP
127
+ # @type IP: String
128
+ # @param WiFiBssid: 用户WiFi的BSSID
129
+ # @type WiFiBssid: String
130
+ # @param IMEI: 用户Android设备的IMEI
131
+ # @type IMEI: String
132
+ # @param OAID: 用户Android设备的OAID
133
+ # @type OAID: String
134
+ # @param IDFA: 用户iOS设备的IDFA
135
+ # @type IDFA: String
136
+
137
+ attr_accessor :PhoneNum, :Openid, :IP, :WiFiBssid, :IMEI, :OAID, :IDFA
138
+
139
+ def initialize(phonenum=nil, openid=nil, ip=nil, wifibssid=nil, imei=nil, oaid=nil, idfa=nil)
140
+ @PhoneNum = phonenum
141
+ @Openid = openid
142
+ @IP = ip
143
+ @WiFiBssid = wifibssid
144
+ @IMEI = imei
145
+ @OAID = oaid
146
+ @IDFA = idfa
147
+ end
148
+
149
+ def deserialize(params)
150
+ @PhoneNum = params['PhoneNum']
151
+ @Openid = params['Openid']
152
+ @IP = params['IP']
153
+ @WiFiBssid = params['WiFiBssid']
154
+ @IMEI = params['IMEI']
155
+ @OAID = params['OAID']
156
+ @IDFA = params['IDFA']
157
+ end
158
+ end
159
+
160
+ end
161
+ end
162
+ end
163
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-pds
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
+ PDS.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-pds.rb
38
+ - lib/v20210701/client.rb
39
+ - lib/v20210701/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-pds
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 - PDS
66
+ test_files: []