Class: TencentCloud::Ssm::V20190923::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Ssm::V20190923::Client
- Defined in:
- lib/v20190923/client.rb
Instance Method Summary collapse
-
#CreateProductSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::CreateProductSecretResponse`.
-
#CreateSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::CreateSecretResponse`.
-
#CreateSSHKeyPairSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::CreateSSHKeyPairSecretResponse`.
-
#DeleteSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DeleteSecretResponse`.
-
#DeleteSecretVersion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DeleteSecretVersionResponse`.
-
#DescribeAsyncRequestInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeAsyncRequestInfoResponse`.
-
#DescribeRotationDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeRotationDetailResponse`.
-
#DescribeRotationHistory(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeRotationHistoryResponse`.
-
#DescribeSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeSecretResponse`.
-
#DescribeSupportedProducts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeSupportedProductsResponse`.
-
#DisableSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DisableSecretResponse`.
-
#EnableSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::EnableSecretResponse`.
-
#GetRegions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::GetRegionsResponse`.
-
#GetSecretValue(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::GetSecretValueResponse`.
-
#GetServiceStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::GetServiceStatusResponse`.
-
#GetSSHKeyPairValue(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::GetSSHKeyPairValueResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ListSecrets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::ListSecretsResponse`.
-
#ListSecretVersionIds(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::ListSecretVersionIdsResponse`.
-
#PutSecretValue(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::PutSecretValueResponse`.
-
#RestoreSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::RestoreSecretResponse`.
-
#RotateProductSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::RotateProductSecretResponse`.
-
#UpdateDescription(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::UpdateDescriptionResponse`.
-
#UpdateRotationStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::UpdateRotationStatusResponse`.
-
#UpdateSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::UpdateSecretResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
24 25 26 27 28 29 |
# File 'lib/v20190923/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2019-09-23' api_endpoint = 'ssm.tencentcloudapi.com' sdk_version = 'SSM_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#CreateProductSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::CreateProductSecretResponse`
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20190923/client.rb', line 37 def CreateProductSecret(request) body = send_request('CreateProductSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateProductSecretResponse.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 |
#CreateSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::CreateSecretResponse`
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/v20190923/client.rb', line 85 def CreateSecret(request) body = send_request('CreateSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSecretResponse.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 |
#CreateSSHKeyPairSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::CreateSSHKeyPairSecretResponse`
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/v20190923/client.rb', line 61 def CreateSSHKeyPairSecret(request) body = send_request('CreateSSHKeyPairSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSSHKeyPairSecretResponse.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 |
#DeleteSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DeleteSecretResponse`
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/v20190923/client.rb', line 109 def DeleteSecret(request) body = send_request('DeleteSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSecretResponse.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 |
#DeleteSecretVersion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DeleteSecretVersionResponse`
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/v20190923/client.rb', line 134 def DeleteSecretVersion(request) body = send_request('DeleteSecretVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSecretVersionResponse.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 |
#DescribeAsyncRequestInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeAsyncRequestInfoResponse`
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/v20190923/client.rb', line 158 def DescribeAsyncRequestInfo(request) body = send_request('DescribeAsyncRequestInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAsyncRequestInfoResponse.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 |
#DescribeRotationDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeRotationDetailResponse`
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/v20190923/client.rb', line 183 def DescribeRotationDetail(request) body = send_request('DescribeRotationDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRotationDetailResponse.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 |
#DescribeRotationHistory(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeRotationHistoryResponse`
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/v20190923/client.rb', line 208 def DescribeRotationHistory(request) body = send_request('DescribeRotationHistory', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRotationHistoryResponse.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 |
#DescribeSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeSecretResponse`
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/v20190923/client.rb', line 232 def DescribeSecret(request) body = send_request('DescribeSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSecretResponse.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 |
#DescribeSupportedProducts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DescribeSupportedProductsResponse`
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/v20190923/client.rb', line 256 def DescribeSupportedProducts(request) body = send_request('DescribeSupportedProducts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSupportedProductsResponse.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 |
#DisableSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::DisableSecretResponse`
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/v20190923/client.rb', line 280 def DisableSecret(request) body = send_request('DisableSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DisableSecretResponse.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 |
#EnableSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::EnableSecretResponse`
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/v20190923/client.rb', line 304 def EnableSecret(request) body = send_request('EnableSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EnableSecretResponse.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 |
#GetRegions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::GetRegionsResponse`
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/v20190923/client.rb', line 328 def GetRegions(request) body = send_request('GetRegions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetRegionsResponse.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 |
#GetSecretValue(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::GetSecretValueResponse`
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 |
# File 'lib/v20190923/client.rb', line 377 def GetSecretValue(request) body = send_request('GetSecretValue', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetSecretValueResponse.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 |
#GetServiceStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::GetServiceStatusResponse`
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 |
# File 'lib/v20190923/client.rb', line 401 def GetServiceStatus(request) body = send_request('GetServiceStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetServiceStatusResponse.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 |
#GetSSHKeyPairValue(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::GetSSHKeyPairValueResponse`
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 |
# File 'lib/v20190923/client.rb', line 352 def GetSSHKeyPairValue(request) body = send_request('GetSSHKeyPairValue', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetSSHKeyPairValueResponse.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 |
#ListSecrets(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::ListSecretsResponse`
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 |
# File 'lib/v20190923/client.rb', line 449 def ListSecrets(request) body = send_request('ListSecrets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListSecretsResponse.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 |
#ListSecretVersionIds(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::ListSecretVersionIdsResponse`
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 |
# File 'lib/v20190923/client.rb', line 425 def ListSecretVersionIds(request) body = send_request('ListSecretVersionIds', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListSecretVersionIdsResponse.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 |
#PutSecretValue(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::PutSecretValueResponse`
474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 |
# File 'lib/v20190923/client.rb', line 474 def PutSecretValue(request) body = send_request('PutSecretValue', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PutSecretValueResponse.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 |
#RestoreSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::RestoreSecretResponse`
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 |
# File 'lib/v20190923/client.rb', line 498 def RestoreSecret(request) body = send_request('RestoreSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RestoreSecretResponse.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 |
#RotateProductSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::RotateProductSecretResponse`
523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 |
# File 'lib/v20190923/client.rb', line 523 def RotateProductSecret(request) body = send_request('RotateProductSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RotateProductSecretResponse.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 |
#UpdateDescription(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::UpdateDescriptionResponse`
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 |
# File 'lib/v20190923/client.rb', line 547 def UpdateDescription(request) body = send_request('UpdateDescription', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateDescriptionResponse.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 |
#UpdateRotationStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::UpdateRotationStatusResponse`
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 |
# File 'lib/v20190923/client.rb', line 574 def UpdateRotationStatus(request) body = send_request('UpdateRotationStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateRotationStatusResponse.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 |
#UpdateSecret(request) ⇒ Object
@rtype: :class:‘Tencentcloud::ssm::V20190923::UpdateSecretResponse`
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 |
# File 'lib/v20190923/client.rb', line 599 def UpdateSecret(request) body = send_request('UpdateSecret', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateSecretResponse.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 |