Class: TencentCloud::Cbs::V20170312::Client
- Inherits:
-
TencentCloud::Common::AbstractClient
- Object
- TencentCloud::Common::AbstractClient
- TencentCloud::Cbs::V20170312::Client
- Defined in:
- lib/v20170312/client.rb
Instance Method Summary collapse
-
#ApplyDiskBackup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ApplyDiskBackupResponse`.
-
#ApplySnapshot(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ApplySnapshotResponse`.
-
#ApplySnapshotGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ApplySnapshotGroupResponse`.
-
#AttachDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::AttachDisksResponse`.
-
#BindAutoSnapshotPolicy(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::BindAutoSnapshotPolicyResponse`.
-
#CopySnapshotCrossRegions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CopySnapshotCrossRegionsResponse`.
-
#CreateAutoSnapshotPolicy(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateAutoSnapshotPolicyResponse`.
-
#CreateDiskBackup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateDiskBackupResponse`.
-
#CreateDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateDisksResponse`.
-
#CreateSnapshot(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateSnapshotResponse`.
-
#CreateSnapshotGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateSnapshotGroupResponse`.
-
#DeleteAutoSnapshotPolicies(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DeleteAutoSnapshotPoliciesResponse`.
-
#DeleteDiskBackups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DeleteDiskBackupsResponse`.
-
#DeleteSnapshotGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DeleteSnapshotGroupResponse`.
-
#DeleteSnapshots(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DeleteSnapshotsResponse`.
-
#DescribeAutoSnapshotPolicies(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeAutoSnapshotPoliciesResponse`.
-
#DescribeDiskAssociatedAutoSnapshotPolicy(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDiskAssociatedAutoSnapshotPolicyResponse`.
-
#DescribeDiskBackups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDiskBackupsResponse`.
-
#DescribeDiskConfigQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDiskConfigQuotaResponse`.
-
#DescribeDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDisksResponse`.
-
#DescribeDiskStoragePool(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDiskStoragePoolResponse`.
-
#DescribeInstancesDiskNum(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeInstancesDiskNumResponse`.
-
#DescribeSnapshotGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeSnapshotGroupsResponse`.
-
#DescribeSnapshotOverview(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeSnapshotOverviewResponse`.
-
#DescribeSnapshots(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeSnapshotsResponse`.
-
#DescribeSnapshotSharePermission(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeSnapshotSharePermissionResponse`.
-
#DetachDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DetachDisksResponse`.
-
#GetSnapOverview(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::GetSnapOverviewResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#InitializeDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InitializeDisksResponse`.
-
#InquirePriceModifyDiskBackupQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquirePriceModifyDiskBackupQuotaResponse`.
-
#InquirePriceModifyDiskExtraPerformance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquirePriceModifyDiskExtraPerformanceResponse`.
-
#InquiryPriceCreateDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquiryPriceCreateDisksResponse`.
-
#InquiryPriceRenewDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquiryPriceRenewDisksResponse`.
-
#InquiryPriceResizeDisk(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquiryPriceResizeDiskResponse`.
-
#ModifyAutoSnapshotPolicyAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyAutoSnapshotPolicyAttributeResponse`.
-
#ModifyDiskAttributes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDiskAttributesResponse`.
-
#ModifyDiskBackupQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDiskBackupQuotaResponse`.
-
#ModifyDiskExtraPerformance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDiskExtraPerformanceResponse`.
-
#ModifyDisksChargeType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDisksChargeTypeResponse`.
-
#ModifyDisksRenewFlag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDisksRenewFlagResponse`.
-
#ModifySnapshotAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifySnapshotAttributeResponse`.
-
#ModifySnapshotsSharePermission(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifySnapshotsSharePermissionResponse`.
-
#RenewDisk(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::RenewDiskResponse`.
-
#ResizeDisk(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ResizeDiskResponse`.
-
#TerminateDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::TerminateDisksResponse`.
-
#UnbindAutoSnapshotPolicy(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::UnbindAutoSnapshotPolicyResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20170312/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2017-03-12' api_endpoint = 'cbs.tencentcloudapi.com' sdk_version = 'CBS_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#ApplyDiskBackup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ApplyDiskBackupResponse`
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/v20170312/client.rb', line 41 def ApplyDiskBackup(request) body = send_request('ApplyDiskBackup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ApplyDiskBackupResponse.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 |
#ApplySnapshot(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ApplySnapshotResponse`
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/v20170312/client.rb', line 69 def ApplySnapshot(request) body = send_request('ApplySnapshot', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ApplySnapshotResponse.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 |
#ApplySnapshotGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ApplySnapshotGroupResponse`
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/v20170312/client.rb', line 96 def ApplySnapshotGroup(request) body = send_request('ApplySnapshotGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ApplySnapshotGroupResponse.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 |
#AttachDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::AttachDisksResponse`
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/v20170312/client.rb', line 123 def AttachDisks(request) body = send_request('AttachDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AttachDisksResponse.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 |
#BindAutoSnapshotPolicy(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::BindAutoSnapshotPolicyResponse`
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/v20170312/client.rb', line 150 def BindAutoSnapshotPolicy(request) body = send_request('BindAutoSnapshotPolicy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BindAutoSnapshotPolicyResponse.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 |
#CopySnapshotCrossRegions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CopySnapshotCrossRegionsResponse`
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/v20170312/client.rb', line 177 def CopySnapshotCrossRegions(request) body = send_request('CopySnapshotCrossRegions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CopySnapshotCrossRegionsResponse.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 |
#CreateAutoSnapshotPolicy(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateAutoSnapshotPolicyResponse`
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/v20170312/client.rb', line 204 def CreateAutoSnapshotPolicy(request) body = send_request('CreateAutoSnapshotPolicy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateAutoSnapshotPolicyResponse.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 |
#CreateDiskBackup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateDiskBackupResponse`
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/v20170312/client.rb', line 228 def CreateDiskBackup(request) body = send_request('CreateDiskBackup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateDiskBackupResponse.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 |
#CreateDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateDisksResponse`
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/v20170312/client.rb', line 256 def CreateDisks(request) body = send_request('CreateDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateDisksResponse.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 |
#CreateSnapshot(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateSnapshotResponse`
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'lib/v20170312/client.rb', line 284 def CreateSnapshot(request) body = send_request('CreateSnapshot', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSnapshotResponse.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 |
#CreateSnapshotGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::CreateSnapshotGroupResponse`
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 |
# File 'lib/v20170312/client.rb', line 310 def CreateSnapshotGroup(request) body = send_request('CreateSnapshotGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSnapshotGroupResponse.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 |
#DeleteAutoSnapshotPolicies(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DeleteAutoSnapshotPoliciesResponse`
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/v20170312/client.rb', line 336 def DeleteAutoSnapshotPolicies(request) body = send_request('DeleteAutoSnapshotPolicies', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAutoSnapshotPoliciesResponse.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 |
#DeleteDiskBackups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DeleteDiskBackupsResponse`
360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 |
# File 'lib/v20170312/client.rb', line 360 def DeleteDiskBackups(request) body = send_request('DeleteDiskBackups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteDiskBackupsResponse.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 |
#DeleteSnapshotGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DeleteSnapshotGroupResponse`
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/v20170312/client.rb', line 386 def DeleteSnapshotGroup(request) body = send_request('DeleteSnapshotGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSnapshotGroupResponse.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 |
#DeleteSnapshots(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DeleteSnapshotsResponse`
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/v20170312/client.rb', line 413 def DeleteSnapshots(request) body = send_request('DeleteSnapshots', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSnapshotsResponse.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 |
#DescribeAutoSnapshotPolicies(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeAutoSnapshotPoliciesResponse`
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 |
# File 'lib/v20170312/client.rb', line 440 def DescribeAutoSnapshotPolicies(request) body = send_request('DescribeAutoSnapshotPolicies', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAutoSnapshotPoliciesResponse.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 |
#DescribeDiskAssociatedAutoSnapshotPolicy(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDiskAssociatedAutoSnapshotPolicyResponse`
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 |
# File 'lib/v20170312/client.rb', line 464 def DescribeDiskAssociatedAutoSnapshotPolicy(request) body = send_request('DescribeDiskAssociatedAutoSnapshotPolicy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDiskAssociatedAutoSnapshotPolicyResponse.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 |
#DescribeDiskBackups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDiskBackupsResponse`
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 |
# File 'lib/v20170312/client.rb', line 491 def DescribeDiskBackups(request) body = send_request('DescribeDiskBackups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDiskBackupsResponse.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 |
#DescribeDiskConfigQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDiskConfigQuotaResponse`
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 |
# File 'lib/v20170312/client.rb', line 515 def DescribeDiskConfigQuota(request) body = send_request('DescribeDiskConfigQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDiskConfigQuotaResponse.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 |
#DescribeDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDisksResponse`
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 |
# File 'lib/v20170312/client.rb', line 569 def DescribeDisks(request) body = send_request('DescribeDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDisksResponse.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 |
#DescribeDiskStoragePool(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeDiskStoragePoolResponse`
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 |
# File 'lib/v20170312/client.rb', line 542 def DescribeDiskStoragePool(request) body = send_request('DescribeDiskStoragePool', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDiskStoragePoolResponse.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 |
#DescribeInstancesDiskNum(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeInstancesDiskNumResponse`
595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
# File 'lib/v20170312/client.rb', line 595 def DescribeInstancesDiskNum(request) body = send_request('DescribeInstancesDiskNum', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesDiskNumResponse.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 |
#DescribeSnapshotGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeSnapshotGroupsResponse`
621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/v20170312/client.rb', line 621 def DescribeSnapshotGroups(request) body = send_request('DescribeSnapshotGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSnapshotGroupsResponse.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 |
#DescribeSnapshotOverview(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeSnapshotOverviewResponse`
645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 |
# File 'lib/v20170312/client.rb', line 645 def DescribeSnapshotOverview(request) body = send_request('DescribeSnapshotOverview', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSnapshotOverviewResponse.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 |
#DescribeSnapshots(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeSnapshotsResponse`
696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 |
# File 'lib/v20170312/client.rb', line 696 def DescribeSnapshots(request) body = send_request('DescribeSnapshots', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSnapshotsResponse.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 |
#DescribeSnapshotSharePermission(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DescribeSnapshotSharePermissionResponse`
669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 |
# File 'lib/v20170312/client.rb', line 669 def DescribeSnapshotSharePermission(request) body = send_request('DescribeSnapshotSharePermission', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSnapshotSharePermissionResponse.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 |
#DetachDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::DetachDisksResponse`
723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'lib/v20170312/client.rb', line 723 def DetachDisks(request) body = send_request('DetachDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DetachDisksResponse.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 |
#GetSnapOverview(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::GetSnapOverviewResponse`
749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 |
# File 'lib/v20170312/client.rb', line 749 def GetSnapOverview(request) body = send_request('GetSnapOverview', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetSnapOverviewResponse.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 |
#InitializeDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InitializeDisksResponse`
777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 |
# File 'lib/v20170312/client.rb', line 777 def InitializeDisks(request) body = send_request('InitializeDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InitializeDisksResponse.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 |
#InquirePriceModifyDiskBackupQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquirePriceModifyDiskBackupQuotaResponse`
801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 |
# File 'lib/v20170312/client.rb', line 801 def InquirePriceModifyDiskBackupQuota(request) body = send_request('InquirePriceModifyDiskBackupQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquirePriceModifyDiskBackupQuotaResponse.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 |
#InquirePriceModifyDiskExtraPerformance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquirePriceModifyDiskExtraPerformanceResponse`
825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 |
# File 'lib/v20170312/client.rb', line 825 def InquirePriceModifyDiskExtraPerformance(request) body = send_request('InquirePriceModifyDiskExtraPerformance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquirePriceModifyDiskExtraPerformanceResponse.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 |
#InquiryPriceCreateDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquiryPriceCreateDisksResponse`
851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 |
# File 'lib/v20170312/client.rb', line 851 def InquiryPriceCreateDisks(request) body = send_request('InquiryPriceCreateDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceCreateDisksResponse.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 |
#InquiryPriceRenewDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquiryPriceRenewDisksResponse`
879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 |
# File 'lib/v20170312/client.rb', line 879 def InquiryPriceRenewDisks(request) body = send_request('InquiryPriceRenewDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceRenewDisksResponse.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 |
#InquiryPriceResizeDisk(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::InquiryPriceResizeDiskResponse`
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 |
# File 'lib/v20170312/client.rb', line 903 def InquiryPriceResizeDisk(request) body = send_request('InquiryPriceResizeDisk', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceResizeDiskResponse.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 |
#ModifyAutoSnapshotPolicyAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyAutoSnapshotPolicyAttributeResponse`
930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 |
# File 'lib/v20170312/client.rb', line 930 def ModifyAutoSnapshotPolicyAttribute(request) body = send_request('ModifyAutoSnapshotPolicyAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyAutoSnapshotPolicyAttributeResponse.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 |
#ModifyDiskAttributes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDiskAttributesResponse`
956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 |
# File 'lib/v20170312/client.rb', line 956 def ModifyDiskAttributes(request) body = send_request('ModifyDiskAttributes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDiskAttributesResponse.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 |
#ModifyDiskBackupQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDiskBackupQuotaResponse`
980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 |
# File 'lib/v20170312/client.rb', line 980 def ModifyDiskBackupQuota(request) body = send_request('ModifyDiskBackupQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDiskBackupQuotaResponse.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 |
#ModifyDiskExtraPerformance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDiskExtraPerformanceResponse`
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 |
# File 'lib/v20170312/client.rb', line 1006 def ModifyDiskExtraPerformance(request) body = send_request('ModifyDiskExtraPerformance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDiskExtraPerformanceResponse.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 |
#ModifyDisksChargeType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDisksChargeTypeResponse`
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 |
# File 'lib/v20170312/client.rb', line 1032 def ModifyDisksChargeType(request) body = send_request('ModifyDisksChargeType', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDisksChargeTypeResponse.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 |
#ModifyDisksRenewFlag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifyDisksRenewFlagResponse`
1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 |
# File 'lib/v20170312/client.rb', line 1056 def ModifyDisksRenewFlag(request) body = send_request('ModifyDisksRenewFlag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDisksRenewFlagResponse.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 |
#ModifySnapshotAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifySnapshotAttributeResponse`
1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 |
# File 'lib/v20170312/client.rb', line 1083 def ModifySnapshotAttribute(request) body = send_request('ModifySnapshotAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifySnapshotAttributeResponse.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 |
#ModifySnapshotsSharePermission(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ModifySnapshotsSharePermissionResponse`
1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 |
# File 'lib/v20170312/client.rb', line 1113 def ModifySnapshotsSharePermission(request) body = send_request('ModifySnapshotsSharePermission', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifySnapshotsSharePermissionResponse.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 |
#RenewDisk(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::RenewDiskResponse`
1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/v20170312/client.rb', line 1140 def RenewDisk(request) body = send_request('RenewDisk', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RenewDiskResponse.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 |
#ResizeDisk(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::ResizeDiskResponse`
1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 |
# File 'lib/v20170312/client.rb', line 1167 def ResizeDisk(request) body = send_request('ResizeDisk', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResizeDiskResponse.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 |
#TerminateDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::TerminateDisksResponse`
1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 |
# File 'lib/v20170312/client.rb', line 1195 def TerminateDisks(request) body = send_request('TerminateDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TerminateDisksResponse.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 |
#UnbindAutoSnapshotPolicy(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cbs::V20170312::UnbindAutoSnapshotPolicyResponse`
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 |
# File 'lib/v20170312/client.rb', line 1222 def UnbindAutoSnapshotPolicy(request) body = send_request('UnbindAutoSnapshotPolicy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UnbindAutoSnapshotPolicyResponse.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 |