Class: TencentCloud::Partners::V20180321::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Partners::V20180321::Client
- Defined in:
- lib/v20180321/client.rb
Instance Method Summary collapse
-
#AgentPayDeals(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::AgentPayDealsResponse. -
#AgentTransferMoney(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::AgentTransferMoneyResponse. -
#AssignClientsToSales(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::AssignClientsToSalesResponse. -
#AuditApplyClient(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::AuditApplyClientResponse. -
#CreatePayRelationForClient(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::CreatePayRelationForClientResponse. -
#DescribeAgentAuditedClients(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeAgentAuditedClientsResponse. -
#DescribeAgentBills(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeAgentBillsResponse. -
#DescribeAgentClientGrade(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeAgentClientGradeResponse. -
#DescribeAgentClients(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeAgentClientsResponse. -
#DescribeAgentDealsByCache(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeAgentDealsByCacheResponse. -
#DescribeAgentDealsPriceDetailByDealName(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeAgentDealsPriceDetailByDealNameResponse. -
#DescribeAgentPayDealsV2(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeAgentPayDealsV2Response. -
#DescribeAgentRelateBigDealIds(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeAgentRelateBigDealIdsResponse. -
#DescribeAgentSelfPayDealsV2(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeAgentSelfPayDealsV2Response. -
#DescribeClientBalanceNew(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeClientBalanceNewResponse. -
#DescribeClientJoinIncreaseList(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeClientJoinIncreaseListResponse. -
#DescribeClientSwitchTraTaskInfo(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeClientSwitchTraTaskInfoResponse. -
#DescribeRebateInfos(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeRebateInfosResponse. -
#DescribeRebateInfosNew(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeRebateInfosNewResponse. -
#DescribeSalesmans(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeSalesmansResponse. -
#DescribeUnbindClientList(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::DescribeUnbindClientListResponse. -
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyClientRemark(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::ModifyClientRemarkResponse. -
#RemovePayRelationForClient(request) ⇒ Object
@rtype: :class:
Tencentcloud::partners::V20180321::RemovePayRelationForClientResponse.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20180321/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2018-03-21' api_endpoint = 'partners.tencentcloudapi.com' sdk_version = 'PARTNERS_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#AgentPayDeals(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::AgentPayDealsResponse
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20180321/client.rb', line 37 def AgentPayDeals(request) body = send_request('AgentPayDeals', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AgentPayDealsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#AgentTransferMoney(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::AgentTransferMoneyResponse
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/v20180321/client.rb', line 61 def AgentTransferMoney(request) body = send_request('AgentTransferMoney', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AgentTransferMoneyResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#AssignClientsToSales(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::AssignClientsToSalesResponse
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/v20180321/client.rb', line 88 def AssignClientsToSales(request) body = send_request('AssignClientsToSales', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AssignClientsToSalesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#AuditApplyClient(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::AuditApplyClientResponse
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/v20180321/client.rb', line 112 def AuditApplyClient(request) body = send_request('AuditApplyClient', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AuditApplyClientResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreatePayRelationForClient(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::CreatePayRelationForClientResponse
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/v20180321/client.rb', line 136 def CreatePayRelationForClient(request) body = send_request('CreatePayRelationForClient', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreatePayRelationForClientResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAgentAuditedClients(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeAgentAuditedClientsResponse
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/v20180321/client.rb', line 160 def DescribeAgentAuditedClients(request) body = send_request('DescribeAgentAuditedClients', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentAuditedClientsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAgentBills(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeAgentBillsResponse
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/v20180321/client.rb', line 184 def DescribeAgentBills(request) body = send_request('DescribeAgentBills', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentBillsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAgentClientGrade(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeAgentClientGradeResponse
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/v20180321/client.rb', line 208 def DescribeAgentClientGrade(request) body = send_request('DescribeAgentClientGrade', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentClientGradeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAgentClients(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeAgentClientsResponse
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/v20180321/client.rb', line 232 def DescribeAgentClients(request) body = send_request('DescribeAgentClients', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentClientsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAgentDealsByCache(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeAgentDealsByCacheResponse
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 |
# File 'lib/v20180321/client.rb', line 257 def DescribeAgentDealsByCache(request) body = send_request('DescribeAgentDealsByCache', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentDealsByCacheResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAgentDealsPriceDetailByDealName(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeAgentDealsPriceDetailByDealNameResponse
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/v20180321/client.rb', line 281 def DescribeAgentDealsPriceDetailByDealName(request) body = send_request('DescribeAgentDealsPriceDetailByDealName', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentDealsPriceDetailByDealNameResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAgentPayDealsV2(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeAgentPayDealsV2Response
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/v20180321/client.rb', line 305 def DescribeAgentPayDealsV2(request) body = send_request('DescribeAgentPayDealsV2', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentPayDealsV2Response.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAgentRelateBigDealIds(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeAgentRelateBigDealIdsResponse
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 |
# File 'lib/v20180321/client.rb', line 329 def DescribeAgentRelateBigDealIds(request) body = send_request('DescribeAgentRelateBigDealIds', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentRelateBigDealIdsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAgentSelfPayDealsV2(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeAgentSelfPayDealsV2Response
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 |
# File 'lib/v20180321/client.rb', line 353 def DescribeAgentSelfPayDealsV2(request) body = send_request('DescribeAgentSelfPayDealsV2', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentSelfPayDealsV2Response.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClientBalanceNew(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeClientBalanceNewResponse
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 |
# File 'lib/v20180321/client.rb', line 377 def DescribeClientBalanceNew(request) body = send_request('DescribeClientBalanceNew', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClientBalanceNewResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClientJoinIncreaseList(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeClientJoinIncreaseListResponse
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 |
# File 'lib/v20180321/client.rb', line 401 def DescribeClientJoinIncreaseList(request) body = send_request('DescribeClientJoinIncreaseList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClientJoinIncreaseListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClientSwitchTraTaskInfo(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeClientSwitchTraTaskInfoResponse
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 |
# File 'lib/v20180321/client.rb', line 425 def DescribeClientSwitchTraTaskInfo(request) body = send_request('DescribeClientSwitchTraTaskInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClientSwitchTraTaskInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeRebateInfos(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeRebateInfosResponse
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 |
# File 'lib/v20180321/client.rb', line 449 def DescribeRebateInfos(request) body = send_request('DescribeRebateInfos', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRebateInfosResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeRebateInfosNew(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeRebateInfosNewResponse
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 |
# File 'lib/v20180321/client.rb', line 473 def DescribeRebateInfosNew(request) body = send_request('DescribeRebateInfosNew', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRebateInfosNewResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeSalesmans(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeSalesmansResponse
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 |
# File 'lib/v20180321/client.rb', line 497 def DescribeSalesmans(request) body = send_request('DescribeSalesmans', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSalesmansResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeUnbindClientList(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::DescribeUnbindClientListResponse
521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 |
# File 'lib/v20180321/client.rb', line 521 def DescribeUnbindClientList(request) body = send_request('DescribeUnbindClientList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeUnbindClientListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyClientRemark(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::ModifyClientRemarkResponse
545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 |
# File 'lib/v20180321/client.rb', line 545 def ModifyClientRemark(request) body = send_request('ModifyClientRemark', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyClientRemarkResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RemovePayRelationForClient(request) ⇒ Object
@rtype: :class:Tencentcloud::partners::V20180321::RemovePayRelationForClientResponse
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 |
# File 'lib/v20180321/client.rb', line 569 def RemovePayRelationForClient(request) body = send_request('RemovePayRelationForClient', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RemovePayRelationForClientResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |