Class: TencentCloud::Tem::V20210701::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Tem::V20210701::Client
- Defined in:
- lib/v20210701/client.rb
Instance Method Summary collapse
-
#CreateApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateApplicationResponse`.
-
#CreateApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateApplicationAutoscalerResponse`.
-
#CreateApplicationService(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateApplicationServiceResponse`.
-
#CreateConfigData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateConfigDataResponse`.
-
#CreateCosToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateCosTokenResponse`.
-
#CreateEnvironment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateEnvironmentResponse`.
-
#CreateLogConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateLogConfigResponse`.
-
#CreateResource(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateResourceResponse`.
-
#DeleteApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeleteApplicationResponse`.
-
#DeleteApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeleteApplicationAutoscalerResponse`.
-
#DeleteApplicationService(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeleteApplicationServiceResponse`.
-
#DeleteIngress(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeleteIngressResponse`.
-
#DeployApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeployApplicationResponse`.
-
#DescribeApplicationAutoscalerList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationAutoscalerListResponse`.
-
#DescribeApplicationInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationInfoResponse`.
-
#DescribeApplicationPods(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationPodsResponse`.
-
#DescribeApplications(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationsResponse`.
-
#DescribeApplicationServiceList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationServiceListResponse`.
-
#DescribeApplicationsStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationsStatusResponse`.
-
#DescribeConfigData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeConfigDataResponse`.
-
#DescribeConfigDataList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeConfigDataListResponse`.
-
#DescribeDeployApplicationDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeDeployApplicationDetailResponse`.
-
#DescribeEnvironment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeEnvironmentResponse`.
-
#DescribeEnvironments(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeEnvironmentsResponse`.
-
#DescribeEnvironmentStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeEnvironmentStatusResponse`.
-
#DescribeIngress(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeIngressResponse`.
-
#DescribeIngresses(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeIngressesResponse`.
-
#DescribeLogConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeLogConfigResponse`.
-
#DescribePagedLogConfigList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribePagedLogConfigListResponse`.
-
#DescribeRelatedIngresses(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeRelatedIngressesResponse`.
-
#DestroyConfigData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DestroyConfigDataResponse`.
-
#DestroyEnvironment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DestroyEnvironmentResponse`.
-
#DestroyLogConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DestroyLogConfigResponse`.
-
#DisableApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DisableApplicationAutoscalerResponse`.
-
#EnableApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::EnableApplicationAutoscalerResponse`.
-
#GenerateApplicationPackageDownloadUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::GenerateApplicationPackageDownloadUrlResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyApplicationAutoscalerResponse`.
-
#ModifyApplicationInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyApplicationInfoResponse`.
-
#ModifyApplicationReplicas(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyApplicationReplicasResponse`.
-
#ModifyApplicationService(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyApplicationServiceResponse`.
-
#ModifyConfigData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyConfigDataResponse`.
-
#ModifyEnvironment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyEnvironmentResponse`.
-
#ModifyIngress(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyIngressResponse`.
-
#ModifyLogConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyLogConfigResponse`.
-
#RestartApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::RestartApplicationResponse`.
-
#RestartApplicationPod(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::RestartApplicationPodResponse`.
-
#ResumeDeployApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ResumeDeployApplicationResponse`.
-
#RevertDeployApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::RevertDeployApplicationResponse`.
-
#RollingUpdateApplicationByVersion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::RollingUpdateApplicationByVersionResponse`.
-
#StopApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::StopApplicationResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20210701/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2021-07-01' api_endpoint = 'tem.tencentcloudapi.com' sdk_version = 'TEM_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#CreateApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateApplicationResponse`
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20210701/client.rb', line 37 def CreateApplication(request) body = send_request('CreateApplication', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateApplicationResponse.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 |
#CreateApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateApplicationAutoscalerResponse`
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/v20210701/client.rb', line 61 def CreateApplicationAutoscaler(request) body = send_request('CreateApplicationAutoscaler', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateApplicationAutoscalerResponse.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 |
#CreateApplicationService(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateApplicationServiceResponse`
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/v20210701/client.rb', line 85 def CreateApplicationService(request) body = send_request('CreateApplicationService', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateApplicationServiceResponse.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 |
#CreateConfigData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateConfigDataResponse`
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/v20210701/client.rb', line 109 def CreateConfigData(request) body = send_request('CreateConfigData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateConfigDataResponse.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 |
#CreateCosToken(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateCosTokenResponse`
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/v20210701/client.rb', line 133 def CreateCosToken(request) body = send_request('CreateCosToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCosTokenResponse.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 |
#CreateEnvironment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateEnvironmentResponse`
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/v20210701/client.rb', line 157 def CreateEnvironment(request) body = send_request('CreateEnvironment', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateEnvironmentResponse.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 |
#CreateLogConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateLogConfigResponse`
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/v20210701/client.rb', line 181 def CreateLogConfig(request) body = send_request('CreateLogConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateLogConfigResponse.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 |
#CreateResource(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::CreateResourceResponse`
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/v20210701/client.rb', line 205 def CreateResource(request) body = send_request('CreateResource', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateResourceResponse.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 |
#DeleteApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeleteApplicationResponse`
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/v20210701/client.rb', line 232 def DeleteApplication(request) body = send_request('DeleteApplication', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteApplicationResponse.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 |
#DeleteApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeleteApplicationAutoscalerResponse`
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/v20210701/client.rb', line 256 def DeleteApplicationAutoscaler(request) body = send_request('DeleteApplicationAutoscaler', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteApplicationAutoscalerResponse.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 |
#DeleteApplicationService(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeleteApplicationServiceResponse`
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/v20210701/client.rb', line 280 def DeleteApplicationService(request) body = send_request('DeleteApplicationService', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteApplicationServiceResponse.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 |
#DeleteIngress(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeleteIngressResponse`
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/v20210701/client.rb', line 304 def DeleteIngress(request) body = send_request('DeleteIngress', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteIngressResponse.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 |
#DeployApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DeployApplicationResponse`
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/v20210701/client.rb', line 328 def DeployApplication(request) body = send_request('DeployApplication', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeployApplicationResponse.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 |
#DescribeApplicationAutoscalerList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationAutoscalerListResponse`
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 |
# File 'lib/v20210701/client.rb', line 352 def DescribeApplicationAutoscalerList(request) body = send_request('DescribeApplicationAutoscalerList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeApplicationAutoscalerListResponse.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 |
#DescribeApplicationInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationInfoResponse`
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
# File 'lib/v20210701/client.rb', line 376 def DescribeApplicationInfo(request) body = send_request('DescribeApplicationInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeApplicationInfoResponse.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 |
#DescribeApplicationPods(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationPodsResponse`
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
# File 'lib/v20210701/client.rb', line 400 def DescribeApplicationPods(request) body = send_request('DescribeApplicationPods', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeApplicationPodsResponse.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 |
#DescribeApplications(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationsResponse`
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 |
# File 'lib/v20210701/client.rb', line 448 def DescribeApplications(request) body = send_request('DescribeApplications', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeApplicationsResponse.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 |
#DescribeApplicationServiceList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationServiceListResponse`
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 |
# File 'lib/v20210701/client.rb', line 424 def DescribeApplicationServiceList(request) body = send_request('DescribeApplicationServiceList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeApplicationServiceListResponse.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 |
#DescribeApplicationsStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeApplicationsStatusResponse`
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 |
# File 'lib/v20210701/client.rb', line 472 def DescribeApplicationsStatus(request) body = send_request('DescribeApplicationsStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeApplicationsStatusResponse.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 |
#DescribeConfigData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeConfigDataResponse`
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 |
# File 'lib/v20210701/client.rb', line 496 def DescribeConfigData(request) body = send_request('DescribeConfigData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeConfigDataResponse.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 |
#DescribeConfigDataList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeConfigDataListResponse`
520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 |
# File 'lib/v20210701/client.rb', line 520 def DescribeConfigDataList(request) body = send_request('DescribeConfigDataList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeConfigDataListResponse.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 |
#DescribeDeployApplicationDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeDeployApplicationDetailResponse`
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/v20210701/client.rb', line 544 def DescribeDeployApplicationDetail(request) body = send_request('DescribeDeployApplicationDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDeployApplicationDetailResponse.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 |
#DescribeEnvironment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeEnvironmentResponse`
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 |
# File 'lib/v20210701/client.rb', line 568 def DescribeEnvironment(request) body = send_request('DescribeEnvironment', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeEnvironmentResponse.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 |
#DescribeEnvironments(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeEnvironmentsResponse`
616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 |
# File 'lib/v20210701/client.rb', line 616 def DescribeEnvironments(request) body = send_request('DescribeEnvironments', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeEnvironmentsResponse.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 |
#DescribeEnvironmentStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeEnvironmentStatusResponse`
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 |
# File 'lib/v20210701/client.rb', line 592 def DescribeEnvironmentStatus(request) body = send_request('DescribeEnvironmentStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeEnvironmentStatusResponse.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 |
#DescribeIngress(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeIngressResponse`
640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 |
# File 'lib/v20210701/client.rb', line 640 def DescribeIngress(request) body = send_request('DescribeIngress', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeIngressResponse.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 |
#DescribeIngresses(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeIngressesResponse`
664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 |
# File 'lib/v20210701/client.rb', line 664 def DescribeIngresses(request) body = send_request('DescribeIngresses', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeIngressesResponse.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 |
#DescribeLogConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeLogConfigResponse`
688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 |
# File 'lib/v20210701/client.rb', line 688 def DescribeLogConfig(request) body = send_request('DescribeLogConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLogConfigResponse.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 |
#DescribePagedLogConfigList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribePagedLogConfigListResponse`
712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 |
# File 'lib/v20210701/client.rb', line 712 def DescribePagedLogConfigList(request) body = send_request('DescribePagedLogConfigList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePagedLogConfigListResponse.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 |
#DescribeRelatedIngresses(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DescribeRelatedIngressesResponse`
736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 |
# File 'lib/v20210701/client.rb', line 736 def DescribeRelatedIngresses(request) body = send_request('DescribeRelatedIngresses', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRelatedIngressesResponse.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 |
#DestroyConfigData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DestroyConfigDataResponse`
760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 |
# File 'lib/v20210701/client.rb', line 760 def DestroyConfigData(request) body = send_request('DestroyConfigData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DestroyConfigDataResponse.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 |
#DestroyEnvironment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DestroyEnvironmentResponse`
784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 |
# File 'lib/v20210701/client.rb', line 784 def DestroyEnvironment(request) body = send_request('DestroyEnvironment', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DestroyEnvironmentResponse.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 |
#DestroyLogConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DestroyLogConfigResponse`
808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 |
# File 'lib/v20210701/client.rb', line 808 def DestroyLogConfig(request) body = send_request('DestroyLogConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DestroyLogConfigResponse.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 |
#DisableApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::DisableApplicationAutoscalerResponse`
832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 |
# File 'lib/v20210701/client.rb', line 832 def DisableApplicationAutoscaler(request) body = send_request('DisableApplicationAutoscaler', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DisableApplicationAutoscalerResponse.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 |
#EnableApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::EnableApplicationAutoscalerResponse`
856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 |
# File 'lib/v20210701/client.rb', line 856 def EnableApplicationAutoscaler(request) body = send_request('EnableApplicationAutoscaler', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EnableApplicationAutoscalerResponse.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 |
#GenerateApplicationPackageDownloadUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::GenerateApplicationPackageDownloadUrlResponse`
880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 |
# File 'lib/v20210701/client.rb', line 880 def GenerateApplicationPackageDownloadUrl(request) body = send_request('GenerateApplicationPackageDownloadUrl', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GenerateApplicationPackageDownloadUrlResponse.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 |
#ModifyApplicationAutoscaler(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyApplicationAutoscalerResponse`
904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 |
# File 'lib/v20210701/client.rb', line 904 def ModifyApplicationAutoscaler(request) body = send_request('ModifyApplicationAutoscaler', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyApplicationAutoscalerResponse.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 |
#ModifyApplicationInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyApplicationInfoResponse`
928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 |
# File 'lib/v20210701/client.rb', line 928 def ModifyApplicationInfo(request) body = send_request('ModifyApplicationInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyApplicationInfoResponse.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 |
#ModifyApplicationReplicas(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyApplicationReplicasResponse`
952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 |
# File 'lib/v20210701/client.rb', line 952 def ModifyApplicationReplicas(request) body = send_request('ModifyApplicationReplicas', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyApplicationReplicasResponse.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 |
#ModifyApplicationService(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyApplicationServiceResponse`
976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 |
# File 'lib/v20210701/client.rb', line 976 def ModifyApplicationService(request) body = send_request('ModifyApplicationService', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyApplicationServiceResponse.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 |
#ModifyConfigData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyConfigDataResponse`
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 |
# File 'lib/v20210701/client.rb', line 1000 def ModifyConfigData(request) body = send_request('ModifyConfigData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyConfigDataResponse.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 |
#ModifyEnvironment(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyEnvironmentResponse`
1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 |
# File 'lib/v20210701/client.rb', line 1024 def ModifyEnvironment(request) body = send_request('ModifyEnvironment', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyEnvironmentResponse.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 |
#ModifyIngress(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyIngressResponse`
1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 |
# File 'lib/v20210701/client.rb', line 1048 def ModifyIngress(request) body = send_request('ModifyIngress', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyIngressResponse.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 |
#ModifyLogConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ModifyLogConfigResponse`
1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 |
# File 'lib/v20210701/client.rb', line 1072 def ModifyLogConfig(request) body = send_request('ModifyLogConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyLogConfigResponse.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 |
#RestartApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::RestartApplicationResponse`
1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 |
# File 'lib/v20210701/client.rb', line 1096 def RestartApplication(request) body = send_request('RestartApplication', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RestartApplicationResponse.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 |
#RestartApplicationPod(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::RestartApplicationPodResponse`
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 |
# File 'lib/v20210701/client.rb', line 1120 def RestartApplicationPod(request) body = send_request('RestartApplicationPod', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RestartApplicationPodResponse.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 |
#ResumeDeployApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::ResumeDeployApplicationResponse`
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 |
# File 'lib/v20210701/client.rb', line 1144 def ResumeDeployApplication(request) body = send_request('ResumeDeployApplication', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResumeDeployApplicationResponse.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 |
#RevertDeployApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::RevertDeployApplicationResponse`
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 |
# File 'lib/v20210701/client.rb', line 1168 def RevertDeployApplication(request) body = send_request('RevertDeployApplication', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RevertDeployApplicationResponse.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 |
#RollingUpdateApplicationByVersion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::RollingUpdateApplicationByVersionResponse`
1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 |
# File 'lib/v20210701/client.rb', line 1192 def RollingUpdateApplicationByVersion(request) body = send_request('RollingUpdateApplicationByVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RollingUpdateApplicationByVersionResponse.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 |
#StopApplication(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tem::V20210701::StopApplicationResponse`
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 |
# File 'lib/v20210701/client.rb', line 1216 def StopApplication(request) body = send_request('StopApplication', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopApplicationResponse.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 |