tencentcloud-sdk-scf 3.0.542 → 3.0.543
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180416/client.rb +24 -0
- data/lib/v20180416/models.rb +56 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb5f2dd987d72cdac19b12b2e07bc922d2ef4c1e
|
4
|
+
data.tar.gz: cc51ced187e7d3e33833b1a45a137c3edd2990e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad6d1a5aeee0154b2482bf262ae5b8fff70e0e0821eb4f2100d9479df5c83ca7ebdb12f83ea23b17d4d4d067540ed646a2951ca75a128bcd569980561199d67f
|
7
|
+
data.tar.gz: 276f0ef14405132de4dccf7940fbf0e38cdbd92448f56daa2a043e68d1207c28e0f2976b340f6440c217163f5853568e546db45d181d5d4cfddebc66f30fdd3f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.543
|
data/lib/v20180416/client.rb
CHANGED
@@ -1092,6 +1092,30 @@ module TencentCloud
|
|
1092
1092
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1093
1093
|
end
|
1094
1094
|
|
1095
|
+
# 更新触发器状态的值
|
1096
|
+
|
1097
|
+
# @param request: Request instance for UpdateTriggerStatus.
|
1098
|
+
# @type request: :class:`Tencentcloud::scf::V20180416::UpdateTriggerStatusRequest`
|
1099
|
+
# @rtype: :class:`Tencentcloud::scf::V20180416::UpdateTriggerStatusResponse`
|
1100
|
+
def UpdateTriggerStatus(request)
|
1101
|
+
body = send_request('UpdateTriggerStatus', request.serialize)
|
1102
|
+
response = JSON.parse(body)
|
1103
|
+
if response['Response'].key?('Error') == false
|
1104
|
+
model = UpdateTriggerStatusResponse.new
|
1105
|
+
model.deserialize(response['Response'])
|
1106
|
+
model
|
1107
|
+
else
|
1108
|
+
code = response['Response']['Error']['Code']
|
1109
|
+
message = response['Response']['Error']['Message']
|
1110
|
+
reqid = response['Response']['RequestId']
|
1111
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1112
|
+
end
|
1113
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1114
|
+
raise e
|
1115
|
+
rescue StandardError => e
|
1116
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1117
|
+
end
|
1118
|
+
|
1095
1119
|
|
1096
1120
|
end
|
1097
1121
|
end
|
data/lib/v20180416/models.rb
CHANGED
@@ -4394,6 +4394,62 @@ module TencentCloud
|
|
4394
4394
|
end
|
4395
4395
|
end
|
4396
4396
|
|
4397
|
+
# UpdateTriggerStatus请求参数结构体
|
4398
|
+
class UpdateTriggerStatusRequest < TencentCloud::Common::AbstractModel
|
4399
|
+
# @param Enable: 触发器的初始是能状态OPEN表示开启 CLOSE表示关闭
|
4400
|
+
# @type Enable: String
|
4401
|
+
# @param FunctionName: 函数名称
|
4402
|
+
# @type FunctionName: String
|
4403
|
+
# @param TriggerName: 触发器名称
|
4404
|
+
# @type TriggerName: String
|
4405
|
+
# @param Type: 触发器类型
|
4406
|
+
# @type Type: String
|
4407
|
+
# @param Qualifier: 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。
|
4408
|
+
# @type Qualifier: String
|
4409
|
+
# @param Namespace: 函数的命名空间
|
4410
|
+
# @type Namespace: String
|
4411
|
+
# @param TriggerDesc: 如果更新的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果更新的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段
|
4412
|
+
# @type TriggerDesc: String
|
4413
|
+
|
4414
|
+
attr_accessor :Enable, :FunctionName, :TriggerName, :Type, :Qualifier, :Namespace, :TriggerDesc
|
4415
|
+
|
4416
|
+
def initialize(enable=nil, functionname=nil, triggername=nil, type=nil, qualifier=nil, namespace=nil, triggerdesc=nil)
|
4417
|
+
@Enable = enable
|
4418
|
+
@FunctionName = functionname
|
4419
|
+
@TriggerName = triggername
|
4420
|
+
@Type = type
|
4421
|
+
@Qualifier = qualifier
|
4422
|
+
@Namespace = namespace
|
4423
|
+
@TriggerDesc = triggerdesc
|
4424
|
+
end
|
4425
|
+
|
4426
|
+
def deserialize(params)
|
4427
|
+
@Enable = params['Enable']
|
4428
|
+
@FunctionName = params['FunctionName']
|
4429
|
+
@TriggerName = params['TriggerName']
|
4430
|
+
@Type = params['Type']
|
4431
|
+
@Qualifier = params['Qualifier']
|
4432
|
+
@Namespace = params['Namespace']
|
4433
|
+
@TriggerDesc = params['TriggerDesc']
|
4434
|
+
end
|
4435
|
+
end
|
4436
|
+
|
4437
|
+
# UpdateTriggerStatus返回参数结构体
|
4438
|
+
class UpdateTriggerStatusResponse < TencentCloud::Common::AbstractModel
|
4439
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4440
|
+
# @type RequestId: String
|
4441
|
+
|
4442
|
+
attr_accessor :RequestId
|
4443
|
+
|
4444
|
+
def initialize(requestid=nil)
|
4445
|
+
@RequestId = requestid
|
4446
|
+
end
|
4447
|
+
|
4448
|
+
def deserialize(params)
|
4449
|
+
@RequestId = params['RequestId']
|
4450
|
+
end
|
4451
|
+
end
|
4452
|
+
|
4397
4453
|
# 已使用的信息
|
4398
4454
|
class UsageInfo < TencentCloud::Common::AbstractModel
|
4399
4455
|
# @param NamespacesCount: 命名空间个数
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-scf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.543
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|