tencentcloud-sdk-scf 1.0.213 → 1.0.217
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 +116 -3
- 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: 46dcd5addd50807fab15dee5d3bc9658b92f38fa
|
4
|
+
data.tar.gz: 83e2df061547566dc13685f6bc84a7b6d073a789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a809a8c8653a5dcd22b2334ba8ea45dee3e79ce6b8995377771a0ba6ae7341df1f9e74ee36d3a4401a2299b1e0080ac115f439ddc79f963e8ec56c895e96eb5e
|
7
|
+
data.tar.gz: 7a90abf8fd8d0077e300fc9f322cb05af984173810ade1a4812779ba788183762b16a567b2b7a7cf4145f36668aaca62e29c3b14d12a34545eec098a985dad5e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.217
|
data/lib/v20180416/client.rb
CHANGED
@@ -516,6 +516,30 @@ module TencentCloud
|
|
516
516
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
517
517
|
end
|
518
518
|
|
519
|
+
# 该接口根据指定的查询条件返回函数单个请求运行状态。
|
520
|
+
|
521
|
+
# @param request: Request instance for GetRequestStatus.
|
522
|
+
# @type request: :class:`Tencentcloud::scf::V20180416::GetRequestStatusRequest`
|
523
|
+
# @rtype: :class:`Tencentcloud::scf::V20180416::GetRequestStatusResponse`
|
524
|
+
def GetRequestStatus(request)
|
525
|
+
body = send_request('GetRequestStatus', request.serialize)
|
526
|
+
response = JSON.parse(body)
|
527
|
+
if response['Response'].key?('Error') == false
|
528
|
+
model = GetRequestStatusResponse.new
|
529
|
+
model.deserialize(response['Response'])
|
530
|
+
model
|
531
|
+
else
|
532
|
+
code = response['Response']['Error']['Code']
|
533
|
+
message = response['Response']['Error']['Message']
|
534
|
+
reqid = response['Response']['RequestId']
|
535
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
536
|
+
end
|
537
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
538
|
+
raise e
|
539
|
+
rescue StandardError => e
|
540
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
541
|
+
end
|
542
|
+
|
519
543
|
# 获取函数的最大独占配额详情。
|
520
544
|
|
521
545
|
# @param request: Request instance for GetReservedConcurrencyConfig.
|
data/lib/v20180416/models.rb
CHANGED
@@ -1999,6 +1999,71 @@ module TencentCloud
|
|
1999
1999
|
end
|
2000
2000
|
end
|
2001
2001
|
|
2002
|
+
# GetRequestStatus请求参数结构体
|
2003
|
+
class GetRequestStatusRequest < TencentCloud::Common::AbstractModel
|
2004
|
+
# @param FunctionName: 函数名称
|
2005
|
+
# @type FunctionName: String
|
2006
|
+
# @param FunctionRequestId: 需要查询状态的请求 id
|
2007
|
+
# @type FunctionRequestId: String
|
2008
|
+
# @param Namespace: 函数的所在的命名空间
|
2009
|
+
# @type Namespace: String
|
2010
|
+
# @param StartTime: 查询的开始时间,例如:2017-05-16 20:00:00,不填默认为当前时间 - 24小时
|
2011
|
+
# @type StartTime: String
|
2012
|
+
# @param EndTime: 查询的结束时间,例如:2017-05-16 20:59:59,不填默认为当前时间。EndTime 需要晚于 StartTime。
|
2013
|
+
# @type EndTime: String
|
2014
|
+
|
2015
|
+
attr_accessor :FunctionName, :FunctionRequestId, :Namespace, :StartTime, :EndTime
|
2016
|
+
|
2017
|
+
def initialize(functionname=nil, functionrequestid=nil, namespace=nil, starttime=nil, endtime=nil)
|
2018
|
+
@FunctionName = functionname
|
2019
|
+
@FunctionRequestId = functionrequestid
|
2020
|
+
@Namespace = namespace
|
2021
|
+
@StartTime = starttime
|
2022
|
+
@EndTime = endtime
|
2023
|
+
end
|
2024
|
+
|
2025
|
+
def deserialize(params)
|
2026
|
+
@FunctionName = params['FunctionName']
|
2027
|
+
@FunctionRequestId = params['FunctionRequestId']
|
2028
|
+
@Namespace = params['Namespace']
|
2029
|
+
@StartTime = params['StartTime']
|
2030
|
+
@EndTime = params['EndTime']
|
2031
|
+
end
|
2032
|
+
end
|
2033
|
+
|
2034
|
+
# GetRequestStatus返回参数结构体
|
2035
|
+
class GetRequestStatusResponse < TencentCloud::Common::AbstractModel
|
2036
|
+
# @param TotalCount: 函数运行状态的总数
|
2037
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2038
|
+
# @type TotalCount: Integer
|
2039
|
+
# @param Data: 函数运行状态数组
|
2040
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2041
|
+
# @type Data: Array
|
2042
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2043
|
+
# @type RequestId: String
|
2044
|
+
|
2045
|
+
attr_accessor :TotalCount, :Data, :RequestId
|
2046
|
+
|
2047
|
+
def initialize(totalcount=nil, data=nil, requestid=nil)
|
2048
|
+
@TotalCount = totalcount
|
2049
|
+
@Data = data
|
2050
|
+
@RequestId = requestid
|
2051
|
+
end
|
2052
|
+
|
2053
|
+
def deserialize(params)
|
2054
|
+
@TotalCount = params['TotalCount']
|
2055
|
+
unless params['Data'].nil?
|
2056
|
+
@Data = []
|
2057
|
+
params['Data'].each do |i|
|
2058
|
+
requeststatus_tmp = RequestStatus.new
|
2059
|
+
requeststatus_tmp.deserialize(i)
|
2060
|
+
@Data << requeststatus_tmp
|
2061
|
+
end
|
2062
|
+
end
|
2063
|
+
@RequestId = params['RequestId']
|
2064
|
+
end
|
2065
|
+
end
|
2066
|
+
|
2002
2067
|
# GetReservedConcurrencyConfig请求参数结构体
|
2003
2068
|
class GetReservedConcurrencyConfigRequest < TencentCloud::Common::AbstractModel
|
2004
2069
|
# @param FunctionName: 需要获取最大独占配额详情的函数名称。
|
@@ -2145,7 +2210,7 @@ module TencentCloud
|
|
2145
2210
|
# @type FunctionName: String
|
2146
2211
|
# @param InvocationType: 同步调用请使用[同步 Invoke 调用接口](https://cloud.tencent.com/document/product/583/58400) 或填写同步调用参数 RequestResponse ,建议使用同步调用接口以获取最佳性能;异步调用填写 Event;默认为同步。接口超时时间为 300s,更长超时时间请使用异步调用。
|
2147
2212
|
# @type InvocationType: String
|
2148
|
-
# @param Qualifier:
|
2213
|
+
# @param Qualifier: 触发函数的版本号或别名,默认值为 $LATEST
|
2149
2214
|
# @type Qualifier: String
|
2150
2215
|
# @param ClientContext: 运行函数时的参数,以json格式传入,同步调用最大支持 6MB,异步调用最大支持 128 KB。该字段信息对应函数 [event 入参](https://cloud.tencent.com/document/product/583/9210#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E)。
|
2151
2216
|
# @type ClientContext: String
|
@@ -3352,6 +3417,50 @@ module TencentCloud
|
|
3352
3417
|
end
|
3353
3418
|
end
|
3354
3419
|
|
3420
|
+
# 函数运行状态
|
3421
|
+
class RequestStatus < TencentCloud::Common::AbstractModel
|
3422
|
+
# @param FunctionName: 函数的名称
|
3423
|
+
# @type FunctionName: String
|
3424
|
+
# @param RetMsg: 函数执行完成后的返回值
|
3425
|
+
# @type RetMsg: String
|
3426
|
+
# @param RequestId: 查询的请求 id
|
3427
|
+
# @type RequestId: String
|
3428
|
+
# @param StartTime: 请求开始时间
|
3429
|
+
# @type StartTime: String
|
3430
|
+
# @param RetCode: 请求执行结果, 0 表示执行成功,1表示运行中,-1 表示执行异常。
|
3431
|
+
# @type RetCode: Integer
|
3432
|
+
# @param Duration: 请求运行耗时,单位:ms
|
3433
|
+
# @type Duration: Float
|
3434
|
+
# @param MemUsage: 请求消耗内存,单位为 MB
|
3435
|
+
# @type MemUsage: Float
|
3436
|
+
# @param RetryNum: 重试次数
|
3437
|
+
# @type RetryNum: Integer
|
3438
|
+
|
3439
|
+
attr_accessor :FunctionName, :RetMsg, :RequestId, :StartTime, :RetCode, :Duration, :MemUsage, :RetryNum
|
3440
|
+
|
3441
|
+
def initialize(functionname=nil, retmsg=nil, requestid=nil, starttime=nil, retcode=nil, duration=nil, memusage=nil, retrynum=nil)
|
3442
|
+
@FunctionName = functionname
|
3443
|
+
@RetMsg = retmsg
|
3444
|
+
@RequestId = requestid
|
3445
|
+
@StartTime = starttime
|
3446
|
+
@RetCode = retcode
|
3447
|
+
@Duration = duration
|
3448
|
+
@MemUsage = memusage
|
3449
|
+
@RetryNum = retrynum
|
3450
|
+
end
|
3451
|
+
|
3452
|
+
def deserialize(params)
|
3453
|
+
@FunctionName = params['FunctionName']
|
3454
|
+
@RetMsg = params['RetMsg']
|
3455
|
+
@RequestId = params['RequestId']
|
3456
|
+
@StartTime = params['StartTime']
|
3457
|
+
@RetCode = params['RetCode']
|
3458
|
+
@Duration = params['Duration']
|
3459
|
+
@MemUsage = params['MemUsage']
|
3460
|
+
@RetryNum = params['RetryNum']
|
3461
|
+
end
|
3462
|
+
end
|
3463
|
+
|
3355
3464
|
# 运行函数的返回
|
3356
3465
|
class Result < TencentCloud::Common::AbstractModel
|
3357
3466
|
# @param Log: 表示执行过程中的日志输出,异步调用返回为空
|
@@ -3845,6 +3954,8 @@ module TencentCloud
|
|
3845
3954
|
# @type Namespace: String
|
3846
3955
|
# @param CosBucketRegion: 对象存储的地域,注:北京分为ap-beijing和ap-beijing-1
|
3847
3956
|
# @type CosBucketRegion: String
|
3957
|
+
# @param InstallDependency: 是否自动安装依赖
|
3958
|
+
# @type InstallDependency: String
|
3848
3959
|
# @param EnvId: 函数所属环境
|
3849
3960
|
# @type EnvId: String
|
3850
3961
|
# @param Publish: 在更新时是否同步发布新版本,默认为:FALSE,不发布
|
@@ -3854,9 +3965,9 @@ module TencentCloud
|
|
3854
3965
|
# @param CodeSource: 代码来源方式,支持 ZipFile, Cos, Inline 之一
|
3855
3966
|
# @type CodeSource: String
|
3856
3967
|
|
3857
|
-
attr_accessor :FunctionName, :Handler, :CosBucketName, :CosObjectName, :ZipFile, :Namespace, :CosBucketRegion, :EnvId, :Publish, :Code, :CodeSource
|
3968
|
+
attr_accessor :FunctionName, :Handler, :CosBucketName, :CosObjectName, :ZipFile, :Namespace, :CosBucketRegion, :InstallDependency, :EnvId, :Publish, :Code, :CodeSource
|
3858
3969
|
|
3859
|
-
def initialize(functionname=nil, handler=nil, cosbucketname=nil, cosobjectname=nil, zipfile=nil, namespace=nil, cosbucketregion=nil, envid=nil, publish=nil, code=nil, codesource=nil)
|
3970
|
+
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)
|
3860
3971
|
@FunctionName = functionname
|
3861
3972
|
@Handler = handler
|
3862
3973
|
@CosBucketName = cosbucketname
|
@@ -3864,6 +3975,7 @@ module TencentCloud
|
|
3864
3975
|
@ZipFile = zipfile
|
3865
3976
|
@Namespace = namespace
|
3866
3977
|
@CosBucketRegion = cosbucketregion
|
3978
|
+
@InstallDependency = installdependency
|
3867
3979
|
@EnvId = envid
|
3868
3980
|
@Publish = publish
|
3869
3981
|
@Code = code
|
@@ -3878,6 +3990,7 @@ module TencentCloud
|
|
3878
3990
|
@ZipFile = params['ZipFile']
|
3879
3991
|
@Namespace = params['Namespace']
|
3880
3992
|
@CosBucketRegion = params['CosBucketRegion']
|
3993
|
+
@InstallDependency = params['InstallDependency']
|
3881
3994
|
@EnvId = params['EnvId']
|
3882
3995
|
@Publish = params['Publish']
|
3883
3996
|
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.
|
4
|
+
version: 1.0.217
|
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-
|
11
|
+
date: 2021-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|