tencentcloud-sdk-scf 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-scf.rb +11 -0
- data/lib/v20180416/client.rb +1051 -0
- data/lib/v20180416/models.rb +4309 -0
- metadata +66 -0
@@ -0,0 +1,4309 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Scf
|
19
|
+
module V20180416
|
20
|
+
# HTTP域名相关信息
|
21
|
+
class AccessInfo < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Host: 域名
|
23
|
+
# @type Host: String
|
24
|
+
# @param Vip: VIP
|
25
|
+
# @type Vip: String
|
26
|
+
|
27
|
+
attr_accessor :Host, :Vip
|
28
|
+
|
29
|
+
def initialize(host=nil, vip=nil)
|
30
|
+
@Host = host
|
31
|
+
@Vip = vip
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@Host = params['Host']
|
36
|
+
@Vip = params['Vip']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# 函数的版本别名
|
41
|
+
class Alias < TencentCloud::Common::AbstractModel
|
42
|
+
# @param FunctionVersion: 别名指向的主版本
|
43
|
+
# @type FunctionVersion: String
|
44
|
+
# @param Name: 别名的名称
|
45
|
+
# @type Name: String
|
46
|
+
# @param RoutingConfig: 别名的路由信息
|
47
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
48
|
+
# @type RoutingConfig: :class:`Tencentcloud::Scf.v20180416.models.RoutingConfig`
|
49
|
+
# @param Description: 描述信息
|
50
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
51
|
+
# @type Description: String
|
52
|
+
# @param AddTime: 创建时间
|
53
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
54
|
+
# @type AddTime: String
|
55
|
+
# @param ModTime: 更新时间
|
56
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
57
|
+
# @type ModTime: String
|
58
|
+
|
59
|
+
attr_accessor :FunctionVersion, :Name, :RoutingConfig, :Description, :AddTime, :ModTime
|
60
|
+
|
61
|
+
def initialize(functionversion=nil, name=nil, routingconfig=nil, description=nil, addtime=nil, modtime=nil)
|
62
|
+
@FunctionVersion = functionversion
|
63
|
+
@Name = name
|
64
|
+
@RoutingConfig = routingconfig
|
65
|
+
@Description = description
|
66
|
+
@AddTime = addtime
|
67
|
+
@ModTime = modtime
|
68
|
+
end
|
69
|
+
|
70
|
+
def deserialize(params)
|
71
|
+
@FunctionVersion = params['FunctionVersion']
|
72
|
+
@Name = params['Name']
|
73
|
+
unless params['RoutingConfig'].nil?
|
74
|
+
@RoutingConfig = RoutingConfig.new
|
75
|
+
@RoutingConfig.deserialize(params['RoutingConfig'])
|
76
|
+
end
|
77
|
+
@Description = params['Description']
|
78
|
+
@AddTime = params['AddTime']
|
79
|
+
@ModTime = params['ModTime']
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# 异步事件
|
84
|
+
class AsyncEvent < TencentCloud::Common::AbstractModel
|
85
|
+
# @param InvokeRequestId: 调用请求id
|
86
|
+
# @type InvokeRequestId: String
|
87
|
+
# @param InvokeType: 调用类型
|
88
|
+
# @type InvokeType: String
|
89
|
+
# @param Qualifier: 函数版本
|
90
|
+
# @type Qualifier: String
|
91
|
+
# @param Status: 事件状态,RUNNING 表示运行中, FINISHED 表示调用成功, ABORTED 表示调用终止, FAILED 表示调用失败
|
92
|
+
# @type Status: String
|
93
|
+
# @param StartTime: 调用开始时间,格式: "%Y-%m-%d %H:%M:%S.%f"
|
94
|
+
# @type StartTime: String
|
95
|
+
# @param EndTime: 调用结束时间,格式: "%Y-%m-%d %H:%M:%S.%f"
|
96
|
+
# @type EndTime: String
|
97
|
+
|
98
|
+
attr_accessor :InvokeRequestId, :InvokeType, :Qualifier, :Status, :StartTime, :EndTime
|
99
|
+
|
100
|
+
def initialize(invokerequestid=nil, invoketype=nil, qualifier=nil, status=nil, starttime=nil, endtime=nil)
|
101
|
+
@InvokeRequestId = invokerequestid
|
102
|
+
@InvokeType = invoketype
|
103
|
+
@Qualifier = qualifier
|
104
|
+
@Status = status
|
105
|
+
@StartTime = starttime
|
106
|
+
@EndTime = endtime
|
107
|
+
end
|
108
|
+
|
109
|
+
def deserialize(params)
|
110
|
+
@InvokeRequestId = params['InvokeRequestId']
|
111
|
+
@InvokeType = params['InvokeType']
|
112
|
+
@Qualifier = params['Qualifier']
|
113
|
+
@Status = params['Status']
|
114
|
+
@StartTime = params['StartTime']
|
115
|
+
@EndTime = params['EndTime']
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# 函数的异步重试配置详情
|
120
|
+
class AsyncTriggerConfig < TencentCloud::Common::AbstractModel
|
121
|
+
# @param RetryConfig: 用户错误的异步重试重试配置
|
122
|
+
# @type RetryConfig: Array
|
123
|
+
# @param MsgTTL: 消息保留时间
|
124
|
+
# @type MsgTTL: Integer
|
125
|
+
|
126
|
+
attr_accessor :RetryConfig, :MsgTTL
|
127
|
+
|
128
|
+
def initialize(retryconfig=nil, msgttl=nil)
|
129
|
+
@RetryConfig = retryconfig
|
130
|
+
@MsgTTL = msgttl
|
131
|
+
end
|
132
|
+
|
133
|
+
def deserialize(params)
|
134
|
+
unless params['RetryConfig'].nil?
|
135
|
+
@RetryConfig = []
|
136
|
+
params['RetryConfig'].each do |i|
|
137
|
+
retryconfig_tmp = RetryConfig.new
|
138
|
+
retryconfig_tmp.deserialize(i)
|
139
|
+
@RetryConfig << retryconfig_tmp
|
140
|
+
end
|
141
|
+
end
|
142
|
+
@MsgTTL = params['MsgTTL']
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# 文件系统(cfs)配置描述
|
147
|
+
class CfsConfig < TencentCloud::Common::AbstractModel
|
148
|
+
# @param CfsInsList: 文件系统信息列表
|
149
|
+
# @type CfsInsList: Array
|
150
|
+
|
151
|
+
attr_accessor :CfsInsList
|
152
|
+
|
153
|
+
def initialize(cfsinslist=nil)
|
154
|
+
@CfsInsList = cfsinslist
|
155
|
+
end
|
156
|
+
|
157
|
+
def deserialize(params)
|
158
|
+
unless params['CfsInsList'].nil?
|
159
|
+
@CfsInsList = []
|
160
|
+
params['CfsInsList'].each do |i|
|
161
|
+
cfsinsinfo_tmp = CfsInsInfo.new
|
162
|
+
cfsinsinfo_tmp.deserialize(i)
|
163
|
+
@CfsInsList << cfsinsinfo_tmp
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# 云函数关联的cfs配置信息
|
170
|
+
class CfsInsInfo < TencentCloud::Common::AbstractModel
|
171
|
+
# @param UserId: 用户id
|
172
|
+
# @type UserId: String
|
173
|
+
# @param UserGroupId: 用户组id
|
174
|
+
# @type UserGroupId: String
|
175
|
+
# @param CfsId: 文件系统实例id
|
176
|
+
# @type CfsId: String
|
177
|
+
# @param MountInsId: 文件系统挂载点id
|
178
|
+
# @type MountInsId: String
|
179
|
+
# @param LocalMountDir: 本地挂载点
|
180
|
+
# @type LocalMountDir: String
|
181
|
+
# @param RemoteMountDir: 远程挂载点
|
182
|
+
# @type RemoteMountDir: String
|
183
|
+
# @param IpAddress: 文件系统ip,配置 cfs 时无需填写。
|
184
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
185
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
186
|
+
# @type IpAddress: String
|
187
|
+
# @param MountVpcId: 文件系统所在的私有网络id,配置 cfs 时无需填写。
|
188
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
189
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
190
|
+
# @type MountVpcId: String
|
191
|
+
# @param MountSubnetId: 文件系统所在私有网络的子网id,配置 cfs 时无需填写。
|
192
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
193
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
194
|
+
# @type MountSubnetId: String
|
195
|
+
|
196
|
+
attr_accessor :UserId, :UserGroupId, :CfsId, :MountInsId, :LocalMountDir, :RemoteMountDir, :IpAddress, :MountVpcId, :MountSubnetId
|
197
|
+
|
198
|
+
def initialize(userid=nil, usergroupid=nil, cfsid=nil, mountinsid=nil, localmountdir=nil, remotemountdir=nil, ipaddress=nil, mountvpcid=nil, mountsubnetid=nil)
|
199
|
+
@UserId = userid
|
200
|
+
@UserGroupId = usergroupid
|
201
|
+
@CfsId = cfsid
|
202
|
+
@MountInsId = mountinsid
|
203
|
+
@LocalMountDir = localmountdir
|
204
|
+
@RemoteMountDir = remotemountdir
|
205
|
+
@IpAddress = ipaddress
|
206
|
+
@MountVpcId = mountvpcid
|
207
|
+
@MountSubnetId = mountsubnetid
|
208
|
+
end
|
209
|
+
|
210
|
+
def deserialize(params)
|
211
|
+
@UserId = params['UserId']
|
212
|
+
@UserGroupId = params['UserGroupId']
|
213
|
+
@CfsId = params['CfsId']
|
214
|
+
@MountInsId = params['MountInsId']
|
215
|
+
@LocalMountDir = params['LocalMountDir']
|
216
|
+
@RemoteMountDir = params['RemoteMountDir']
|
217
|
+
@IpAddress = params['IpAddress']
|
218
|
+
@MountVpcId = params['MountVpcId']
|
219
|
+
@MountSubnetId = params['MountSubnetId']
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
# 函数代码
|
224
|
+
class Code < TencentCloud::Common::AbstractModel
|
225
|
+
# @param CosBucketName: 对象存储桶名称(填写存储桶名称自定义部分,不包含-appid)
|
226
|
+
# @type CosBucketName: String
|
227
|
+
# @param CosObjectName: 对象存储中代码包文件路径,以/开头
|
228
|
+
# @type CosObjectName: String
|
229
|
+
# @param ZipFile: 包含函数代码文件及其依赖项的 zip 格式文件,zip包大小上限为 50MB,使用该接口时要求将 zip 文件的内容转成 base64 编码
|
230
|
+
# @type ZipFile: String
|
231
|
+
# @param CosBucketRegion: 对象存储的地域,地域为北京时需要传入ap-beijing,北京一区时需要传递ap-beijing-1,其他的地域不需要传递。
|
232
|
+
# @type CosBucketRegion: String
|
233
|
+
# @param DemoId: 如果是通过Demo创建的话,需要传入DemoId
|
234
|
+
# @type DemoId: String
|
235
|
+
# @param TempCosObjectName: 如果是从TempCos创建的话,需要传入TempCosObjectName
|
236
|
+
# @type TempCosObjectName: String
|
237
|
+
# @param GitUrl: Git地址
|
238
|
+
# @type GitUrl: String
|
239
|
+
# @param GitUserName: Git用户名
|
240
|
+
# @type GitUserName: String
|
241
|
+
# @param GitPassword: Git密码
|
242
|
+
# @type GitPassword: String
|
243
|
+
# @param GitPasswordSecret: 加密后的Git密码,一般无需指定
|
244
|
+
# @type GitPasswordSecret: String
|
245
|
+
# @param GitBranch: Git分支
|
246
|
+
# @type GitBranch: String
|
247
|
+
# @param GitDirectory: 代码在Git仓库中的路径
|
248
|
+
# @type GitDirectory: String
|
249
|
+
# @param GitCommitId: 指定要拉取的版本
|
250
|
+
# @type GitCommitId: String
|
251
|
+
# @param GitUserNameSecret: 加密后的Git用户名,一般无需指定
|
252
|
+
# @type GitUserNameSecret: String
|
253
|
+
# @param ImageConfig: 镜像部署时配置TCR镜像信息
|
254
|
+
# @type ImageConfig: :class:`Tencentcloud::Scf.v20180416.models.ImageConfig`
|
255
|
+
|
256
|
+
attr_accessor :CosBucketName, :CosObjectName, :ZipFile, :CosBucketRegion, :DemoId, :TempCosObjectName, :GitUrl, :GitUserName, :GitPassword, :GitPasswordSecret, :GitBranch, :GitDirectory, :GitCommitId, :GitUserNameSecret, :ImageConfig
|
257
|
+
|
258
|
+
def initialize(cosbucketname=nil, cosobjectname=nil, zipfile=nil, cosbucketregion=nil, demoid=nil, tempcosobjectname=nil, giturl=nil, gitusername=nil, gitpassword=nil, gitpasswordsecret=nil, gitbranch=nil, gitdirectory=nil, gitcommitid=nil, gitusernamesecret=nil, imageconfig=nil)
|
259
|
+
@CosBucketName = cosbucketname
|
260
|
+
@CosObjectName = cosobjectname
|
261
|
+
@ZipFile = zipfile
|
262
|
+
@CosBucketRegion = cosbucketregion
|
263
|
+
@DemoId = demoid
|
264
|
+
@TempCosObjectName = tempcosobjectname
|
265
|
+
@GitUrl = giturl
|
266
|
+
@GitUserName = gitusername
|
267
|
+
@GitPassword = gitpassword
|
268
|
+
@GitPasswordSecret = gitpasswordsecret
|
269
|
+
@GitBranch = gitbranch
|
270
|
+
@GitDirectory = gitdirectory
|
271
|
+
@GitCommitId = gitcommitid
|
272
|
+
@GitUserNameSecret = gitusernamesecret
|
273
|
+
@ImageConfig = imageconfig
|
274
|
+
end
|
275
|
+
|
276
|
+
def deserialize(params)
|
277
|
+
@CosBucketName = params['CosBucketName']
|
278
|
+
@CosObjectName = params['CosObjectName']
|
279
|
+
@ZipFile = params['ZipFile']
|
280
|
+
@CosBucketRegion = params['CosBucketRegion']
|
281
|
+
@DemoId = params['DemoId']
|
282
|
+
@TempCosObjectName = params['TempCosObjectName']
|
283
|
+
@GitUrl = params['GitUrl']
|
284
|
+
@GitUserName = params['GitUserName']
|
285
|
+
@GitPassword = params['GitPassword']
|
286
|
+
@GitPasswordSecret = params['GitPasswordSecret']
|
287
|
+
@GitBranch = params['GitBranch']
|
288
|
+
@GitDirectory = params['GitDirectory']
|
289
|
+
@GitCommitId = params['GitCommitId']
|
290
|
+
@GitUserNameSecret = params['GitUserNameSecret']
|
291
|
+
unless params['ImageConfig'].nil?
|
292
|
+
@ImageConfig = ImageConfig.new
|
293
|
+
@ImageConfig.deserialize(params['ImageConfig'])
|
294
|
+
end
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
# CopyFunction请求参数结构体
|
299
|
+
class CopyFunctionRequest < TencentCloud::Common::AbstractModel
|
300
|
+
# @param FunctionName: 要复制的函数的名称
|
301
|
+
# @type FunctionName: String
|
302
|
+
# @param NewFunctionName: 新函数的名称
|
303
|
+
# @type NewFunctionName: String
|
304
|
+
# @param Namespace: 要复制的函数所在的命名空间,默认为default
|
305
|
+
# @type Namespace: String
|
306
|
+
# @param TargetNamespace: 将函数复制到的命名空间,默认为default
|
307
|
+
# @type TargetNamespace: String
|
308
|
+
# @param Description: 新函数的描述
|
309
|
+
# @type Description: String
|
310
|
+
# @param TargetRegion: 要将函数复制到的地域,不填则默认为当前地域
|
311
|
+
# @type TargetRegion: String
|
312
|
+
# @param Override: 如果目标Namespace下已有同名函数,是否覆盖,默认为否
|
313
|
+
# (注意:如果选择覆盖,会导致同名函数被删除,请慎重操作)
|
314
|
+
# TRUE:覆盖同名函数
|
315
|
+
# FALSE:不覆盖同名函数
|
316
|
+
# @type Override: Boolean
|
317
|
+
# @param CopyConfiguration: 是否复制函数的属性,包括环境变量、内存、超时、函数描述、标签、VPC等,默认为是。
|
318
|
+
# TRUE:复制函数配置
|
319
|
+
# FALSE:不复制函数配置
|
320
|
+
# @type CopyConfiguration: Boolean
|
321
|
+
|
322
|
+
attr_accessor :FunctionName, :NewFunctionName, :Namespace, :TargetNamespace, :Description, :TargetRegion, :Override, :CopyConfiguration
|
323
|
+
|
324
|
+
def initialize(functionname=nil, newfunctionname=nil, namespace=nil, targetnamespace=nil, description=nil, targetregion=nil, override=nil, copyconfiguration=nil)
|
325
|
+
@FunctionName = functionname
|
326
|
+
@NewFunctionName = newfunctionname
|
327
|
+
@Namespace = namespace
|
328
|
+
@TargetNamespace = targetnamespace
|
329
|
+
@Description = description
|
330
|
+
@TargetRegion = targetregion
|
331
|
+
@Override = override
|
332
|
+
@CopyConfiguration = copyconfiguration
|
333
|
+
end
|
334
|
+
|
335
|
+
def deserialize(params)
|
336
|
+
@FunctionName = params['FunctionName']
|
337
|
+
@NewFunctionName = params['NewFunctionName']
|
338
|
+
@Namespace = params['Namespace']
|
339
|
+
@TargetNamespace = params['TargetNamespace']
|
340
|
+
@Description = params['Description']
|
341
|
+
@TargetRegion = params['TargetRegion']
|
342
|
+
@Override = params['Override']
|
343
|
+
@CopyConfiguration = params['CopyConfiguration']
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
# CopyFunction返回参数结构体
|
348
|
+
class CopyFunctionResponse < TencentCloud::Common::AbstractModel
|
349
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
350
|
+
# @type RequestId: String
|
351
|
+
|
352
|
+
attr_accessor :RequestId
|
353
|
+
|
354
|
+
def initialize(requestid=nil)
|
355
|
+
@RequestId = requestid
|
356
|
+
end
|
357
|
+
|
358
|
+
def deserialize(params)
|
359
|
+
@RequestId = params['RequestId']
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# CreateAlias请求参数结构体
|
364
|
+
class CreateAliasRequest < TencentCloud::Common::AbstractModel
|
365
|
+
# @param Name: 别名的名称,在函数级别中唯一,只能包含字母、数字、'_'和‘-’,且必须以字母开头,长度限制为1-64
|
366
|
+
# @type Name: String
|
367
|
+
# @param FunctionName: 函数名称
|
368
|
+
# @type FunctionName: String
|
369
|
+
# @param FunctionVersion: 别名指向的主版本
|
370
|
+
# @type FunctionVersion: String
|
371
|
+
# @param Namespace: 函数所在的命名空间
|
372
|
+
# @type Namespace: String
|
373
|
+
# @param RoutingConfig: 别名的请求路由配置
|
374
|
+
# @type RoutingConfig: :class:`Tencentcloud::Scf.v20180416.models.RoutingConfig`
|
375
|
+
# @param Description: 别名的描述信息
|
376
|
+
# @type Description: String
|
377
|
+
|
378
|
+
attr_accessor :Name, :FunctionName, :FunctionVersion, :Namespace, :RoutingConfig, :Description
|
379
|
+
|
380
|
+
def initialize(name=nil, functionname=nil, functionversion=nil, namespace=nil, routingconfig=nil, description=nil)
|
381
|
+
@Name = name
|
382
|
+
@FunctionName = functionname
|
383
|
+
@FunctionVersion = functionversion
|
384
|
+
@Namespace = namespace
|
385
|
+
@RoutingConfig = routingconfig
|
386
|
+
@Description = description
|
387
|
+
end
|
388
|
+
|
389
|
+
def deserialize(params)
|
390
|
+
@Name = params['Name']
|
391
|
+
@FunctionName = params['FunctionName']
|
392
|
+
@FunctionVersion = params['FunctionVersion']
|
393
|
+
@Namespace = params['Namespace']
|
394
|
+
unless params['RoutingConfig'].nil?
|
395
|
+
@RoutingConfig = RoutingConfig.new
|
396
|
+
@RoutingConfig.deserialize(params['RoutingConfig'])
|
397
|
+
end
|
398
|
+
@Description = params['Description']
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
# CreateAlias返回参数结构体
|
403
|
+
class CreateAliasResponse < TencentCloud::Common::AbstractModel
|
404
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
405
|
+
# @type RequestId: String
|
406
|
+
|
407
|
+
attr_accessor :RequestId
|
408
|
+
|
409
|
+
def initialize(requestid=nil)
|
410
|
+
@RequestId = requestid
|
411
|
+
end
|
412
|
+
|
413
|
+
def deserialize(params)
|
414
|
+
@RequestId = params['RequestId']
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
# CreateFunction请求参数结构体
|
419
|
+
class CreateFunctionRequest < TencentCloud::Common::AbstractModel
|
420
|
+
# @param FunctionName: 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60
|
421
|
+
# @type FunctionName: String
|
422
|
+
# @param Code: 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。
|
423
|
+
# @type Code: :class:`Tencentcloud::Scf.v20180416.models.Code`
|
424
|
+
# @param Handler: 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符
|
425
|
+
# @type Handler: String
|
426
|
+
# @param Description: 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文
|
427
|
+
# @type Description: String
|
428
|
+
# @param MemorySize: 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯
|
429
|
+
# @type MemorySize: Integer
|
430
|
+
# @param Timeout: 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒
|
431
|
+
# @type Timeout: Integer
|
432
|
+
# @param Environment: 函数的环境变量
|
433
|
+
# @type Environment: :class:`Tencentcloud::Scf.v20180416.models.Environment`
|
434
|
+
# @param Runtime: 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5, Php7,Go1,Java8 和 CustomRuntime,默认Python2.7
|
435
|
+
# @type Runtime: String
|
436
|
+
# @param VpcConfig: 函数的私有网络配置
|
437
|
+
# @type VpcConfig: :class:`Tencentcloud::Scf.v20180416.models.VpcConfig`
|
438
|
+
# @param Namespace: 函数所属命名空间
|
439
|
+
# @type Namespace: String
|
440
|
+
# @param Role: 函数绑定的角色
|
441
|
+
# @type Role: String
|
442
|
+
# @param ClsLogsetId: 函数日志投递到的CLS LogsetID
|
443
|
+
# @type ClsLogsetId: String
|
444
|
+
# @param ClsTopicId: 函数日志投递到的CLS TopicID
|
445
|
+
# @type ClsTopicId: String
|
446
|
+
# @param Type: 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP
|
447
|
+
# @type Type: String
|
448
|
+
# @param CodeSource: CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一
|
449
|
+
# @type CodeSource: String
|
450
|
+
# @param Layers: 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。
|
451
|
+
# @type Layers: Array
|
452
|
+
# @param DeadLetterConfig: 死信队列参数
|
453
|
+
# @type DeadLetterConfig: :class:`Tencentcloud::Scf.v20180416.models.DeadLetterConfig`
|
454
|
+
# @param PublicNetConfig: 公网访问配置
|
455
|
+
# @type PublicNetConfig: :class:`Tencentcloud::Scf.v20180416.models.PublicNetConfigIn`
|
456
|
+
# @param CfsConfig: 文件系统配置参数,用于云函数挂载文件系统
|
457
|
+
# @type CfsConfig: :class:`Tencentcloud::Scf.v20180416.models.CfsConfig`
|
458
|
+
# @param InitTimeout: 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。
|
459
|
+
# @type InitTimeout: Integer
|
460
|
+
# @param Tags: 函数 Tag 参数,以键值对数组形式传入
|
461
|
+
# @type Tags: Array
|
462
|
+
# @param AsyncRunEnable: 是否开启异步属性,TRUE 为开启,FALSE为关闭
|
463
|
+
# @type AsyncRunEnable: String
|
464
|
+
# @param TraceEnable: 是否开启事件追踪,TRUE 为开启,FALSE为关闭
|
465
|
+
# @type TraceEnable: String
|
466
|
+
# @param ProtocolType: HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS
|
467
|
+
# @type ProtocolType: String
|
468
|
+
# @param ProtocolParams: HTTP函数配置ProtocolType访问协议,当前协议可配置的参数
|
469
|
+
# @type ProtocolParams: :class:`Tencentcloud::Scf.v20180416.models.ProtocolParams`
|
470
|
+
|
471
|
+
attr_accessor :FunctionName, :Code, :Handler, :Description, :MemorySize, :Timeout, :Environment, :Runtime, :VpcConfig, :Namespace, :Role, :ClsLogsetId, :ClsTopicId, :Type, :CodeSource, :Layers, :DeadLetterConfig, :PublicNetConfig, :CfsConfig, :InitTimeout, :Tags, :AsyncRunEnable, :TraceEnable, :ProtocolType, :ProtocolParams
|
472
|
+
|
473
|
+
def initialize(functionname=nil, code=nil, handler=nil, description=nil, memorysize=nil, timeout=nil, environment=nil, runtime=nil, vpcconfig=nil, namespace=nil, role=nil, clslogsetid=nil, clstopicid=nil, type=nil, codesource=nil, layers=nil, deadletterconfig=nil, publicnetconfig=nil, cfsconfig=nil, inittimeout=nil, tags=nil, asyncrunenable=nil, traceenable=nil, protocoltype=nil, protocolparams=nil)
|
474
|
+
@FunctionName = functionname
|
475
|
+
@Code = code
|
476
|
+
@Handler = handler
|
477
|
+
@Description = description
|
478
|
+
@MemorySize = memorysize
|
479
|
+
@Timeout = timeout
|
480
|
+
@Environment = environment
|
481
|
+
@Runtime = runtime
|
482
|
+
@VpcConfig = vpcconfig
|
483
|
+
@Namespace = namespace
|
484
|
+
@Role = role
|
485
|
+
@ClsLogsetId = clslogsetid
|
486
|
+
@ClsTopicId = clstopicid
|
487
|
+
@Type = type
|
488
|
+
@CodeSource = codesource
|
489
|
+
@Layers = layers
|
490
|
+
@DeadLetterConfig = deadletterconfig
|
491
|
+
@PublicNetConfig = publicnetconfig
|
492
|
+
@CfsConfig = cfsconfig
|
493
|
+
@InitTimeout = inittimeout
|
494
|
+
@Tags = tags
|
495
|
+
@AsyncRunEnable = asyncrunenable
|
496
|
+
@TraceEnable = traceenable
|
497
|
+
@ProtocolType = protocoltype
|
498
|
+
@ProtocolParams = protocolparams
|
499
|
+
end
|
500
|
+
|
501
|
+
def deserialize(params)
|
502
|
+
@FunctionName = params['FunctionName']
|
503
|
+
unless params['Code'].nil?
|
504
|
+
@Code = Code.new
|
505
|
+
@Code.deserialize(params['Code'])
|
506
|
+
end
|
507
|
+
@Handler = params['Handler']
|
508
|
+
@Description = params['Description']
|
509
|
+
@MemorySize = params['MemorySize']
|
510
|
+
@Timeout = params['Timeout']
|
511
|
+
unless params['Environment'].nil?
|
512
|
+
@Environment = Environment.new
|
513
|
+
@Environment.deserialize(params['Environment'])
|
514
|
+
end
|
515
|
+
@Runtime = params['Runtime']
|
516
|
+
unless params['VpcConfig'].nil?
|
517
|
+
@VpcConfig = VpcConfig.new
|
518
|
+
@VpcConfig.deserialize(params['VpcConfig'])
|
519
|
+
end
|
520
|
+
@Namespace = params['Namespace']
|
521
|
+
@Role = params['Role']
|
522
|
+
@ClsLogsetId = params['ClsLogsetId']
|
523
|
+
@ClsTopicId = params['ClsTopicId']
|
524
|
+
@Type = params['Type']
|
525
|
+
@CodeSource = params['CodeSource']
|
526
|
+
unless params['Layers'].nil?
|
527
|
+
@Layers = []
|
528
|
+
params['Layers'].each do |i|
|
529
|
+
layerversionsimple_tmp = LayerVersionSimple.new
|
530
|
+
layerversionsimple_tmp.deserialize(i)
|
531
|
+
@Layers << layerversionsimple_tmp
|
532
|
+
end
|
533
|
+
end
|
534
|
+
unless params['DeadLetterConfig'].nil?
|
535
|
+
@DeadLetterConfig = DeadLetterConfig.new
|
536
|
+
@DeadLetterConfig.deserialize(params['DeadLetterConfig'])
|
537
|
+
end
|
538
|
+
unless params['PublicNetConfig'].nil?
|
539
|
+
@PublicNetConfig = PublicNetConfigIn.new
|
540
|
+
@PublicNetConfig.deserialize(params['PublicNetConfig'])
|
541
|
+
end
|
542
|
+
unless params['CfsConfig'].nil?
|
543
|
+
@CfsConfig = CfsConfig.new
|
544
|
+
@CfsConfig.deserialize(params['CfsConfig'])
|
545
|
+
end
|
546
|
+
@InitTimeout = params['InitTimeout']
|
547
|
+
unless params['Tags'].nil?
|
548
|
+
@Tags = []
|
549
|
+
params['Tags'].each do |i|
|
550
|
+
tag_tmp = Tag.new
|
551
|
+
tag_tmp.deserialize(i)
|
552
|
+
@Tags << tag_tmp
|
553
|
+
end
|
554
|
+
end
|
555
|
+
@AsyncRunEnable = params['AsyncRunEnable']
|
556
|
+
@TraceEnable = params['TraceEnable']
|
557
|
+
@ProtocolType = params['ProtocolType']
|
558
|
+
unless params['ProtocolParams'].nil?
|
559
|
+
@ProtocolParams = ProtocolParams.new
|
560
|
+
@ProtocolParams.deserialize(params['ProtocolParams'])
|
561
|
+
end
|
562
|
+
end
|
563
|
+
end
|
564
|
+
|
565
|
+
# CreateFunction返回参数结构体
|
566
|
+
class CreateFunctionResponse < TencentCloud::Common::AbstractModel
|
567
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
568
|
+
# @type RequestId: String
|
569
|
+
|
570
|
+
attr_accessor :RequestId
|
571
|
+
|
572
|
+
def initialize(requestid=nil)
|
573
|
+
@RequestId = requestid
|
574
|
+
end
|
575
|
+
|
576
|
+
def deserialize(params)
|
577
|
+
@RequestId = params['RequestId']
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
581
|
+
# CreateNamespace请求参数结构体
|
582
|
+
class CreateNamespaceRequest < TencentCloud::Common::AbstractModel
|
583
|
+
# @param Namespace: 命名空间名称
|
584
|
+
# @type Namespace: String
|
585
|
+
# @param Description: 命名空间描述
|
586
|
+
# @type Description: String
|
587
|
+
|
588
|
+
attr_accessor :Namespace, :Description
|
589
|
+
|
590
|
+
def initialize(namespace=nil, description=nil)
|
591
|
+
@Namespace = namespace
|
592
|
+
@Description = description
|
593
|
+
end
|
594
|
+
|
595
|
+
def deserialize(params)
|
596
|
+
@Namespace = params['Namespace']
|
597
|
+
@Description = params['Description']
|
598
|
+
end
|
599
|
+
end
|
600
|
+
|
601
|
+
# CreateNamespace返回参数结构体
|
602
|
+
class CreateNamespaceResponse < TencentCloud::Common::AbstractModel
|
603
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
604
|
+
# @type RequestId: String
|
605
|
+
|
606
|
+
attr_accessor :RequestId
|
607
|
+
|
608
|
+
def initialize(requestid=nil)
|
609
|
+
@RequestId = requestid
|
610
|
+
end
|
611
|
+
|
612
|
+
def deserialize(params)
|
613
|
+
@RequestId = params['RequestId']
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
617
|
+
# CreateTrigger请求参数结构体
|
618
|
+
class CreateTriggerRequest < TencentCloud::Common::AbstractModel
|
619
|
+
# @param FunctionName: 新建触发器绑定的函数名称
|
620
|
+
# @type FunctionName: String
|
621
|
+
# @param TriggerName: 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明
|
622
|
+
# @type TriggerName: String
|
623
|
+
# @param Type: 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。
|
624
|
+
# @type Type: String
|
625
|
+
# @param TriggerDesc: 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)
|
626
|
+
# @type TriggerDesc: String
|
627
|
+
# @param Namespace: 函数的命名空间
|
628
|
+
# @type Namespace: String
|
629
|
+
# @param Qualifier: 函数的版本
|
630
|
+
# @type Qualifier: String
|
631
|
+
# @param Enable: 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭
|
632
|
+
# @type Enable: String
|
633
|
+
# @param CustomArgument: 用户自定义参数,仅支持timer触发器
|
634
|
+
# @type CustomArgument: String
|
635
|
+
|
636
|
+
attr_accessor :FunctionName, :TriggerName, :Type, :TriggerDesc, :Namespace, :Qualifier, :Enable, :CustomArgument
|
637
|
+
|
638
|
+
def initialize(functionname=nil, triggername=nil, type=nil, triggerdesc=nil, namespace=nil, qualifier=nil, enable=nil, customargument=nil)
|
639
|
+
@FunctionName = functionname
|
640
|
+
@TriggerName = triggername
|
641
|
+
@Type = type
|
642
|
+
@TriggerDesc = triggerdesc
|
643
|
+
@Namespace = namespace
|
644
|
+
@Qualifier = qualifier
|
645
|
+
@Enable = enable
|
646
|
+
@CustomArgument = customargument
|
647
|
+
end
|
648
|
+
|
649
|
+
def deserialize(params)
|
650
|
+
@FunctionName = params['FunctionName']
|
651
|
+
@TriggerName = params['TriggerName']
|
652
|
+
@Type = params['Type']
|
653
|
+
@TriggerDesc = params['TriggerDesc']
|
654
|
+
@Namespace = params['Namespace']
|
655
|
+
@Qualifier = params['Qualifier']
|
656
|
+
@Enable = params['Enable']
|
657
|
+
@CustomArgument = params['CustomArgument']
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
# CreateTrigger返回参数结构体
|
662
|
+
class CreateTriggerResponse < TencentCloud::Common::AbstractModel
|
663
|
+
# @param TriggerInfo: 触发器信息
|
664
|
+
# @type TriggerInfo: :class:`Tencentcloud::Scf.v20180416.models.Trigger`
|
665
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
666
|
+
# @type RequestId: String
|
667
|
+
|
668
|
+
attr_accessor :TriggerInfo, :RequestId
|
669
|
+
|
670
|
+
def initialize(triggerinfo=nil, requestid=nil)
|
671
|
+
@TriggerInfo = triggerinfo
|
672
|
+
@RequestId = requestid
|
673
|
+
end
|
674
|
+
|
675
|
+
def deserialize(params)
|
676
|
+
unless params['TriggerInfo'].nil?
|
677
|
+
@TriggerInfo = Trigger.new
|
678
|
+
@TriggerInfo.deserialize(params['TriggerInfo'])
|
679
|
+
end
|
680
|
+
@RequestId = params['RequestId']
|
681
|
+
end
|
682
|
+
end
|
683
|
+
|
684
|
+
# 死信队列参数
|
685
|
+
class DeadLetterConfig < TencentCloud::Common::AbstractModel
|
686
|
+
# @param Type: 死信队列模式
|
687
|
+
# @type Type: String
|
688
|
+
# @param Name: 死信队列名称
|
689
|
+
# @type Name: String
|
690
|
+
# @param FilterType: 死信队列主题模式的标签形式
|
691
|
+
# @type FilterType: String
|
692
|
+
|
693
|
+
attr_accessor :Type, :Name, :FilterType
|
694
|
+
|
695
|
+
def initialize(type=nil, name=nil, filtertype=nil)
|
696
|
+
@Type = type
|
697
|
+
@Name = name
|
698
|
+
@FilterType = filtertype
|
699
|
+
end
|
700
|
+
|
701
|
+
def deserialize(params)
|
702
|
+
@Type = params['Type']
|
703
|
+
@Name = params['Name']
|
704
|
+
@FilterType = params['FilterType']
|
705
|
+
end
|
706
|
+
end
|
707
|
+
|
708
|
+
# DeleteAlias请求参数结构体
|
709
|
+
class DeleteAliasRequest < TencentCloud::Common::AbstractModel
|
710
|
+
# @param FunctionName: 函数名称
|
711
|
+
# @type FunctionName: String
|
712
|
+
# @param Name: 别名的名称
|
713
|
+
# @type Name: String
|
714
|
+
# @param Namespace: 函数所在的命名空间
|
715
|
+
# @type Namespace: String
|
716
|
+
|
717
|
+
attr_accessor :FunctionName, :Name, :Namespace
|
718
|
+
|
719
|
+
def initialize(functionname=nil, name=nil, namespace=nil)
|
720
|
+
@FunctionName = functionname
|
721
|
+
@Name = name
|
722
|
+
@Namespace = namespace
|
723
|
+
end
|
724
|
+
|
725
|
+
def deserialize(params)
|
726
|
+
@FunctionName = params['FunctionName']
|
727
|
+
@Name = params['Name']
|
728
|
+
@Namespace = params['Namespace']
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
732
|
+
# DeleteAlias返回参数结构体
|
733
|
+
class DeleteAliasResponse < TencentCloud::Common::AbstractModel
|
734
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
735
|
+
# @type RequestId: String
|
736
|
+
|
737
|
+
attr_accessor :RequestId
|
738
|
+
|
739
|
+
def initialize(requestid=nil)
|
740
|
+
@RequestId = requestid
|
741
|
+
end
|
742
|
+
|
743
|
+
def deserialize(params)
|
744
|
+
@RequestId = params['RequestId']
|
745
|
+
end
|
746
|
+
end
|
747
|
+
|
748
|
+
# DeleteFunction请求参数结构体
|
749
|
+
class DeleteFunctionRequest < TencentCloud::Common::AbstractModel
|
750
|
+
# @param FunctionName: 要删除的函数名称
|
751
|
+
# @type FunctionName: String
|
752
|
+
# @param Namespace: 函数所属命名空间
|
753
|
+
# @type Namespace: String
|
754
|
+
# @param Qualifier: 函数版本
|
755
|
+
# @type Qualifier: String
|
756
|
+
|
757
|
+
attr_accessor :FunctionName, :Namespace, :Qualifier
|
758
|
+
|
759
|
+
def initialize(functionname=nil, namespace=nil, qualifier=nil)
|
760
|
+
@FunctionName = functionname
|
761
|
+
@Namespace = namespace
|
762
|
+
@Qualifier = qualifier
|
763
|
+
end
|
764
|
+
|
765
|
+
def deserialize(params)
|
766
|
+
@FunctionName = params['FunctionName']
|
767
|
+
@Namespace = params['Namespace']
|
768
|
+
@Qualifier = params['Qualifier']
|
769
|
+
end
|
770
|
+
end
|
771
|
+
|
772
|
+
# DeleteFunction返回参数结构体
|
773
|
+
class DeleteFunctionResponse < TencentCloud::Common::AbstractModel
|
774
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
775
|
+
# @type RequestId: String
|
776
|
+
|
777
|
+
attr_accessor :RequestId
|
778
|
+
|
779
|
+
def initialize(requestid=nil)
|
780
|
+
@RequestId = requestid
|
781
|
+
end
|
782
|
+
|
783
|
+
def deserialize(params)
|
784
|
+
@RequestId = params['RequestId']
|
785
|
+
end
|
786
|
+
end
|
787
|
+
|
788
|
+
# DeleteLayerVersion请求参数结构体
|
789
|
+
class DeleteLayerVersionRequest < TencentCloud::Common::AbstractModel
|
790
|
+
# @param LayerName: 层名称
|
791
|
+
# @type LayerName: String
|
792
|
+
# @param LayerVersion: 版本号
|
793
|
+
# @type LayerVersion: Integer
|
794
|
+
|
795
|
+
attr_accessor :LayerName, :LayerVersion
|
796
|
+
|
797
|
+
def initialize(layername=nil, layerversion=nil)
|
798
|
+
@LayerName = layername
|
799
|
+
@LayerVersion = layerversion
|
800
|
+
end
|
801
|
+
|
802
|
+
def deserialize(params)
|
803
|
+
@LayerName = params['LayerName']
|
804
|
+
@LayerVersion = params['LayerVersion']
|
805
|
+
end
|
806
|
+
end
|
807
|
+
|
808
|
+
# DeleteLayerVersion返回参数结构体
|
809
|
+
class DeleteLayerVersionResponse < TencentCloud::Common::AbstractModel
|
810
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
811
|
+
# @type RequestId: String
|
812
|
+
|
813
|
+
attr_accessor :RequestId
|
814
|
+
|
815
|
+
def initialize(requestid=nil)
|
816
|
+
@RequestId = requestid
|
817
|
+
end
|
818
|
+
|
819
|
+
def deserialize(params)
|
820
|
+
@RequestId = params['RequestId']
|
821
|
+
end
|
822
|
+
end
|
823
|
+
|
824
|
+
# DeleteNamespace请求参数结构体
|
825
|
+
class DeleteNamespaceRequest < TencentCloud::Common::AbstractModel
|
826
|
+
# @param Namespace: 命名空间名称
|
827
|
+
# @type Namespace: String
|
828
|
+
|
829
|
+
attr_accessor :Namespace
|
830
|
+
|
831
|
+
def initialize(namespace=nil)
|
832
|
+
@Namespace = namespace
|
833
|
+
end
|
834
|
+
|
835
|
+
def deserialize(params)
|
836
|
+
@Namespace = params['Namespace']
|
837
|
+
end
|
838
|
+
end
|
839
|
+
|
840
|
+
# DeleteNamespace返回参数结构体
|
841
|
+
class DeleteNamespaceResponse < TencentCloud::Common::AbstractModel
|
842
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
843
|
+
# @type RequestId: String
|
844
|
+
|
845
|
+
attr_accessor :RequestId
|
846
|
+
|
847
|
+
def initialize(requestid=nil)
|
848
|
+
@RequestId = requestid
|
849
|
+
end
|
850
|
+
|
851
|
+
def deserialize(params)
|
852
|
+
@RequestId = params['RequestId']
|
853
|
+
end
|
854
|
+
end
|
855
|
+
|
856
|
+
# DeleteProvisionedConcurrencyConfig请求参数结构体
|
857
|
+
class DeleteProvisionedConcurrencyConfigRequest < TencentCloud::Common::AbstractModel
|
858
|
+
# @param FunctionName: 需要删除预置并发的函数的名称
|
859
|
+
# @type FunctionName: String
|
860
|
+
# @param Qualifier: 函数的版本号
|
861
|
+
# @type Qualifier: String
|
862
|
+
# @param Namespace: 函数所属命名空间,默认为default
|
863
|
+
# @type Namespace: String
|
864
|
+
|
865
|
+
attr_accessor :FunctionName, :Qualifier, :Namespace
|
866
|
+
|
867
|
+
def initialize(functionname=nil, qualifier=nil, namespace=nil)
|
868
|
+
@FunctionName = functionname
|
869
|
+
@Qualifier = qualifier
|
870
|
+
@Namespace = namespace
|
871
|
+
end
|
872
|
+
|
873
|
+
def deserialize(params)
|
874
|
+
@FunctionName = params['FunctionName']
|
875
|
+
@Qualifier = params['Qualifier']
|
876
|
+
@Namespace = params['Namespace']
|
877
|
+
end
|
878
|
+
end
|
879
|
+
|
880
|
+
# DeleteProvisionedConcurrencyConfig返回参数结构体
|
881
|
+
class DeleteProvisionedConcurrencyConfigResponse < TencentCloud::Common::AbstractModel
|
882
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
883
|
+
# @type RequestId: String
|
884
|
+
|
885
|
+
attr_accessor :RequestId
|
886
|
+
|
887
|
+
def initialize(requestid=nil)
|
888
|
+
@RequestId = requestid
|
889
|
+
end
|
890
|
+
|
891
|
+
def deserialize(params)
|
892
|
+
@RequestId = params['RequestId']
|
893
|
+
end
|
894
|
+
end
|
895
|
+
|
896
|
+
# DeleteReservedConcurrencyConfig请求参数结构体
|
897
|
+
class DeleteReservedConcurrencyConfigRequest < TencentCloud::Common::AbstractModel
|
898
|
+
# @param FunctionName: 需要删除最大独占配额的函数的名称
|
899
|
+
# @type FunctionName: String
|
900
|
+
# @param Namespace: 函数所属命名空间,默认为default
|
901
|
+
# @type Namespace: String
|
902
|
+
|
903
|
+
attr_accessor :FunctionName, :Namespace
|
904
|
+
|
905
|
+
def initialize(functionname=nil, namespace=nil)
|
906
|
+
@FunctionName = functionname
|
907
|
+
@Namespace = namespace
|
908
|
+
end
|
909
|
+
|
910
|
+
def deserialize(params)
|
911
|
+
@FunctionName = params['FunctionName']
|
912
|
+
@Namespace = params['Namespace']
|
913
|
+
end
|
914
|
+
end
|
915
|
+
|
916
|
+
# DeleteReservedConcurrencyConfig返回参数结构体
|
917
|
+
class DeleteReservedConcurrencyConfigResponse < TencentCloud::Common::AbstractModel
|
918
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
919
|
+
# @type RequestId: String
|
920
|
+
|
921
|
+
attr_accessor :RequestId
|
922
|
+
|
923
|
+
def initialize(requestid=nil)
|
924
|
+
@RequestId = requestid
|
925
|
+
end
|
926
|
+
|
927
|
+
def deserialize(params)
|
928
|
+
@RequestId = params['RequestId']
|
929
|
+
end
|
930
|
+
end
|
931
|
+
|
932
|
+
# DeleteTrigger请求参数结构体
|
933
|
+
class DeleteTriggerRequest < TencentCloud::Common::AbstractModel
|
934
|
+
# @param FunctionName: 函数的名称
|
935
|
+
# @type FunctionName: String
|
936
|
+
# @param TriggerName: 要删除的触发器名称
|
937
|
+
# @type TriggerName: String
|
938
|
+
# @param Type: 要删除的触发器类型,目前支持 cos 、cmq、 timer、ckafka 类型
|
939
|
+
# @type Type: String
|
940
|
+
# @param Namespace: 函数所属命名空间
|
941
|
+
# @type Namespace: String
|
942
|
+
# @param TriggerDesc: 如果删除的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果删除的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段
|
943
|
+
# @type TriggerDesc: String
|
944
|
+
# @param Qualifier: 函数的版本信息
|
945
|
+
# @type Qualifier: String
|
946
|
+
|
947
|
+
attr_accessor :FunctionName, :TriggerName, :Type, :Namespace, :TriggerDesc, :Qualifier
|
948
|
+
|
949
|
+
def initialize(functionname=nil, triggername=nil, type=nil, namespace=nil, triggerdesc=nil, qualifier=nil)
|
950
|
+
@FunctionName = functionname
|
951
|
+
@TriggerName = triggername
|
952
|
+
@Type = type
|
953
|
+
@Namespace = namespace
|
954
|
+
@TriggerDesc = triggerdesc
|
955
|
+
@Qualifier = qualifier
|
956
|
+
end
|
957
|
+
|
958
|
+
def deserialize(params)
|
959
|
+
@FunctionName = params['FunctionName']
|
960
|
+
@TriggerName = params['TriggerName']
|
961
|
+
@Type = params['Type']
|
962
|
+
@Namespace = params['Namespace']
|
963
|
+
@TriggerDesc = params['TriggerDesc']
|
964
|
+
@Qualifier = params['Qualifier']
|
965
|
+
end
|
966
|
+
end
|
967
|
+
|
968
|
+
# DeleteTrigger返回参数结构体
|
969
|
+
class DeleteTriggerResponse < TencentCloud::Common::AbstractModel
|
970
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
971
|
+
# @type RequestId: String
|
972
|
+
|
973
|
+
attr_accessor :RequestId
|
974
|
+
|
975
|
+
def initialize(requestid=nil)
|
976
|
+
@RequestId = requestid
|
977
|
+
end
|
978
|
+
|
979
|
+
def deserialize(params)
|
980
|
+
@RequestId = params['RequestId']
|
981
|
+
end
|
982
|
+
end
|
983
|
+
|
984
|
+
# 公网访问固定ip配置
|
985
|
+
class EipConfigIn < TencentCloud::Common::AbstractModel
|
986
|
+
# @param EipStatus: Eip开启状态,取值['ENABLE','DISABLE']
|
987
|
+
# @type EipStatus: String
|
988
|
+
|
989
|
+
attr_accessor :EipStatus
|
990
|
+
|
991
|
+
def initialize(eipstatus=nil)
|
992
|
+
@EipStatus = eipstatus
|
993
|
+
end
|
994
|
+
|
995
|
+
def deserialize(params)
|
996
|
+
@EipStatus = params['EipStatus']
|
997
|
+
end
|
998
|
+
end
|
999
|
+
|
1000
|
+
# 公网访问固定ip配置
|
1001
|
+
class EipConfigOut < TencentCloud::Common::AbstractModel
|
1002
|
+
# @param EipStatus: 是否是固定IP,["ENABLE","DISABLE"]
|
1003
|
+
# @type EipStatus: String
|
1004
|
+
# @param EipAddress: IP列表
|
1005
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1006
|
+
# @type EipAddress: Array
|
1007
|
+
|
1008
|
+
attr_accessor :EipStatus, :EipAddress
|
1009
|
+
|
1010
|
+
def initialize(eipstatus=nil, eipaddress=nil)
|
1011
|
+
@EipStatus = eipstatus
|
1012
|
+
@EipAddress = eipaddress
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
def deserialize(params)
|
1016
|
+
@EipStatus = params['EipStatus']
|
1017
|
+
@EipAddress = params['EipAddress']
|
1018
|
+
end
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
# EipOutConfig
|
1022
|
+
class EipOutConfig < TencentCloud::Common::AbstractModel
|
1023
|
+
# @param EipFixed: 是否是固定IP,["TRUE","FALSE"]
|
1024
|
+
# @type EipFixed: String
|
1025
|
+
# @param Eips: IP列表
|
1026
|
+
# @type Eips: Array
|
1027
|
+
|
1028
|
+
attr_accessor :EipFixed, :Eips
|
1029
|
+
|
1030
|
+
def initialize(eipfixed=nil, eips=nil)
|
1031
|
+
@EipFixed = eipfixed
|
1032
|
+
@Eips = eips
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
def deserialize(params)
|
1036
|
+
@EipFixed = params['EipFixed']
|
1037
|
+
@Eips = params['Eips']
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
# 函数的环境变量参数
|
1042
|
+
class Environment < TencentCloud::Common::AbstractModel
|
1043
|
+
# @param Variables: 环境变量数组
|
1044
|
+
# @type Variables: Array
|
1045
|
+
|
1046
|
+
attr_accessor :Variables
|
1047
|
+
|
1048
|
+
def initialize(variables=nil)
|
1049
|
+
@Variables = variables
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
def deserialize(params)
|
1053
|
+
unless params['Variables'].nil?
|
1054
|
+
@Variables = []
|
1055
|
+
params['Variables'].each do |i|
|
1056
|
+
variable_tmp = Variable.new
|
1057
|
+
variable_tmp.deserialize(i)
|
1058
|
+
@Variables << variable_tmp
|
1059
|
+
end
|
1060
|
+
end
|
1061
|
+
end
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
|
1065
|
+
# 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
|
1066
|
+
# 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
|
1067
|
+
class Filter < TencentCloud::Common::AbstractModel
|
1068
|
+
# @param Name: 需要过滤的字段。
|
1069
|
+
# @type Name: String
|
1070
|
+
# @param Values: 字段的过滤值。
|
1071
|
+
# @type Values: Array
|
1072
|
+
|
1073
|
+
attr_accessor :Name, :Values
|
1074
|
+
|
1075
|
+
def initialize(name=nil, values=nil)
|
1076
|
+
@Name = name
|
1077
|
+
@Values = values
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
def deserialize(params)
|
1081
|
+
@Name = params['Name']
|
1082
|
+
@Values = params['Values']
|
1083
|
+
end
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
# 函数列表
|
1087
|
+
class Function < TencentCloud::Common::AbstractModel
|
1088
|
+
# @param ModTime: 修改时间
|
1089
|
+
# @type ModTime: String
|
1090
|
+
# @param AddTime: 创建时间
|
1091
|
+
# @type AddTime: String
|
1092
|
+
# @param Runtime: 运行时
|
1093
|
+
# @type Runtime: String
|
1094
|
+
# @param FunctionName: 函数名称
|
1095
|
+
# @type FunctionName: String
|
1096
|
+
# @param FunctionId: 函数ID
|
1097
|
+
# @type FunctionId: String
|
1098
|
+
# @param Namespace: 命名空间
|
1099
|
+
# @type Namespace: String
|
1100
|
+
# @param Status: 函数状态,状态值及流转[参考此处](https://cloud.tencent.com/document/product/583/47175)
|
1101
|
+
# @type Status: String
|
1102
|
+
# @param StatusDesc: 函数状态详情
|
1103
|
+
# @type StatusDesc: String
|
1104
|
+
# @param Description: 函数描述
|
1105
|
+
# @type Description: String
|
1106
|
+
# @param Tags: 函数标签
|
1107
|
+
# @type Tags: Array
|
1108
|
+
# @param Type: 函数类型,取值为 HTTP 或者 Event
|
1109
|
+
# @type Type: String
|
1110
|
+
# @param StatusReasons: 函数状态失败原因
|
1111
|
+
# @type StatusReasons: Array
|
1112
|
+
# @param TotalProvisionedConcurrencyMem: 函数所有版本预置并发内存总和
|
1113
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1114
|
+
# @type TotalProvisionedConcurrencyMem: Integer
|
1115
|
+
# @param ReservedConcurrencyMem: 函数并发保留内存
|
1116
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1117
|
+
# @type ReservedConcurrencyMem: Integer
|
1118
|
+
# @param AsyncRunEnable: 函数异步属性,取值 TRUE 或者 FALSE
|
1119
|
+
# @type AsyncRunEnable: String
|
1120
|
+
# @param TraceEnable: 异步函数是否开启调用追踪,取值 TRUE 或者 FALSE
|
1121
|
+
# @type TraceEnable: String
|
1122
|
+
|
1123
|
+
attr_accessor :ModTime, :AddTime, :Runtime, :FunctionName, :FunctionId, :Namespace, :Status, :StatusDesc, :Description, :Tags, :Type, :StatusReasons, :TotalProvisionedConcurrencyMem, :ReservedConcurrencyMem, :AsyncRunEnable, :TraceEnable
|
1124
|
+
|
1125
|
+
def initialize(modtime=nil, addtime=nil, runtime=nil, functionname=nil, functionid=nil, namespace=nil, status=nil, statusdesc=nil, description=nil, tags=nil, type=nil, statusreasons=nil, totalprovisionedconcurrencymem=nil, reservedconcurrencymem=nil, asyncrunenable=nil, traceenable=nil)
|
1126
|
+
@ModTime = modtime
|
1127
|
+
@AddTime = addtime
|
1128
|
+
@Runtime = runtime
|
1129
|
+
@FunctionName = functionname
|
1130
|
+
@FunctionId = functionid
|
1131
|
+
@Namespace = namespace
|
1132
|
+
@Status = status
|
1133
|
+
@StatusDesc = statusdesc
|
1134
|
+
@Description = description
|
1135
|
+
@Tags = tags
|
1136
|
+
@Type = type
|
1137
|
+
@StatusReasons = statusreasons
|
1138
|
+
@TotalProvisionedConcurrencyMem = totalprovisionedconcurrencymem
|
1139
|
+
@ReservedConcurrencyMem = reservedconcurrencymem
|
1140
|
+
@AsyncRunEnable = asyncrunenable
|
1141
|
+
@TraceEnable = traceenable
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
def deserialize(params)
|
1145
|
+
@ModTime = params['ModTime']
|
1146
|
+
@AddTime = params['AddTime']
|
1147
|
+
@Runtime = params['Runtime']
|
1148
|
+
@FunctionName = params['FunctionName']
|
1149
|
+
@FunctionId = params['FunctionId']
|
1150
|
+
@Namespace = params['Namespace']
|
1151
|
+
@Status = params['Status']
|
1152
|
+
@StatusDesc = params['StatusDesc']
|
1153
|
+
@Description = params['Description']
|
1154
|
+
unless params['Tags'].nil?
|
1155
|
+
@Tags = []
|
1156
|
+
params['Tags'].each do |i|
|
1157
|
+
tag_tmp = Tag.new
|
1158
|
+
tag_tmp.deserialize(i)
|
1159
|
+
@Tags << tag_tmp
|
1160
|
+
end
|
1161
|
+
end
|
1162
|
+
@Type = params['Type']
|
1163
|
+
unless params['StatusReasons'].nil?
|
1164
|
+
@StatusReasons = []
|
1165
|
+
params['StatusReasons'].each do |i|
|
1166
|
+
statusreason_tmp = StatusReason.new
|
1167
|
+
statusreason_tmp.deserialize(i)
|
1168
|
+
@StatusReasons << statusreason_tmp
|
1169
|
+
end
|
1170
|
+
end
|
1171
|
+
@TotalProvisionedConcurrencyMem = params['TotalProvisionedConcurrencyMem']
|
1172
|
+
@ReservedConcurrencyMem = params['ReservedConcurrencyMem']
|
1173
|
+
@AsyncRunEnable = params['AsyncRunEnable']
|
1174
|
+
@TraceEnable = params['TraceEnable']
|
1175
|
+
end
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
# 日志信息
|
1179
|
+
class FunctionLog < TencentCloud::Common::AbstractModel
|
1180
|
+
# @param FunctionName: 函数的名称
|
1181
|
+
# @type FunctionName: String
|
1182
|
+
# @param RetMsg: 函数执行完成后的返回值
|
1183
|
+
# @type RetMsg: String
|
1184
|
+
# @param RequestId: 执行该函数对应的requestId
|
1185
|
+
# @type RequestId: String
|
1186
|
+
# @param StartTime: 函数开始执行时的时间点
|
1187
|
+
# @type StartTime: String
|
1188
|
+
# @param RetCode: 函数执行结果,如果是 0 表示执行成功,其他值表示失败
|
1189
|
+
# @type RetCode: Integer
|
1190
|
+
# @param InvokeFinished: 函数调用是否结束,如果是 1 表示执行结束,其他值表示调用异常
|
1191
|
+
# @type InvokeFinished: Integer
|
1192
|
+
# @param Duration: 函数执行耗时,单位为 ms
|
1193
|
+
# @type Duration: Float
|
1194
|
+
# @param BillDuration: 函数计费时间,根据 duration 向上取最近的 100ms,单位为ms
|
1195
|
+
# @type BillDuration: Integer
|
1196
|
+
# @param MemUsage: 函数执行时消耗实际内存大小,单位为 Byte
|
1197
|
+
# @type MemUsage: Integer
|
1198
|
+
# @param Log: 函数执行过程中的日志输出
|
1199
|
+
# @type Log: String
|
1200
|
+
# @param Level: 日志等级
|
1201
|
+
# @type Level: String
|
1202
|
+
# @param Source: 日志来源
|
1203
|
+
# @type Source: String
|
1204
|
+
# @param RetryNum: 重试次数
|
1205
|
+
# @type RetryNum: Integer
|
1206
|
+
|
1207
|
+
attr_accessor :FunctionName, :RetMsg, :RequestId, :StartTime, :RetCode, :InvokeFinished, :Duration, :BillDuration, :MemUsage, :Log, :Level, :Source, :RetryNum
|
1208
|
+
|
1209
|
+
def initialize(functionname=nil, retmsg=nil, requestid=nil, starttime=nil, retcode=nil, invokefinished=nil, duration=nil, billduration=nil, memusage=nil, log=nil, level=nil, source=nil, retrynum=nil)
|
1210
|
+
@FunctionName = functionname
|
1211
|
+
@RetMsg = retmsg
|
1212
|
+
@RequestId = requestid
|
1213
|
+
@StartTime = starttime
|
1214
|
+
@RetCode = retcode
|
1215
|
+
@InvokeFinished = invokefinished
|
1216
|
+
@Duration = duration
|
1217
|
+
@BillDuration = billduration
|
1218
|
+
@MemUsage = memusage
|
1219
|
+
@Log = log
|
1220
|
+
@Level = level
|
1221
|
+
@Source = source
|
1222
|
+
@RetryNum = retrynum
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
def deserialize(params)
|
1226
|
+
@FunctionName = params['FunctionName']
|
1227
|
+
@RetMsg = params['RetMsg']
|
1228
|
+
@RequestId = params['RequestId']
|
1229
|
+
@StartTime = params['StartTime']
|
1230
|
+
@RetCode = params['RetCode']
|
1231
|
+
@InvokeFinished = params['InvokeFinished']
|
1232
|
+
@Duration = params['Duration']
|
1233
|
+
@BillDuration = params['BillDuration']
|
1234
|
+
@MemUsage = params['MemUsage']
|
1235
|
+
@Log = params['Log']
|
1236
|
+
@Level = params['Level']
|
1237
|
+
@Source = params['Source']
|
1238
|
+
@RetryNum = params['RetryNum']
|
1239
|
+
end
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
# 函数版本信息
|
1243
|
+
class FunctionVersion < TencentCloud::Common::AbstractModel
|
1244
|
+
# @param Version: 函数版本名称
|
1245
|
+
# @type Version: String
|
1246
|
+
# @param Description: 版本描述信息
|
1247
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1248
|
+
# @type Description: String
|
1249
|
+
# @param AddTime: 创建时间
|
1250
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1251
|
+
# @type AddTime: String
|
1252
|
+
# @param ModTime: 更新时间
|
1253
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1254
|
+
# @type ModTime: String
|
1255
|
+
|
1256
|
+
attr_accessor :Version, :Description, :AddTime, :ModTime
|
1257
|
+
|
1258
|
+
def initialize(version=nil, description=nil, addtime=nil, modtime=nil)
|
1259
|
+
@Version = version
|
1260
|
+
@Description = description
|
1261
|
+
@AddTime = addtime
|
1262
|
+
@ModTime = modtime
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
def deserialize(params)
|
1266
|
+
@Version = params['Version']
|
1267
|
+
@Description = params['Description']
|
1268
|
+
@AddTime = params['AddTime']
|
1269
|
+
@ModTime = params['ModTime']
|
1270
|
+
end
|
1271
|
+
end
|
1272
|
+
|
1273
|
+
# GetAccount请求参数结构体
|
1274
|
+
class GetAccountRequest < TencentCloud::Common::AbstractModel
|
1275
|
+
|
1276
|
+
|
1277
|
+
def initialize()
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
def deserialize(params)
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
# GetAccount返回参数结构体
|
1285
|
+
class GetAccountResponse < TencentCloud::Common::AbstractModel
|
1286
|
+
# @param AccountUsage: 命名空间已使用的信息
|
1287
|
+
# @type AccountUsage: :class:`Tencentcloud::Scf.v20180416.models.UsageInfo`
|
1288
|
+
# @param AccountLimit: 命名空间限制的信息
|
1289
|
+
# @type AccountLimit: :class:`Tencentcloud::Scf.v20180416.models.LimitsInfo`
|
1290
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1291
|
+
# @type RequestId: String
|
1292
|
+
|
1293
|
+
attr_accessor :AccountUsage, :AccountLimit, :RequestId
|
1294
|
+
|
1295
|
+
def initialize(accountusage=nil, accountlimit=nil, requestid=nil)
|
1296
|
+
@AccountUsage = accountusage
|
1297
|
+
@AccountLimit = accountlimit
|
1298
|
+
@RequestId = requestid
|
1299
|
+
end
|
1300
|
+
|
1301
|
+
def deserialize(params)
|
1302
|
+
unless params['AccountUsage'].nil?
|
1303
|
+
@AccountUsage = UsageInfo.new
|
1304
|
+
@AccountUsage.deserialize(params['AccountUsage'])
|
1305
|
+
end
|
1306
|
+
unless params['AccountLimit'].nil?
|
1307
|
+
@AccountLimit = LimitsInfo.new
|
1308
|
+
@AccountLimit.deserialize(params['AccountLimit'])
|
1309
|
+
end
|
1310
|
+
@RequestId = params['RequestId']
|
1311
|
+
end
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
# GetAlias请求参数结构体
|
1315
|
+
class GetAliasRequest < TencentCloud::Common::AbstractModel
|
1316
|
+
# @param FunctionName: 函数名称
|
1317
|
+
# @type FunctionName: String
|
1318
|
+
# @param Name: 别名的名称
|
1319
|
+
# @type Name: String
|
1320
|
+
# @param Namespace: 函数所在的命名空间
|
1321
|
+
# @type Namespace: String
|
1322
|
+
|
1323
|
+
attr_accessor :FunctionName, :Name, :Namespace
|
1324
|
+
|
1325
|
+
def initialize(functionname=nil, name=nil, namespace=nil)
|
1326
|
+
@FunctionName = functionname
|
1327
|
+
@Name = name
|
1328
|
+
@Namespace = namespace
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
def deserialize(params)
|
1332
|
+
@FunctionName = params['FunctionName']
|
1333
|
+
@Name = params['Name']
|
1334
|
+
@Namespace = params['Namespace']
|
1335
|
+
end
|
1336
|
+
end
|
1337
|
+
|
1338
|
+
# GetAlias返回参数结构体
|
1339
|
+
class GetAliasResponse < TencentCloud::Common::AbstractModel
|
1340
|
+
# @param FunctionVersion: 别名指向的主版本
|
1341
|
+
# @type FunctionVersion: String
|
1342
|
+
# @param Name: 别名的名称
|
1343
|
+
# @type Name: String
|
1344
|
+
# @param RoutingConfig: 别名的路由信息
|
1345
|
+
# @type RoutingConfig: :class:`Tencentcloud::Scf.v20180416.models.RoutingConfig`
|
1346
|
+
# @param Description: 别名的描述
|
1347
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1348
|
+
# @type Description: String
|
1349
|
+
# @param AddTime: 创建时间
|
1350
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1351
|
+
# @type AddTime: String
|
1352
|
+
# @param ModTime: 更新时间
|
1353
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1354
|
+
# @type ModTime: String
|
1355
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1356
|
+
# @type RequestId: String
|
1357
|
+
|
1358
|
+
attr_accessor :FunctionVersion, :Name, :RoutingConfig, :Description, :AddTime, :ModTime, :RequestId
|
1359
|
+
|
1360
|
+
def initialize(functionversion=nil, name=nil, routingconfig=nil, description=nil, addtime=nil, modtime=nil, requestid=nil)
|
1361
|
+
@FunctionVersion = functionversion
|
1362
|
+
@Name = name
|
1363
|
+
@RoutingConfig = routingconfig
|
1364
|
+
@Description = description
|
1365
|
+
@AddTime = addtime
|
1366
|
+
@ModTime = modtime
|
1367
|
+
@RequestId = requestid
|
1368
|
+
end
|
1369
|
+
|
1370
|
+
def deserialize(params)
|
1371
|
+
@FunctionVersion = params['FunctionVersion']
|
1372
|
+
@Name = params['Name']
|
1373
|
+
unless params['RoutingConfig'].nil?
|
1374
|
+
@RoutingConfig = RoutingConfig.new
|
1375
|
+
@RoutingConfig.deserialize(params['RoutingConfig'])
|
1376
|
+
end
|
1377
|
+
@Description = params['Description']
|
1378
|
+
@AddTime = params['AddTime']
|
1379
|
+
@ModTime = params['ModTime']
|
1380
|
+
@RequestId = params['RequestId']
|
1381
|
+
end
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
# GetFunctionAddress请求参数结构体
|
1385
|
+
class GetFunctionAddressRequest < TencentCloud::Common::AbstractModel
|
1386
|
+
# @param FunctionName: 函数的名称
|
1387
|
+
# @type FunctionName: String
|
1388
|
+
# @param Qualifier: 函数的版本
|
1389
|
+
# @type Qualifier: String
|
1390
|
+
# @param Namespace: 函数的命名空间
|
1391
|
+
# @type Namespace: String
|
1392
|
+
|
1393
|
+
attr_accessor :FunctionName, :Qualifier, :Namespace
|
1394
|
+
|
1395
|
+
def initialize(functionname=nil, qualifier=nil, namespace=nil)
|
1396
|
+
@FunctionName = functionname
|
1397
|
+
@Qualifier = qualifier
|
1398
|
+
@Namespace = namespace
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
def deserialize(params)
|
1402
|
+
@FunctionName = params['FunctionName']
|
1403
|
+
@Qualifier = params['Qualifier']
|
1404
|
+
@Namespace = params['Namespace']
|
1405
|
+
end
|
1406
|
+
end
|
1407
|
+
|
1408
|
+
# GetFunctionAddress返回参数结构体
|
1409
|
+
class GetFunctionAddressResponse < TencentCloud::Common::AbstractModel
|
1410
|
+
# @param Url: 函数的Cos地址
|
1411
|
+
# @type Url: String
|
1412
|
+
# @param CodeSha256: 函数的SHA256编码
|
1413
|
+
# @type CodeSha256: String
|
1414
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1415
|
+
# @type RequestId: String
|
1416
|
+
|
1417
|
+
attr_accessor :Url, :CodeSha256, :RequestId
|
1418
|
+
|
1419
|
+
def initialize(url=nil, codesha256=nil, requestid=nil)
|
1420
|
+
@Url = url
|
1421
|
+
@CodeSha256 = codesha256
|
1422
|
+
@RequestId = requestid
|
1423
|
+
end
|
1424
|
+
|
1425
|
+
def deserialize(params)
|
1426
|
+
@Url = params['Url']
|
1427
|
+
@CodeSha256 = params['CodeSha256']
|
1428
|
+
@RequestId = params['RequestId']
|
1429
|
+
end
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
# GetFunctionEventInvokeConfig请求参数结构体
|
1433
|
+
class GetFunctionEventInvokeConfigRequest < TencentCloud::Common::AbstractModel
|
1434
|
+
# @param FunctionName: 函数名称
|
1435
|
+
# @type FunctionName: String
|
1436
|
+
# @param Namespace: 函数所属命名空间,默认为default
|
1437
|
+
# @type Namespace: String
|
1438
|
+
# @param Qualifier: 函数版本,默认为$LATEST
|
1439
|
+
# @type Qualifier: String
|
1440
|
+
|
1441
|
+
attr_accessor :FunctionName, :Namespace, :Qualifier
|
1442
|
+
|
1443
|
+
def initialize(functionname=nil, namespace=nil, qualifier=nil)
|
1444
|
+
@FunctionName = functionname
|
1445
|
+
@Namespace = namespace
|
1446
|
+
@Qualifier = qualifier
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
def deserialize(params)
|
1450
|
+
@FunctionName = params['FunctionName']
|
1451
|
+
@Namespace = params['Namespace']
|
1452
|
+
@Qualifier = params['Qualifier']
|
1453
|
+
end
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
# GetFunctionEventInvokeConfig返回参数结构体
|
1457
|
+
class GetFunctionEventInvokeConfigResponse < TencentCloud::Common::AbstractModel
|
1458
|
+
# @param AsyncTriggerConfig: 异步重试配置信息
|
1459
|
+
# @type AsyncTriggerConfig: :class:`Tencentcloud::Scf.v20180416.models.AsyncTriggerConfig`
|
1460
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1461
|
+
# @type RequestId: String
|
1462
|
+
|
1463
|
+
attr_accessor :AsyncTriggerConfig, :RequestId
|
1464
|
+
|
1465
|
+
def initialize(asynctriggerconfig=nil, requestid=nil)
|
1466
|
+
@AsyncTriggerConfig = asynctriggerconfig
|
1467
|
+
@RequestId = requestid
|
1468
|
+
end
|
1469
|
+
|
1470
|
+
def deserialize(params)
|
1471
|
+
unless params['AsyncTriggerConfig'].nil?
|
1472
|
+
@AsyncTriggerConfig = AsyncTriggerConfig.new
|
1473
|
+
@AsyncTriggerConfig.deserialize(params['AsyncTriggerConfig'])
|
1474
|
+
end
|
1475
|
+
@RequestId = params['RequestId']
|
1476
|
+
end
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
# GetFunctionLogs请求参数结构体
|
1480
|
+
class GetFunctionLogsRequest < TencentCloud::Common::AbstractModel
|
1481
|
+
# @param FunctionName: 函数的名称。
|
1482
|
+
# - 为保证[获取函数运行日志](https://cloud.tencent.com/document/product/583/18583)接口`GetFunctionLogs`兼容性,输入参数`FunctionName`仍为非必填项,但建议填写该参数,否则可能导致日志获取失败。
|
1483
|
+
# - 函数关联日志服务后,建议使用[日志服务](https://cloud.tencent.com/document/product/614/16875)相关接口以获得最佳日志检索体验。
|
1484
|
+
# @type FunctionName: String
|
1485
|
+
# @param Offset: 数据的偏移量,Offset+Limit不能大于10000
|
1486
|
+
# @type Offset: Integer
|
1487
|
+
# @param Limit: 返回数据的长度,Offset+Limit不能大于10000
|
1488
|
+
# @type Limit: Integer
|
1489
|
+
# @param Order: 以升序还是降序的方式对日志进行排序,可选值 desc和 asc
|
1490
|
+
# @type Order: String
|
1491
|
+
# @param OrderBy: 根据某个字段排序日志,支持以下字段:function_name, duration, mem_usage, start_time
|
1492
|
+
# @type OrderBy: String
|
1493
|
+
# @param Filter: 日志过滤条件。可用来区分正确和错误日志,filter.RetCode=not0 表示只返回错误日志,filter.RetCode=is0 表示只返回正确日志,不传,则返回所有日志
|
1494
|
+
# @type Filter: :class:`Tencentcloud::Scf.v20180416.models.LogFilter`
|
1495
|
+
# @param Namespace: 函数的命名空间
|
1496
|
+
# @type Namespace: String
|
1497
|
+
# @param Qualifier: 函数的版本
|
1498
|
+
# @type Qualifier: String
|
1499
|
+
# @param FunctionRequestId: 执行该函数对应的requestId
|
1500
|
+
# @type FunctionRequestId: String
|
1501
|
+
# @param StartTime: 查询的具体日期,例如:2017-05-16 20:00:00,只能与endtime相差一天之内
|
1502
|
+
# @type StartTime: String
|
1503
|
+
# @param EndTime: 查询的具体日期,例如:2017-05-16 20:59:59,只能与startTime相差一天之内
|
1504
|
+
# @type EndTime: String
|
1505
|
+
# @param SearchContext: 该字段已下线
|
1506
|
+
# @type SearchContext: :class:`Tencentcloud::Scf.v20180416.models.LogSearchContext`
|
1507
|
+
|
1508
|
+
attr_accessor :FunctionName, :Offset, :Limit, :Order, :OrderBy, :Filter, :Namespace, :Qualifier, :FunctionRequestId, :StartTime, :EndTime, :SearchContext
|
1509
|
+
|
1510
|
+
def initialize(functionname=nil, offset=nil, limit=nil, order=nil, orderby=nil, filter=nil, namespace=nil, qualifier=nil, functionrequestid=nil, starttime=nil, endtime=nil, searchcontext=nil)
|
1511
|
+
@FunctionName = functionname
|
1512
|
+
@Offset = offset
|
1513
|
+
@Limit = limit
|
1514
|
+
@Order = order
|
1515
|
+
@OrderBy = orderby
|
1516
|
+
@Filter = filter
|
1517
|
+
@Namespace = namespace
|
1518
|
+
@Qualifier = qualifier
|
1519
|
+
@FunctionRequestId = functionrequestid
|
1520
|
+
@StartTime = starttime
|
1521
|
+
@EndTime = endtime
|
1522
|
+
@SearchContext = searchcontext
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
def deserialize(params)
|
1526
|
+
@FunctionName = params['FunctionName']
|
1527
|
+
@Offset = params['Offset']
|
1528
|
+
@Limit = params['Limit']
|
1529
|
+
@Order = params['Order']
|
1530
|
+
@OrderBy = params['OrderBy']
|
1531
|
+
unless params['Filter'].nil?
|
1532
|
+
@Filter = LogFilter.new
|
1533
|
+
@Filter.deserialize(params['Filter'])
|
1534
|
+
end
|
1535
|
+
@Namespace = params['Namespace']
|
1536
|
+
@Qualifier = params['Qualifier']
|
1537
|
+
@FunctionRequestId = params['FunctionRequestId']
|
1538
|
+
@StartTime = params['StartTime']
|
1539
|
+
@EndTime = params['EndTime']
|
1540
|
+
unless params['SearchContext'].nil?
|
1541
|
+
@SearchContext = LogSearchContext.new
|
1542
|
+
@SearchContext.deserialize(params['SearchContext'])
|
1543
|
+
end
|
1544
|
+
end
|
1545
|
+
end
|
1546
|
+
|
1547
|
+
# GetFunctionLogs返回参数结构体
|
1548
|
+
class GetFunctionLogsResponse < TencentCloud::Common::AbstractModel
|
1549
|
+
# @param TotalCount: 函数日志的总数
|
1550
|
+
# @type TotalCount: Integer
|
1551
|
+
# @param Data: 函数日志信息
|
1552
|
+
# @type Data: Array
|
1553
|
+
# @param SearchContext: 该字段已下线
|
1554
|
+
# @type SearchContext: :class:`Tencentcloud::Scf.v20180416.models.LogSearchContext`
|
1555
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1556
|
+
# @type RequestId: String
|
1557
|
+
|
1558
|
+
attr_accessor :TotalCount, :Data, :SearchContext, :RequestId
|
1559
|
+
|
1560
|
+
def initialize(totalcount=nil, data=nil, searchcontext=nil, requestid=nil)
|
1561
|
+
@TotalCount = totalcount
|
1562
|
+
@Data = data
|
1563
|
+
@SearchContext = searchcontext
|
1564
|
+
@RequestId = requestid
|
1565
|
+
end
|
1566
|
+
|
1567
|
+
def deserialize(params)
|
1568
|
+
@TotalCount = params['TotalCount']
|
1569
|
+
unless params['Data'].nil?
|
1570
|
+
@Data = []
|
1571
|
+
params['Data'].each do |i|
|
1572
|
+
functionlog_tmp = FunctionLog.new
|
1573
|
+
functionlog_tmp.deserialize(i)
|
1574
|
+
@Data << functionlog_tmp
|
1575
|
+
end
|
1576
|
+
end
|
1577
|
+
unless params['SearchContext'].nil?
|
1578
|
+
@SearchContext = LogSearchContext.new
|
1579
|
+
@SearchContext.deserialize(params['SearchContext'])
|
1580
|
+
end
|
1581
|
+
@RequestId = params['RequestId']
|
1582
|
+
end
|
1583
|
+
end
|
1584
|
+
|
1585
|
+
# GetFunction请求参数结构体
|
1586
|
+
class GetFunctionRequest < TencentCloud::Common::AbstractModel
|
1587
|
+
# @param FunctionName: 需要获取详情的函数名称
|
1588
|
+
# @type FunctionName: String
|
1589
|
+
# @param Qualifier: 函数的版本号
|
1590
|
+
# @type Qualifier: String
|
1591
|
+
# @param Namespace: 函数所属命名空间
|
1592
|
+
# @type Namespace: String
|
1593
|
+
# @param ShowCode: 是否显示代码, TRUE表示显示代码,FALSE表示不显示代码,大于1M的入口文件不会显示
|
1594
|
+
# @type ShowCode: String
|
1595
|
+
|
1596
|
+
attr_accessor :FunctionName, :Qualifier, :Namespace, :ShowCode
|
1597
|
+
|
1598
|
+
def initialize(functionname=nil, qualifier=nil, namespace=nil, showcode=nil)
|
1599
|
+
@FunctionName = functionname
|
1600
|
+
@Qualifier = qualifier
|
1601
|
+
@Namespace = namespace
|
1602
|
+
@ShowCode = showcode
|
1603
|
+
end
|
1604
|
+
|
1605
|
+
def deserialize(params)
|
1606
|
+
@FunctionName = params['FunctionName']
|
1607
|
+
@Qualifier = params['Qualifier']
|
1608
|
+
@Namespace = params['Namespace']
|
1609
|
+
@ShowCode = params['ShowCode']
|
1610
|
+
end
|
1611
|
+
end
|
1612
|
+
|
1613
|
+
# GetFunction返回参数结构体
|
1614
|
+
class GetFunctionResponse < TencentCloud::Common::AbstractModel
|
1615
|
+
# @param ModTime: 函数的最后修改时间
|
1616
|
+
# @type ModTime: String
|
1617
|
+
# @param CodeInfo: 函数的代码
|
1618
|
+
# @type CodeInfo: String
|
1619
|
+
# @param Description: 函数的描述信息
|
1620
|
+
# @type Description: String
|
1621
|
+
# @param Triggers: 函数的触发器列表
|
1622
|
+
# @type Triggers: Array
|
1623
|
+
# @param Handler: 函数的入口
|
1624
|
+
# @type Handler: String
|
1625
|
+
# @param CodeSize: 函数代码大小
|
1626
|
+
# @type CodeSize: Integer
|
1627
|
+
# @param Timeout: 函数的超时时间
|
1628
|
+
# @type Timeout: Integer
|
1629
|
+
# @param FunctionVersion: 函数的版本
|
1630
|
+
# @type FunctionVersion: String
|
1631
|
+
# @param MemorySize: 函数的最大可用内存
|
1632
|
+
# @type MemorySize: Integer
|
1633
|
+
# @param Runtime: 函数的运行环境
|
1634
|
+
# @type Runtime: String
|
1635
|
+
# @param FunctionName: 函数的名称
|
1636
|
+
# @type FunctionName: String
|
1637
|
+
# @param VpcConfig: 函数的私有网络
|
1638
|
+
# @type VpcConfig: :class:`Tencentcloud::Scf.v20180416.models.VpcConfig`
|
1639
|
+
# @param UseGpu: 是否使用GPU
|
1640
|
+
# @type UseGpu: String
|
1641
|
+
# @param Environment: 函数的环境变量
|
1642
|
+
# @type Environment: :class:`Tencentcloud::Scf.v20180416.models.Environment`
|
1643
|
+
# @param CodeResult: 代码是否正确
|
1644
|
+
# @type CodeResult: String
|
1645
|
+
# @param CodeError: 代码错误信息
|
1646
|
+
# @type CodeError: String
|
1647
|
+
# @param ErrNo: 代码错误码
|
1648
|
+
# @type ErrNo: Integer
|
1649
|
+
# @param Namespace: 函数的命名空间
|
1650
|
+
# @type Namespace: String
|
1651
|
+
# @param Role: 函数绑定的角色
|
1652
|
+
# @type Role: String
|
1653
|
+
# @param InstallDependency: 是否自动安装依赖
|
1654
|
+
# @type InstallDependency: String
|
1655
|
+
# @param Status: 函数状态,状态值及流转[参考说明](https://cloud.tencent.com/document/product/583/47175)
|
1656
|
+
# @type Status: String
|
1657
|
+
# @param StatusDesc: 状态描述
|
1658
|
+
# @type StatusDesc: String
|
1659
|
+
# @param ClsLogsetId: 日志投递到的Cls日志集
|
1660
|
+
# @type ClsLogsetId: String
|
1661
|
+
# @param ClsTopicId: 日志投递到的Cls Topic
|
1662
|
+
# @type ClsTopicId: String
|
1663
|
+
# @param FunctionId: 函数ID
|
1664
|
+
# @type FunctionId: String
|
1665
|
+
# @param Tags: 函数的标签列表
|
1666
|
+
# @type Tags: Array
|
1667
|
+
# @param EipConfig: EipConfig配置
|
1668
|
+
# @type EipConfig: :class:`Tencentcloud::Scf.v20180416.models.EipOutConfig`
|
1669
|
+
# @param AccessInfo: 域名信息
|
1670
|
+
# @type AccessInfo: :class:`Tencentcloud::Scf.v20180416.models.AccessInfo`
|
1671
|
+
# @param Type: 函数类型,取值为HTTP或者Event
|
1672
|
+
# @type Type: String
|
1673
|
+
# @param L5Enable: 是否启用L5
|
1674
|
+
# @type L5Enable: String
|
1675
|
+
# @param Layers: 函数关联的Layer版本信息
|
1676
|
+
# @type Layers: Array
|
1677
|
+
# @param DeadLetterConfig: 函数关联的死信队列信息
|
1678
|
+
# @type DeadLetterConfig: :class:`Tencentcloud::Scf.v20180416.models.DeadLetterConfig`
|
1679
|
+
# @param AddTime: 函数创建回见
|
1680
|
+
# @type AddTime: String
|
1681
|
+
# @param PublicNetConfig: 公网访问配置
|
1682
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1683
|
+
# @type PublicNetConfig: :class:`Tencentcloud::Scf.v20180416.models.PublicNetConfigOut`
|
1684
|
+
# @param OnsEnable: 是否启用Ons
|
1685
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1686
|
+
# @type OnsEnable: String
|
1687
|
+
# @param CfsConfig: 文件系统配置参数,用于云函数挂载文件系统
|
1688
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1689
|
+
# @type CfsConfig: :class:`Tencentcloud::Scf.v20180416.models.CfsConfig`
|
1690
|
+
# @param AvailableStatus: 函数的计费状态,状态值[参考此处](https://cloud.tencent.com/document/product/583/47175#.E5.87.BD.E6.95.B0.E8.AE.A1.E8.B4.B9.E7.8A.B6.E6.80.81)
|
1691
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1692
|
+
# @type AvailableStatus: String
|
1693
|
+
# @param Qualifier: 函数版本
|
1694
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1695
|
+
# @type Qualifier: String
|
1696
|
+
# @param InitTimeout: 函数初始化超时时间
|
1697
|
+
# @type InitTimeout: Integer
|
1698
|
+
# @param StatusReasons: 函数状态失败原因
|
1699
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1700
|
+
# @type StatusReasons: Array
|
1701
|
+
# @param AsyncRunEnable: 是否开启异步属性
|
1702
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1703
|
+
# @type AsyncRunEnable: String
|
1704
|
+
# @param TraceEnable: 是否开启事件追踪
|
1705
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1706
|
+
# @type TraceEnable: String
|
1707
|
+
# @param ProtocolType: HTTP函数支持的访问协议。当前支持WebSockets协议。
|
1708
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1709
|
+
# @type ProtocolType: String
|
1710
|
+
# @param ProtocolParams: HTTP函数配置ProtocolType访问协议,当前协议配置的参数
|
1711
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1712
|
+
# @type ProtocolParams: :class:`Tencentcloud::Scf.v20180416.models.ProtocolParams`
|
1713
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1714
|
+
# @type RequestId: String
|
1715
|
+
|
1716
|
+
attr_accessor :ModTime, :CodeInfo, :Description, :Triggers, :Handler, :CodeSize, :Timeout, :FunctionVersion, :MemorySize, :Runtime, :FunctionName, :VpcConfig, :UseGpu, :Environment, :CodeResult, :CodeError, :ErrNo, :Namespace, :Role, :InstallDependency, :Status, :StatusDesc, :ClsLogsetId, :ClsTopicId, :FunctionId, :Tags, :EipConfig, :AccessInfo, :Type, :L5Enable, :Layers, :DeadLetterConfig, :AddTime, :PublicNetConfig, :OnsEnable, :CfsConfig, :AvailableStatus, :Qualifier, :InitTimeout, :StatusReasons, :AsyncRunEnable, :TraceEnable, :ProtocolType, :ProtocolParams, :RequestId
|
1717
|
+
|
1718
|
+
def initialize(modtime=nil, codeinfo=nil, description=nil, triggers=nil, handler=nil, codesize=nil, timeout=nil, functionversion=nil, memorysize=nil, runtime=nil, functionname=nil, vpcconfig=nil, usegpu=nil, environment=nil, coderesult=nil, codeerror=nil, errno=nil, namespace=nil, role=nil, installdependency=nil, status=nil, statusdesc=nil, clslogsetid=nil, clstopicid=nil, functionid=nil, tags=nil, eipconfig=nil, accessinfo=nil, type=nil, l5enable=nil, layers=nil, deadletterconfig=nil, addtime=nil, publicnetconfig=nil, onsenable=nil, cfsconfig=nil, availablestatus=nil, qualifier=nil, inittimeout=nil, statusreasons=nil, asyncrunenable=nil, traceenable=nil, protocoltype=nil, protocolparams=nil, requestid=nil)
|
1719
|
+
@ModTime = modtime
|
1720
|
+
@CodeInfo = codeinfo
|
1721
|
+
@Description = description
|
1722
|
+
@Triggers = triggers
|
1723
|
+
@Handler = handler
|
1724
|
+
@CodeSize = codesize
|
1725
|
+
@Timeout = timeout
|
1726
|
+
@FunctionVersion = functionversion
|
1727
|
+
@MemorySize = memorysize
|
1728
|
+
@Runtime = runtime
|
1729
|
+
@FunctionName = functionname
|
1730
|
+
@VpcConfig = vpcconfig
|
1731
|
+
@UseGpu = usegpu
|
1732
|
+
@Environment = environment
|
1733
|
+
@CodeResult = coderesult
|
1734
|
+
@CodeError = codeerror
|
1735
|
+
@ErrNo = errno
|
1736
|
+
@Namespace = namespace
|
1737
|
+
@Role = role
|
1738
|
+
@InstallDependency = installdependency
|
1739
|
+
@Status = status
|
1740
|
+
@StatusDesc = statusdesc
|
1741
|
+
@ClsLogsetId = clslogsetid
|
1742
|
+
@ClsTopicId = clstopicid
|
1743
|
+
@FunctionId = functionid
|
1744
|
+
@Tags = tags
|
1745
|
+
@EipConfig = eipconfig
|
1746
|
+
@AccessInfo = accessinfo
|
1747
|
+
@Type = type
|
1748
|
+
@L5Enable = l5enable
|
1749
|
+
@Layers = layers
|
1750
|
+
@DeadLetterConfig = deadletterconfig
|
1751
|
+
@AddTime = addtime
|
1752
|
+
@PublicNetConfig = publicnetconfig
|
1753
|
+
@OnsEnable = onsenable
|
1754
|
+
@CfsConfig = cfsconfig
|
1755
|
+
@AvailableStatus = availablestatus
|
1756
|
+
@Qualifier = qualifier
|
1757
|
+
@InitTimeout = inittimeout
|
1758
|
+
@StatusReasons = statusreasons
|
1759
|
+
@AsyncRunEnable = asyncrunenable
|
1760
|
+
@TraceEnable = traceenable
|
1761
|
+
@ProtocolType = protocoltype
|
1762
|
+
@ProtocolParams = protocolparams
|
1763
|
+
@RequestId = requestid
|
1764
|
+
end
|
1765
|
+
|
1766
|
+
def deserialize(params)
|
1767
|
+
@ModTime = params['ModTime']
|
1768
|
+
@CodeInfo = params['CodeInfo']
|
1769
|
+
@Description = params['Description']
|
1770
|
+
unless params['Triggers'].nil?
|
1771
|
+
@Triggers = []
|
1772
|
+
params['Triggers'].each do |i|
|
1773
|
+
trigger_tmp = Trigger.new
|
1774
|
+
trigger_tmp.deserialize(i)
|
1775
|
+
@Triggers << trigger_tmp
|
1776
|
+
end
|
1777
|
+
end
|
1778
|
+
@Handler = params['Handler']
|
1779
|
+
@CodeSize = params['CodeSize']
|
1780
|
+
@Timeout = params['Timeout']
|
1781
|
+
@FunctionVersion = params['FunctionVersion']
|
1782
|
+
@MemorySize = params['MemorySize']
|
1783
|
+
@Runtime = params['Runtime']
|
1784
|
+
@FunctionName = params['FunctionName']
|
1785
|
+
unless params['VpcConfig'].nil?
|
1786
|
+
@VpcConfig = VpcConfig.new
|
1787
|
+
@VpcConfig.deserialize(params['VpcConfig'])
|
1788
|
+
end
|
1789
|
+
@UseGpu = params['UseGpu']
|
1790
|
+
unless params['Environment'].nil?
|
1791
|
+
@Environment = Environment.new
|
1792
|
+
@Environment.deserialize(params['Environment'])
|
1793
|
+
end
|
1794
|
+
@CodeResult = params['CodeResult']
|
1795
|
+
@CodeError = params['CodeError']
|
1796
|
+
@ErrNo = params['ErrNo']
|
1797
|
+
@Namespace = params['Namespace']
|
1798
|
+
@Role = params['Role']
|
1799
|
+
@InstallDependency = params['InstallDependency']
|
1800
|
+
@Status = params['Status']
|
1801
|
+
@StatusDesc = params['StatusDesc']
|
1802
|
+
@ClsLogsetId = params['ClsLogsetId']
|
1803
|
+
@ClsTopicId = params['ClsTopicId']
|
1804
|
+
@FunctionId = params['FunctionId']
|
1805
|
+
unless params['Tags'].nil?
|
1806
|
+
@Tags = []
|
1807
|
+
params['Tags'].each do |i|
|
1808
|
+
tag_tmp = Tag.new
|
1809
|
+
tag_tmp.deserialize(i)
|
1810
|
+
@Tags << tag_tmp
|
1811
|
+
end
|
1812
|
+
end
|
1813
|
+
unless params['EipConfig'].nil?
|
1814
|
+
@EipConfig = EipOutConfig.new
|
1815
|
+
@EipConfig.deserialize(params['EipConfig'])
|
1816
|
+
end
|
1817
|
+
unless params['AccessInfo'].nil?
|
1818
|
+
@AccessInfo = AccessInfo.new
|
1819
|
+
@AccessInfo.deserialize(params['AccessInfo'])
|
1820
|
+
end
|
1821
|
+
@Type = params['Type']
|
1822
|
+
@L5Enable = params['L5Enable']
|
1823
|
+
unless params['Layers'].nil?
|
1824
|
+
@Layers = []
|
1825
|
+
params['Layers'].each do |i|
|
1826
|
+
layerversioninfo_tmp = LayerVersionInfo.new
|
1827
|
+
layerversioninfo_tmp.deserialize(i)
|
1828
|
+
@Layers << layerversioninfo_tmp
|
1829
|
+
end
|
1830
|
+
end
|
1831
|
+
unless params['DeadLetterConfig'].nil?
|
1832
|
+
@DeadLetterConfig = DeadLetterConfig.new
|
1833
|
+
@DeadLetterConfig.deserialize(params['DeadLetterConfig'])
|
1834
|
+
end
|
1835
|
+
@AddTime = params['AddTime']
|
1836
|
+
unless params['PublicNetConfig'].nil?
|
1837
|
+
@PublicNetConfig = PublicNetConfigOut.new
|
1838
|
+
@PublicNetConfig.deserialize(params['PublicNetConfig'])
|
1839
|
+
end
|
1840
|
+
@OnsEnable = params['OnsEnable']
|
1841
|
+
unless params['CfsConfig'].nil?
|
1842
|
+
@CfsConfig = CfsConfig.new
|
1843
|
+
@CfsConfig.deserialize(params['CfsConfig'])
|
1844
|
+
end
|
1845
|
+
@AvailableStatus = params['AvailableStatus']
|
1846
|
+
@Qualifier = params['Qualifier']
|
1847
|
+
@InitTimeout = params['InitTimeout']
|
1848
|
+
unless params['StatusReasons'].nil?
|
1849
|
+
@StatusReasons = []
|
1850
|
+
params['StatusReasons'].each do |i|
|
1851
|
+
statusreason_tmp = StatusReason.new
|
1852
|
+
statusreason_tmp.deserialize(i)
|
1853
|
+
@StatusReasons << statusreason_tmp
|
1854
|
+
end
|
1855
|
+
end
|
1856
|
+
@AsyncRunEnable = params['AsyncRunEnable']
|
1857
|
+
@TraceEnable = params['TraceEnable']
|
1858
|
+
@ProtocolType = params['ProtocolType']
|
1859
|
+
unless params['ProtocolParams'].nil?
|
1860
|
+
@ProtocolParams = ProtocolParams.new
|
1861
|
+
@ProtocolParams.deserialize(params['ProtocolParams'])
|
1862
|
+
end
|
1863
|
+
@RequestId = params['RequestId']
|
1864
|
+
end
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
# GetLayerVersion请求参数结构体
|
1868
|
+
class GetLayerVersionRequest < TencentCloud::Common::AbstractModel
|
1869
|
+
# @param LayerName: 层名称
|
1870
|
+
# @type LayerName: String
|
1871
|
+
# @param LayerVersion: 版本号
|
1872
|
+
# @type LayerVersion: Integer
|
1873
|
+
|
1874
|
+
attr_accessor :LayerName, :LayerVersion
|
1875
|
+
|
1876
|
+
def initialize(layername=nil, layerversion=nil)
|
1877
|
+
@LayerName = layername
|
1878
|
+
@LayerVersion = layerversion
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
def deserialize(params)
|
1882
|
+
@LayerName = params['LayerName']
|
1883
|
+
@LayerVersion = params['LayerVersion']
|
1884
|
+
end
|
1885
|
+
end
|
1886
|
+
|
1887
|
+
# GetLayerVersion返回参数结构体
|
1888
|
+
class GetLayerVersionResponse < TencentCloud::Common::AbstractModel
|
1889
|
+
# @param CompatibleRuntimes: 适配的运行时
|
1890
|
+
# @type CompatibleRuntimes: Array
|
1891
|
+
# @param CodeSha256: 层中版本文件的SHA256编码
|
1892
|
+
# @type CodeSha256: String
|
1893
|
+
# @param Location: 层中版本文件的下载地址
|
1894
|
+
# @type Location: String
|
1895
|
+
# @param AddTime: 版本的创建时间
|
1896
|
+
# @type AddTime: String
|
1897
|
+
# @param Description: 版本的描述
|
1898
|
+
# @type Description: String
|
1899
|
+
# @param LicenseInfo: 许可证信息
|
1900
|
+
# @type LicenseInfo: String
|
1901
|
+
# @param LayerVersion: 版本号
|
1902
|
+
# @type LayerVersion: Integer
|
1903
|
+
# @param LayerName: 层名称
|
1904
|
+
# @type LayerName: String
|
1905
|
+
# @param Status: 层的具体版本当前状态,可能取值:
|
1906
|
+
# Active 正常
|
1907
|
+
# Publishing 发布中
|
1908
|
+
# PublishFailed 发布失败
|
1909
|
+
# Deleted 已删除
|
1910
|
+
# @type Status: String
|
1911
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1912
|
+
# @type RequestId: String
|
1913
|
+
|
1914
|
+
attr_accessor :CompatibleRuntimes, :CodeSha256, :Location, :AddTime, :Description, :LicenseInfo, :LayerVersion, :LayerName, :Status, :RequestId
|
1915
|
+
|
1916
|
+
def initialize(compatibleruntimes=nil, codesha256=nil, location=nil, addtime=nil, description=nil, licenseinfo=nil, layerversion=nil, layername=nil, status=nil, requestid=nil)
|
1917
|
+
@CompatibleRuntimes = compatibleruntimes
|
1918
|
+
@CodeSha256 = codesha256
|
1919
|
+
@Location = location
|
1920
|
+
@AddTime = addtime
|
1921
|
+
@Description = description
|
1922
|
+
@LicenseInfo = licenseinfo
|
1923
|
+
@LayerVersion = layerversion
|
1924
|
+
@LayerName = layername
|
1925
|
+
@Status = status
|
1926
|
+
@RequestId = requestid
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
def deserialize(params)
|
1930
|
+
@CompatibleRuntimes = params['CompatibleRuntimes']
|
1931
|
+
@CodeSha256 = params['CodeSha256']
|
1932
|
+
@Location = params['Location']
|
1933
|
+
@AddTime = params['AddTime']
|
1934
|
+
@Description = params['Description']
|
1935
|
+
@LicenseInfo = params['LicenseInfo']
|
1936
|
+
@LayerVersion = params['LayerVersion']
|
1937
|
+
@LayerName = params['LayerName']
|
1938
|
+
@Status = params['Status']
|
1939
|
+
@RequestId = params['RequestId']
|
1940
|
+
end
|
1941
|
+
end
|
1942
|
+
|
1943
|
+
# GetProvisionedConcurrencyConfig请求参数结构体
|
1944
|
+
class GetProvisionedConcurrencyConfigRequest < TencentCloud::Common::AbstractModel
|
1945
|
+
# @param FunctionName: 需要获取预置并发详情的函数名称。
|
1946
|
+
# @type FunctionName: String
|
1947
|
+
# @param Namespace: 函数所在的命名空间,默认为default。
|
1948
|
+
# @type Namespace: String
|
1949
|
+
# @param Qualifier: 函数版本号,不传则返回函数所有版本的预置并发信息。
|
1950
|
+
# @type Qualifier: String
|
1951
|
+
|
1952
|
+
attr_accessor :FunctionName, :Namespace, :Qualifier
|
1953
|
+
|
1954
|
+
def initialize(functionname=nil, namespace=nil, qualifier=nil)
|
1955
|
+
@FunctionName = functionname
|
1956
|
+
@Namespace = namespace
|
1957
|
+
@Qualifier = qualifier
|
1958
|
+
end
|
1959
|
+
|
1960
|
+
def deserialize(params)
|
1961
|
+
@FunctionName = params['FunctionName']
|
1962
|
+
@Namespace = params['Namespace']
|
1963
|
+
@Qualifier = params['Qualifier']
|
1964
|
+
end
|
1965
|
+
end
|
1966
|
+
|
1967
|
+
# GetProvisionedConcurrencyConfig返回参数结构体
|
1968
|
+
class GetProvisionedConcurrencyConfigResponse < TencentCloud::Common::AbstractModel
|
1969
|
+
# @param UnallocatedConcurrencyNum: 该函数剩余可配置的预置并发数。
|
1970
|
+
# @type UnallocatedConcurrencyNum: Integer
|
1971
|
+
# @param Allocated: 函数已预置的并发配置详情。
|
1972
|
+
# @type Allocated: Array
|
1973
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1974
|
+
# @type RequestId: String
|
1975
|
+
|
1976
|
+
attr_accessor :UnallocatedConcurrencyNum, :Allocated, :RequestId
|
1977
|
+
|
1978
|
+
def initialize(unallocatedconcurrencynum=nil, allocated=nil, requestid=nil)
|
1979
|
+
@UnallocatedConcurrencyNum = unallocatedconcurrencynum
|
1980
|
+
@Allocated = allocated
|
1981
|
+
@RequestId = requestid
|
1982
|
+
end
|
1983
|
+
|
1984
|
+
def deserialize(params)
|
1985
|
+
@UnallocatedConcurrencyNum = params['UnallocatedConcurrencyNum']
|
1986
|
+
unless params['Allocated'].nil?
|
1987
|
+
@Allocated = []
|
1988
|
+
params['Allocated'].each do |i|
|
1989
|
+
versionprovisionedconcurrencyinfo_tmp = VersionProvisionedConcurrencyInfo.new
|
1990
|
+
versionprovisionedconcurrencyinfo_tmp.deserialize(i)
|
1991
|
+
@Allocated << versionprovisionedconcurrencyinfo_tmp
|
1992
|
+
end
|
1993
|
+
end
|
1994
|
+
@RequestId = params['RequestId']
|
1995
|
+
end
|
1996
|
+
end
|
1997
|
+
|
1998
|
+
# GetReservedConcurrencyConfig请求参数结构体
|
1999
|
+
class GetReservedConcurrencyConfigRequest < TencentCloud::Common::AbstractModel
|
2000
|
+
# @param FunctionName: 需要获取最大独占配额详情的函数名称。
|
2001
|
+
# @type FunctionName: String
|
2002
|
+
# @param Namespace: 函数所在的命名空间,默认为default。
|
2003
|
+
# @type Namespace: String
|
2004
|
+
|
2005
|
+
attr_accessor :FunctionName, :Namespace
|
2006
|
+
|
2007
|
+
def initialize(functionname=nil, namespace=nil)
|
2008
|
+
@FunctionName = functionname
|
2009
|
+
@Namespace = namespace
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
def deserialize(params)
|
2013
|
+
@FunctionName = params['FunctionName']
|
2014
|
+
@Namespace = params['Namespace']
|
2015
|
+
end
|
2016
|
+
end
|
2017
|
+
|
2018
|
+
# GetReservedConcurrencyConfig返回参数结构体
|
2019
|
+
class GetReservedConcurrencyConfigResponse < TencentCloud::Common::AbstractModel
|
2020
|
+
# @param ReservedMem: 该函数的最大独占配额。
|
2021
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2022
|
+
# @type ReservedMem: Integer
|
2023
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2024
|
+
# @type RequestId: String
|
2025
|
+
|
2026
|
+
attr_accessor :ReservedMem, :RequestId
|
2027
|
+
|
2028
|
+
def initialize(reservedmem=nil, requestid=nil)
|
2029
|
+
@ReservedMem = reservedmem
|
2030
|
+
@RequestId = requestid
|
2031
|
+
end
|
2032
|
+
|
2033
|
+
def deserialize(params)
|
2034
|
+
@ReservedMem = params['ReservedMem']
|
2035
|
+
@RequestId = params['RequestId']
|
2036
|
+
end
|
2037
|
+
end
|
2038
|
+
|
2039
|
+
# TCR镜像信息描述
|
2040
|
+
class ImageConfig < TencentCloud::Common::AbstractModel
|
2041
|
+
# @param ImageType: 镜像仓库类型,个人版或者企业版:personal/enterprise
|
2042
|
+
# @type ImageType: String
|
2043
|
+
# @param ImageUri: {domain}/{namespace}/{imageName}:{tag}@{digest}
|
2044
|
+
# @type ImageUri: String
|
2045
|
+
# @param RegistryId: 用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填
|
2046
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2047
|
+
# @type RegistryId: String
|
2048
|
+
# @param EntryPoint: 应用的ENTRYPOINT
|
2049
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2050
|
+
# @type EntryPoint: String
|
2051
|
+
# @param Command: entrypoint执行命令
|
2052
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2053
|
+
# @type Command: String
|
2054
|
+
# @param Args: 命令参数
|
2055
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2056
|
+
# @type Args: String
|
2057
|
+
|
2058
|
+
attr_accessor :ImageType, :ImageUri, :RegistryId, :EntryPoint, :Command, :Args
|
2059
|
+
|
2060
|
+
def initialize(imagetype=nil, imageuri=nil, registryid=nil, entrypoint=nil, command=nil, args=nil)
|
2061
|
+
@ImageType = imagetype
|
2062
|
+
@ImageUri = imageuri
|
2063
|
+
@RegistryId = registryid
|
2064
|
+
@EntryPoint = entrypoint
|
2065
|
+
@Command = command
|
2066
|
+
@Args = args
|
2067
|
+
end
|
2068
|
+
|
2069
|
+
def deserialize(params)
|
2070
|
+
@ImageType = params['ImageType']
|
2071
|
+
@ImageUri = params['ImageUri']
|
2072
|
+
@RegistryId = params['RegistryId']
|
2073
|
+
@EntryPoint = params['EntryPoint']
|
2074
|
+
@Command = params['Command']
|
2075
|
+
@Args = params['Args']
|
2076
|
+
end
|
2077
|
+
end
|
2078
|
+
|
2079
|
+
# InvokeFunction请求参数结构体
|
2080
|
+
class InvokeFunctionRequest < TencentCloud::Common::AbstractModel
|
2081
|
+
# @param FunctionName: 函数名称
|
2082
|
+
# @type FunctionName: String
|
2083
|
+
# @param Qualifier: 触发函数的版本号或别名,默认值为$DEFAULT
|
2084
|
+
# @type Qualifier: String
|
2085
|
+
# @param Event: 运行函数时的参数,以json格式传入,最大支持的参数长度是 6MB。该字段信息对应函数 [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)。
|
2086
|
+
# @type Event: String
|
2087
|
+
# @param LogType: 返回值会包含4KB的日志,可选值为None和Tail,默认值为None。当该值为Tail时,返回参数中的Log字段会包含对应的函数执行日志
|
2088
|
+
# @type LogType: String
|
2089
|
+
# @param Namespace: 命名空间,不填默认为 default
|
2090
|
+
# @type Namespace: String
|
2091
|
+
# @param RoutingKey: 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节
|
2092
|
+
# @type RoutingKey: String
|
2093
|
+
|
2094
|
+
attr_accessor :FunctionName, :Qualifier, :Event, :LogType, :Namespace, :RoutingKey
|
2095
|
+
|
2096
|
+
def initialize(functionname=nil, qualifier=nil, event=nil, logtype=nil, namespace=nil, routingkey=nil)
|
2097
|
+
@FunctionName = functionname
|
2098
|
+
@Qualifier = qualifier
|
2099
|
+
@Event = event
|
2100
|
+
@LogType = logtype
|
2101
|
+
@Namespace = namespace
|
2102
|
+
@RoutingKey = routingkey
|
2103
|
+
end
|
2104
|
+
|
2105
|
+
def deserialize(params)
|
2106
|
+
@FunctionName = params['FunctionName']
|
2107
|
+
@Qualifier = params['Qualifier']
|
2108
|
+
@Event = params['Event']
|
2109
|
+
@LogType = params['LogType']
|
2110
|
+
@Namespace = params['Namespace']
|
2111
|
+
@RoutingKey = params['RoutingKey']
|
2112
|
+
end
|
2113
|
+
end
|
2114
|
+
|
2115
|
+
# InvokeFunction返回参数结构体
|
2116
|
+
class InvokeFunctionResponse < TencentCloud::Common::AbstractModel
|
2117
|
+
# @param Result: 函数执行结果
|
2118
|
+
# @type Result: :class:`Tencentcloud::Scf.v20180416.models.Result`
|
2119
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2120
|
+
# @type RequestId: String
|
2121
|
+
|
2122
|
+
attr_accessor :Result, :RequestId
|
2123
|
+
|
2124
|
+
def initialize(result=nil, requestid=nil)
|
2125
|
+
@Result = result
|
2126
|
+
@RequestId = requestid
|
2127
|
+
end
|
2128
|
+
|
2129
|
+
def deserialize(params)
|
2130
|
+
unless params['Result'].nil?
|
2131
|
+
@Result = Result.new
|
2132
|
+
@Result.deserialize(params['Result'])
|
2133
|
+
end
|
2134
|
+
@RequestId = params['RequestId']
|
2135
|
+
end
|
2136
|
+
end
|
2137
|
+
|
2138
|
+
# Invoke请求参数结构体
|
2139
|
+
class InvokeRequest < TencentCloud::Common::AbstractModel
|
2140
|
+
# @param FunctionName: 函数名称
|
2141
|
+
# @type FunctionName: String
|
2142
|
+
# @param InvocationType: 同步调用请使用[同步 Invoke 调用接口](https://cloud.tencent.com/document/product/583/58400) 或填写同步调用参数 RequestResponse ,建议使用同步调用接口以获取最佳性能;异步调用填写 Event;默认为同步。接口超时时间为 300s,更长超时时间请使用异步调用。
|
2143
|
+
# @type InvocationType: String
|
2144
|
+
# @param Qualifier: 触发函数的版本号或别名
|
2145
|
+
# @type Qualifier: String
|
2146
|
+
# @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)。
|
2147
|
+
# @type ClientContext: String
|
2148
|
+
# @param LogType: 异步调用该字段返回为空。
|
2149
|
+
# @type LogType: String
|
2150
|
+
# @param Namespace: 命名空间
|
2151
|
+
# @type Namespace: String
|
2152
|
+
# @param RoutingKey: 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节
|
2153
|
+
# @type RoutingKey: String
|
2154
|
+
|
2155
|
+
attr_accessor :FunctionName, :InvocationType, :Qualifier, :ClientContext, :LogType, :Namespace, :RoutingKey
|
2156
|
+
|
2157
|
+
def initialize(functionname=nil, invocationtype=nil, qualifier=nil, clientcontext=nil, logtype=nil, namespace=nil, routingkey=nil)
|
2158
|
+
@FunctionName = functionname
|
2159
|
+
@InvocationType = invocationtype
|
2160
|
+
@Qualifier = qualifier
|
2161
|
+
@ClientContext = clientcontext
|
2162
|
+
@LogType = logtype
|
2163
|
+
@Namespace = namespace
|
2164
|
+
@RoutingKey = routingkey
|
2165
|
+
end
|
2166
|
+
|
2167
|
+
def deserialize(params)
|
2168
|
+
@FunctionName = params['FunctionName']
|
2169
|
+
@InvocationType = params['InvocationType']
|
2170
|
+
@Qualifier = params['Qualifier']
|
2171
|
+
@ClientContext = params['ClientContext']
|
2172
|
+
@LogType = params['LogType']
|
2173
|
+
@Namespace = params['Namespace']
|
2174
|
+
@RoutingKey = params['RoutingKey']
|
2175
|
+
end
|
2176
|
+
end
|
2177
|
+
|
2178
|
+
# Invoke返回参数结构体
|
2179
|
+
class InvokeResponse < TencentCloud::Common::AbstractModel
|
2180
|
+
# @param Result: 函数执行结果
|
2181
|
+
# @type Result: :class:`Tencentcloud::Scf.v20180416.models.Result`
|
2182
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2183
|
+
# @type RequestId: String
|
2184
|
+
|
2185
|
+
attr_accessor :Result, :RequestId
|
2186
|
+
|
2187
|
+
def initialize(result=nil, requestid=nil)
|
2188
|
+
@Result = result
|
2189
|
+
@RequestId = requestid
|
2190
|
+
end
|
2191
|
+
|
2192
|
+
def deserialize(params)
|
2193
|
+
unless params['Result'].nil?
|
2194
|
+
@Result = Result.new
|
2195
|
+
@Result.deserialize(params['Result'])
|
2196
|
+
end
|
2197
|
+
@RequestId = params['RequestId']
|
2198
|
+
end
|
2199
|
+
end
|
2200
|
+
|
2201
|
+
# 层版本信息
|
2202
|
+
class LayerVersionInfo < TencentCloud::Common::AbstractModel
|
2203
|
+
# @param CompatibleRuntimes: 版本适用的运行时
|
2204
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2205
|
+
# @type CompatibleRuntimes: Array
|
2206
|
+
# @param AddTime: 创建时间
|
2207
|
+
# @type AddTime: String
|
2208
|
+
# @param Description: 版本描述
|
2209
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2210
|
+
# @type Description: String
|
2211
|
+
# @param LicenseInfo: 许可证信息
|
2212
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2213
|
+
# @type LicenseInfo: String
|
2214
|
+
# @param LayerVersion: 版本号
|
2215
|
+
# @type LayerVersion: Integer
|
2216
|
+
# @param LayerName: 层名称
|
2217
|
+
# @type LayerName: String
|
2218
|
+
# @param Status: 层的具体版本当前状态,状态值[参考此处](https://cloud.tencent.com/document/product/583/47175#.E5.B1.82.EF.BC.88layer.EF.BC.89.E7.8A.B6.E6.80.81)
|
2219
|
+
# @type Status: String
|
2220
|
+
|
2221
|
+
attr_accessor :CompatibleRuntimes, :AddTime, :Description, :LicenseInfo, :LayerVersion, :LayerName, :Status
|
2222
|
+
|
2223
|
+
def initialize(compatibleruntimes=nil, addtime=nil, description=nil, licenseinfo=nil, layerversion=nil, layername=nil, status=nil)
|
2224
|
+
@CompatibleRuntimes = compatibleruntimes
|
2225
|
+
@AddTime = addtime
|
2226
|
+
@Description = description
|
2227
|
+
@LicenseInfo = licenseinfo
|
2228
|
+
@LayerVersion = layerversion
|
2229
|
+
@LayerName = layername
|
2230
|
+
@Status = status
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
def deserialize(params)
|
2234
|
+
@CompatibleRuntimes = params['CompatibleRuntimes']
|
2235
|
+
@AddTime = params['AddTime']
|
2236
|
+
@Description = params['Description']
|
2237
|
+
@LicenseInfo = params['LicenseInfo']
|
2238
|
+
@LayerVersion = params['LayerVersion']
|
2239
|
+
@LayerName = params['LayerName']
|
2240
|
+
@Status = params['Status']
|
2241
|
+
end
|
2242
|
+
end
|
2243
|
+
|
2244
|
+
# 指定某个Layer版本
|
2245
|
+
class LayerVersionSimple < TencentCloud::Common::AbstractModel
|
2246
|
+
# @param LayerName: layer名称
|
2247
|
+
# @type LayerName: String
|
2248
|
+
# @param LayerVersion: 版本号
|
2249
|
+
# @type LayerVersion: Integer
|
2250
|
+
|
2251
|
+
attr_accessor :LayerName, :LayerVersion
|
2252
|
+
|
2253
|
+
def initialize(layername=nil, layerversion=nil)
|
2254
|
+
@LayerName = layername
|
2255
|
+
@LayerVersion = layerversion
|
2256
|
+
end
|
2257
|
+
|
2258
|
+
def deserialize(params)
|
2259
|
+
@LayerName = params['LayerName']
|
2260
|
+
@LayerVersion = params['LayerVersion']
|
2261
|
+
end
|
2262
|
+
end
|
2263
|
+
|
2264
|
+
# 限制信息
|
2265
|
+
class LimitsInfo < TencentCloud::Common::AbstractModel
|
2266
|
+
# @param NamespacesCount: 命名空间个数限制
|
2267
|
+
# @type NamespacesCount: Integer
|
2268
|
+
# @param Namespace: 命名空间限制信息
|
2269
|
+
# @type Namespace: Array
|
2270
|
+
|
2271
|
+
attr_accessor :NamespacesCount, :Namespace
|
2272
|
+
|
2273
|
+
def initialize(namespacescount=nil, namespace=nil)
|
2274
|
+
@NamespacesCount = namespacescount
|
2275
|
+
@Namespace = namespace
|
2276
|
+
end
|
2277
|
+
|
2278
|
+
def deserialize(params)
|
2279
|
+
@NamespacesCount = params['NamespacesCount']
|
2280
|
+
unless params['Namespace'].nil?
|
2281
|
+
@Namespace = []
|
2282
|
+
params['Namespace'].each do |i|
|
2283
|
+
namespacelimit_tmp = NamespaceLimit.new
|
2284
|
+
namespacelimit_tmp.deserialize(i)
|
2285
|
+
@Namespace << namespacelimit_tmp
|
2286
|
+
end
|
2287
|
+
end
|
2288
|
+
end
|
2289
|
+
end
|
2290
|
+
|
2291
|
+
# ListAliases请求参数结构体
|
2292
|
+
class ListAliasesRequest < TencentCloud::Common::AbstractModel
|
2293
|
+
# @param FunctionName: 函数名称
|
2294
|
+
# @type FunctionName: String
|
2295
|
+
# @param Namespace: 函数所在的命名空间
|
2296
|
+
# @type Namespace: String
|
2297
|
+
# @param FunctionVersion: 如果提供此参数,则只返回与该函数版本有关联的别名
|
2298
|
+
# @type FunctionVersion: String
|
2299
|
+
# @param Offset: 数据偏移量,默认值为 0
|
2300
|
+
# @type Offset: String
|
2301
|
+
# @param Limit: 返回数据长度,默认值为 20
|
2302
|
+
# @type Limit: String
|
2303
|
+
|
2304
|
+
attr_accessor :FunctionName, :Namespace, :FunctionVersion, :Offset, :Limit
|
2305
|
+
|
2306
|
+
def initialize(functionname=nil, namespace=nil, functionversion=nil, offset=nil, limit=nil)
|
2307
|
+
@FunctionName = functionname
|
2308
|
+
@Namespace = namespace
|
2309
|
+
@FunctionVersion = functionversion
|
2310
|
+
@Offset = offset
|
2311
|
+
@Limit = limit
|
2312
|
+
end
|
2313
|
+
|
2314
|
+
def deserialize(params)
|
2315
|
+
@FunctionName = params['FunctionName']
|
2316
|
+
@Namespace = params['Namespace']
|
2317
|
+
@FunctionVersion = params['FunctionVersion']
|
2318
|
+
@Offset = params['Offset']
|
2319
|
+
@Limit = params['Limit']
|
2320
|
+
end
|
2321
|
+
end
|
2322
|
+
|
2323
|
+
# ListAliases返回参数结构体
|
2324
|
+
class ListAliasesResponse < TencentCloud::Common::AbstractModel
|
2325
|
+
# @param Aliases: 别名列表
|
2326
|
+
# @type Aliases: Array
|
2327
|
+
# @param TotalCount: 别名总数
|
2328
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2329
|
+
# @type TotalCount: Integer
|
2330
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2331
|
+
# @type RequestId: String
|
2332
|
+
|
2333
|
+
attr_accessor :Aliases, :TotalCount, :RequestId
|
2334
|
+
|
2335
|
+
def initialize(aliases=nil, totalcount=nil, requestid=nil)
|
2336
|
+
@Aliases = aliases
|
2337
|
+
@TotalCount = totalcount
|
2338
|
+
@RequestId = requestid
|
2339
|
+
end
|
2340
|
+
|
2341
|
+
def deserialize(params)
|
2342
|
+
unless params['Aliases'].nil?
|
2343
|
+
@Aliases = []
|
2344
|
+
params['Aliases'].each do |i|
|
2345
|
+
alias_tmp = Alias.new
|
2346
|
+
alias_tmp.deserialize(i)
|
2347
|
+
@Aliases << alias_tmp
|
2348
|
+
end
|
2349
|
+
end
|
2350
|
+
@TotalCount = params['TotalCount']
|
2351
|
+
@RequestId = params['RequestId']
|
2352
|
+
end
|
2353
|
+
end
|
2354
|
+
|
2355
|
+
# ListAsyncEvents请求参数结构体
|
2356
|
+
class ListAsyncEventsRequest < TencentCloud::Common::AbstractModel
|
2357
|
+
# @param FunctionName: 函数名称
|
2358
|
+
# @type FunctionName: String
|
2359
|
+
# @param Namespace: 命名空间
|
2360
|
+
# @type Namespace: String
|
2361
|
+
# @param Qualifier: 过滤条件,函数版本
|
2362
|
+
# @type Qualifier: String
|
2363
|
+
# @param InvokeType: 过滤条件,调用类型列表
|
2364
|
+
# @type InvokeType: Array
|
2365
|
+
# @param Status: 过滤条件,事件状态列表
|
2366
|
+
# @type Status: Array
|
2367
|
+
# @param StartTimeInterval: 过滤条件,开始执行时间左闭右开区间
|
2368
|
+
# @type StartTimeInterval: :class:`Tencentcloud::Scf.v20180416.models.TimeInterval`
|
2369
|
+
# @param EndTimeInterval: 过滤条件,结束执行时间左闭右开区间
|
2370
|
+
# @type EndTimeInterval: :class:`Tencentcloud::Scf.v20180416.models.TimeInterval`
|
2371
|
+
# @param Order: 可选值 ASC 和 DESC,默认 DESC
|
2372
|
+
# @type Order: String
|
2373
|
+
# @param Orderby: 可选值 StartTime 和 EndTime,默认值 StartTime
|
2374
|
+
# @type Orderby: String
|
2375
|
+
# @param Offset: 数据偏移量,默认值为 0
|
2376
|
+
# @type Offset: Integer
|
2377
|
+
# @param Limit: 返回数据长度,默认值为 20,最大值 100
|
2378
|
+
# @type Limit: Integer
|
2379
|
+
# @param InvokeRequestId: 过滤条件,事件调用请求id
|
2380
|
+
# @type InvokeRequestId: String
|
2381
|
+
|
2382
|
+
attr_accessor :FunctionName, :Namespace, :Qualifier, :InvokeType, :Status, :StartTimeInterval, :EndTimeInterval, :Order, :Orderby, :Offset, :Limit, :InvokeRequestId
|
2383
|
+
|
2384
|
+
def initialize(functionname=nil, namespace=nil, qualifier=nil, invoketype=nil, status=nil, starttimeinterval=nil, endtimeinterval=nil, order=nil, orderby=nil, offset=nil, limit=nil, invokerequestid=nil)
|
2385
|
+
@FunctionName = functionname
|
2386
|
+
@Namespace = namespace
|
2387
|
+
@Qualifier = qualifier
|
2388
|
+
@InvokeType = invoketype
|
2389
|
+
@Status = status
|
2390
|
+
@StartTimeInterval = starttimeinterval
|
2391
|
+
@EndTimeInterval = endtimeinterval
|
2392
|
+
@Order = order
|
2393
|
+
@Orderby = orderby
|
2394
|
+
@Offset = offset
|
2395
|
+
@Limit = limit
|
2396
|
+
@InvokeRequestId = invokerequestid
|
2397
|
+
end
|
2398
|
+
|
2399
|
+
def deserialize(params)
|
2400
|
+
@FunctionName = params['FunctionName']
|
2401
|
+
@Namespace = params['Namespace']
|
2402
|
+
@Qualifier = params['Qualifier']
|
2403
|
+
@InvokeType = params['InvokeType']
|
2404
|
+
@Status = params['Status']
|
2405
|
+
unless params['StartTimeInterval'].nil?
|
2406
|
+
@StartTimeInterval = TimeInterval.new
|
2407
|
+
@StartTimeInterval.deserialize(params['StartTimeInterval'])
|
2408
|
+
end
|
2409
|
+
unless params['EndTimeInterval'].nil?
|
2410
|
+
@EndTimeInterval = TimeInterval.new
|
2411
|
+
@EndTimeInterval.deserialize(params['EndTimeInterval'])
|
2412
|
+
end
|
2413
|
+
@Order = params['Order']
|
2414
|
+
@Orderby = params['Orderby']
|
2415
|
+
@Offset = params['Offset']
|
2416
|
+
@Limit = params['Limit']
|
2417
|
+
@InvokeRequestId = params['InvokeRequestId']
|
2418
|
+
end
|
2419
|
+
end
|
2420
|
+
|
2421
|
+
# ListAsyncEvents返回参数结构体
|
2422
|
+
class ListAsyncEventsResponse < TencentCloud::Common::AbstractModel
|
2423
|
+
# @param TotalCount: 满足过滤条件的事件总数
|
2424
|
+
# @type TotalCount: Integer
|
2425
|
+
# @param EventList: 异步事件列表
|
2426
|
+
# @type EventList: Array
|
2427
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2428
|
+
# @type RequestId: String
|
2429
|
+
|
2430
|
+
attr_accessor :TotalCount, :EventList, :RequestId
|
2431
|
+
|
2432
|
+
def initialize(totalcount=nil, eventlist=nil, requestid=nil)
|
2433
|
+
@TotalCount = totalcount
|
2434
|
+
@EventList = eventlist
|
2435
|
+
@RequestId = requestid
|
2436
|
+
end
|
2437
|
+
|
2438
|
+
def deserialize(params)
|
2439
|
+
@TotalCount = params['TotalCount']
|
2440
|
+
unless params['EventList'].nil?
|
2441
|
+
@EventList = []
|
2442
|
+
params['EventList'].each do |i|
|
2443
|
+
asyncevent_tmp = AsyncEvent.new
|
2444
|
+
asyncevent_tmp.deserialize(i)
|
2445
|
+
@EventList << asyncevent_tmp
|
2446
|
+
end
|
2447
|
+
end
|
2448
|
+
@RequestId = params['RequestId']
|
2449
|
+
end
|
2450
|
+
end
|
2451
|
+
|
2452
|
+
# ListFunctions请求参数结构体
|
2453
|
+
class ListFunctionsRequest < TencentCloud::Common::AbstractModel
|
2454
|
+
# @param Order: 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
|
2455
|
+
# @type Order: String
|
2456
|
+
# @param Orderby: 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime, FunctionName
|
2457
|
+
# @type Orderby: String
|
2458
|
+
# @param Offset: 数据偏移量,默认值为 0
|
2459
|
+
# @type Offset: Integer
|
2460
|
+
# @param Limit: 返回数据长度,默认值为 20
|
2461
|
+
# @type Limit: Integer
|
2462
|
+
# @param SearchKey: 支持FunctionName模糊匹配
|
2463
|
+
# @type SearchKey: String
|
2464
|
+
# @param Namespace: 命名空间
|
2465
|
+
# @type Namespace: String
|
2466
|
+
# @param Description: 函数描述,支持模糊搜索
|
2467
|
+
# @type Description: String
|
2468
|
+
# @param Filters: 过滤条件。
|
2469
|
+
# - tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
|
2470
|
+
|
2471
|
+
# 每次请求的Filters的上限为10,Filter.Values的上限为5。
|
2472
|
+
# @type Filters: Array
|
2473
|
+
|
2474
|
+
attr_accessor :Order, :Orderby, :Offset, :Limit, :SearchKey, :Namespace, :Description, :Filters
|
2475
|
+
|
2476
|
+
def initialize(order=nil, orderby=nil, offset=nil, limit=nil, searchkey=nil, namespace=nil, description=nil, filters=nil)
|
2477
|
+
@Order = order
|
2478
|
+
@Orderby = orderby
|
2479
|
+
@Offset = offset
|
2480
|
+
@Limit = limit
|
2481
|
+
@SearchKey = searchkey
|
2482
|
+
@Namespace = namespace
|
2483
|
+
@Description = description
|
2484
|
+
@Filters = filters
|
2485
|
+
end
|
2486
|
+
|
2487
|
+
def deserialize(params)
|
2488
|
+
@Order = params['Order']
|
2489
|
+
@Orderby = params['Orderby']
|
2490
|
+
@Offset = params['Offset']
|
2491
|
+
@Limit = params['Limit']
|
2492
|
+
@SearchKey = params['SearchKey']
|
2493
|
+
@Namespace = params['Namespace']
|
2494
|
+
@Description = params['Description']
|
2495
|
+
unless params['Filters'].nil?
|
2496
|
+
@Filters = []
|
2497
|
+
params['Filters'].each do |i|
|
2498
|
+
filter_tmp = Filter.new
|
2499
|
+
filter_tmp.deserialize(i)
|
2500
|
+
@Filters << filter_tmp
|
2501
|
+
end
|
2502
|
+
end
|
2503
|
+
end
|
2504
|
+
end
|
2505
|
+
|
2506
|
+
# ListFunctions返回参数结构体
|
2507
|
+
class ListFunctionsResponse < TencentCloud::Common::AbstractModel
|
2508
|
+
# @param Functions: 函数列表
|
2509
|
+
# @type Functions: Array
|
2510
|
+
# @param TotalCount: 总数
|
2511
|
+
# @type TotalCount: Integer
|
2512
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2513
|
+
# @type RequestId: String
|
2514
|
+
|
2515
|
+
attr_accessor :Functions, :TotalCount, :RequestId
|
2516
|
+
|
2517
|
+
def initialize(functions=nil, totalcount=nil, requestid=nil)
|
2518
|
+
@Functions = functions
|
2519
|
+
@TotalCount = totalcount
|
2520
|
+
@RequestId = requestid
|
2521
|
+
end
|
2522
|
+
|
2523
|
+
def deserialize(params)
|
2524
|
+
unless params['Functions'].nil?
|
2525
|
+
@Functions = []
|
2526
|
+
params['Functions'].each do |i|
|
2527
|
+
function_tmp = Function.new
|
2528
|
+
function_tmp.deserialize(i)
|
2529
|
+
@Functions << function_tmp
|
2530
|
+
end
|
2531
|
+
end
|
2532
|
+
@TotalCount = params['TotalCount']
|
2533
|
+
@RequestId = params['RequestId']
|
2534
|
+
end
|
2535
|
+
end
|
2536
|
+
|
2537
|
+
# ListLayerVersions请求参数结构体
|
2538
|
+
class ListLayerVersionsRequest < TencentCloud::Common::AbstractModel
|
2539
|
+
# @param LayerName: 层名称
|
2540
|
+
# @type LayerName: String
|
2541
|
+
# @param CompatibleRuntime: 适配的运行时
|
2542
|
+
# @type CompatibleRuntime: Array
|
2543
|
+
|
2544
|
+
attr_accessor :LayerName, :CompatibleRuntime
|
2545
|
+
|
2546
|
+
def initialize(layername=nil, compatibleruntime=nil)
|
2547
|
+
@LayerName = layername
|
2548
|
+
@CompatibleRuntime = compatibleruntime
|
2549
|
+
end
|
2550
|
+
|
2551
|
+
def deserialize(params)
|
2552
|
+
@LayerName = params['LayerName']
|
2553
|
+
@CompatibleRuntime = params['CompatibleRuntime']
|
2554
|
+
end
|
2555
|
+
end
|
2556
|
+
|
2557
|
+
# ListLayerVersions返回参数结构体
|
2558
|
+
class ListLayerVersionsResponse < TencentCloud::Common::AbstractModel
|
2559
|
+
# @param LayerVersions: 层版本列表
|
2560
|
+
# @type LayerVersions: Array
|
2561
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2562
|
+
# @type RequestId: String
|
2563
|
+
|
2564
|
+
attr_accessor :LayerVersions, :RequestId
|
2565
|
+
|
2566
|
+
def initialize(layerversions=nil, requestid=nil)
|
2567
|
+
@LayerVersions = layerversions
|
2568
|
+
@RequestId = requestid
|
2569
|
+
end
|
2570
|
+
|
2571
|
+
def deserialize(params)
|
2572
|
+
unless params['LayerVersions'].nil?
|
2573
|
+
@LayerVersions = []
|
2574
|
+
params['LayerVersions'].each do |i|
|
2575
|
+
layerversioninfo_tmp = LayerVersionInfo.new
|
2576
|
+
layerversioninfo_tmp.deserialize(i)
|
2577
|
+
@LayerVersions << layerversioninfo_tmp
|
2578
|
+
end
|
2579
|
+
end
|
2580
|
+
@RequestId = params['RequestId']
|
2581
|
+
end
|
2582
|
+
end
|
2583
|
+
|
2584
|
+
# ListLayers请求参数结构体
|
2585
|
+
class ListLayersRequest < TencentCloud::Common::AbstractModel
|
2586
|
+
# @param CompatibleRuntime: 适配的运行时
|
2587
|
+
# @type CompatibleRuntime: String
|
2588
|
+
# @param Offset: 偏移位置
|
2589
|
+
# @type Offset: Integer
|
2590
|
+
# @param Limit: 查询数目限制
|
2591
|
+
# @type Limit: Integer
|
2592
|
+
# @param SearchKey: 查询key,模糊匹配名称
|
2593
|
+
# @type SearchKey: String
|
2594
|
+
|
2595
|
+
attr_accessor :CompatibleRuntime, :Offset, :Limit, :SearchKey
|
2596
|
+
|
2597
|
+
def initialize(compatibleruntime=nil, offset=nil, limit=nil, searchkey=nil)
|
2598
|
+
@CompatibleRuntime = compatibleruntime
|
2599
|
+
@Offset = offset
|
2600
|
+
@Limit = limit
|
2601
|
+
@SearchKey = searchkey
|
2602
|
+
end
|
2603
|
+
|
2604
|
+
def deserialize(params)
|
2605
|
+
@CompatibleRuntime = params['CompatibleRuntime']
|
2606
|
+
@Offset = params['Offset']
|
2607
|
+
@Limit = params['Limit']
|
2608
|
+
@SearchKey = params['SearchKey']
|
2609
|
+
end
|
2610
|
+
end
|
2611
|
+
|
2612
|
+
# ListLayers返回参数结构体
|
2613
|
+
class ListLayersResponse < TencentCloud::Common::AbstractModel
|
2614
|
+
# @param Layers: 层列表
|
2615
|
+
# @type Layers: Array
|
2616
|
+
# @param TotalCount: 层总数
|
2617
|
+
# @type TotalCount: Integer
|
2618
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2619
|
+
# @type RequestId: String
|
2620
|
+
|
2621
|
+
attr_accessor :Layers, :TotalCount, :RequestId
|
2622
|
+
|
2623
|
+
def initialize(layers=nil, totalcount=nil, requestid=nil)
|
2624
|
+
@Layers = layers
|
2625
|
+
@TotalCount = totalcount
|
2626
|
+
@RequestId = requestid
|
2627
|
+
end
|
2628
|
+
|
2629
|
+
def deserialize(params)
|
2630
|
+
unless params['Layers'].nil?
|
2631
|
+
@Layers = []
|
2632
|
+
params['Layers'].each do |i|
|
2633
|
+
layerversioninfo_tmp = LayerVersionInfo.new
|
2634
|
+
layerversioninfo_tmp.deserialize(i)
|
2635
|
+
@Layers << layerversioninfo_tmp
|
2636
|
+
end
|
2637
|
+
end
|
2638
|
+
@TotalCount = params['TotalCount']
|
2639
|
+
@RequestId = params['RequestId']
|
2640
|
+
end
|
2641
|
+
end
|
2642
|
+
|
2643
|
+
# ListNamespaces请求参数结构体
|
2644
|
+
class ListNamespacesRequest < TencentCloud::Common::AbstractModel
|
2645
|
+
# @param Limit: 返回数据长度,默认值为 20
|
2646
|
+
# @type Limit: Integer
|
2647
|
+
# @param Offset: 数据的偏移量,默认值为 0
|
2648
|
+
# @type Offset: Integer
|
2649
|
+
# @param Orderby: 根据哪个字段进行返回结果排序,支持以下字段:Name,Updatetime
|
2650
|
+
# @type Orderby: String
|
2651
|
+
# @param Order: 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
|
2652
|
+
# @type Order: String
|
2653
|
+
# @param SearchKey: 关键字匹配搜索,Key 可选值为 Namespace 和 Description,多个搜索条件之间是与的关系
|
2654
|
+
# @type SearchKey: Array
|
2655
|
+
|
2656
|
+
attr_accessor :Limit, :Offset, :Orderby, :Order, :SearchKey
|
2657
|
+
|
2658
|
+
def initialize(limit=nil, offset=nil, orderby=nil, order=nil, searchkey=nil)
|
2659
|
+
@Limit = limit
|
2660
|
+
@Offset = offset
|
2661
|
+
@Orderby = orderby
|
2662
|
+
@Order = order
|
2663
|
+
@SearchKey = searchkey
|
2664
|
+
end
|
2665
|
+
|
2666
|
+
def deserialize(params)
|
2667
|
+
@Limit = params['Limit']
|
2668
|
+
@Offset = params['Offset']
|
2669
|
+
@Orderby = params['Orderby']
|
2670
|
+
@Order = params['Order']
|
2671
|
+
unless params['SearchKey'].nil?
|
2672
|
+
@SearchKey = []
|
2673
|
+
params['SearchKey'].each do |i|
|
2674
|
+
searchkey_tmp = SearchKey.new
|
2675
|
+
searchkey_tmp.deserialize(i)
|
2676
|
+
@SearchKey << searchkey_tmp
|
2677
|
+
end
|
2678
|
+
end
|
2679
|
+
end
|
2680
|
+
end
|
2681
|
+
|
2682
|
+
# ListNamespaces返回参数结构体
|
2683
|
+
class ListNamespacesResponse < TencentCloud::Common::AbstractModel
|
2684
|
+
# @param Namespaces: namespace详情
|
2685
|
+
# @type Namespaces: Array
|
2686
|
+
# @param TotalCount: 返回的namespace数量
|
2687
|
+
# @type TotalCount: Integer
|
2688
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2689
|
+
# @type RequestId: String
|
2690
|
+
|
2691
|
+
attr_accessor :Namespaces, :TotalCount, :RequestId
|
2692
|
+
|
2693
|
+
def initialize(namespaces=nil, totalcount=nil, requestid=nil)
|
2694
|
+
@Namespaces = namespaces
|
2695
|
+
@TotalCount = totalcount
|
2696
|
+
@RequestId = requestid
|
2697
|
+
end
|
2698
|
+
|
2699
|
+
def deserialize(params)
|
2700
|
+
unless params['Namespaces'].nil?
|
2701
|
+
@Namespaces = []
|
2702
|
+
params['Namespaces'].each do |i|
|
2703
|
+
namespace_tmp = Namespace.new
|
2704
|
+
namespace_tmp.deserialize(i)
|
2705
|
+
@Namespaces << namespace_tmp
|
2706
|
+
end
|
2707
|
+
end
|
2708
|
+
@TotalCount = params['TotalCount']
|
2709
|
+
@RequestId = params['RequestId']
|
2710
|
+
end
|
2711
|
+
end
|
2712
|
+
|
2713
|
+
# ListTriggers请求参数结构体
|
2714
|
+
class ListTriggersRequest < TencentCloud::Common::AbstractModel
|
2715
|
+
# @param FunctionName: 函数名称
|
2716
|
+
# @type FunctionName: String
|
2717
|
+
# @param Namespace: 命名空间,默认是default
|
2718
|
+
# @type Namespace: String
|
2719
|
+
# @param Offset: 数据偏移量,默认值为 0
|
2720
|
+
# @type Offset: Integer
|
2721
|
+
# @param Limit: 返回数据长度,默认值为 20
|
2722
|
+
# @type Limit: Integer
|
2723
|
+
# @param OrderBy: 根据哪个字段进行返回结果排序,支持以下字段:add_time,mod_time,默认mod_time
|
2724
|
+
# @type OrderBy: String
|
2725
|
+
# @param Order: 以升序还是降序的方式返回结果,可选值 ASC 和 DESC,默认DESC
|
2726
|
+
# @type Order: String
|
2727
|
+
# @param Filters: * Qualifier:
|
2728
|
+
# 函数版本,别名
|
2729
|
+
# @type Filters: Array
|
2730
|
+
|
2731
|
+
attr_accessor :FunctionName, :Namespace, :Offset, :Limit, :OrderBy, :Order, :Filters
|
2732
|
+
|
2733
|
+
def initialize(functionname=nil, namespace=nil, offset=nil, limit=nil, orderby=nil, order=nil, filters=nil)
|
2734
|
+
@FunctionName = functionname
|
2735
|
+
@Namespace = namespace
|
2736
|
+
@Offset = offset
|
2737
|
+
@Limit = limit
|
2738
|
+
@OrderBy = orderby
|
2739
|
+
@Order = order
|
2740
|
+
@Filters = filters
|
2741
|
+
end
|
2742
|
+
|
2743
|
+
def deserialize(params)
|
2744
|
+
@FunctionName = params['FunctionName']
|
2745
|
+
@Namespace = params['Namespace']
|
2746
|
+
@Offset = params['Offset']
|
2747
|
+
@Limit = params['Limit']
|
2748
|
+
@OrderBy = params['OrderBy']
|
2749
|
+
@Order = params['Order']
|
2750
|
+
unless params['Filters'].nil?
|
2751
|
+
@Filters = []
|
2752
|
+
params['Filters'].each do |i|
|
2753
|
+
filter_tmp = Filter.new
|
2754
|
+
filter_tmp.deserialize(i)
|
2755
|
+
@Filters << filter_tmp
|
2756
|
+
end
|
2757
|
+
end
|
2758
|
+
end
|
2759
|
+
end
|
2760
|
+
|
2761
|
+
# ListTriggers返回参数结构体
|
2762
|
+
class ListTriggersResponse < TencentCloud::Common::AbstractModel
|
2763
|
+
# @param TotalCount: 触发器总数
|
2764
|
+
# @type TotalCount: Integer
|
2765
|
+
# @param Triggers: 触发器列表
|
2766
|
+
# @type Triggers: Array
|
2767
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2768
|
+
# @type RequestId: String
|
2769
|
+
|
2770
|
+
attr_accessor :TotalCount, :Triggers, :RequestId
|
2771
|
+
|
2772
|
+
def initialize(totalcount=nil, triggers=nil, requestid=nil)
|
2773
|
+
@TotalCount = totalcount
|
2774
|
+
@Triggers = triggers
|
2775
|
+
@RequestId = requestid
|
2776
|
+
end
|
2777
|
+
|
2778
|
+
def deserialize(params)
|
2779
|
+
@TotalCount = params['TotalCount']
|
2780
|
+
unless params['Triggers'].nil?
|
2781
|
+
@Triggers = []
|
2782
|
+
params['Triggers'].each do |i|
|
2783
|
+
triggerinfo_tmp = TriggerInfo.new
|
2784
|
+
triggerinfo_tmp.deserialize(i)
|
2785
|
+
@Triggers << triggerinfo_tmp
|
2786
|
+
end
|
2787
|
+
end
|
2788
|
+
@RequestId = params['RequestId']
|
2789
|
+
end
|
2790
|
+
end
|
2791
|
+
|
2792
|
+
# ListVersionByFunction请求参数结构体
|
2793
|
+
class ListVersionByFunctionRequest < TencentCloud::Common::AbstractModel
|
2794
|
+
# @param FunctionName: 函数名
|
2795
|
+
# @type FunctionName: String
|
2796
|
+
# @param Namespace: 函数所在命名空间
|
2797
|
+
# @type Namespace: String
|
2798
|
+
# @param Offset: 数据偏移量,默认值为 0
|
2799
|
+
# @type Offset: Integer
|
2800
|
+
# @param Limit: 返回数据长度,默认值为 20
|
2801
|
+
# @type Limit: Integer
|
2802
|
+
# @param Order: 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
|
2803
|
+
# @type Order: String
|
2804
|
+
# @param OrderBy: 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime
|
2805
|
+
# @type OrderBy: String
|
2806
|
+
|
2807
|
+
attr_accessor :FunctionName, :Namespace, :Offset, :Limit, :Order, :OrderBy
|
2808
|
+
|
2809
|
+
def initialize(functionname=nil, namespace=nil, offset=nil, limit=nil, order=nil, orderby=nil)
|
2810
|
+
@FunctionName = functionname
|
2811
|
+
@Namespace = namespace
|
2812
|
+
@Offset = offset
|
2813
|
+
@Limit = limit
|
2814
|
+
@Order = order
|
2815
|
+
@OrderBy = orderby
|
2816
|
+
end
|
2817
|
+
|
2818
|
+
def deserialize(params)
|
2819
|
+
@FunctionName = params['FunctionName']
|
2820
|
+
@Namespace = params['Namespace']
|
2821
|
+
@Offset = params['Offset']
|
2822
|
+
@Limit = params['Limit']
|
2823
|
+
@Order = params['Order']
|
2824
|
+
@OrderBy = params['OrderBy']
|
2825
|
+
end
|
2826
|
+
end
|
2827
|
+
|
2828
|
+
# ListVersionByFunction返回参数结构体
|
2829
|
+
class ListVersionByFunctionResponse < TencentCloud::Common::AbstractModel
|
2830
|
+
# @param FunctionVersion: 函数版本。
|
2831
|
+
# @type FunctionVersion: Array
|
2832
|
+
# @param Versions: 函数版本列表。
|
2833
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2834
|
+
# @type Versions: Array
|
2835
|
+
# @param TotalCount: 函数版本总数。
|
2836
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2837
|
+
# @type TotalCount: Integer
|
2838
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2839
|
+
# @type RequestId: String
|
2840
|
+
|
2841
|
+
attr_accessor :FunctionVersion, :Versions, :TotalCount, :RequestId
|
2842
|
+
|
2843
|
+
def initialize(functionversion=nil, versions=nil, totalcount=nil, requestid=nil)
|
2844
|
+
@FunctionVersion = functionversion
|
2845
|
+
@Versions = versions
|
2846
|
+
@TotalCount = totalcount
|
2847
|
+
@RequestId = requestid
|
2848
|
+
end
|
2849
|
+
|
2850
|
+
def deserialize(params)
|
2851
|
+
@FunctionVersion = params['FunctionVersion']
|
2852
|
+
unless params['Versions'].nil?
|
2853
|
+
@Versions = []
|
2854
|
+
params['Versions'].each do |i|
|
2855
|
+
functionversion_tmp = FunctionVersion.new
|
2856
|
+
functionversion_tmp.deserialize(i)
|
2857
|
+
@Versions << functionversion_tmp
|
2858
|
+
end
|
2859
|
+
end
|
2860
|
+
@TotalCount = params['TotalCount']
|
2861
|
+
@RequestId = params['RequestId']
|
2862
|
+
end
|
2863
|
+
end
|
2864
|
+
|
2865
|
+
# 日志过滤条件,用于区分正确与错误日志
|
2866
|
+
class LogFilter < TencentCloud::Common::AbstractModel
|
2867
|
+
# @param RetCode: filter.RetCode的取值有:
|
2868
|
+
# not0 表示只返回错误日志,
|
2869
|
+
# is0 表示只返回正确日志,
|
2870
|
+
# TimeLimitExceeded 返回函数调用发生超时的日志,
|
2871
|
+
# ResourceLimitExceeded 返回函数调用发生资源超限的日志,
|
2872
|
+
# UserCodeException 返回函数调用发生用户代码错误的日志,
|
2873
|
+
# 无输入则返回所有日志。
|
2874
|
+
# @type RetCode: String
|
2875
|
+
|
2876
|
+
attr_accessor :RetCode
|
2877
|
+
|
2878
|
+
def initialize(retcode=nil)
|
2879
|
+
@RetCode = retcode
|
2880
|
+
end
|
2881
|
+
|
2882
|
+
def deserialize(params)
|
2883
|
+
@RetCode = params['RetCode']
|
2884
|
+
end
|
2885
|
+
end
|
2886
|
+
|
2887
|
+
# 日志搜索上下文
|
2888
|
+
class LogSearchContext < TencentCloud::Common::AbstractModel
|
2889
|
+
# @param Offset: 偏移量
|
2890
|
+
# @type Offset: String
|
2891
|
+
# @param Limit: 日志条数
|
2892
|
+
# @type Limit: Integer
|
2893
|
+
# @param Keyword: 日志关键词
|
2894
|
+
# @type Keyword: String
|
2895
|
+
# @param Type: 日志类型,支持Application和Platform,默认为Application
|
2896
|
+
# @type Type: String
|
2897
|
+
|
2898
|
+
attr_accessor :Offset, :Limit, :Keyword, :Type
|
2899
|
+
|
2900
|
+
def initialize(offset=nil, limit=nil, keyword=nil, type=nil)
|
2901
|
+
@Offset = offset
|
2902
|
+
@Limit = limit
|
2903
|
+
@Keyword = keyword
|
2904
|
+
@Type = type
|
2905
|
+
end
|
2906
|
+
|
2907
|
+
def deserialize(params)
|
2908
|
+
@Offset = params['Offset']
|
2909
|
+
@Limit = params['Limit']
|
2910
|
+
@Keyword = params['Keyword']
|
2911
|
+
@Type = params['Type']
|
2912
|
+
end
|
2913
|
+
end
|
2914
|
+
|
2915
|
+
# 命名空间
|
2916
|
+
class Namespace < TencentCloud::Common::AbstractModel
|
2917
|
+
# @param ModTime: 命名空间创建时间
|
2918
|
+
# @type ModTime: String
|
2919
|
+
# @param AddTime: 命名空间修改时间
|
2920
|
+
# @type AddTime: String
|
2921
|
+
# @param Description: 命名空间描述
|
2922
|
+
# @type Description: String
|
2923
|
+
# @param Name: 命名空间名称
|
2924
|
+
# @type Name: String
|
2925
|
+
# @param Type: 默认default,TCB表示是小程序云开发创建的
|
2926
|
+
# @type Type: String
|
2927
|
+
|
2928
|
+
attr_accessor :ModTime, :AddTime, :Description, :Name, :Type
|
2929
|
+
|
2930
|
+
def initialize(modtime=nil, addtime=nil, description=nil, name=nil, type=nil)
|
2931
|
+
@ModTime = modtime
|
2932
|
+
@AddTime = addtime
|
2933
|
+
@Description = description
|
2934
|
+
@Name = name
|
2935
|
+
@Type = type
|
2936
|
+
end
|
2937
|
+
|
2938
|
+
def deserialize(params)
|
2939
|
+
@ModTime = params['ModTime']
|
2940
|
+
@AddTime = params['AddTime']
|
2941
|
+
@Description = params['Description']
|
2942
|
+
@Name = params['Name']
|
2943
|
+
@Type = params['Type']
|
2944
|
+
end
|
2945
|
+
end
|
2946
|
+
|
2947
|
+
# 命名空间限制
|
2948
|
+
class NamespaceLimit < TencentCloud::Common::AbstractModel
|
2949
|
+
# @param FunctionsCount: 函数总数
|
2950
|
+
# @type FunctionsCount: Integer
|
2951
|
+
# @param Trigger: Trigger信息
|
2952
|
+
# @type Trigger: :class:`Tencentcloud::Scf.v20180416.models.TriggerCount`
|
2953
|
+
# @param Namespace: Namespace名称
|
2954
|
+
# @type Namespace: String
|
2955
|
+
# @param ConcurrentExecutions: 并发量
|
2956
|
+
# @type ConcurrentExecutions: Integer
|
2957
|
+
# @param TimeoutLimit: Timeout限制
|
2958
|
+
# @type TimeoutLimit: Integer
|
2959
|
+
# @param TestModelLimit: 测试事件限制
|
2960
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2961
|
+
# @type TestModelLimit: Integer
|
2962
|
+
# @param InitTimeoutLimit: 初始化超时限制
|
2963
|
+
# @type InitTimeoutLimit: Integer
|
2964
|
+
# @param RetryNumLimit: 异步重试次数限制
|
2965
|
+
# @type RetryNumLimit: Integer
|
2966
|
+
# @param MinMsgTTL: 异步重试消息保留时间下限
|
2967
|
+
# @type MinMsgTTL: Integer
|
2968
|
+
# @param MaxMsgTTL: 异步重试消息保留时间上限
|
2969
|
+
# @type MaxMsgTTL: Integer
|
2970
|
+
|
2971
|
+
attr_accessor :FunctionsCount, :Trigger, :Namespace, :ConcurrentExecutions, :TimeoutLimit, :TestModelLimit, :InitTimeoutLimit, :RetryNumLimit, :MinMsgTTL, :MaxMsgTTL
|
2972
|
+
|
2973
|
+
def initialize(functionscount=nil, trigger=nil, namespace=nil, concurrentexecutions=nil, timeoutlimit=nil, testmodellimit=nil, inittimeoutlimit=nil, retrynumlimit=nil, minmsgttl=nil, maxmsgttl=nil)
|
2974
|
+
@FunctionsCount = functionscount
|
2975
|
+
@Trigger = trigger
|
2976
|
+
@Namespace = namespace
|
2977
|
+
@ConcurrentExecutions = concurrentexecutions
|
2978
|
+
@TimeoutLimit = timeoutlimit
|
2979
|
+
@TestModelLimit = testmodellimit
|
2980
|
+
@InitTimeoutLimit = inittimeoutlimit
|
2981
|
+
@RetryNumLimit = retrynumlimit
|
2982
|
+
@MinMsgTTL = minmsgttl
|
2983
|
+
@MaxMsgTTL = maxmsgttl
|
2984
|
+
end
|
2985
|
+
|
2986
|
+
def deserialize(params)
|
2987
|
+
@FunctionsCount = params['FunctionsCount']
|
2988
|
+
unless params['Trigger'].nil?
|
2989
|
+
@Trigger = TriggerCount.new
|
2990
|
+
@Trigger.deserialize(params['Trigger'])
|
2991
|
+
end
|
2992
|
+
@Namespace = params['Namespace']
|
2993
|
+
@ConcurrentExecutions = params['ConcurrentExecutions']
|
2994
|
+
@TimeoutLimit = params['TimeoutLimit']
|
2995
|
+
@TestModelLimit = params['TestModelLimit']
|
2996
|
+
@InitTimeoutLimit = params['InitTimeoutLimit']
|
2997
|
+
@RetryNumLimit = params['RetryNumLimit']
|
2998
|
+
@MinMsgTTL = params['MinMsgTTL']
|
2999
|
+
@MaxMsgTTL = params['MaxMsgTTL']
|
3000
|
+
end
|
3001
|
+
end
|
3002
|
+
|
3003
|
+
# 名称空间已使用信息
|
3004
|
+
class NamespaceUsage < TencentCloud::Common::AbstractModel
|
3005
|
+
# @param Functions: 函数数组
|
3006
|
+
# @type Functions: Array
|
3007
|
+
# @param Namespace: 命名空间名称
|
3008
|
+
# @type Namespace: String
|
3009
|
+
# @param FunctionsCount: 命名空间函数个数
|
3010
|
+
# @type FunctionsCount: Integer
|
3011
|
+
|
3012
|
+
attr_accessor :Functions, :Namespace, :FunctionsCount
|
3013
|
+
|
3014
|
+
def initialize(functions=nil, namespace=nil, functionscount=nil)
|
3015
|
+
@Functions = functions
|
3016
|
+
@Namespace = namespace
|
3017
|
+
@FunctionsCount = functionscount
|
3018
|
+
end
|
3019
|
+
|
3020
|
+
def deserialize(params)
|
3021
|
+
@Functions = params['Functions']
|
3022
|
+
@Namespace = params['Namespace']
|
3023
|
+
@FunctionsCount = params['FunctionsCount']
|
3024
|
+
end
|
3025
|
+
end
|
3026
|
+
|
3027
|
+
# HTTP函数支持其他访问协议的参数
|
3028
|
+
class ProtocolParams < TencentCloud::Common::AbstractModel
|
3029
|
+
# @param WSParams: WebSockets协议支持的参数
|
3030
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3031
|
+
# @type WSParams: :class:`Tencentcloud::Scf.v20180416.models.WSParams`
|
3032
|
+
|
3033
|
+
attr_accessor :WSParams
|
3034
|
+
|
3035
|
+
def initialize(wsparams=nil)
|
3036
|
+
@WSParams = wsparams
|
3037
|
+
end
|
3038
|
+
|
3039
|
+
def deserialize(params)
|
3040
|
+
unless params['WSParams'].nil?
|
3041
|
+
@WSParams = WSParams.new
|
3042
|
+
@WSParams.deserialize(params['WSParams'])
|
3043
|
+
end
|
3044
|
+
end
|
3045
|
+
end
|
3046
|
+
|
3047
|
+
# 公网访问配置
|
3048
|
+
class PublicNetConfigIn < TencentCloud::Common::AbstractModel
|
3049
|
+
# @param PublicNetStatus: 是否开启公网访问能力取值['DISABLE','ENABLE']
|
3050
|
+
# @type PublicNetStatus: String
|
3051
|
+
# @param EipConfig: Eip配置
|
3052
|
+
# @type EipConfig: :class:`Tencentcloud::Scf.v20180416.models.EipConfigIn`
|
3053
|
+
|
3054
|
+
attr_accessor :PublicNetStatus, :EipConfig
|
3055
|
+
|
3056
|
+
def initialize(publicnetstatus=nil, eipconfig=nil)
|
3057
|
+
@PublicNetStatus = publicnetstatus
|
3058
|
+
@EipConfig = eipconfig
|
3059
|
+
end
|
3060
|
+
|
3061
|
+
def deserialize(params)
|
3062
|
+
@PublicNetStatus = params['PublicNetStatus']
|
3063
|
+
unless params['EipConfig'].nil?
|
3064
|
+
@EipConfig = EipConfigIn.new
|
3065
|
+
@EipConfig.deserialize(params['EipConfig'])
|
3066
|
+
end
|
3067
|
+
end
|
3068
|
+
end
|
3069
|
+
|
3070
|
+
# 公网访问配置
|
3071
|
+
class PublicNetConfigOut < TencentCloud::Common::AbstractModel
|
3072
|
+
# @param PublicNetStatus: 是否开启公网访问能力取值['DISABLE','ENABLE']
|
3073
|
+
# @type PublicNetStatus: String
|
3074
|
+
# @param EipConfig: Eip配置
|
3075
|
+
# @type EipConfig: :class:`Tencentcloud::Scf.v20180416.models.EipConfigOut`
|
3076
|
+
|
3077
|
+
attr_accessor :PublicNetStatus, :EipConfig
|
3078
|
+
|
3079
|
+
def initialize(publicnetstatus=nil, eipconfig=nil)
|
3080
|
+
@PublicNetStatus = publicnetstatus
|
3081
|
+
@EipConfig = eipconfig
|
3082
|
+
end
|
3083
|
+
|
3084
|
+
def deserialize(params)
|
3085
|
+
@PublicNetStatus = params['PublicNetStatus']
|
3086
|
+
unless params['EipConfig'].nil?
|
3087
|
+
@EipConfig = EipConfigOut.new
|
3088
|
+
@EipConfig.deserialize(params['EipConfig'])
|
3089
|
+
end
|
3090
|
+
end
|
3091
|
+
end
|
3092
|
+
|
3093
|
+
# PublishLayerVersion请求参数结构体
|
3094
|
+
class PublishLayerVersionRequest < TencentCloud::Common::AbstractModel
|
3095
|
+
# @param LayerName: 层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64
|
3096
|
+
# @type LayerName: String
|
3097
|
+
# @param CompatibleRuntimes: 层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。
|
3098
|
+
# @type CompatibleRuntimes: Array
|
3099
|
+
# @param Content: 层的文件来源或文件内容
|
3100
|
+
# @type Content: :class:`Tencentcloud::Scf.v20180416.models.Code`
|
3101
|
+
# @param Description: 层的版本的描述
|
3102
|
+
# @type Description: String
|
3103
|
+
# @param LicenseInfo: 层的软件许可证
|
3104
|
+
# @type LicenseInfo: String
|
3105
|
+
|
3106
|
+
attr_accessor :LayerName, :CompatibleRuntimes, :Content, :Description, :LicenseInfo
|
3107
|
+
|
3108
|
+
def initialize(layername=nil, compatibleruntimes=nil, content=nil, description=nil, licenseinfo=nil)
|
3109
|
+
@LayerName = layername
|
3110
|
+
@CompatibleRuntimes = compatibleruntimes
|
3111
|
+
@Content = content
|
3112
|
+
@Description = description
|
3113
|
+
@LicenseInfo = licenseinfo
|
3114
|
+
end
|
3115
|
+
|
3116
|
+
def deserialize(params)
|
3117
|
+
@LayerName = params['LayerName']
|
3118
|
+
@CompatibleRuntimes = params['CompatibleRuntimes']
|
3119
|
+
unless params['Content'].nil?
|
3120
|
+
@Content = Code.new
|
3121
|
+
@Content.deserialize(params['Content'])
|
3122
|
+
end
|
3123
|
+
@Description = params['Description']
|
3124
|
+
@LicenseInfo = params['LicenseInfo']
|
3125
|
+
end
|
3126
|
+
end
|
3127
|
+
|
3128
|
+
# PublishLayerVersion返回参数结构体
|
3129
|
+
class PublishLayerVersionResponse < TencentCloud::Common::AbstractModel
|
3130
|
+
# @param LayerVersion: 本次创建的层的版本号
|
3131
|
+
# @type LayerVersion: Integer
|
3132
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3133
|
+
# @type RequestId: String
|
3134
|
+
|
3135
|
+
attr_accessor :LayerVersion, :RequestId
|
3136
|
+
|
3137
|
+
def initialize(layerversion=nil, requestid=nil)
|
3138
|
+
@LayerVersion = layerversion
|
3139
|
+
@RequestId = requestid
|
3140
|
+
end
|
3141
|
+
|
3142
|
+
def deserialize(params)
|
3143
|
+
@LayerVersion = params['LayerVersion']
|
3144
|
+
@RequestId = params['RequestId']
|
3145
|
+
end
|
3146
|
+
end
|
3147
|
+
|
3148
|
+
# PublishVersion请求参数结构体
|
3149
|
+
class PublishVersionRequest < TencentCloud::Common::AbstractModel
|
3150
|
+
# @param FunctionName: 发布函数的名称
|
3151
|
+
# @type FunctionName: String
|
3152
|
+
# @param Description: 函数的描述
|
3153
|
+
# @type Description: String
|
3154
|
+
# @param Namespace: 函数的命名空间
|
3155
|
+
# @type Namespace: String
|
3156
|
+
|
3157
|
+
attr_accessor :FunctionName, :Description, :Namespace
|
3158
|
+
|
3159
|
+
def initialize(functionname=nil, description=nil, namespace=nil)
|
3160
|
+
@FunctionName = functionname
|
3161
|
+
@Description = description
|
3162
|
+
@Namespace = namespace
|
3163
|
+
end
|
3164
|
+
|
3165
|
+
def deserialize(params)
|
3166
|
+
@FunctionName = params['FunctionName']
|
3167
|
+
@Description = params['Description']
|
3168
|
+
@Namespace = params['Namespace']
|
3169
|
+
end
|
3170
|
+
end
|
3171
|
+
|
3172
|
+
# PublishVersion返回参数结构体
|
3173
|
+
class PublishVersionResponse < TencentCloud::Common::AbstractModel
|
3174
|
+
# @param FunctionVersion: 函数的版本
|
3175
|
+
# @type FunctionVersion: String
|
3176
|
+
# @param CodeSize: 代码大小
|
3177
|
+
# @type CodeSize: Integer
|
3178
|
+
# @param MemorySize: 最大可用内存
|
3179
|
+
# @type MemorySize: Integer
|
3180
|
+
# @param Description: 函数的描述
|
3181
|
+
# @type Description: String
|
3182
|
+
# @param Handler: 函数的入口
|
3183
|
+
# @type Handler: String
|
3184
|
+
# @param Timeout: 函数的超时时间
|
3185
|
+
# @type Timeout: Integer
|
3186
|
+
# @param Runtime: 函数的运行环境
|
3187
|
+
# @type Runtime: String
|
3188
|
+
# @param Namespace: 函数的命名空间
|
3189
|
+
# @type Namespace: String
|
3190
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3191
|
+
# @type RequestId: String
|
3192
|
+
|
3193
|
+
attr_accessor :FunctionVersion, :CodeSize, :MemorySize, :Description, :Handler, :Timeout, :Runtime, :Namespace, :RequestId
|
3194
|
+
|
3195
|
+
def initialize(functionversion=nil, codesize=nil, memorysize=nil, description=nil, handler=nil, timeout=nil, runtime=nil, namespace=nil, requestid=nil)
|
3196
|
+
@FunctionVersion = functionversion
|
3197
|
+
@CodeSize = codesize
|
3198
|
+
@MemorySize = memorysize
|
3199
|
+
@Description = description
|
3200
|
+
@Handler = handler
|
3201
|
+
@Timeout = timeout
|
3202
|
+
@Runtime = runtime
|
3203
|
+
@Namespace = namespace
|
3204
|
+
@RequestId = requestid
|
3205
|
+
end
|
3206
|
+
|
3207
|
+
def deserialize(params)
|
3208
|
+
@FunctionVersion = params['FunctionVersion']
|
3209
|
+
@CodeSize = params['CodeSize']
|
3210
|
+
@MemorySize = params['MemorySize']
|
3211
|
+
@Description = params['Description']
|
3212
|
+
@Handler = params['Handler']
|
3213
|
+
@Timeout = params['Timeout']
|
3214
|
+
@Runtime = params['Runtime']
|
3215
|
+
@Namespace = params['Namespace']
|
3216
|
+
@RequestId = params['RequestId']
|
3217
|
+
end
|
3218
|
+
end
|
3219
|
+
|
3220
|
+
# PutProvisionedConcurrencyConfig请求参数结构体
|
3221
|
+
class PutProvisionedConcurrencyConfigRequest < TencentCloud::Common::AbstractModel
|
3222
|
+
# @param FunctionName: 需要设置预置并发的函数的名称
|
3223
|
+
# @type FunctionName: String
|
3224
|
+
# @param Qualifier: 函数的版本号,注:$LATEST版本不支持预置并发
|
3225
|
+
# @type Qualifier: String
|
3226
|
+
# @param VersionProvisionedConcurrencyNum: 预置并发数量,注:所有版本的预置并发数总和存在上限限制,当前的上限是:函数最大并发配额 - 100
|
3227
|
+
# @type VersionProvisionedConcurrencyNum: Integer
|
3228
|
+
# @param Namespace: 函数所属命名空间,默认为default
|
3229
|
+
# @type Namespace: String
|
3230
|
+
# @param TriggerActions: 定时预置任务
|
3231
|
+
# @type TriggerActions: Array
|
3232
|
+
|
3233
|
+
attr_accessor :FunctionName, :Qualifier, :VersionProvisionedConcurrencyNum, :Namespace, :TriggerActions
|
3234
|
+
|
3235
|
+
def initialize(functionname=nil, qualifier=nil, versionprovisionedconcurrencynum=nil, namespace=nil, triggeractions=nil)
|
3236
|
+
@FunctionName = functionname
|
3237
|
+
@Qualifier = qualifier
|
3238
|
+
@VersionProvisionedConcurrencyNum = versionprovisionedconcurrencynum
|
3239
|
+
@Namespace = namespace
|
3240
|
+
@TriggerActions = triggeractions
|
3241
|
+
end
|
3242
|
+
|
3243
|
+
def deserialize(params)
|
3244
|
+
@FunctionName = params['FunctionName']
|
3245
|
+
@Qualifier = params['Qualifier']
|
3246
|
+
@VersionProvisionedConcurrencyNum = params['VersionProvisionedConcurrencyNum']
|
3247
|
+
@Namespace = params['Namespace']
|
3248
|
+
unless params['TriggerActions'].nil?
|
3249
|
+
@TriggerActions = []
|
3250
|
+
params['TriggerActions'].each do |i|
|
3251
|
+
triggeraction_tmp = TriggerAction.new
|
3252
|
+
triggeraction_tmp.deserialize(i)
|
3253
|
+
@TriggerActions << triggeraction_tmp
|
3254
|
+
end
|
3255
|
+
end
|
3256
|
+
end
|
3257
|
+
end
|
3258
|
+
|
3259
|
+
# PutProvisionedConcurrencyConfig返回参数结构体
|
3260
|
+
class PutProvisionedConcurrencyConfigResponse < TencentCloud::Common::AbstractModel
|
3261
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3262
|
+
# @type RequestId: String
|
3263
|
+
|
3264
|
+
attr_accessor :RequestId
|
3265
|
+
|
3266
|
+
def initialize(requestid=nil)
|
3267
|
+
@RequestId = requestid
|
3268
|
+
end
|
3269
|
+
|
3270
|
+
def deserialize(params)
|
3271
|
+
@RequestId = params['RequestId']
|
3272
|
+
end
|
3273
|
+
end
|
3274
|
+
|
3275
|
+
# PutReservedConcurrencyConfig请求参数结构体
|
3276
|
+
class PutReservedConcurrencyConfigRequest < TencentCloud::Common::AbstractModel
|
3277
|
+
# @param FunctionName: 需要设置最大独占配额的函数的名称
|
3278
|
+
# @type FunctionName: String
|
3279
|
+
# @param ReservedConcurrencyMem: 函数最大独占配额,注:函数的最大独占配额内存总和上限:用户总并发内存配额 - 12800
|
3280
|
+
# @type ReservedConcurrencyMem: Integer
|
3281
|
+
# @param Namespace: 函数所属命名空间,默认为default
|
3282
|
+
# @type Namespace: String
|
3283
|
+
|
3284
|
+
attr_accessor :FunctionName, :ReservedConcurrencyMem, :Namespace
|
3285
|
+
|
3286
|
+
def initialize(functionname=nil, reservedconcurrencymem=nil, namespace=nil)
|
3287
|
+
@FunctionName = functionname
|
3288
|
+
@ReservedConcurrencyMem = reservedconcurrencymem
|
3289
|
+
@Namespace = namespace
|
3290
|
+
end
|
3291
|
+
|
3292
|
+
def deserialize(params)
|
3293
|
+
@FunctionName = params['FunctionName']
|
3294
|
+
@ReservedConcurrencyMem = params['ReservedConcurrencyMem']
|
3295
|
+
@Namespace = params['Namespace']
|
3296
|
+
end
|
3297
|
+
end
|
3298
|
+
|
3299
|
+
# PutReservedConcurrencyConfig返回参数结构体
|
3300
|
+
class PutReservedConcurrencyConfigResponse < TencentCloud::Common::AbstractModel
|
3301
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3302
|
+
# @type RequestId: String
|
3303
|
+
|
3304
|
+
attr_accessor :RequestId
|
3305
|
+
|
3306
|
+
def initialize(requestid=nil)
|
3307
|
+
@RequestId = requestid
|
3308
|
+
end
|
3309
|
+
|
3310
|
+
def deserialize(params)
|
3311
|
+
@RequestId = params['RequestId']
|
3312
|
+
end
|
3313
|
+
end
|
3314
|
+
|
3315
|
+
# PutTotalConcurrencyConfig请求参数结构体
|
3316
|
+
class PutTotalConcurrencyConfigRequest < TencentCloud::Common::AbstractModel
|
3317
|
+
# @param TotalConcurrencyMem: 账号并发内存配额,注:账号并发内存配额下限:用户已用并发内存总额 + 12800
|
3318
|
+
# @type TotalConcurrencyMem: Integer
|
3319
|
+
# @param Namespace: 命名空间,默认为default
|
3320
|
+
# @type Namespace: String
|
3321
|
+
|
3322
|
+
attr_accessor :TotalConcurrencyMem, :Namespace
|
3323
|
+
|
3324
|
+
def initialize(totalconcurrencymem=nil, namespace=nil)
|
3325
|
+
@TotalConcurrencyMem = totalconcurrencymem
|
3326
|
+
@Namespace = namespace
|
3327
|
+
end
|
3328
|
+
|
3329
|
+
def deserialize(params)
|
3330
|
+
@TotalConcurrencyMem = params['TotalConcurrencyMem']
|
3331
|
+
@Namespace = params['Namespace']
|
3332
|
+
end
|
3333
|
+
end
|
3334
|
+
|
3335
|
+
# PutTotalConcurrencyConfig返回参数结构体
|
3336
|
+
class PutTotalConcurrencyConfigResponse < TencentCloud::Common::AbstractModel
|
3337
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3338
|
+
# @type RequestId: String
|
3339
|
+
|
3340
|
+
attr_accessor :RequestId
|
3341
|
+
|
3342
|
+
def initialize(requestid=nil)
|
3343
|
+
@RequestId = requestid
|
3344
|
+
end
|
3345
|
+
|
3346
|
+
def deserialize(params)
|
3347
|
+
@RequestId = params['RequestId']
|
3348
|
+
end
|
3349
|
+
end
|
3350
|
+
|
3351
|
+
# 运行函数的返回
|
3352
|
+
class Result < TencentCloud::Common::AbstractModel
|
3353
|
+
# @param Log: 表示执行过程中的日志输出,异步调用返回为空
|
3354
|
+
# @type Log: String
|
3355
|
+
# @param RetMsg: 表示执行函数的返回,异步调用返回为空
|
3356
|
+
# @type RetMsg: String
|
3357
|
+
# @param ErrMsg: 表示执行函数的错误返回信息,异步调用返回为空
|
3358
|
+
# @type ErrMsg: String
|
3359
|
+
# @param MemUsage: 执行函数时的内存大小,单位为Byte,异步调用返回为空
|
3360
|
+
# @type MemUsage: Integer
|
3361
|
+
# @param Duration: 表示执行函数的耗时,单位是毫秒,异步调用返回为空
|
3362
|
+
# @type Duration: Float
|
3363
|
+
# @param BillDuration: 表示函数的计费耗时,单位是毫秒,异步调用返回为空
|
3364
|
+
# @type BillDuration: Integer
|
3365
|
+
# @param FunctionRequestId: 此次函数执行的Id
|
3366
|
+
# @type FunctionRequestId: String
|
3367
|
+
# @param InvokeResult: 0为正确,异步调用返回为空
|
3368
|
+
# @type InvokeResult: Integer
|
3369
|
+
|
3370
|
+
attr_accessor :Log, :RetMsg, :ErrMsg, :MemUsage, :Duration, :BillDuration, :FunctionRequestId, :InvokeResult
|
3371
|
+
|
3372
|
+
def initialize(log=nil, retmsg=nil, errmsg=nil, memusage=nil, duration=nil, billduration=nil, functionrequestid=nil, invokeresult=nil)
|
3373
|
+
@Log = log
|
3374
|
+
@RetMsg = retmsg
|
3375
|
+
@ErrMsg = errmsg
|
3376
|
+
@MemUsage = memusage
|
3377
|
+
@Duration = duration
|
3378
|
+
@BillDuration = billduration
|
3379
|
+
@FunctionRequestId = functionrequestid
|
3380
|
+
@InvokeResult = invokeresult
|
3381
|
+
end
|
3382
|
+
|
3383
|
+
def deserialize(params)
|
3384
|
+
@Log = params['Log']
|
3385
|
+
@RetMsg = params['RetMsg']
|
3386
|
+
@ErrMsg = params['ErrMsg']
|
3387
|
+
@MemUsage = params['MemUsage']
|
3388
|
+
@Duration = params['Duration']
|
3389
|
+
@BillDuration = params['BillDuration']
|
3390
|
+
@FunctionRequestId = params['FunctionRequestId']
|
3391
|
+
@InvokeResult = params['InvokeResult']
|
3392
|
+
end
|
3393
|
+
end
|
3394
|
+
|
3395
|
+
# 异步重试配置
|
3396
|
+
class RetryConfig < TencentCloud::Common::AbstractModel
|
3397
|
+
# @param RetryNum: 重试次数
|
3398
|
+
# @type RetryNum: Integer
|
3399
|
+
|
3400
|
+
attr_accessor :RetryNum
|
3401
|
+
|
3402
|
+
def initialize(retrynum=nil)
|
3403
|
+
@RetryNum = retrynum
|
3404
|
+
end
|
3405
|
+
|
3406
|
+
def deserialize(params)
|
3407
|
+
@RetryNum = params['RetryNum']
|
3408
|
+
end
|
3409
|
+
end
|
3410
|
+
|
3411
|
+
# 别名的版本路由配置
|
3412
|
+
class RoutingConfig < TencentCloud::Common::AbstractModel
|
3413
|
+
# @param AdditionalVersionWeights: 随机权重路由附加版本
|
3414
|
+
# @type AdditionalVersionWeights: Array
|
3415
|
+
# @param AddtionVersionMatchs: 规则路由附加版本
|
3416
|
+
# @type AddtionVersionMatchs: Array
|
3417
|
+
|
3418
|
+
attr_accessor :AdditionalVersionWeights, :AddtionVersionMatchs
|
3419
|
+
|
3420
|
+
def initialize(additionalversionweights=nil, addtionversionmatchs=nil)
|
3421
|
+
@AdditionalVersionWeights = additionalversionweights
|
3422
|
+
@AddtionVersionMatchs = addtionversionmatchs
|
3423
|
+
end
|
3424
|
+
|
3425
|
+
def deserialize(params)
|
3426
|
+
unless params['AdditionalVersionWeights'].nil?
|
3427
|
+
@AdditionalVersionWeights = []
|
3428
|
+
params['AdditionalVersionWeights'].each do |i|
|
3429
|
+
versionweight_tmp = VersionWeight.new
|
3430
|
+
versionweight_tmp.deserialize(i)
|
3431
|
+
@AdditionalVersionWeights << versionweight_tmp
|
3432
|
+
end
|
3433
|
+
end
|
3434
|
+
unless params['AddtionVersionMatchs'].nil?
|
3435
|
+
@AddtionVersionMatchs = []
|
3436
|
+
params['AddtionVersionMatchs'].each do |i|
|
3437
|
+
versionmatch_tmp = VersionMatch.new
|
3438
|
+
versionmatch_tmp.deserialize(i)
|
3439
|
+
@AddtionVersionMatchs << versionmatch_tmp
|
3440
|
+
end
|
3441
|
+
end
|
3442
|
+
end
|
3443
|
+
end
|
3444
|
+
|
3445
|
+
# 包含搜索关键字和对应的内容
|
3446
|
+
class SearchKey < TencentCloud::Common::AbstractModel
|
3447
|
+
# @param Key: 搜索关键字
|
3448
|
+
# @type Key: String
|
3449
|
+
# @param Value: 搜索内容
|
3450
|
+
# @type Value: String
|
3451
|
+
|
3452
|
+
attr_accessor :Key, :Value
|
3453
|
+
|
3454
|
+
def initialize(key=nil, value=nil)
|
3455
|
+
@Key = key
|
3456
|
+
@Value = value
|
3457
|
+
end
|
3458
|
+
|
3459
|
+
def deserialize(params)
|
3460
|
+
@Key = params['Key']
|
3461
|
+
@Value = params['Value']
|
3462
|
+
end
|
3463
|
+
end
|
3464
|
+
|
3465
|
+
# 状态原因描述
|
3466
|
+
class StatusReason < TencentCloud::Common::AbstractModel
|
3467
|
+
# @param ErrorCode: 错误码
|
3468
|
+
# @type ErrorCode: String
|
3469
|
+
# @param ErrorMessage: 错误描述
|
3470
|
+
# @type ErrorMessage: String
|
3471
|
+
|
3472
|
+
attr_accessor :ErrorCode, :ErrorMessage
|
3473
|
+
|
3474
|
+
def initialize(errorcode=nil, errormessage=nil)
|
3475
|
+
@ErrorCode = errorcode
|
3476
|
+
@ErrorMessage = errormessage
|
3477
|
+
end
|
3478
|
+
|
3479
|
+
def deserialize(params)
|
3480
|
+
@ErrorCode = params['ErrorCode']
|
3481
|
+
@ErrorMessage = params['ErrorMessage']
|
3482
|
+
end
|
3483
|
+
end
|
3484
|
+
|
3485
|
+
# 函数标签
|
3486
|
+
class Tag < TencentCloud::Common::AbstractModel
|
3487
|
+
# @param Key: 标签的key
|
3488
|
+
# @type Key: String
|
3489
|
+
# @param Value: 标签的value
|
3490
|
+
# @type Value: String
|
3491
|
+
|
3492
|
+
attr_accessor :Key, :Value
|
3493
|
+
|
3494
|
+
def initialize(key=nil, value=nil)
|
3495
|
+
@Key = key
|
3496
|
+
@Value = value
|
3497
|
+
end
|
3498
|
+
|
3499
|
+
def deserialize(params)
|
3500
|
+
@Key = params['Key']
|
3501
|
+
@Value = params['Value']
|
3502
|
+
end
|
3503
|
+
end
|
3504
|
+
|
3505
|
+
# TerminateAsyncEvent请求参数结构体
|
3506
|
+
class TerminateAsyncEventRequest < TencentCloud::Common::AbstractModel
|
3507
|
+
# @param FunctionName: 函数名称
|
3508
|
+
# @type FunctionName: String
|
3509
|
+
# @param InvokeRequestId: 终止的调用请求id
|
3510
|
+
# @type InvokeRequestId: String
|
3511
|
+
# @param Namespace: 命名空间
|
3512
|
+
# @type Namespace: String
|
3513
|
+
# @param GraceShutdown: 优雅关停
|
3514
|
+
# @type GraceShutdown: Boolean
|
3515
|
+
|
3516
|
+
attr_accessor :FunctionName, :InvokeRequestId, :Namespace, :GraceShutdown
|
3517
|
+
|
3518
|
+
def initialize(functionname=nil, invokerequestid=nil, namespace=nil, graceshutdown=nil)
|
3519
|
+
@FunctionName = functionname
|
3520
|
+
@InvokeRequestId = invokerequestid
|
3521
|
+
@Namespace = namespace
|
3522
|
+
@GraceShutdown = graceshutdown
|
3523
|
+
end
|
3524
|
+
|
3525
|
+
def deserialize(params)
|
3526
|
+
@FunctionName = params['FunctionName']
|
3527
|
+
@InvokeRequestId = params['InvokeRequestId']
|
3528
|
+
@Namespace = params['Namespace']
|
3529
|
+
@GraceShutdown = params['GraceShutdown']
|
3530
|
+
end
|
3531
|
+
end
|
3532
|
+
|
3533
|
+
# TerminateAsyncEvent返回参数结构体
|
3534
|
+
class TerminateAsyncEventResponse < TencentCloud::Common::AbstractModel
|
3535
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3536
|
+
# @type RequestId: String
|
3537
|
+
|
3538
|
+
attr_accessor :RequestId
|
3539
|
+
|
3540
|
+
def initialize(requestid=nil)
|
3541
|
+
@RequestId = requestid
|
3542
|
+
end
|
3543
|
+
|
3544
|
+
def deserialize(params)
|
3545
|
+
@RequestId = params['RequestId']
|
3546
|
+
end
|
3547
|
+
end
|
3548
|
+
|
3549
|
+
# 左闭右开时间区间,包括起始时间和结束时间,格式为"%Y-%m-%d %H:%M:%S"
|
3550
|
+
class TimeInterval < TencentCloud::Common::AbstractModel
|
3551
|
+
# @param Start: 起始时间(包括在内),格式"%Y-%m-%d %H:%M:%S"
|
3552
|
+
# @type Start: String
|
3553
|
+
# @param End: 结束时间(不包括在内),格式"%Y-%m-%d %H:%M:%S"
|
3554
|
+
# @type End: String
|
3555
|
+
|
3556
|
+
attr_accessor :Start, :End
|
3557
|
+
|
3558
|
+
def initialize(start=nil, _end=nil)
|
3559
|
+
@Start = start
|
3560
|
+
@End = _end
|
3561
|
+
end
|
3562
|
+
|
3563
|
+
def deserialize(params)
|
3564
|
+
@Start = params['Start']
|
3565
|
+
@End = params['End']
|
3566
|
+
end
|
3567
|
+
end
|
3568
|
+
|
3569
|
+
# 触发器类型
|
3570
|
+
class Trigger < TencentCloud::Common::AbstractModel
|
3571
|
+
# @param ModTime: 触发器最后修改时间
|
3572
|
+
# @type ModTime: String
|
3573
|
+
# @param Type: 触发器类型
|
3574
|
+
# @type Type: String
|
3575
|
+
# @param TriggerDesc: 触发器详细配置
|
3576
|
+
# @type TriggerDesc: String
|
3577
|
+
# @param TriggerName: 触发器名称
|
3578
|
+
# @type TriggerName: String
|
3579
|
+
# @param AddTime: 触发器创建时间
|
3580
|
+
# @type AddTime: String
|
3581
|
+
# @param Enable: 使能开关
|
3582
|
+
# @type Enable: Integer
|
3583
|
+
# @param CustomArgument: 客户自定义参数
|
3584
|
+
# @type CustomArgument: String
|
3585
|
+
# @param AvailableStatus: 触发器状态
|
3586
|
+
# @type AvailableStatus: String
|
3587
|
+
# @param ResourceId: 触发器最小资源ID
|
3588
|
+
# @type ResourceId: String
|
3589
|
+
# @param BindStatus: 触发器和云函数绑定状态
|
3590
|
+
# @type BindStatus: String
|
3591
|
+
# @param TriggerAttribute: 触发器类型,双向表示两侧控制台均可操作,单向表示SCF控制台单向创建
|
3592
|
+
# @type TriggerAttribute: String
|
3593
|
+
# @param Qualifier: 触发器绑定的别名或版本
|
3594
|
+
# @type Qualifier: String
|
3595
|
+
|
3596
|
+
attr_accessor :ModTime, :Type, :TriggerDesc, :TriggerName, :AddTime, :Enable, :CustomArgument, :AvailableStatus, :ResourceId, :BindStatus, :TriggerAttribute, :Qualifier
|
3597
|
+
|
3598
|
+
def initialize(modtime=nil, type=nil, triggerdesc=nil, triggername=nil, addtime=nil, enable=nil, customargument=nil, availablestatus=nil, resourceid=nil, bindstatus=nil, triggerattribute=nil, qualifier=nil)
|
3599
|
+
@ModTime = modtime
|
3600
|
+
@Type = type
|
3601
|
+
@TriggerDesc = triggerdesc
|
3602
|
+
@TriggerName = triggername
|
3603
|
+
@AddTime = addtime
|
3604
|
+
@Enable = enable
|
3605
|
+
@CustomArgument = customargument
|
3606
|
+
@AvailableStatus = availablestatus
|
3607
|
+
@ResourceId = resourceid
|
3608
|
+
@BindStatus = bindstatus
|
3609
|
+
@TriggerAttribute = triggerattribute
|
3610
|
+
@Qualifier = qualifier
|
3611
|
+
end
|
3612
|
+
|
3613
|
+
def deserialize(params)
|
3614
|
+
@ModTime = params['ModTime']
|
3615
|
+
@Type = params['Type']
|
3616
|
+
@TriggerDesc = params['TriggerDesc']
|
3617
|
+
@TriggerName = params['TriggerName']
|
3618
|
+
@AddTime = params['AddTime']
|
3619
|
+
@Enable = params['Enable']
|
3620
|
+
@CustomArgument = params['CustomArgument']
|
3621
|
+
@AvailableStatus = params['AvailableStatus']
|
3622
|
+
@ResourceId = params['ResourceId']
|
3623
|
+
@BindStatus = params['BindStatus']
|
3624
|
+
@TriggerAttribute = params['TriggerAttribute']
|
3625
|
+
@Qualifier = params['Qualifier']
|
3626
|
+
end
|
3627
|
+
end
|
3628
|
+
|
3629
|
+
# 预置定时任务动作
|
3630
|
+
class TriggerAction < TencentCloud::Common::AbstractModel
|
3631
|
+
# @param TriggerName: 定时预置名称
|
3632
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3633
|
+
# @type TriggerName: String
|
3634
|
+
# @param TriggerProvisionedConcurrencyNum: 定时预置并发数量
|
3635
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3636
|
+
# @type TriggerProvisionedConcurrencyNum: Integer
|
3637
|
+
# @param TriggerCronConfig: 设置定时触发器的时间配置,cron表达式。Cron 表达式有七个必需字段,按空格分隔。
|
3638
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3639
|
+
# @type TriggerCronConfig: String
|
3640
|
+
|
3641
|
+
attr_accessor :TriggerName, :TriggerProvisionedConcurrencyNum, :TriggerCronConfig
|
3642
|
+
|
3643
|
+
def initialize(triggername=nil, triggerprovisionedconcurrencynum=nil, triggercronconfig=nil)
|
3644
|
+
@TriggerName = triggername
|
3645
|
+
@TriggerProvisionedConcurrencyNum = triggerprovisionedconcurrencynum
|
3646
|
+
@TriggerCronConfig = triggercronconfig
|
3647
|
+
end
|
3648
|
+
|
3649
|
+
def deserialize(params)
|
3650
|
+
@TriggerName = params['TriggerName']
|
3651
|
+
@TriggerProvisionedConcurrencyNum = params['TriggerProvisionedConcurrencyNum']
|
3652
|
+
@TriggerCronConfig = params['TriggerCronConfig']
|
3653
|
+
end
|
3654
|
+
end
|
3655
|
+
|
3656
|
+
# TriggerCount描述不同类型触发器的数量
|
3657
|
+
class TriggerCount < TencentCloud::Common::AbstractModel
|
3658
|
+
# @param Cos: Cos触发器数量
|
3659
|
+
# @type Cos: Integer
|
3660
|
+
# @param Timer: Timer触发器数量
|
3661
|
+
# @type Timer: Integer
|
3662
|
+
# @param Cmq: Cmq触发器数量
|
3663
|
+
# @type Cmq: Integer
|
3664
|
+
# @param Total: 触发器总数
|
3665
|
+
# @type Total: Integer
|
3666
|
+
# @param Ckafka: Ckafka触发器数量
|
3667
|
+
# @type Ckafka: Integer
|
3668
|
+
# @param Apigw: Apigw触发器数量
|
3669
|
+
# @type Apigw: Integer
|
3670
|
+
# @param Cls: Cls触发器数量
|
3671
|
+
# @type Cls: Integer
|
3672
|
+
# @param Clb: Clb触发器数量
|
3673
|
+
# @type Clb: Integer
|
3674
|
+
# @param Mps: Mps触发器数量
|
3675
|
+
# @type Mps: Integer
|
3676
|
+
# @param Cm: Cm触发器数量
|
3677
|
+
# @type Cm: Integer
|
3678
|
+
# @param Vod: Vod触发器数量
|
3679
|
+
# @type Vod: Integer
|
3680
|
+
|
3681
|
+
attr_accessor :Cos, :Timer, :Cmq, :Total, :Ckafka, :Apigw, :Cls, :Clb, :Mps, :Cm, :Vod
|
3682
|
+
|
3683
|
+
def initialize(cos=nil, timer=nil, cmq=nil, total=nil, ckafka=nil, apigw=nil, cls=nil, clb=nil, mps=nil, cm=nil, vod=nil)
|
3684
|
+
@Cos = cos
|
3685
|
+
@Timer = timer
|
3686
|
+
@Cmq = cmq
|
3687
|
+
@Total = total
|
3688
|
+
@Ckafka = ckafka
|
3689
|
+
@Apigw = apigw
|
3690
|
+
@Cls = cls
|
3691
|
+
@Clb = clb
|
3692
|
+
@Mps = mps
|
3693
|
+
@Cm = cm
|
3694
|
+
@Vod = vod
|
3695
|
+
end
|
3696
|
+
|
3697
|
+
def deserialize(params)
|
3698
|
+
@Cos = params['Cos']
|
3699
|
+
@Timer = params['Timer']
|
3700
|
+
@Cmq = params['Cmq']
|
3701
|
+
@Total = params['Total']
|
3702
|
+
@Ckafka = params['Ckafka']
|
3703
|
+
@Apigw = params['Apigw']
|
3704
|
+
@Cls = params['Cls']
|
3705
|
+
@Clb = params['Clb']
|
3706
|
+
@Mps = params['Mps']
|
3707
|
+
@Cm = params['Cm']
|
3708
|
+
@Vod = params['Vod']
|
3709
|
+
end
|
3710
|
+
end
|
3711
|
+
|
3712
|
+
# 触发器信息
|
3713
|
+
class TriggerInfo < TencentCloud::Common::AbstractModel
|
3714
|
+
# @param Enable: 使能开关
|
3715
|
+
# @type Enable: Integer
|
3716
|
+
# @param Qualifier: 函数版本或别名
|
3717
|
+
# @type Qualifier: String
|
3718
|
+
# @param TriggerName: 触发器名称
|
3719
|
+
# @type TriggerName: String
|
3720
|
+
# @param Type: 触发器类型
|
3721
|
+
# @type Type: String
|
3722
|
+
# @param TriggerDesc: 触发器详细配置
|
3723
|
+
# @type TriggerDesc: String
|
3724
|
+
# @param AvailableStatus: 触发器是否可用
|
3725
|
+
# @type AvailableStatus: String
|
3726
|
+
# @param CustomArgument: 客户自定义参数
|
3727
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3728
|
+
# @type CustomArgument: String
|
3729
|
+
# @param AddTime: 触发器创建时间
|
3730
|
+
# @type AddTime: String
|
3731
|
+
# @param ModTime: 触发器最后修改时间
|
3732
|
+
# @type ModTime: String
|
3733
|
+
# @param ResourceId: 触发器最小资源ID
|
3734
|
+
# @type ResourceId: String
|
3735
|
+
# @param BindStatus: 触发器和云函数绑定状态
|
3736
|
+
# @type BindStatus: String
|
3737
|
+
# @param TriggerAttribute: 触发器类型,双向表示两侧控制台均可操作,单向表示SCF控制台单向创建
|
3738
|
+
# @type TriggerAttribute: String
|
3739
|
+
|
3740
|
+
attr_accessor :Enable, :Qualifier, :TriggerName, :Type, :TriggerDesc, :AvailableStatus, :CustomArgument, :AddTime, :ModTime, :ResourceId, :BindStatus, :TriggerAttribute
|
3741
|
+
|
3742
|
+
def initialize(enable=nil, qualifier=nil, triggername=nil, type=nil, triggerdesc=nil, availablestatus=nil, customargument=nil, addtime=nil, modtime=nil, resourceid=nil, bindstatus=nil, triggerattribute=nil)
|
3743
|
+
@Enable = enable
|
3744
|
+
@Qualifier = qualifier
|
3745
|
+
@TriggerName = triggername
|
3746
|
+
@Type = type
|
3747
|
+
@TriggerDesc = triggerdesc
|
3748
|
+
@AvailableStatus = availablestatus
|
3749
|
+
@CustomArgument = customargument
|
3750
|
+
@AddTime = addtime
|
3751
|
+
@ModTime = modtime
|
3752
|
+
@ResourceId = resourceid
|
3753
|
+
@BindStatus = bindstatus
|
3754
|
+
@TriggerAttribute = triggerattribute
|
3755
|
+
end
|
3756
|
+
|
3757
|
+
def deserialize(params)
|
3758
|
+
@Enable = params['Enable']
|
3759
|
+
@Qualifier = params['Qualifier']
|
3760
|
+
@TriggerName = params['TriggerName']
|
3761
|
+
@Type = params['Type']
|
3762
|
+
@TriggerDesc = params['TriggerDesc']
|
3763
|
+
@AvailableStatus = params['AvailableStatus']
|
3764
|
+
@CustomArgument = params['CustomArgument']
|
3765
|
+
@AddTime = params['AddTime']
|
3766
|
+
@ModTime = params['ModTime']
|
3767
|
+
@ResourceId = params['ResourceId']
|
3768
|
+
@BindStatus = params['BindStatus']
|
3769
|
+
@TriggerAttribute = params['TriggerAttribute']
|
3770
|
+
end
|
3771
|
+
end
|
3772
|
+
|
3773
|
+
# UpdateAlias请求参数结构体
|
3774
|
+
class UpdateAliasRequest < TencentCloud::Common::AbstractModel
|
3775
|
+
# @param FunctionName: 函数名称
|
3776
|
+
# @type FunctionName: String
|
3777
|
+
# @param Name: 别名的名称
|
3778
|
+
# @type Name: String
|
3779
|
+
# @param FunctionVersion: 别名指向的主版本
|
3780
|
+
# @type FunctionVersion: String
|
3781
|
+
# @param Namespace: 函数所在的命名空间
|
3782
|
+
# @type Namespace: String
|
3783
|
+
# @param RoutingConfig: 别名的路由信息,需要为别名指定附加版本时,必须提供此参数
|
3784
|
+
# @type RoutingConfig: :class:`Tencentcloud::Scf.v20180416.models.RoutingConfig`
|
3785
|
+
# @param Description: 别名的描述
|
3786
|
+
# @type Description: String
|
3787
|
+
|
3788
|
+
attr_accessor :FunctionName, :Name, :FunctionVersion, :Namespace, :RoutingConfig, :Description
|
3789
|
+
|
3790
|
+
def initialize(functionname=nil, name=nil, functionversion=nil, namespace=nil, routingconfig=nil, description=nil)
|
3791
|
+
@FunctionName = functionname
|
3792
|
+
@Name = name
|
3793
|
+
@FunctionVersion = functionversion
|
3794
|
+
@Namespace = namespace
|
3795
|
+
@RoutingConfig = routingconfig
|
3796
|
+
@Description = description
|
3797
|
+
end
|
3798
|
+
|
3799
|
+
def deserialize(params)
|
3800
|
+
@FunctionName = params['FunctionName']
|
3801
|
+
@Name = params['Name']
|
3802
|
+
@FunctionVersion = params['FunctionVersion']
|
3803
|
+
@Namespace = params['Namespace']
|
3804
|
+
unless params['RoutingConfig'].nil?
|
3805
|
+
@RoutingConfig = RoutingConfig.new
|
3806
|
+
@RoutingConfig.deserialize(params['RoutingConfig'])
|
3807
|
+
end
|
3808
|
+
@Description = params['Description']
|
3809
|
+
end
|
3810
|
+
end
|
3811
|
+
|
3812
|
+
# UpdateAlias返回参数结构体
|
3813
|
+
class UpdateAliasResponse < TencentCloud::Common::AbstractModel
|
3814
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3815
|
+
# @type RequestId: String
|
3816
|
+
|
3817
|
+
attr_accessor :RequestId
|
3818
|
+
|
3819
|
+
def initialize(requestid=nil)
|
3820
|
+
@RequestId = requestid
|
3821
|
+
end
|
3822
|
+
|
3823
|
+
def deserialize(params)
|
3824
|
+
@RequestId = params['RequestId']
|
3825
|
+
end
|
3826
|
+
end
|
3827
|
+
|
3828
|
+
# UpdateFunctionCode请求参数结构体
|
3829
|
+
class UpdateFunctionCodeRequest < TencentCloud::Common::AbstractModel
|
3830
|
+
# @param FunctionName: 要修改的函数名称
|
3831
|
+
# @type FunctionName: String
|
3832
|
+
# @param Handler: 函数处理方法名称。名称格式支持“文件名称.函数名称”形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求 2-60 个字符
|
3833
|
+
# @type Handler: String
|
3834
|
+
# @param CosBucketName: 对象存储桶名称
|
3835
|
+
# @type CosBucketName: String
|
3836
|
+
# @param CosObjectName: 对象存储对象路径
|
3837
|
+
# @type CosObjectName: String
|
3838
|
+
# @param ZipFile: 包含函数代码文件及其依赖项的 zip 格式文件,使用该接口时要求将 zip 文件的内容转成 base64 编码,最大支持20M
|
3839
|
+
# @type ZipFile: String
|
3840
|
+
# @param Namespace: 函数所属命名空间
|
3841
|
+
# @type Namespace: String
|
3842
|
+
# @param CosBucketRegion: 对象存储的地域,注:北京分为ap-beijing和ap-beijing-1
|
3843
|
+
# @type CosBucketRegion: String
|
3844
|
+
# @param EnvId: 函数所属环境
|
3845
|
+
# @type EnvId: String
|
3846
|
+
# @param Publish: 在更新时是否同步发布新版本,默认为:FALSE,不发布
|
3847
|
+
# @type Publish: String
|
3848
|
+
# @param Code: 函数代码
|
3849
|
+
# @type Code: :class:`Tencentcloud::Scf.v20180416.models.Code`
|
3850
|
+
# @param CodeSource: 代码来源方式,支持 ZipFile, Cos, Inline 之一
|
3851
|
+
# @type CodeSource: String
|
3852
|
+
|
3853
|
+
attr_accessor :FunctionName, :Handler, :CosBucketName, :CosObjectName, :ZipFile, :Namespace, :CosBucketRegion, :EnvId, :Publish, :Code, :CodeSource
|
3854
|
+
|
3855
|
+
def initialize(functionname=nil, handler=nil, cosbucketname=nil, cosobjectname=nil, zipfile=nil, namespace=nil, cosbucketregion=nil, envid=nil, publish=nil, code=nil, codesource=nil)
|
3856
|
+
@FunctionName = functionname
|
3857
|
+
@Handler = handler
|
3858
|
+
@CosBucketName = cosbucketname
|
3859
|
+
@CosObjectName = cosobjectname
|
3860
|
+
@ZipFile = zipfile
|
3861
|
+
@Namespace = namespace
|
3862
|
+
@CosBucketRegion = cosbucketregion
|
3863
|
+
@EnvId = envid
|
3864
|
+
@Publish = publish
|
3865
|
+
@Code = code
|
3866
|
+
@CodeSource = codesource
|
3867
|
+
end
|
3868
|
+
|
3869
|
+
def deserialize(params)
|
3870
|
+
@FunctionName = params['FunctionName']
|
3871
|
+
@Handler = params['Handler']
|
3872
|
+
@CosBucketName = params['CosBucketName']
|
3873
|
+
@CosObjectName = params['CosObjectName']
|
3874
|
+
@ZipFile = params['ZipFile']
|
3875
|
+
@Namespace = params['Namespace']
|
3876
|
+
@CosBucketRegion = params['CosBucketRegion']
|
3877
|
+
@EnvId = params['EnvId']
|
3878
|
+
@Publish = params['Publish']
|
3879
|
+
unless params['Code'].nil?
|
3880
|
+
@Code = Code.new
|
3881
|
+
@Code.deserialize(params['Code'])
|
3882
|
+
end
|
3883
|
+
@CodeSource = params['CodeSource']
|
3884
|
+
end
|
3885
|
+
end
|
3886
|
+
|
3887
|
+
# UpdateFunctionCode返回参数结构体
|
3888
|
+
class UpdateFunctionCodeResponse < TencentCloud::Common::AbstractModel
|
3889
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3890
|
+
# @type RequestId: String
|
3891
|
+
|
3892
|
+
attr_accessor :RequestId
|
3893
|
+
|
3894
|
+
def initialize(requestid=nil)
|
3895
|
+
@RequestId = requestid
|
3896
|
+
end
|
3897
|
+
|
3898
|
+
def deserialize(params)
|
3899
|
+
@RequestId = params['RequestId']
|
3900
|
+
end
|
3901
|
+
end
|
3902
|
+
|
3903
|
+
# UpdateFunctionConfiguration请求参数结构体
|
3904
|
+
class UpdateFunctionConfigurationRequest < TencentCloud::Common::AbstractModel
|
3905
|
+
# @param FunctionName: 要修改的函数名称
|
3906
|
+
# @type FunctionName: String
|
3907
|
+
# @param Description: 函数描述。最大支持 1000 个英文字母、数字、空格、逗号和英文句号,支持中文
|
3908
|
+
# @type Description: String
|
3909
|
+
# @param MemorySize: 函数运行时内存大小,默认为 128 M,可选范64M、128 M-3072 M,以 128MB 为阶梯。
|
3910
|
+
# @type MemorySize: Integer
|
3911
|
+
# @param Timeout: 函数最长执行时间,单位为秒,可选值范 1-900 秒,默认为 3 秒
|
3912
|
+
# @type Timeout: Integer
|
3913
|
+
# @param Runtime: 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, PHP5, PHP7,Go1 , Java8和CustomRuntime
|
3914
|
+
# @type Runtime: String
|
3915
|
+
# @param Environment: 函数的环境变量
|
3916
|
+
# @type Environment: :class:`Tencentcloud::Scf.v20180416.models.Environment`
|
3917
|
+
# @param Namespace: 函数所属命名空间
|
3918
|
+
# @type Namespace: String
|
3919
|
+
# @param VpcConfig: 函数的私有网络配置
|
3920
|
+
# @type VpcConfig: :class:`Tencentcloud::Scf.v20180416.models.VpcConfig`
|
3921
|
+
# @param Role: 函数绑定的角色
|
3922
|
+
# @type Role: String
|
3923
|
+
# @param ClsLogsetId: 日志投递到的cls日志集ID
|
3924
|
+
# @type ClsLogsetId: String
|
3925
|
+
# @param ClsTopicId: 日志投递到的cls Topic ID
|
3926
|
+
# @type ClsTopicId: String
|
3927
|
+
# @param Publish: 在更新时是否同步发布新版本,默认为:FALSE,不发布新版本
|
3928
|
+
# @type Publish: String
|
3929
|
+
# @param L5Enable: 是否开启L5访问能力,TRUE 为开启,FALSE为关闭
|
3930
|
+
# @type L5Enable: String
|
3931
|
+
# @param Layers: 函数要关联的层版本列表,层的版本会按照在列表中顺序依次覆盖。
|
3932
|
+
# @type Layers: Array
|
3933
|
+
# @param DeadLetterConfig: 函数关联的死信队列信息
|
3934
|
+
# @type DeadLetterConfig: :class:`Tencentcloud::Scf.v20180416.models.DeadLetterConfig`
|
3935
|
+
# @param PublicNetConfig: 公网访问配置
|
3936
|
+
# @type PublicNetConfig: :class:`Tencentcloud::Scf.v20180416.models.PublicNetConfigIn`
|
3937
|
+
# @param CfsConfig: 文件系统配置入参,用于云函数绑定CFS文件系统
|
3938
|
+
# @type CfsConfig: :class:`Tencentcloud::Scf.v20180416.models.CfsConfig`
|
3939
|
+
# @param InitTimeout: 函数初始化执行超时时间
|
3940
|
+
# @type InitTimeout: Integer
|
3941
|
+
# @param ProtocolParams: HTTP函数配置ProtocolType访问协议,当前协议可配置的参数
|
3942
|
+
# @type ProtocolParams: :class:`Tencentcloud::Scf.v20180416.models.ProtocolParams`
|
3943
|
+
|
3944
|
+
attr_accessor :FunctionName, :Description, :MemorySize, :Timeout, :Runtime, :Environment, :Namespace, :VpcConfig, :Role, :ClsLogsetId, :ClsTopicId, :Publish, :L5Enable, :Layers, :DeadLetterConfig, :PublicNetConfig, :CfsConfig, :InitTimeout, :ProtocolParams
|
3945
|
+
|
3946
|
+
def initialize(functionname=nil, description=nil, memorysize=nil, timeout=nil, runtime=nil, environment=nil, namespace=nil, vpcconfig=nil, role=nil, clslogsetid=nil, clstopicid=nil, publish=nil, l5enable=nil, layers=nil, deadletterconfig=nil, publicnetconfig=nil, cfsconfig=nil, inittimeout=nil, protocolparams=nil)
|
3947
|
+
@FunctionName = functionname
|
3948
|
+
@Description = description
|
3949
|
+
@MemorySize = memorysize
|
3950
|
+
@Timeout = timeout
|
3951
|
+
@Runtime = runtime
|
3952
|
+
@Environment = environment
|
3953
|
+
@Namespace = namespace
|
3954
|
+
@VpcConfig = vpcconfig
|
3955
|
+
@Role = role
|
3956
|
+
@ClsLogsetId = clslogsetid
|
3957
|
+
@ClsTopicId = clstopicid
|
3958
|
+
@Publish = publish
|
3959
|
+
@L5Enable = l5enable
|
3960
|
+
@Layers = layers
|
3961
|
+
@DeadLetterConfig = deadletterconfig
|
3962
|
+
@PublicNetConfig = publicnetconfig
|
3963
|
+
@CfsConfig = cfsconfig
|
3964
|
+
@InitTimeout = inittimeout
|
3965
|
+
@ProtocolParams = protocolparams
|
3966
|
+
end
|
3967
|
+
|
3968
|
+
def deserialize(params)
|
3969
|
+
@FunctionName = params['FunctionName']
|
3970
|
+
@Description = params['Description']
|
3971
|
+
@MemorySize = params['MemorySize']
|
3972
|
+
@Timeout = params['Timeout']
|
3973
|
+
@Runtime = params['Runtime']
|
3974
|
+
unless params['Environment'].nil?
|
3975
|
+
@Environment = Environment.new
|
3976
|
+
@Environment.deserialize(params['Environment'])
|
3977
|
+
end
|
3978
|
+
@Namespace = params['Namespace']
|
3979
|
+
unless params['VpcConfig'].nil?
|
3980
|
+
@VpcConfig = VpcConfig.new
|
3981
|
+
@VpcConfig.deserialize(params['VpcConfig'])
|
3982
|
+
end
|
3983
|
+
@Role = params['Role']
|
3984
|
+
@ClsLogsetId = params['ClsLogsetId']
|
3985
|
+
@ClsTopicId = params['ClsTopicId']
|
3986
|
+
@Publish = params['Publish']
|
3987
|
+
@L5Enable = params['L5Enable']
|
3988
|
+
unless params['Layers'].nil?
|
3989
|
+
@Layers = []
|
3990
|
+
params['Layers'].each do |i|
|
3991
|
+
layerversionsimple_tmp = LayerVersionSimple.new
|
3992
|
+
layerversionsimple_tmp.deserialize(i)
|
3993
|
+
@Layers << layerversionsimple_tmp
|
3994
|
+
end
|
3995
|
+
end
|
3996
|
+
unless params['DeadLetterConfig'].nil?
|
3997
|
+
@DeadLetterConfig = DeadLetterConfig.new
|
3998
|
+
@DeadLetterConfig.deserialize(params['DeadLetterConfig'])
|
3999
|
+
end
|
4000
|
+
unless params['PublicNetConfig'].nil?
|
4001
|
+
@PublicNetConfig = PublicNetConfigIn.new
|
4002
|
+
@PublicNetConfig.deserialize(params['PublicNetConfig'])
|
4003
|
+
end
|
4004
|
+
unless params['CfsConfig'].nil?
|
4005
|
+
@CfsConfig = CfsConfig.new
|
4006
|
+
@CfsConfig.deserialize(params['CfsConfig'])
|
4007
|
+
end
|
4008
|
+
@InitTimeout = params['InitTimeout']
|
4009
|
+
unless params['ProtocolParams'].nil?
|
4010
|
+
@ProtocolParams = ProtocolParams.new
|
4011
|
+
@ProtocolParams.deserialize(params['ProtocolParams'])
|
4012
|
+
end
|
4013
|
+
end
|
4014
|
+
end
|
4015
|
+
|
4016
|
+
# UpdateFunctionConfiguration返回参数结构体
|
4017
|
+
class UpdateFunctionConfigurationResponse < TencentCloud::Common::AbstractModel
|
4018
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4019
|
+
# @type RequestId: String
|
4020
|
+
|
4021
|
+
attr_accessor :RequestId
|
4022
|
+
|
4023
|
+
def initialize(requestid=nil)
|
4024
|
+
@RequestId = requestid
|
4025
|
+
end
|
4026
|
+
|
4027
|
+
def deserialize(params)
|
4028
|
+
@RequestId = params['RequestId']
|
4029
|
+
end
|
4030
|
+
end
|
4031
|
+
|
4032
|
+
# UpdateFunctionEventInvokeConfig请求参数结构体
|
4033
|
+
class UpdateFunctionEventInvokeConfigRequest < TencentCloud::Common::AbstractModel
|
4034
|
+
# @param AsyncTriggerConfig: 异步重试配置信息
|
4035
|
+
# @type AsyncTriggerConfig: :class:`Tencentcloud::Scf.v20180416.models.AsyncTriggerConfig`
|
4036
|
+
# @param FunctionName: 函数名称
|
4037
|
+
# @type FunctionName: String
|
4038
|
+
# @param Namespace: 函数所属命名空间,默认为default
|
4039
|
+
# @type Namespace: String
|
4040
|
+
|
4041
|
+
attr_accessor :AsyncTriggerConfig, :FunctionName, :Namespace
|
4042
|
+
|
4043
|
+
def initialize(asynctriggerconfig=nil, functionname=nil, namespace=nil)
|
4044
|
+
@AsyncTriggerConfig = asynctriggerconfig
|
4045
|
+
@FunctionName = functionname
|
4046
|
+
@Namespace = namespace
|
4047
|
+
end
|
4048
|
+
|
4049
|
+
def deserialize(params)
|
4050
|
+
unless params['AsyncTriggerConfig'].nil?
|
4051
|
+
@AsyncTriggerConfig = AsyncTriggerConfig.new
|
4052
|
+
@AsyncTriggerConfig.deserialize(params['AsyncTriggerConfig'])
|
4053
|
+
end
|
4054
|
+
@FunctionName = params['FunctionName']
|
4055
|
+
@Namespace = params['Namespace']
|
4056
|
+
end
|
4057
|
+
end
|
4058
|
+
|
4059
|
+
# UpdateFunctionEventInvokeConfig返回参数结构体
|
4060
|
+
class UpdateFunctionEventInvokeConfigResponse < TencentCloud::Common::AbstractModel
|
4061
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4062
|
+
# @type RequestId: String
|
4063
|
+
|
4064
|
+
attr_accessor :RequestId
|
4065
|
+
|
4066
|
+
def initialize(requestid=nil)
|
4067
|
+
@RequestId = requestid
|
4068
|
+
end
|
4069
|
+
|
4070
|
+
def deserialize(params)
|
4071
|
+
@RequestId = params['RequestId']
|
4072
|
+
end
|
4073
|
+
end
|
4074
|
+
|
4075
|
+
# UpdateNamespace请求参数结构体
|
4076
|
+
class UpdateNamespaceRequest < TencentCloud::Common::AbstractModel
|
4077
|
+
# @param Namespace: 命名空间名称
|
4078
|
+
# @type Namespace: String
|
4079
|
+
# @param Description: 命名空间描述
|
4080
|
+
# @type Description: String
|
4081
|
+
|
4082
|
+
attr_accessor :Namespace, :Description
|
4083
|
+
|
4084
|
+
def initialize(namespace=nil, description=nil)
|
4085
|
+
@Namespace = namespace
|
4086
|
+
@Description = description
|
4087
|
+
end
|
4088
|
+
|
4089
|
+
def deserialize(params)
|
4090
|
+
@Namespace = params['Namespace']
|
4091
|
+
@Description = params['Description']
|
4092
|
+
end
|
4093
|
+
end
|
4094
|
+
|
4095
|
+
# UpdateNamespace返回参数结构体
|
4096
|
+
class UpdateNamespaceResponse < TencentCloud::Common::AbstractModel
|
4097
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4098
|
+
# @type RequestId: String
|
4099
|
+
|
4100
|
+
attr_accessor :RequestId
|
4101
|
+
|
4102
|
+
def initialize(requestid=nil)
|
4103
|
+
@RequestId = requestid
|
4104
|
+
end
|
4105
|
+
|
4106
|
+
def deserialize(params)
|
4107
|
+
@RequestId = params['RequestId']
|
4108
|
+
end
|
4109
|
+
end
|
4110
|
+
|
4111
|
+
# 已使用的信息
|
4112
|
+
class UsageInfo < TencentCloud::Common::AbstractModel
|
4113
|
+
# @param NamespacesCount: 命名空间个数
|
4114
|
+
# @type NamespacesCount: Integer
|
4115
|
+
# @param Namespace: 命名空间详情
|
4116
|
+
# @type Namespace: Array
|
4117
|
+
# @param TotalConcurrencyMem: 当前地域用户并发内存配额上限
|
4118
|
+
# @type TotalConcurrencyMem: Integer
|
4119
|
+
# @param TotalAllocatedConcurrencyMem: 当前地域用户已配置并发内存额度
|
4120
|
+
# @type TotalAllocatedConcurrencyMem: Integer
|
4121
|
+
# @param UserConcurrencyMemLimit: 用户实际配置的账号并发配额
|
4122
|
+
# @type UserConcurrencyMemLimit: Integer
|
4123
|
+
|
4124
|
+
attr_accessor :NamespacesCount, :Namespace, :TotalConcurrencyMem, :TotalAllocatedConcurrencyMem, :UserConcurrencyMemLimit
|
4125
|
+
|
4126
|
+
def initialize(namespacescount=nil, namespace=nil, totalconcurrencymem=nil, totalallocatedconcurrencymem=nil, userconcurrencymemlimit=nil)
|
4127
|
+
@NamespacesCount = namespacescount
|
4128
|
+
@Namespace = namespace
|
4129
|
+
@TotalConcurrencyMem = totalconcurrencymem
|
4130
|
+
@TotalAllocatedConcurrencyMem = totalallocatedconcurrencymem
|
4131
|
+
@UserConcurrencyMemLimit = userconcurrencymemlimit
|
4132
|
+
end
|
4133
|
+
|
4134
|
+
def deserialize(params)
|
4135
|
+
@NamespacesCount = params['NamespacesCount']
|
4136
|
+
unless params['Namespace'].nil?
|
4137
|
+
@Namespace = []
|
4138
|
+
params['Namespace'].each do |i|
|
4139
|
+
namespaceusage_tmp = NamespaceUsage.new
|
4140
|
+
namespaceusage_tmp.deserialize(i)
|
4141
|
+
@Namespace << namespaceusage_tmp
|
4142
|
+
end
|
4143
|
+
end
|
4144
|
+
@TotalConcurrencyMem = params['TotalConcurrencyMem']
|
4145
|
+
@TotalAllocatedConcurrencyMem = params['TotalAllocatedConcurrencyMem']
|
4146
|
+
@UserConcurrencyMemLimit = params['UserConcurrencyMemLimit']
|
4147
|
+
end
|
4148
|
+
end
|
4149
|
+
|
4150
|
+
# 变量参数
|
4151
|
+
class Variable < TencentCloud::Common::AbstractModel
|
4152
|
+
# @param Key: 变量的名称
|
4153
|
+
# @type Key: String
|
4154
|
+
# @param Value: 变量的值
|
4155
|
+
# @type Value: String
|
4156
|
+
|
4157
|
+
attr_accessor :Key, :Value
|
4158
|
+
|
4159
|
+
def initialize(key=nil, value=nil)
|
4160
|
+
@Key = key
|
4161
|
+
@Value = value
|
4162
|
+
end
|
4163
|
+
|
4164
|
+
def deserialize(params)
|
4165
|
+
@Key = params['Key']
|
4166
|
+
@Value = params['Value']
|
4167
|
+
end
|
4168
|
+
end
|
4169
|
+
|
4170
|
+
# 带有匹配规则的函数版本
|
4171
|
+
class VersionMatch < TencentCloud::Common::AbstractModel
|
4172
|
+
# @param Version: 函数版本名称
|
4173
|
+
# @type Version: String
|
4174
|
+
# @param Key: 匹配规则的key,调用时通过传key来匹配规则路由到指定版本
|
4175
|
+
# header方式:
|
4176
|
+
# key填写"invoke.headers.User",并在 invoke 调用函数时传参 RoutingKey:{"User":"value"}规则匹配调用
|
4177
|
+
# @type Key: String
|
4178
|
+
# @param Method: 匹配方式。取值范围:
|
4179
|
+
# range:范围匹配
|
4180
|
+
# exact:字符串精确匹配
|
4181
|
+
# @type Method: String
|
4182
|
+
# @param Expression: range 匹配规则要求:
|
4183
|
+
# 需要为开区间或闭区间描述 (a,b) [a,b],其中 a、b 均为整数
|
4184
|
+
# exact 匹配规则要求:
|
4185
|
+
# 字符串精确匹配
|
4186
|
+
# @type Expression: String
|
4187
|
+
|
4188
|
+
attr_accessor :Version, :Key, :Method, :Expression
|
4189
|
+
|
4190
|
+
def initialize(version=nil, key=nil, method=nil, expression=nil)
|
4191
|
+
@Version = version
|
4192
|
+
@Key = key
|
4193
|
+
@Method = method
|
4194
|
+
@Expression = expression
|
4195
|
+
end
|
4196
|
+
|
4197
|
+
def deserialize(params)
|
4198
|
+
@Version = params['Version']
|
4199
|
+
@Key = params['Key']
|
4200
|
+
@Method = params['Method']
|
4201
|
+
@Expression = params['Expression']
|
4202
|
+
end
|
4203
|
+
end
|
4204
|
+
|
4205
|
+
# 函数版本的预置并发信息,包括设置预置并发数、已完成预置的并发数和预置任务状态。
|
4206
|
+
class VersionProvisionedConcurrencyInfo < TencentCloud::Common::AbstractModel
|
4207
|
+
# @param AllocatedProvisionedConcurrencyNum: 设置的预置并发数。
|
4208
|
+
# @type AllocatedProvisionedConcurrencyNum: Integer
|
4209
|
+
# @param AvailableProvisionedConcurrencyNum: 当前已完成预置的并发数。
|
4210
|
+
# @type AvailableProvisionedConcurrencyNum: Integer
|
4211
|
+
# @param Status: 预置任务状态,Done表示已完成,InProgress表示进行中,Failed表示部分或全部失败。
|
4212
|
+
# @type Status: String
|
4213
|
+
# @param StatusReason: 对预置任务状态Status的说明。
|
4214
|
+
# @type StatusReason: String
|
4215
|
+
# @param Qualifier: 函数版本号
|
4216
|
+
# @type Qualifier: String
|
4217
|
+
# @param TriggerActions: 预置并发定时任务。
|
4218
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4219
|
+
# @type TriggerActions: Array
|
4220
|
+
|
4221
|
+
attr_accessor :AllocatedProvisionedConcurrencyNum, :AvailableProvisionedConcurrencyNum, :Status, :StatusReason, :Qualifier, :TriggerActions
|
4222
|
+
|
4223
|
+
def initialize(allocatedprovisionedconcurrencynum=nil, availableprovisionedconcurrencynum=nil, status=nil, statusreason=nil, qualifier=nil, triggeractions=nil)
|
4224
|
+
@AllocatedProvisionedConcurrencyNum = allocatedprovisionedconcurrencynum
|
4225
|
+
@AvailableProvisionedConcurrencyNum = availableprovisionedconcurrencynum
|
4226
|
+
@Status = status
|
4227
|
+
@StatusReason = statusreason
|
4228
|
+
@Qualifier = qualifier
|
4229
|
+
@TriggerActions = triggeractions
|
4230
|
+
end
|
4231
|
+
|
4232
|
+
def deserialize(params)
|
4233
|
+
@AllocatedProvisionedConcurrencyNum = params['AllocatedProvisionedConcurrencyNum']
|
4234
|
+
@AvailableProvisionedConcurrencyNum = params['AvailableProvisionedConcurrencyNum']
|
4235
|
+
@Status = params['Status']
|
4236
|
+
@StatusReason = params['StatusReason']
|
4237
|
+
@Qualifier = params['Qualifier']
|
4238
|
+
unless params['TriggerActions'].nil?
|
4239
|
+
@TriggerActions = []
|
4240
|
+
params['TriggerActions'].each do |i|
|
4241
|
+
triggeraction_tmp = TriggerAction.new
|
4242
|
+
triggeraction_tmp.deserialize(i)
|
4243
|
+
@TriggerActions << triggeraction_tmp
|
4244
|
+
end
|
4245
|
+
end
|
4246
|
+
end
|
4247
|
+
end
|
4248
|
+
|
4249
|
+
# 带有权重的函数版本
|
4250
|
+
class VersionWeight < TencentCloud::Common::AbstractModel
|
4251
|
+
# @param Version: 函数版本名称
|
4252
|
+
# @type Version: String
|
4253
|
+
# @param Weight: 该版本的权重
|
4254
|
+
# @type Weight: Float
|
4255
|
+
|
4256
|
+
attr_accessor :Version, :Weight
|
4257
|
+
|
4258
|
+
def initialize(version=nil, weight=nil)
|
4259
|
+
@Version = version
|
4260
|
+
@Weight = weight
|
4261
|
+
end
|
4262
|
+
|
4263
|
+
def deserialize(params)
|
4264
|
+
@Version = params['Version']
|
4265
|
+
@Weight = params['Weight']
|
4266
|
+
end
|
4267
|
+
end
|
4268
|
+
|
4269
|
+
# 私有网络参数配置
|
4270
|
+
class VpcConfig < TencentCloud::Common::AbstractModel
|
4271
|
+
# @param VpcId: 私有网络 的 Id
|
4272
|
+
# @type VpcId: String
|
4273
|
+
# @param SubnetId: 子网的 Id
|
4274
|
+
# @type SubnetId: String
|
4275
|
+
|
4276
|
+
attr_accessor :VpcId, :SubnetId
|
4277
|
+
|
4278
|
+
def initialize(vpcid=nil, subnetid=nil)
|
4279
|
+
@VpcId = vpcid
|
4280
|
+
@SubnetId = subnetid
|
4281
|
+
end
|
4282
|
+
|
4283
|
+
def deserialize(params)
|
4284
|
+
@VpcId = params['VpcId']
|
4285
|
+
@SubnetId = params['SubnetId']
|
4286
|
+
end
|
4287
|
+
end
|
4288
|
+
|
4289
|
+
# HTTP函数通过WebSockets协议访问时的参数
|
4290
|
+
class WSParams < TencentCloud::Common::AbstractModel
|
4291
|
+
# @param IdleTimeOut: 空闲超时时间, 单位秒,默认15s。可配置范围1~1800s。
|
4292
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4293
|
+
# @type IdleTimeOut: Integer
|
4294
|
+
|
4295
|
+
attr_accessor :IdleTimeOut
|
4296
|
+
|
4297
|
+
def initialize(idletimeout=nil)
|
4298
|
+
@IdleTimeOut = idletimeout
|
4299
|
+
end
|
4300
|
+
|
4301
|
+
def deserialize(params)
|
4302
|
+
@IdleTimeOut = params['IdleTimeOut']
|
4303
|
+
end
|
4304
|
+
end
|
4305
|
+
|
4306
|
+
end
|
4307
|
+
end
|
4308
|
+
end
|
4309
|
+
|