Class: TencentCloud::Scf::V20180416::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Scf::V20180416::Client
- Defined in:
- lib/v20180416/client.rb
Instance Method Summary collapse
-
#CopyFunction(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::CopyFunctionResponse. -
#CreateAlias(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::CreateAliasResponse. -
#CreateCustomDomain(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::CreateCustomDomainResponse. -
#CreateFunction(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::CreateFunctionResponse. -
#CreateNamespace(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::CreateNamespaceResponse. -
#CreateTrigger(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::CreateTriggerResponse. -
#DeleteAlias(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::DeleteAliasResponse. -
#DeleteCustomDomain(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::DeleteCustomDomainResponse. -
#DeleteFunction(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::DeleteFunctionResponse. -
#DeleteFunctionVersion(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::DeleteFunctionVersionResponse. -
#DeleteLayerVersion(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::DeleteLayerVersionResponse. -
#DeleteNamespace(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::DeleteNamespaceResponse. -
#DeleteProvisionedConcurrencyConfig(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::DeleteProvisionedConcurrencyConfigResponse. -
#DeleteReservedConcurrencyConfig(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::DeleteReservedConcurrencyConfigResponse. -
#DeleteTrigger(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::DeleteTriggerResponse. -
#GetAccount(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetAccountResponse. -
#GetAlias(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetAliasResponse. -
#GetAsyncEventStatus(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetAsyncEventStatusResponse. -
#GetCustomDomain(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetCustomDomainResponse. -
#GetFunction(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetFunctionResponse. -
#GetFunctionAddress(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetFunctionAddressResponse. -
#GetFunctionEventInvokeConfig(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetFunctionEventInvokeConfigResponse. -
#GetFunctionLogs(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetFunctionLogsResponse. -
#GetLayerVersion(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetLayerVersionResponse. -
#GetProvisionedConcurrencyConfig(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetProvisionedConcurrencyConfigResponse. -
#GetRequestStatus(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetRequestStatusResponse. -
#GetReservedConcurrencyConfig(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::GetReservedConcurrencyConfigResponse. -
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#Invoke(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::InvokeResponse. -
#InvokeFunction(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::InvokeFunctionResponse. -
#ListAliases(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::ListAliasesResponse. -
#ListAsyncEvents(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::ListAsyncEventsResponse. -
#ListCustomDomains(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::ListCustomDomainsResponse. -
#ListFunctions(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::ListFunctionsResponse. -
#ListLayers(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::ListLayersResponse. -
#ListLayerVersions(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::ListLayerVersionsResponse. -
#ListNamespaces(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::ListNamespacesResponse. -
#ListTriggers(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::ListTriggersResponse. -
#ListVersionByFunction(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::ListVersionByFunctionResponse. -
#PublishLayerVersion(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::PublishLayerVersionResponse. -
#PublishVersion(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::PublishVersionResponse. -
#PutProvisionedConcurrencyConfig(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::PutProvisionedConcurrencyConfigResponse. -
#PutReservedConcurrencyConfig(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::PutReservedConcurrencyConfigResponse. -
#PutTotalConcurrencyConfig(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::PutTotalConcurrencyConfigResponse. -
#TerminateAsyncEvent(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::TerminateAsyncEventResponse. -
#UpdateAlias(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::UpdateAliasResponse. -
#UpdateCustomDomain(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::UpdateCustomDomainResponse. -
#UpdateFunctionCode(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::UpdateFunctionCodeResponse. -
#UpdateFunctionConfiguration(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::UpdateFunctionConfigurationResponse. -
#UpdateFunctionEventInvokeConfig(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::UpdateFunctionEventInvokeConfigResponse. -
#UpdateNamespace(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::UpdateNamespaceResponse. -
#UpdateTrigger(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::UpdateTriggerResponse. -
#UpdateTriggerStatus(request) ⇒ Object
@rtype: :class:
Tencentcloud::scf::V20180416::UpdateTriggerStatusResponse.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20180416/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2018-04-16' api_endpoint = 'scf.tencentcloudapi.com' sdk_version = 'SCF_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#CopyFunction(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::CopyFunctionResponse
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/v20180416/client.rb', line 43 def CopyFunction(request) body = send_request('CopyFunction', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CopyFunctionResponse.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 |
#CreateAlias(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::CreateAliasResponse
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/v20180416/client.rb', line 68 def CreateAlias(request) body = send_request('CreateAlias', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateAliasResponse.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 |
#CreateCustomDomain(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::CreateCustomDomainResponse
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/v20180416/client.rb', line 92 def CreateCustomDomain(request) body = send_request('CreateCustomDomain', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCustomDomainResponse.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 |
#CreateFunction(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::CreateFunctionResponse
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/v20180416/client.rb', line 116 def CreateFunction(request) body = send_request('CreateFunction', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateFunctionResponse.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 |
#CreateNamespace(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::CreateNamespaceResponse
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/v20180416/client.rb', line 140 def CreateNamespace(request) body = send_request('CreateNamespace', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateNamespaceResponse.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 |
#CreateTrigger(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::CreateTriggerResponse
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/v20180416/client.rb', line 164 def CreateTrigger(request) body = send_request('CreateTrigger', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTriggerResponse.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 |
#DeleteAlias(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::DeleteAliasResponse
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/v20180416/client.rb', line 188 def DeleteAlias(request) body = send_request('DeleteAlias', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAliasResponse.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 |
#DeleteCustomDomain(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::DeleteCustomDomainResponse
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/v20180416/client.rb', line 212 def DeleteCustomDomain(request) body = send_request('DeleteCustomDomain', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteCustomDomainResponse.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 |
#DeleteFunction(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::DeleteFunctionResponse
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/v20180416/client.rb', line 236 def DeleteFunction(request) body = send_request('DeleteFunction', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteFunctionResponse.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 |
#DeleteFunctionVersion(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::DeleteFunctionVersionResponse
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'lib/v20180416/client.rb', line 260 def DeleteFunctionVersion(request) body = send_request('DeleteFunctionVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteFunctionVersionResponse.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 |
#DeleteLayerVersion(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::DeleteLayerVersionResponse
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'lib/v20180416/client.rb', line 284 def DeleteLayerVersion(request) body = send_request('DeleteLayerVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteLayerVersionResponse.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 |
#DeleteNamespace(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::DeleteNamespaceResponse
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 |
# File 'lib/v20180416/client.rb', line 308 def DeleteNamespace(request) body = send_request('DeleteNamespace', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteNamespaceResponse.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 |
#DeleteProvisionedConcurrencyConfig(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::DeleteProvisionedConcurrencyConfigResponse
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 |
# File 'lib/v20180416/client.rb', line 332 def DeleteProvisionedConcurrencyConfig(request) body = send_request('DeleteProvisionedConcurrencyConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteProvisionedConcurrencyConfigResponse.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 |
#DeleteReservedConcurrencyConfig(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::DeleteReservedConcurrencyConfigResponse
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 |
# File 'lib/v20180416/client.rb', line 356 def DeleteReservedConcurrencyConfig(request) body = send_request('DeleteReservedConcurrencyConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteReservedConcurrencyConfigResponse.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 |
#DeleteTrigger(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::DeleteTriggerResponse
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 |
# File 'lib/v20180416/client.rb', line 380 def DeleteTrigger(request) body = send_request('DeleteTrigger', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTriggerResponse.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 |
#GetAccount(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetAccountResponse
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 |
# File 'lib/v20180416/client.rb', line 404 def GetAccount(request) body = send_request('GetAccount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetAccountResponse.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 |
#GetAlias(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetAliasResponse
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 |
# File 'lib/v20180416/client.rb', line 428 def GetAlias(request) body = send_request('GetAlias', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetAliasResponse.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 |
#GetAsyncEventStatus(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetAsyncEventStatusResponse
452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 |
# File 'lib/v20180416/client.rb', line 452 def GetAsyncEventStatus(request) body = send_request('GetAsyncEventStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetAsyncEventStatusResponse.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 |
#GetCustomDomain(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetCustomDomainResponse
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 |
# File 'lib/v20180416/client.rb', line 476 def GetCustomDomain(request) body = send_request('GetCustomDomain', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetCustomDomainResponse.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 |
#GetFunction(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetFunctionResponse
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 |
# File 'lib/v20180416/client.rb', line 500 def GetFunction(request) body = send_request('GetFunction', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetFunctionResponse.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 |
#GetFunctionAddress(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetFunctionAddressResponse
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 |
# File 'lib/v20180416/client.rb', line 524 def GetFunctionAddress(request) body = send_request('GetFunctionAddress', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetFunctionAddressResponse.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 |
#GetFunctionEventInvokeConfig(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetFunctionEventInvokeConfigResponse
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 |
# File 'lib/v20180416/client.rb', line 548 def GetFunctionEventInvokeConfig(request) body = send_request('GetFunctionEventInvokeConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetFunctionEventInvokeConfigResponse.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 |
#GetFunctionLogs(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetFunctionLogsResponse
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 |
# File 'lib/v20180416/client.rb', line 572 def GetFunctionLogs(request) body = send_request('GetFunctionLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetFunctionLogsResponse.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 |
#GetLayerVersion(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetLayerVersionResponse
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 |
# File 'lib/v20180416/client.rb', line 596 def GetLayerVersion(request) body = send_request('GetLayerVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetLayerVersionResponse.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 |
#GetProvisionedConcurrencyConfig(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetProvisionedConcurrencyConfigResponse
620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 |
# File 'lib/v20180416/client.rb', line 620 def GetProvisionedConcurrencyConfig(request) body = send_request('GetProvisionedConcurrencyConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetProvisionedConcurrencyConfigResponse.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 |
#GetRequestStatus(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetRequestStatusResponse
644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 |
# File 'lib/v20180416/client.rb', line 644 def GetRequestStatus(request) body = send_request('GetRequestStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetRequestStatusResponse.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 |
#GetReservedConcurrencyConfig(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::GetReservedConcurrencyConfigResponse
668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 |
# File 'lib/v20180416/client.rb', line 668 def GetReservedConcurrencyConfig(request) body = send_request('GetReservedConcurrencyConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetReservedConcurrencyConfigResponse.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 |
#Invoke(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::InvokeResponse
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 |
# File 'lib/v20180416/client.rb', line 692 def Invoke(request) body = send_request('Invoke', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InvokeResponse.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 |
#InvokeFunction(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::InvokeFunctionResponse
716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 |
# File 'lib/v20180416/client.rb', line 716 def InvokeFunction(request) body = send_request('InvokeFunction', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InvokeFunctionResponse.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 |
#ListAliases(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::ListAliasesResponse
740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 |
# File 'lib/v20180416/client.rb', line 740 def ListAliases(request) body = send_request('ListAliases', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListAliasesResponse.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 |
#ListAsyncEvents(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::ListAsyncEventsResponse
764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 |
# File 'lib/v20180416/client.rb', line 764 def ListAsyncEvents(request) body = send_request('ListAsyncEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListAsyncEventsResponse.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 |
#ListCustomDomains(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::ListCustomDomainsResponse
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 |
# File 'lib/v20180416/client.rb', line 788 def ListCustomDomains(request) body = send_request('ListCustomDomains', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListCustomDomainsResponse.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 |
#ListFunctions(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::ListFunctionsResponse
812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 |
# File 'lib/v20180416/client.rb', line 812 def ListFunctions(request) body = send_request('ListFunctions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListFunctionsResponse.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 |
#ListLayers(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::ListLayersResponse
860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 |
# File 'lib/v20180416/client.rb', line 860 def ListLayers(request) body = send_request('ListLayers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListLayersResponse.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 |
#ListLayerVersions(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::ListLayerVersionsResponse
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 |
# File 'lib/v20180416/client.rb', line 836 def ListLayerVersions(request) body = send_request('ListLayerVersions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListLayerVersionsResponse.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 |
#ListNamespaces(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::ListNamespacesResponse
884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 |
# File 'lib/v20180416/client.rb', line 884 def ListNamespaces(request) body = send_request('ListNamespaces', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListNamespacesResponse.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 |
#ListTriggers(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::ListTriggersResponse
908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 |
# File 'lib/v20180416/client.rb', line 908 def ListTriggers(request) body = send_request('ListTriggers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListTriggersResponse.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 |
#ListVersionByFunction(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::ListVersionByFunctionResponse
932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 |
# File 'lib/v20180416/client.rb', line 932 def ListVersionByFunction(request) body = send_request('ListVersionByFunction', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ListVersionByFunctionResponse.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 |
#PublishLayerVersion(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::PublishLayerVersionResponse
956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 |
# File 'lib/v20180416/client.rb', line 956 def PublishLayerVersion(request) body = send_request('PublishLayerVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PublishLayerVersionResponse.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 |
#PublishVersion(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::PublishVersionResponse
980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 |
# File 'lib/v20180416/client.rb', line 980 def PublishVersion(request) body = send_request('PublishVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PublishVersionResponse.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 |
#PutProvisionedConcurrencyConfig(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::PutProvisionedConcurrencyConfigResponse
1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 |
# File 'lib/v20180416/client.rb', line 1004 def PutProvisionedConcurrencyConfig(request) body = send_request('PutProvisionedConcurrencyConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PutProvisionedConcurrencyConfigResponse.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 |
#PutReservedConcurrencyConfig(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::PutReservedConcurrencyConfigResponse
1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'lib/v20180416/client.rb', line 1028 def PutReservedConcurrencyConfig(request) body = send_request('PutReservedConcurrencyConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PutReservedConcurrencyConfigResponse.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 |
#PutTotalConcurrencyConfig(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::PutTotalConcurrencyConfigResponse
1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 |
# File 'lib/v20180416/client.rb', line 1052 def PutTotalConcurrencyConfig(request) body = send_request('PutTotalConcurrencyConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PutTotalConcurrencyConfigResponse.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 |
#TerminateAsyncEvent(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::TerminateAsyncEventResponse
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 |
# File 'lib/v20180416/client.rb', line 1076 def TerminateAsyncEvent(request) body = send_request('TerminateAsyncEvent', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TerminateAsyncEventResponse.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 |
#UpdateAlias(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::UpdateAliasResponse
1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 |
# File 'lib/v20180416/client.rb', line 1100 def UpdateAlias(request) body = send_request('UpdateAlias', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateAliasResponse.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 |
#UpdateCustomDomain(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::UpdateCustomDomainResponse
1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 |
# File 'lib/v20180416/client.rb', line 1124 def UpdateCustomDomain(request) body = send_request('UpdateCustomDomain', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateCustomDomainResponse.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 |
#UpdateFunctionCode(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::UpdateFunctionCodeResponse
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 |
# File 'lib/v20180416/client.rb', line 1148 def UpdateFunctionCode(request) body = send_request('UpdateFunctionCode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateFunctionCodeResponse.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 |
#UpdateFunctionConfiguration(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::UpdateFunctionConfigurationResponse
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 |
# File 'lib/v20180416/client.rb', line 1172 def UpdateFunctionConfiguration(request) body = send_request('UpdateFunctionConfiguration', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateFunctionConfigurationResponse.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 |
#UpdateFunctionEventInvokeConfig(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::UpdateFunctionEventInvokeConfigResponse
1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 |
# File 'lib/v20180416/client.rb', line 1196 def UpdateFunctionEventInvokeConfig(request) body = send_request('UpdateFunctionEventInvokeConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateFunctionEventInvokeConfigResponse.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 |
#UpdateNamespace(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::UpdateNamespaceResponse
1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 |
# File 'lib/v20180416/client.rb', line 1220 def UpdateNamespace(request) body = send_request('UpdateNamespace', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateNamespaceResponse.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 |
#UpdateTrigger(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::UpdateTriggerResponse
1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 |
# File 'lib/v20180416/client.rb', line 1259 def UpdateTrigger(request) body = send_request('UpdateTrigger', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateTriggerResponse.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 |
#UpdateTriggerStatus(request) ⇒ Object
@rtype: :class:Tencentcloud::scf::V20180416::UpdateTriggerStatusResponse
1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 |
# File 'lib/v20180416/client.rb', line 1283 def UpdateTriggerStatus(request) body = send_request('UpdateTriggerStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateTriggerStatusResponse.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 |