Class: TencentCloud::Bma::V20221115::Client

Inherits:
Common::AbstractClient
  • Object
show all
Defined in:
lib/v20221115/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(credential, region, profile = nil) ⇒ Client

Returns a new instance of Client.



24
25
26
27
28
29
# File 'lib/v20221115/client.rb', line 24

def initialize(credential, region, profile = nil)
    api_version = '2022-11-15'
    api_endpoint = 'bma.tencentcloudapi.com'
    sdk_version = 'BMA_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#CreateBPBrand(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::CreateBPBrandResponse`

Parameters:

  • request:

    Request instance for CreateBPBrand.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/v20221115/client.rb', line 37

def CreateBPBrand(request)
  body = send_request('CreateBPBrand', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateBPBrandResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateBPFakeAPP(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::CreateBPFakeAPPResponse`

Parameters:

  • request:

    Request instance for CreateBPFakeAPP.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/v20221115/client.rb', line 61

def CreateBPFakeAPP(request)
  body = send_request('CreateBPFakeAPP', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateBPFakeAPPResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateBPFakeAPPList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::CreateBPFakeAPPListResponse`

Parameters:

  • request:

    Request instance for CreateBPFakeAPPList.



85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/v20221115/client.rb', line 85

def CreateBPFakeAPPList(request)
  body = send_request('CreateBPFakeAPPList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateBPFakeAPPListResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateBPFakeURL(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::CreateBPFakeURLResponse`

Parameters:

  • request:

    Request instance for CreateBPFakeURL.



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/v20221115/client.rb', line 109

def CreateBPFakeURL(request)
  body = send_request('CreateBPFakeURL', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateBPFakeURLResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateBPFakeURLs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::CreateBPFakeURLsResponse`

Parameters:

  • request:

    Request instance for CreateBPFakeURLs.



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/v20221115/client.rb', line 133

def CreateBPFakeURLs(request)
  body = send_request('CreateBPFakeURLs', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateBPFakeURLsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateBPWhiteList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::CreateBPWhiteListResponse`

Parameters:

  • request:

    Request instance for CreateBPWhiteList.



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/v20221115/client.rb', line 157

def CreateBPWhiteList(request)
  body = send_request('CreateBPWhiteList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateBPWhiteListResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteBPWhiteList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::DeleteBPWhiteListResponse`

Parameters:

  • request:

    Request instance for DeleteBPWhiteList.



181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/v20221115/client.rb', line 181

def DeleteBPWhiteList(request)
  body = send_request('DeleteBPWhiteList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteBPWhiteListResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeBPBrands(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::DescribeBPBrandsResponse`

Parameters:

  • request:

    Request instance for DescribeBPBrands.



205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'lib/v20221115/client.rb', line 205

def DescribeBPBrands(request)
  body = send_request('DescribeBPBrands', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeBPBrandsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeBPFakeAPPList(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::DescribeBPFakeAPPListResponse`

Parameters:

  • request:

    Request instance for DescribeBPFakeAPPList.



229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# File 'lib/v20221115/client.rb', line 229

def DescribeBPFakeAPPList(request)
  body = send_request('DescribeBPFakeAPPList', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeBPFakeAPPListResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeBPFakeURLs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::DescribeBPFakeURLsResponse`

Parameters:

  • request:

    Request instance for DescribeBPFakeURLs.



253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# File 'lib/v20221115/client.rb', line 253

def DescribeBPFakeURLs(request)
  body = send_request('DescribeBPFakeURLs', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeBPFakeURLsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeBPWhiteLists(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bma::V20221115::DescribeBPWhiteListsResponse`

Parameters:

  • request:

    Request instance for DescribeBPWhiteLists.



277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# File 'lib/v20221115/client.rb', line 277

def DescribeBPWhiteLists(request)
  body = send_request('DescribeBPWhiteLists', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeBPWhiteListsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end