tencentcloud-sdk-scf 1.0.214 → 1.0.215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180416/client.rb +24 -0
- data/lib/v20180416/models.rb +110 -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: 7b077f8e79b80bfe860b2e00a448846c9ac78518
|
4
|
+
data.tar.gz: 7c892634d493f31572a24914eca8ff1a8f58f454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a282c40e40e9086c57309d8855fd34d4840ff3ba1af9cf5e74064e472653b1f14be0efba7c3a036d111f984ec83e867e8e7900af45025f6602ce652ba3e65ebf
|
7
|
+
data.tar.gz: ce4ccd949269373f7d54fe145dffd0b6beac04d42375f6e39ba01910eca34f2705f28de61bd973dee5e93815268f3c2c743fda31565598fcdfc5e590dd0ccf27
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.215
|
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: 表示执行过程中的日志输出,异步调用返回为空
|
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.215
|
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-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|