tencentcloud-sdk-bma 3.0.508 → 3.0.509

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: 7b2585f1f2bc8351b124314d36bb5c47955161a1
4
- data.tar.gz: 3042d5f804ab63c489031fbd8c43f8169aca84af
3
+ metadata.gz: d16343a7b31c4b6d8294fd88291cef18b6b3b8c2
4
+ data.tar.gz: a43896079cbd0695db14116f144692c3c5599546
5
5
  SHA512:
6
- metadata.gz: e87869c097715061eaf0c3ba2dabecdf3ca4dc2d15438c057d4f13835a2c4a95c055cef6dac72a0612b26601560877557c16f445f53de50e38ac069a1f558992
7
- data.tar.gz: 600d4aa2eb909b2faf9275e72e5e84d1bba796715b36304885b002c3b6be5962d0cbca6f21ff6d666736421f217cf0bc6e410f1c6c49d8e640851ea6bfa3f024
6
+ metadata.gz: 25945fb6df3dd935a9e306ab49da483e1a72274a475f798bf42587ed25e2745284035a00565f29a523c5277e6ee15682981d7ce49223c54ca99cb999d96283d1
7
+ data.tar.gz: 367b2c24540c788f8f7a6ca63d444494a93776eeacc887f9a9a5d8c3db5003c040114928140037ed8c4ab1a5d53fefd09017aa8050ef553c0c37cb6948193ded
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.508
1
+ 3.0.509
@@ -5,6 +5,9 @@ require 'tencentcloud-sdk-common'
5
5
  require_relative 'v20210624/client'
6
6
  require_relative 'v20210624/models'
7
7
 
8
+ require_relative 'v20221115/client'
9
+ require_relative 'v20221115/models'
10
+
8
11
  module TencentCloud
9
12
  module Bma
10
13
  end
