Class: TencentCloud::Bma::V20210624::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Bma::V20210624::Client
- Defined in:
- lib/v20210624/client.rb
Instance Method Summary collapse
-
#CreateBPFakeURL(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPFakeURLResponse`.
-
#CreateBPFalseTicket(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPFalseTicketResponse`.
-
#CreateBPOfflineAttachment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPOfflineAttachmentResponse`.
-
#CreateBPOfflineTicket(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPOfflineTicketResponse`.
-
#CreateBPProtectURLs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPProtectURLsResponse`.
-
#CreateCRBlock(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRBlockResponse`.
-
#CreateCRCompanyVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRCompanyVerifyResponse`.
-
#CreateCRDesktopCode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRDesktopCodeResponse`.
-
#CreateCRRight(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRRightResponse`.
-
#CreateCRRightFile(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRRightFileResponse`.
-
#CreateCRTort(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRTortResponse`.
-
#CreateCRUserVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRUserVerifyResponse`.
-
#CreateCRWork(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRWorkResponse`.
-
#DescribeBPCompanyInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeBPCompanyInfoResponse`.
-
#DescribeBPFakeURLs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeBPFakeURLsResponse`.
-
#DescribeBPProtectURLs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeBPProtectURLsResponse`.
-
#DescribeBPReportFakeURLs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeBPReportFakeURLsResponse`.
-
#DescribeCRMonitorDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeCRMonitorDetailResponse`.
-
#DescribeCRMonitors(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeCRMonitorsResponse`.
-
#DescribeCRObtainDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeCRObtainDetailResponse`.
-
#DescribeCRWorkInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeCRWorkInfoResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyBPOfflineAttachment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyBPOfflineAttachmentResponse`.
-
#ModifyCRBlockStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRBlockStatusResponse`.
-
#ModifyCRMonitor(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRMonitorResponse`.
-
#ModifyCRObtainStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRObtainStatusResponse`.
-
#ModifyCRRightStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRRightStatusResponse`.
-
#ModifyCRWhiteList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRWhiteListResponse`.
-
#UpdateCRWork(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::UpdateCRWorkResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20210624/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2021-06-24' api_endpoint = 'bma.tencentcloudapi.com' sdk_version = 'BMA_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#CreateBPFakeURL(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPFakeURLResponse`
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20210624/client.rb', line 37 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'] = 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 |
#CreateBPFalseTicket(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPFalseTicketResponse`
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/v20210624/client.rb', line 61 def CreateBPFalseTicket(request) body = send_request('CreateBPFalseTicket', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateBPFalseTicketResponse.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 |
#CreateBPOfflineAttachment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPOfflineAttachmentResponse`
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/v20210624/client.rb', line 85 def CreateBPOfflineAttachment(request) body = send_request('CreateBPOfflineAttachment', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateBPOfflineAttachmentResponse.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 |
#CreateBPOfflineTicket(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPOfflineTicketResponse`
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/v20210624/client.rb', line 109 def CreateBPOfflineTicket(request) body = send_request('CreateBPOfflineTicket', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateBPOfflineTicketResponse.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 |
#CreateBPProtectURLs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateBPProtectURLsResponse`
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/v20210624/client.rb', line 133 def CreateBPProtectURLs(request) body = send_request('CreateBPProtectURLs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateBPProtectURLsResponse.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 |
#CreateCRBlock(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRBlockResponse`
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/v20210624/client.rb', line 157 def CreateCRBlock(request) body = send_request('CreateCRBlock', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCRBlockResponse.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 |
#CreateCRCompanyVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRCompanyVerifyResponse`
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/v20210624/client.rb', line 181 def CreateCRCompanyVerify(request) body = send_request('CreateCRCompanyVerify', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCRCompanyVerifyResponse.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 |
#CreateCRDesktopCode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRDesktopCodeResponse`
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/v20210624/client.rb', line 205 def CreateCRDesktopCode(request) body = send_request('CreateCRDesktopCode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCRDesktopCodeResponse.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 |
#CreateCRRight(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRRightResponse`
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/v20210624/client.rb', line 229 def CreateCRRight(request) body = send_request('CreateCRRight', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCRRightResponse.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 |
#CreateCRRightFile(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRRightFileResponse`
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/v20210624/client.rb', line 253 def CreateCRRightFile(request) body = send_request('CreateCRRightFile', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCRRightFileResponse.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 |
#CreateCRTort(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRTortResponse`
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/v20210624/client.rb', line 277 def CreateCRTort(request) body = send_request('CreateCRTort', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCRTortResponse.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 |
#CreateCRUserVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRUserVerifyResponse`
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/v20210624/client.rb', line 301 def CreateCRUserVerify(request) body = send_request('CreateCRUserVerify', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCRUserVerifyResponse.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 |
#CreateCRWork(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::CreateCRWorkResponse`
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/v20210624/client.rb', line 325 def CreateCRWork(request) body = send_request('CreateCRWork', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCRWorkResponse.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 |
#DescribeBPCompanyInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeBPCompanyInfoResponse`
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/v20210624/client.rb', line 349 def DescribeBPCompanyInfo(request) body = send_request('DescribeBPCompanyInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBPCompanyInfoResponse.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 |
#DescribeBPFakeURLs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeBPFakeURLsResponse`
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'lib/v20210624/client.rb', line 373 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'] = 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 |
#DescribeBPProtectURLs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeBPProtectURLsResponse`
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/v20210624/client.rb', line 397 def DescribeBPProtectURLs(request) body = send_request('DescribeBPProtectURLs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBPProtectURLsResponse.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 |
#DescribeBPReportFakeURLs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeBPReportFakeURLsResponse`
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/v20210624/client.rb', line 421 def DescribeBPReportFakeURLs(request) body = send_request('DescribeBPReportFakeURLs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBPReportFakeURLsResponse.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 |
#DescribeCRMonitorDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeCRMonitorDetailResponse`
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 |
# File 'lib/v20210624/client.rb', line 445 def DescribeCRMonitorDetail(request) body = send_request('DescribeCRMonitorDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCRMonitorDetailResponse.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 |
#DescribeCRMonitors(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeCRMonitorsResponse`
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/v20210624/client.rb', line 469 def DescribeCRMonitors(request) body = send_request('DescribeCRMonitors', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCRMonitorsResponse.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 |
#DescribeCRObtainDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeCRObtainDetailResponse`
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/v20210624/client.rb', line 493 def DescribeCRObtainDetail(request) body = send_request('DescribeCRObtainDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCRObtainDetailResponse.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 |
#DescribeCRWorkInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::DescribeCRWorkInfoResponse`
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 |
# File 'lib/v20210624/client.rb', line 517 def DescribeCRWorkInfo(request) body = send_request('DescribeCRWorkInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCRWorkInfoResponse.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 |
#ModifyBPOfflineAttachment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyBPOfflineAttachmentResponse`
541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 |
# File 'lib/v20210624/client.rb', line 541 def ModifyBPOfflineAttachment(request) body = send_request('ModifyBPOfflineAttachment', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyBPOfflineAttachmentResponse.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 |
#ModifyCRBlockStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRBlockStatusResponse`
565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 |
# File 'lib/v20210624/client.rb', line 565 def ModifyCRBlockStatus(request) body = send_request('ModifyCRBlockStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCRBlockStatusResponse.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 |
#ModifyCRMonitor(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRMonitorResponse`
589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 |
# File 'lib/v20210624/client.rb', line 589 def ModifyCRMonitor(request) body = send_request('ModifyCRMonitor', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCRMonitorResponse.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 |
#ModifyCRObtainStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRObtainStatusResponse`
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 |
# File 'lib/v20210624/client.rb', line 613 def ModifyCRObtainStatus(request) body = send_request('ModifyCRObtainStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCRObtainStatusResponse.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 |
#ModifyCRRightStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRRightStatusResponse`
637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'lib/v20210624/client.rb', line 637 def ModifyCRRightStatus(request) body = send_request('ModifyCRRightStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCRRightStatusResponse.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 |
#ModifyCRWhiteList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::ModifyCRWhiteListResponse`
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 |
# File 'lib/v20210624/client.rb', line 661 def ModifyCRWhiteList(request) body = send_request('ModifyCRWhiteList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCRWhiteListResponse.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 |
#UpdateCRWork(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bma::V20210624::UpdateCRWorkResponse`
685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 |
# File 'lib/v20210624/client.rb', line 685 def UpdateCRWork(request) body = send_request('UpdateCRWork', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateCRWorkResponse.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 |