Class: TencentCloud::Trp::V20210515::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Trp::V20210515::Client
- Defined in:
- lib/v20210515/client.rb
Instance Method Summary collapse
-
#AuthorizedTransfer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::AuthorizedTransferResponse`.
-
#CreateChainBatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateChainBatchResponse`.
-
#CreateCodeBatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCodeBatchResponse`.
-
#CreateCodePack(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCodePackResponse`.
-
#CreateCorporationOrder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCorporationOrderResponse`.
-
#CreateCustomPack(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCustomPackResponse`.
-
#CreateCustomRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCustomRuleResponse`.
-
#CreateMerchant(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateMerchantResponse`.
-
#CreateProduct(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateProductResponse`.
-
#CreateTraceChain(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateTraceChainResponse`.
-
#CreateTraceCodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateTraceCodesResponse`.
-
#CreateTraceCodesAsync(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateTraceCodesAsyncResponse`.
-
#CreateTraceData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateTraceDataResponse`.
-
#DeleteCodeBatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DeleteCodeBatchResponse`.
-
#DeleteMerchant(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DeleteMerchantResponse`.
-
#DeleteProduct(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DeleteProductResponse`.
-
#DeleteTraceData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DeleteTraceDataResponse`.
-
#DescribeAgentCorps(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeAgentCorpsResponse`.
-
#DescribeCodeBatchById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodeBatchByIdResponse`.
-
#DescribeCodeBatches(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodeBatchesResponse`.
-
#DescribeCodeBatchs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodeBatchsResponse`.
-
#DescribeCodePacks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodePacksResponse`.
-
#DescribeCodePackStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodePackStatusResponse`.
-
#DescribeCodePackUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodePackUrlResponse`.
-
#DescribeCodesByPack(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodesByPackResponse`.
-
#DescribeCorpQuotas(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCorpQuotasResponse`.
-
#DescribeCustomRuleById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCustomRuleByIdResponse`.
-
#DescribeCustomRules(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCustomRulesResponse`.
-
#DescribeJobFileUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeJobFileUrlResponse`.
-
#DescribeMerchantById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeMerchantByIdResponse`.
-
#DescribeMerchants(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeMerchantsResponse`.
-
#DescribePlanQRCodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribePlanQRCodesResponse`.
-
#DescribePlanQRCodeScanRecords(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribePlanQRCodeScanRecordsResponse`.
-
#DescribeProductById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeProductByIdResponse`.
-
#DescribeProducts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeProductsResponse`.
-
#DescribeRawScanLogs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeRawScanLogsResponse`.
-
#DescribeScanLogs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeScanLogsResponse`.
-
#DescribeScanStats(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeScanStatsResponse`.
-
#DescribeTmpToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTmpTokenResponse`.
-
#DescribeTraceCodeById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTraceCodeByIdResponse`.
-
#DescribeTraceCodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTraceCodesResponse`.
-
#DescribeTraceDataById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTraceDataByIdResponse`.
-
#DescribeTraceDataList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTraceDataListResponse`.
-
#EffectFeedback(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::EffectFeedbackResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyCodeBatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyCodeBatchResponse`.
-
#ModifyCustomRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyCustomRuleResponse`.
-
#ModifyCustomRuleStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyCustomRuleStatusResponse`.
-
#ModifyMerchant(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyMerchantResponse`.
-
#ModifyProduct(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyProductResponse`.
-
#ModifyTraceCode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyTraceCodeResponse`.
-
#ModifyTraceCodeUnlink(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyTraceCodeUnlinkResponse`.
-
#ModifyTraceData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyTraceDataResponse`.
-
#ModifyTraceDataRanks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyTraceDataRanksResponse`.
-
#ReportBatchCallbackStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ReportBatchCallbackStatusResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20210515/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2021-05-15' api_endpoint = 'trp.tencentcloudapi.com' sdk_version = 'TRP_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#AuthorizedTransfer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::AuthorizedTransferResponse`
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20210515/client.rb', line 37 def AuthorizedTransfer(request) body = send_request('AuthorizedTransfer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AuthorizedTransferResponse.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 |
#CreateChainBatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateChainBatchResponse`
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/v20210515/client.rb', line 61 def CreateChainBatch(request) body = send_request('CreateChainBatch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateChainBatchResponse.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 |
#CreateCodeBatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCodeBatchResponse`
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/v20210515/client.rb', line 85 def CreateCodeBatch(request) body = send_request('CreateCodeBatch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCodeBatchResponse.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 |
#CreateCodePack(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCodePackResponse`
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/v20210515/client.rb', line 109 def CreateCodePack(request) body = send_request('CreateCodePack', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCodePackResponse.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 |
#CreateCorporationOrder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCorporationOrderResponse`
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/v20210515/client.rb', line 133 def CreateCorporationOrder(request) body = send_request('CreateCorporationOrder', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCorporationOrderResponse.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 |
#CreateCustomPack(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCustomPackResponse`
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/v20210515/client.rb', line 157 def CreateCustomPack(request) body = send_request('CreateCustomPack', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCustomPackResponse.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 |
#CreateCustomRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateCustomRuleResponse`
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/v20210515/client.rb', line 181 def CreateCustomRule(request) body = send_request('CreateCustomRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCustomRuleResponse.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 |
#CreateMerchant(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateMerchantResponse`
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/v20210515/client.rb', line 205 def CreateMerchant(request) body = send_request('CreateMerchant', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateMerchantResponse.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 |
#CreateProduct(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateProductResponse`
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/v20210515/client.rb', line 229 def CreateProduct(request) body = send_request('CreateProduct', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateProductResponse.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 |
#CreateTraceChain(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateTraceChainResponse`
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/v20210515/client.rb', line 253 def CreateTraceChain(request) body = send_request('CreateTraceChain', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTraceChainResponse.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 |
#CreateTraceCodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateTraceCodesResponse`
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/v20210515/client.rb', line 277 def CreateTraceCodes(request) body = send_request('CreateTraceCodes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTraceCodesResponse.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 |
#CreateTraceCodesAsync(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateTraceCodesAsyncResponse`
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/v20210515/client.rb', line 301 def CreateTraceCodesAsync(request) body = send_request('CreateTraceCodesAsync', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTraceCodesAsyncResponse.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 |
#CreateTraceData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::CreateTraceDataResponse`
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/v20210515/client.rb', line 325 def CreateTraceData(request) body = send_request('CreateTraceData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTraceDataResponse.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 |
#DeleteCodeBatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DeleteCodeBatchResponse`
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/v20210515/client.rb', line 349 def DeleteCodeBatch(request) body = send_request('DeleteCodeBatch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteCodeBatchResponse.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 |
#DeleteMerchant(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DeleteMerchantResponse`
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'lib/v20210515/client.rb', line 373 def DeleteMerchant(request) body = send_request('DeleteMerchant', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMerchantResponse.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 |
#DeleteProduct(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DeleteProductResponse`
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/v20210515/client.rb', line 397 def DeleteProduct(request) body = send_request('DeleteProduct', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteProductResponse.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 |
#DeleteTraceData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DeleteTraceDataResponse`
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/v20210515/client.rb', line 421 def DeleteTraceData(request) body = send_request('DeleteTraceData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTraceDataResponse.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 |
#DescribeAgentCorps(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeAgentCorpsResponse`
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 |
# File 'lib/v20210515/client.rb', line 445 def DescribeAgentCorps(request) body = send_request('DescribeAgentCorps', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAgentCorpsResponse.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 |
#DescribeCodeBatchById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodeBatchByIdResponse`
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/v20210515/client.rb', line 469 def DescribeCodeBatchById(request) body = send_request('DescribeCodeBatchById', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCodeBatchByIdResponse.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 |
#DescribeCodeBatches(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodeBatchesResponse`
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/v20210515/client.rb', line 493 def DescribeCodeBatches(request) body = send_request('DescribeCodeBatches', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCodeBatchesResponse.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 |
#DescribeCodeBatchs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodeBatchsResponse`
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/v20210515/client.rb', line 519 def DescribeCodeBatchs(request) body = send_request('DescribeCodeBatchs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCodeBatchsResponse.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 |
#DescribeCodePacks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodePacksResponse`
591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 |
# File 'lib/v20210515/client.rb', line 591 def DescribeCodePacks(request) body = send_request('DescribeCodePacks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCodePacksResponse.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 |
#DescribeCodePackStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodePackStatusResponse`
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 |
# File 'lib/v20210515/client.rb', line 543 def DescribeCodePackStatus(request) body = send_request('DescribeCodePackStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCodePackStatusResponse.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 |
#DescribeCodePackUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodePackUrlResponse`
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/v20210515/client.rb', line 567 def DescribeCodePackUrl(request) body = send_request('DescribeCodePackUrl', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCodePackUrlResponse.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 |
#DescribeCodesByPack(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCodesByPackResponse`
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 |
# File 'lib/v20210515/client.rb', line 615 def DescribeCodesByPack(request) body = send_request('DescribeCodesByPack', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCodesByPackResponse.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 |
#DescribeCorpQuotas(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCorpQuotasResponse`
639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 |
# File 'lib/v20210515/client.rb', line 639 def DescribeCorpQuotas(request) body = send_request('DescribeCorpQuotas', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCorpQuotasResponse.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 |
#DescribeCustomRuleById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCustomRuleByIdResponse`
663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/v20210515/client.rb', line 663 def DescribeCustomRuleById(request) body = send_request('DescribeCustomRuleById', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCustomRuleByIdResponse.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 |
#DescribeCustomRules(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeCustomRulesResponse`
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/v20210515/client.rb', line 687 def DescribeCustomRules(request) body = send_request('DescribeCustomRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCustomRulesResponse.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 |
#DescribeJobFileUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeJobFileUrlResponse`
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 |
# File 'lib/v20210515/client.rb', line 711 def DescribeJobFileUrl(request) body = send_request('DescribeJobFileUrl', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeJobFileUrlResponse.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 |
#DescribeMerchantById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeMerchantByIdResponse`
735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 |
# File 'lib/v20210515/client.rb', line 735 def DescribeMerchantById(request) body = send_request('DescribeMerchantById', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMerchantByIdResponse.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 |
#DescribeMerchants(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeMerchantsResponse`
759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 |
# File 'lib/v20210515/client.rb', line 759 def DescribeMerchants(request) body = send_request('DescribeMerchants', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMerchantsResponse.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 |
#DescribePlanQRCodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribePlanQRCodesResponse`
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 |
# File 'lib/v20210515/client.rb', line 807 def DescribePlanQRCodes(request) body = send_request('DescribePlanQRCodes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePlanQRCodesResponse.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 |
#DescribePlanQRCodeScanRecords(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribePlanQRCodeScanRecordsResponse`
783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 |
# File 'lib/v20210515/client.rb', line 783 def DescribePlanQRCodeScanRecords(request) body = send_request('DescribePlanQRCodeScanRecords', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePlanQRCodeScanRecordsResponse.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 |
#DescribeProductById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeProductByIdResponse`
831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 |
# File 'lib/v20210515/client.rb', line 831 def DescribeProductById(request) body = send_request('DescribeProductById', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProductByIdResponse.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 |
#DescribeProducts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeProductsResponse`
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 |
# File 'lib/v20210515/client.rb', line 855 def DescribeProducts(request) body = send_request('DescribeProducts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProductsResponse.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 |
#DescribeRawScanLogs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeRawScanLogsResponse`
879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 |
# File 'lib/v20210515/client.rb', line 879 def DescribeRawScanLogs(request) body = send_request('DescribeRawScanLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRawScanLogsResponse.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 |
#DescribeScanLogs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeScanLogsResponse`
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 |
# File 'lib/v20210515/client.rb', line 903 def DescribeScanLogs(request) body = send_request('DescribeScanLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeScanLogsResponse.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 |
#DescribeScanStats(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeScanStatsResponse`
928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 |
# File 'lib/v20210515/client.rb', line 928 def DescribeScanStats(request) body = send_request('DescribeScanStats', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeScanStatsResponse.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 |
#DescribeTmpToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTmpTokenResponse`
952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 |
# File 'lib/v20210515/client.rb', line 952 def DescribeTmpToken(request) body = send_request('DescribeTmpToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTmpTokenResponse.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 |
#DescribeTraceCodeById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTraceCodeByIdResponse`
976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 |
# File 'lib/v20210515/client.rb', line 976 def DescribeTraceCodeById(request) body = send_request('DescribeTraceCodeById', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTraceCodeByIdResponse.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 |
#DescribeTraceCodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTraceCodesResponse`
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 |
# File 'lib/v20210515/client.rb', line 1000 def DescribeTraceCodes(request) body = send_request('DescribeTraceCodes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTraceCodesResponse.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 |
#DescribeTraceDataById(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTraceDataByIdResponse`
1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 |
# File 'lib/v20210515/client.rb', line 1024 def DescribeTraceDataById(request) body = send_request('DescribeTraceDataById', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTraceDataByIdResponse.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 |
#DescribeTraceDataList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::DescribeTraceDataListResponse`
1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 |
# File 'lib/v20210515/client.rb', line 1048 def DescribeTraceDataList(request) body = send_request('DescribeTraceDataList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTraceDataListResponse.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 |
#EffectFeedback(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::EffectFeedbackResponse`
1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 |
# File 'lib/v20210515/client.rb', line 1072 def EffectFeedback(request) body = send_request('EffectFeedback', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EffectFeedbackResponse.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 |
#ModifyCodeBatch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyCodeBatchResponse`
1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 |
# File 'lib/v20210515/client.rb', line 1096 def ModifyCodeBatch(request) body = send_request('ModifyCodeBatch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCodeBatchResponse.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 |
#ModifyCustomRule(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyCustomRuleResponse`
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 |
# File 'lib/v20210515/client.rb', line 1120 def ModifyCustomRule(request) body = send_request('ModifyCustomRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCustomRuleResponse.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 |
#ModifyCustomRuleStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyCustomRuleStatusResponse`
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 |
# File 'lib/v20210515/client.rb', line 1144 def ModifyCustomRuleStatus(request) body = send_request('ModifyCustomRuleStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCustomRuleStatusResponse.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 |
#ModifyMerchant(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyMerchantResponse`
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 |
# File 'lib/v20210515/client.rb', line 1168 def ModifyMerchant(request) body = send_request('ModifyMerchant', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMerchantResponse.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 |
#ModifyProduct(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyProductResponse`
1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 |
# File 'lib/v20210515/client.rb', line 1192 def ModifyProduct(request) body = send_request('ModifyProduct', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyProductResponse.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 |
#ModifyTraceCode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyTraceCodeResponse`
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 |
# File 'lib/v20210515/client.rb', line 1216 def ModifyTraceCode(request) body = send_request('ModifyTraceCode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTraceCodeResponse.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 |
#ModifyTraceCodeUnlink(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyTraceCodeUnlinkResponse`
1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 |
# File 'lib/v20210515/client.rb', line 1241 def ModifyTraceCodeUnlink(request) body = send_request('ModifyTraceCodeUnlink', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTraceCodeUnlinkResponse.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 |
#ModifyTraceData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyTraceDataResponse`
1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 |
# File 'lib/v20210515/client.rb', line 1265 def ModifyTraceData(request) body = send_request('ModifyTraceData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTraceDataResponse.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 |
#ModifyTraceDataRanks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ModifyTraceDataRanksResponse`
1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 |
# File 'lib/v20210515/client.rb', line 1289 def ModifyTraceDataRanks(request) body = send_request('ModifyTraceDataRanks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTraceDataRanksResponse.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 |
#ReportBatchCallbackStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::trp::V20210515::ReportBatchCallbackStatusResponse`
1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 |
# File 'lib/v20210515/client.rb', line 1313 def ReportBatchCallbackStatus(request) body = send_request('ReportBatchCallbackStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ReportBatchCallbackStatusResponse.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 |