tencentcloud-sdk-scf 1.0.215 → 1.0.219

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b077f8e79b80bfe860b2e00a448846c9ac78518
4
- data.tar.gz: 7c892634d493f31572a24914eca8ff1a8f58f454
3
+ metadata.gz: c2e1d7784b31f9b2c1d225c113166a29fe5f119e
4
+ data.tar.gz: a3f176366fb9d982561a23d742f30fb0531945f5
5
5
  SHA512:
6
- metadata.gz: a282c40e40e9086c57309d8855fd34d4840ff3ba1af9cf5e74064e472653b1f14be0efba7c3a036d111f984ec83e867e8e7900af45025f6602ce652ba3e65ebf
7
- data.tar.gz: ce4ccd949269373f7d54fe145dffd0b6beac04d42375f6e39ba01910eca34f2705f28de61bd973dee5e93815268f3c2c743fda31565598fcdfc5e590dd0ccf27
6
+ metadata.gz: c81a45315a9dfba21a5050d12fa633d8f0e6c28843b6ad68fc5fa085bb6a56b39275b4077515935a11fa2533335a09cca09f76000f7187039aab2b3f293615c4
7
+ data.tar.gz: 6f7ef357a60f0ee8f7895276c74164e3d386207fd33911bbdfbb248f74f66f10dc4d11edbbe91deb4a97ddab8461e74c71c3253ab68751ac543154843c0dd85e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.215
1
+ 1.0.219
@@ -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.
@@ -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: 函数的名称
@@ -3954,6 +4020,8 @@ module TencentCloud
3954
4020
  # @type Namespace: String
3955
4021
  # @param CosBucketRegion: 对象存储的地域,注:北京分为ap-beijing和ap-beijing-1
3956
4022
  # @type CosBucketRegion: String
4023
+ # @param InstallDependency: 是否自动安装依赖
4024
+ # @type InstallDependency: String
3957
4025
  # @param EnvId: 函数所属环境
3958
4026
  # @type EnvId: String
3959
4027
  # @param Publish: 在更新时是否同步发布新版本,默认为:FALSE,不发布
@@ -3963,9 +4031,9 @@ module TencentCloud
3963
4031
  # @param CodeSource: 代码来源方式,支持 ZipFile, Cos, Inline 之一
3964
4032
  # @type CodeSource: String
3965
4033
 
3966
- attr_accessor :FunctionName, :Handler, :CosBucketName, :CosObjectName, :ZipFile, :Namespace, :CosBucketRegion, :EnvId, :Publish, :Code, :CodeSource
4034
+ attr_accessor :FunctionName, :Handler, :CosBucketName, :CosObjectName, :ZipFile, :Namespace, :CosBucketRegion, :InstallDependency, :EnvId, :Publish, :Code, :CodeSource
3967
4035
 
3968
- def initialize(functionname=nil, handler=nil, cosbucketname=nil, cosobjectname=nil, zipfile=nil, namespace=nil, cosbucketregion=nil, envid=nil, publish=nil, code=nil, codesource=nil)
4036
+ def initialize(functionname=nil, handler=nil, cosbucketname=nil, cosobjectname=nil, zipfile=nil, namespace=nil, cosbucketregion=nil, installdependency=nil, envid=nil, publish=nil, code=nil, codesource=nil)
3969
4037
  @FunctionName = functionname
3970
4038
  @Handler = handler
3971
4039
  @CosBucketName = cosbucketname
@@ -3973,6 +4041,7 @@ module TencentCloud
3973
4041
  @ZipFile = zipfile
3974
4042
  @Namespace = namespace
3975
4043
  @CosBucketRegion = cosbucketregion
4044
+ @InstallDependency = installdependency
3976
4045
  @EnvId = envid
3977
4046
  @Publish = publish
3978
4047
  @Code = code
@@ -3987,6 +4056,7 @@ module TencentCloud
3987
4056
  @ZipFile = params['ZipFile']
3988
4057
  @Namespace = params['Namespace']
3989
4058
  @CosBucketRegion = params['CosBucketRegion']
4059
+ @InstallDependency = params['InstallDependency']
3990
4060
  @EnvId = params['EnvId']
3991
4061
  @Publish = params['Publish']
3992
4062
  unless params['Code'].nil?
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.215
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-02 00:00:00.000000000 Z
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