tencentcloud-sdk-scf 1.0.218 → 1.0.219
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180416/client.rb +24 -0
- data/lib/v20180416/models.rb +67 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2e1d7784b31f9b2c1d225c113166a29fe5f119e
|
4
|
+
data.tar.gz: a3f176366fb9d982561a23d742f30fb0531945f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c81a45315a9dfba21a5050d12fa633d8f0e6c28843b6ad68fc5fa085bb6a56b39275b4077515935a11fa2533335a09cca09f76000f7187039aab2b3f293615c4
|
7
|
+
data.tar.gz: 6f7ef357a60f0ee8f7895276c74164e3d386207fd33911bbdfbb248f74f66f10dc4d11edbbe91deb4a97ddab8461e74c71c3253ab68751ac543154843c0dd85e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.219
|
data/lib/v20180416/client.rb
CHANGED
@@ -372,6 +372,30 @@ module TencentCloud
|
|
372
372
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
373
373
|
end
|
374
374
|
|
375
|
+
# 获取函数异步执行事件状态,事件状态保留 3 * 24 小时(从事件完成开始计时)。
|
376
|
+
|
377
|
+
# @param request: Request instance for GetAsyncEventStatus.
|
378
|
+
# @type request: :class:`Tencentcloud::scf::V20180416::GetAsyncEventStatusRequest`
|
379
|
+
# @rtype: :class:`Tencentcloud::scf::V20180416::GetAsyncEventStatusResponse`
|
380
|
+
def GetAsyncEventStatus(request)
|
381
|
+
body = send_request('GetAsyncEventStatus', request.serialize)
|
382
|
+
response = JSON.parse(body)
|
383
|
+
if response['Response'].key?('Error') == false
|
384
|
+
model = GetAsyncEventStatusResponse.new
|
385
|
+
model.deserialize(response['Response'])
|
386
|
+
model
|
387
|
+
else
|
388
|
+
code = response['Response']['Error']['Code']
|
389
|
+
message = response['Response']['Error']['Message']
|
390
|
+
reqid = response['Response']['RequestId']
|
391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
392
|
+
end
|
393
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
394
|
+
raise e
|
395
|
+
rescue StandardError => e
|
396
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
397
|
+
end
|
398
|
+
|
375
399
|
# 该接口获取某个函数的详细信息,包括名称、代码、处理方法、关联触发器和超时时间等字段。
|
376
400
|
|
377
401
|
# @param request: Request instance for GetFunction.
|
data/lib/v20180416/models.rb
CHANGED
@@ -116,6 +116,30 @@ module TencentCloud
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
+
# 异步事件状态
|
120
|
+
class AsyncEventStatus < TencentCloud::Common::AbstractModel
|
121
|
+
# @param Status: 异步事件状态,RUNNING 表示运行中, FINISHED 表示调用成功, ABORTED 表示调用终止, FAILED 表示调用失败。
|
122
|
+
# @type Status: String
|
123
|
+
# @param StatusCode: 请求状态码
|
124
|
+
# @type StatusCode: Integer
|
125
|
+
# @param InvokeRequestId: 异步执行请求 Id
|
126
|
+
# @type InvokeRequestId: String
|
127
|
+
|
128
|
+
attr_accessor :Status, :StatusCode, :InvokeRequestId
|
129
|
+
|
130
|
+
def initialize(status=nil, statuscode=nil, invokerequestid=nil)
|
131
|
+
@Status = status
|
132
|
+
@StatusCode = statuscode
|
133
|
+
@InvokeRequestId = invokerequestid
|
134
|
+
end
|
135
|
+
|
136
|
+
def deserialize(params)
|
137
|
+
@Status = params['Status']
|
138
|
+
@StatusCode = params['StatusCode']
|
139
|
+
@InvokeRequestId = params['InvokeRequestId']
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
119
143
|
# 函数的异步重试配置详情
|
120
144
|
class AsyncTriggerConfig < TencentCloud::Common::AbstractModel
|
121
145
|
# @param RetryConfig: 用户错误的异步重试重试配置
|
@@ -1069,7 +1093,10 @@ module TencentCloud
|
|
1069
1093
|
# 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
|
1070
1094
|
# 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
|
1071
1095
|
class Filter < TencentCloud::Common::AbstractModel
|
1072
|
-
# @param Name:
|
1096
|
+
# @param Name: 需要过滤的字段。过滤条件数量限制为10。
|
1097
|
+
# Name可选值:VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip;Values 长度限制为1。
|
1098
|
+
# Name可选值:Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable;Values 长度限制为20。
|
1099
|
+
# 当 Name = Runtime 时,CustomImage 表示过滤镜像类型函数。
|
1073
1100
|
# @type Name: String
|
1074
1101
|
# @param Values: 字段的过滤值。
|
1075
1102
|
# @type Values: Array
|
@@ -1385,6 +1412,45 @@ module TencentCloud
|
|
1385
1412
|
end
|
1386
1413
|
end
|
1387
1414
|
|
1415
|
+
# GetAsyncEventStatus请求参数结构体
|
1416
|
+
class GetAsyncEventStatusRequest < TencentCloud::Common::AbstractModel
|
1417
|
+
# @param InvokeRequestId: 异步执行请求 id
|
1418
|
+
# @type InvokeRequestId: String
|
1419
|
+
|
1420
|
+
attr_accessor :InvokeRequestId
|
1421
|
+
|
1422
|
+
def initialize(invokerequestid=nil)
|
1423
|
+
@InvokeRequestId = invokerequestid
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
def deserialize(params)
|
1427
|
+
@InvokeRequestId = params['InvokeRequestId']
|
1428
|
+
end
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
# GetAsyncEventStatus返回参数结构体
|
1432
|
+
class GetAsyncEventStatusResponse < TencentCloud::Common::AbstractModel
|
1433
|
+
# @param Result: 异步事件状态
|
1434
|
+
# @type Result: :class:`Tencentcloud::Scf.v20180416.models.AsyncEventStatus`
|
1435
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1436
|
+
# @type RequestId: String
|
1437
|
+
|
1438
|
+
attr_accessor :Result, :RequestId
|
1439
|
+
|
1440
|
+
def initialize(result=nil, requestid=nil)
|
1441
|
+
@Result = result
|
1442
|
+
@RequestId = requestid
|
1443
|
+
end
|
1444
|
+
|
1445
|
+
def deserialize(params)
|
1446
|
+
unless params['Result'].nil?
|
1447
|
+
@Result = AsyncEventStatus.new
|
1448
|
+
@Result.deserialize(params['Result'])
|
1449
|
+
end
|
1450
|
+
@RequestId = params['RequestId']
|
1451
|
+
end
|
1452
|
+
end
|
1453
|
+
|
1388
1454
|
# GetFunctionAddress请求参数结构体
|
1389
1455
|
class GetFunctionAddressRequest < TencentCloud::Common::AbstractModel
|
1390
1456
|
# @param FunctionName: 函数的名称
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-scf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.219
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|