@@ -0,0 +1,132 @@
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 Bma
21
+ module V20221115
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-11-15'
26
+ api_endpoint = 'bma.tencentcloudapi.com'
27
+ sdk_version = 'BMA_' + 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 CreateBPFakeAPP.
35
+ # @type request: :class:`Tencentcloud::bma::V20221115::CreateBPFakeAPPRequest`
36
+ # @rtype: :class:`Tencentcloud::bma::V20221115::CreateBPFakeAPPResponse`
37
+ def CreateBPFakeAPP(request)
38
+ body = send_request('CreateBPFakeAPP', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateBPFakeAPPResponse.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 CreateBPFakeAPPList.
59
+ # @type request: :class:`Tencentcloud::bma::V20221115::CreateBPFakeAPPListRequest`
60
+ # @rtype: :class:`Tencentcloud::bma::V20221115::CreateBPFakeAPPListResponse`
61
+ def CreateBPFakeAPPList(request)
62
+ body = send_request('CreateBPFakeAPPList', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateBPFakeAPPListResponse.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 CreateBPFakeURL.
83
+ # @type request: :class:`Tencentcloud::bma::V20221115::CreateBPFakeURLRequest`
84
+ # @rtype: :class:`Tencentcloud::bma::V20221115::CreateBPFakeURLResponse`
85
+ def CreateBPFakeURL(request)
86
+ body = send_request('CreateBPFakeURL', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateBPFakeURLResponse.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 CreateBPFakeURLs.
107
+ # @type request: :class:`Tencentcloud::bma::V20221115::CreateBPFakeURLsRequest`
108
+ # @rtype: :class:`Tencentcloud::bma::V20221115::CreateBPFakeURLsResponse`
109
+ def CreateBPFakeURLs(request)
110
+ body = send_request('CreateBPFakeURLs', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateBPFakeURLsResponse.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
+ end
130
+ end
131
+ end
132
+ end
@@ -0,0 +1,191 @@
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 Bma
19
+ module V20221115
20
+ # CreateBPFakeAPPList请求参数结构体
21
+ class CreateBPFakeAPPListRequest < TencentCloud::Common::AbstractModel
22
+ # @param FakeAPPs: 仿冒应用下载链接。请严格按照模版进行填写:https://bma-privacy-detection-1251316161.cosgz.myqcloud.com/20221206/f8c7521fbd84f4c4e7c2a25ac233857e/批量仿冒应用举报模板.xlsx
23
+ # @type FakeAPPs: String
24
+
25
+ attr_accessor :FakeAPPs
26
+
27
+ def initialize(fakeapps=nil)
28
+ @FakeAPPs = fakeapps
29
+ end
30
+
31
+ def deserialize(params)
32
+ @FakeAPPs = params['FakeAPPs']
33
+ end
34
+ end
35
+
36
+ # CreateBPFakeAPPList返回参数结构体
37
+ class CreateBPFakeAPPListResponse < TencentCloud::Common::AbstractModel
38
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
39
+ # @type RequestId: String
40
+
41
+ attr_accessor :RequestId
42
+
43
+ def initialize(requestid=nil)
44
+ @RequestId = requestid
45
+ end
46
+
47
+ def deserialize(params)
48
+ @RequestId = params['RequestId']
49
+ end
50
+ end
51
+
52
+ # CreateBPFakeAPP请求参数结构体
53
+ class CreateBPFakeAPPRequest < TencentCloud::Common::AbstractModel
54
+ # @param CompanyId: 企业id
55
+ # @type CompanyId: Integer
56
+ # @param FakeAPPName: 仿冒应用名称
57
+ # @type FakeAPPName: String
58
+ # @param APPChan: 仿冒来源
59
+ # @type APPChan: String
60
+ # @param FakeAPPPackageName: 仿冒应用包名
61
+ # @type FakeAPPPackageName: String
62
+ # @param FakeAPPCert: 仿冒应用证书
63
+ # @type FakeAPPCert: String
64
+ # @param FakeAPPSize: 仿冒应用大小
65
+ # @type FakeAPPSize: String
66
+ # @param FakeAPPSnapshots: 仿冒截图
67
+ # @type FakeAPPSnapshots: Array
68
+ # @param Note: 备注
69
+ # @type Note: String
70
+
71
+ attr_accessor :CompanyId, :FakeAPPName, :APPChan, :FakeAPPPackageName, :FakeAPPCert, :FakeAPPSize, :FakeAPPSnapshots, :Note
72
+
73
+ def initialize(companyid=nil, fakeappname=nil, appchan=nil, fakeapppackagename=nil, fakeappcert=nil, fakeappsize=nil, fakeappsnapshots=nil, note=nil)
74
+ @CompanyId = companyid
75
+ @FakeAPPName = fakeappname
76
+ @APPChan = appchan
77
+ @FakeAPPPackageName = fakeapppackagename
78
+ @FakeAPPCert = fakeappcert
79
+ @FakeAPPSize = fakeappsize
80
+ @FakeAPPSnapshots = fakeappsnapshots
81
+ @Note = note
82
+ end
83
+
84
+ def deserialize(params)
85
+ @CompanyId = params['CompanyId']
86
+ @FakeAPPName = params['FakeAPPName']
87
+ @APPChan = params['APPChan']
88
+ @FakeAPPPackageName = params['FakeAPPPackageName']
89
+ @FakeAPPCert = params['FakeAPPCert']
90
+ @FakeAPPSize = params['FakeAPPSize']
91
+ @FakeAPPSnapshots = params['FakeAPPSnapshots']
92
+ @Note = params['Note']
93
+ end
94
+ end
95
+
96
+ # CreateBPFakeAPP返回参数结构体
97
+ class CreateBPFakeAPPResponse < TencentCloud::Common::AbstractModel
98
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
99
+ # @type RequestId: String
100
+
101
+ attr_accessor :RequestId
102
+
103
+ def initialize(requestid=nil)
104
+ @RequestId = requestid
105
+ end
106
+
107
+ def deserialize(params)
108
+ @RequestId = params['RequestId']
109
+ end
110
+ end
111
+
112
+ # CreateBPFakeURL请求参数结构体
113
+ class CreateBPFakeURLRequest < TencentCloud::Common::AbstractModel
114
+ # @param CompanyId: 企业id
115
+ # @type CompanyId: Integer
116
+ # @param FakeURL: 仿冒网址
117
+ # @type FakeURL: String
118
+ # @param FakeURLSnapshots: 仿冒网址截图
119
+ # @type FakeURLSnapshots: Array
120
+ # @param Note: 备注
121
+ # @type Note: String
122
+
123
+ attr_accessor :CompanyId, :FakeURL, :FakeURLSnapshots, :Note
124
+
125
+ def initialize(companyid=nil, fakeurl=nil, fakeurlsnapshots=nil, note=nil)
126
+ @CompanyId = companyid
127
+ @FakeURL = fakeurl
128
+ @FakeURLSnapshots = fakeurlsnapshots
129
+ @Note = note
130
+ end
131
+
132
+ def deserialize(params)
133
+ @CompanyId = params['CompanyId']
134
+ @FakeURL = params['FakeURL']
135
+ @FakeURLSnapshots = params['FakeURLSnapshots']
136
+ @Note = params['Note']
137
+ end
138
+ end
139
+
140
+ # CreateBPFakeURL返回参数结构体
141
+ class CreateBPFakeURLResponse < TencentCloud::Common::AbstractModel
142
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
143
+ # @type RequestId: String
144
+
145
+ attr_accessor :RequestId
146
+
147
+ def initialize(requestid=nil)
148
+ @RequestId = requestid
149
+ end
150
+
151
+ def deserialize(params)
152
+ @RequestId = params['RequestId']
153
+ end
154
+ end
155
+
156
+ # CreateBPFakeURLs请求参数结构体
157
+ class CreateBPFakeURLsRequest < TencentCloud::Common::AbstractModel
158
+ # @param FakeURLs: 仿冒网址下载链接:请严格按照模版要求填写,https://bma-privacy-detection-1251316161.cosgz.myqcloud.com/20221124/ff3273b24104d03fa3a8d0629a7f71a9/批量仿冒网址举报模板.xlsx
159
+ # @type FakeURLs: String
160
+
161
+ attr_accessor :FakeURLs
162
+
163
+ def initialize(fakeurls=nil)
164
+ @FakeURLs = fakeurls
165
+ end
166
+
167
+ def deserialize(params)
168
+ @FakeURLs = params['FakeURLs']
169
+ end
170
+ end
171
+
172
+ # CreateBPFakeURLs返回参数结构体
173
+ class CreateBPFakeURLsResponse < TencentCloud::Common::AbstractModel
174
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
175
+ # @type RequestId: String
176
+
177
+ attr_accessor :RequestId
178
+
179
+ def initialize(requestid=nil)
180
+ @RequestId = requestid
181
+ end
182
+
183
+ def deserialize(params)
184
+ @RequestId = params['RequestId']
185
+ end
186
+ end
187
+
188
+ end
189
+ end
190
+ end
191
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-bma
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.508
4
+ version: 3.0.509
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-02-14 00:00:00.000000000 Z
11
+ date: 2023-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -36,6 +36,8 @@ files:
36
36
  - lib/v20210624/client.rb
37
37
  - lib/v20210624/models.rb
38
38
  - lib/tencentcloud-sdk-bma.rb
39
+ - lib/v20221115/client.rb
40
+ - lib/v20221115/models.rb
39
41
  - lib/VERSION
40
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
43
  licenses: