tencentcloud-sdk-scf 1.0.217 → 1.0.221
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 +77 -6
- 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: 1c935be85afd6b76a94d7d8e8d354166fef435de
|
4
|
+
data.tar.gz: 0ad47d974a932ef9ba8a26f7b44b614c717ebda4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ab96dff4bd3a059be8e17796e786545a422e70f00abe6dcbc59766ce898a372861017d65ffc83e42ee4892a3861a6e055b9215345d6864873ef468d96e80bff
|
7
|
+
data.tar.gz: ee19a5ec7c256a19bc041ca71e4a4e4e00fa0f0ec410bad988464f31e2ef58992c0db61f030368bd2c904edbc02924c6a4d93999964f9c8256bd0f84a24ce3cf
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.221
|
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: 用户错误的异步重试重试配置
|
@@ -755,7 +779,7 @@ module TencentCloud
|
|
755
779
|
# @type FunctionName: String
|
756
780
|
# @param Namespace: 函数所属命名空间
|
757
781
|
# @type Namespace: String
|
758
|
-
# @param Qualifier:
|
782
|
+
# @param Qualifier: 函数版本,如果删除版本的话传入版本号,不传入改字段删除函数下的所有版本
|
759
783
|
# @type Qualifier: String
|
760
784
|
|
761
785
|
attr_accessor :FunctionName, :Namespace, :Qualifier
|
@@ -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
|
@@ -1256,14 +1283,18 @@ module TencentCloud
|
|
1256
1283
|
# @param ModTime: 更新时间
|
1257
1284
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1258
1285
|
# @type ModTime: String
|
1286
|
+
# @param Status: 版本状态
|
1287
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1288
|
+
# @type Status: String
|
1259
1289
|
|
1260
|
-
attr_accessor :Version, :Description, :AddTime, :ModTime
|
1290
|
+
attr_accessor :Version, :Description, :AddTime, :ModTime, :Status
|
1261
1291
|
|
1262
|
-
def initialize(version=nil, description=nil, addtime=nil, modtime=nil)
|
1292
|
+
def initialize(version=nil, description=nil, addtime=nil, modtime=nil, status=nil)
|
1263
1293
|
@Version = version
|
1264
1294
|
@Description = description
|
1265
1295
|
@AddTime = addtime
|
1266
1296
|
@ModTime = modtime
|
1297
|
+
@Status = status
|
1267
1298
|
end
|
1268
1299
|
|
1269
1300
|
def deserialize(params)
|
@@ -1271,6 +1302,7 @@ module TencentCloud
|
|
1271
1302
|
@Description = params['Description']
|
1272
1303
|
@AddTime = params['AddTime']
|
1273
1304
|
@ModTime = params['ModTime']
|
1305
|
+
@Status = params['Status']
|
1274
1306
|
end
|
1275
1307
|
end
|
1276
1308
|
|
@@ -1385,6 +1417,45 @@ module TencentCloud
|
|
1385
1417
|
end
|
1386
1418
|
end
|
1387
1419
|
|
1420
|
+
# GetAsyncEventStatus请求参数结构体
|
1421
|
+
class GetAsyncEventStatusRequest < TencentCloud::Common::AbstractModel
|
1422
|
+
# @param InvokeRequestId: 异步执行请求 id
|
1423
|
+
# @type InvokeRequestId: String
|
1424
|
+
|
1425
|
+
attr_accessor :InvokeRequestId
|
1426
|
+
|
1427
|
+
def initialize(invokerequestid=nil)
|
1428
|
+
@InvokeRequestId = invokerequestid
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
def deserialize(params)
|
1432
|
+
@InvokeRequestId = params['InvokeRequestId']
|
1433
|
+
end
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
# GetAsyncEventStatus返回参数结构体
|
1437
|
+
class GetAsyncEventStatusResponse < TencentCloud::Common::AbstractModel
|
1438
|
+
# @param Result: 异步事件状态
|
1439
|
+
# @type Result: :class:`Tencentcloud::Scf.v20180416.models.AsyncEventStatus`
|
1440
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1441
|
+
# @type RequestId: String
|
1442
|
+
|
1443
|
+
attr_accessor :Result, :RequestId
|
1444
|
+
|
1445
|
+
def initialize(result=nil, requestid=nil)
|
1446
|
+
@Result = result
|
1447
|
+
@RequestId = requestid
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
def deserialize(params)
|
1451
|
+
unless params['Result'].nil?
|
1452
|
+
@Result = AsyncEventStatus.new
|
1453
|
+
@Result.deserialize(params['Result'])
|
1454
|
+
end
|
1455
|
+
@RequestId = params['RequestId']
|
1456
|
+
end
|
1457
|
+
end
|
1458
|
+
|
1388
1459
|
# GetFunctionAddress请求参数结构体
|
1389
1460
|
class GetFunctionAddressRequest < TencentCloud::Common::AbstractModel
|
1390
1461
|
# @param FunctionName: 函数的名称
|
@@ -2114,7 +2185,7 @@ module TencentCloud
|
|
2114
2185
|
# @param RegistryId: 用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填
|
2115
2186
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2116
2187
|
# @type RegistryId: String
|
2117
|
-
# @param EntryPoint:
|
2188
|
+
# @param EntryPoint: 参数已废弃
|
2118
2189
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2119
2190
|
# @type EntryPoint: String
|
2120
2191
|
# @param Command: entrypoint执行命令
|
@@ -3623,7 +3694,7 @@ module TencentCloud
|
|
3623
3694
|
# @type InvokeRequestId: String
|
3624
3695
|
# @param Namespace: 命名空间
|
3625
3696
|
# @type Namespace: String
|
3626
|
-
# @param GraceShutdown:
|
3697
|
+
# @param GraceShutdown: 该参数已下线
|
3627
3698
|
# @type GraceShutdown: Boolean
|
3628
3699
|
|
3629
3700
|
attr_accessor :FunctionName, :InvokeRequestId, :Namespace, :GraceShutdown
|
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.221
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|