tencentcloud-sdk-scf 3.0.640 → 3.0.642

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b098e4ebf1f9b2b77ee44f734fc55cf7563027c
4
- data.tar.gz: 49621b6378532136ed5dd8e8f9219a1aef8a2a2b
3
+ metadata.gz: 5757acc468202d8d847a97ede6383a27390529e8
4
+ data.tar.gz: 44f0778783ba51e438bb598d1b1ee67bf9a3d142
5
5
  SHA512:
6
- metadata.gz: 0fba42a0f49d3a95df896e8345b9c0653e973b398b6d9c2cfc8756bdd1e74465f14dc1a4667193e72fa712b161b280ad6fac96f0a45c9d52208fe6f8afbf53c9
7
- data.tar.gz: 9e123cbb48cff42666d06513ff789604ceeb003751d18724bbfed3ac254b274be481243f5c7cbaaa9066f8cfd7c72e7393bc269034e5d42ba0e2c6e145fd11cc
6
+ metadata.gz: 9aa48525bc97f654986609c56fb5d8a8ce99e210a6fda25e6fcd593cd19d356d6c279e861081e9378c34445bfcbf3dec718002cc88c6046493ae3877f418efbd
7
+ data.tar.gz: 0be628138561b9622fe32fe1f1b65adcc9d5e48930e934af9364a6963d43ad69ba63cf75e71934c0960b6efedab663f96f7a66b9e3ebf1174033fe0afb64d9d1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.640
1
+ 3.0.642
@@ -1092,6 +1092,45 @@ module TencentCloud
1092
1092
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1093
1093
  end
1094
1094
 
1095
+ # 支持触发器配置更新。
1096
+ # 默认接口请求频率限制:20次/秒
1097
+
1098
+ # 注意:目前只支持timer触发器和ckafka触发器更新!
1099
+
1100
+ # timer触发器和ckafka触发器支持更新字段有:Enable、TriggerDesc、Description、CustomArgument。
1101
+
1102
+ # timer触发器TriggerDesc支持5段式和7段式的更新。
1103
+
1104
+ # ckafka触发器TriggerDesc支持Retry、MaxMsgNum、TimeOut参数更新,不传值表示原值不变,传值不能为空。
1105
+
1106
+ # Enable 触发器开启或关闭,传参为OPEN为开启,CLOSE为关闭。不传值表示原值不变,传值不能为空。
1107
+
1108
+ # Description 触发器描述,不传值保持原值不变,传值为空则为空。
1109
+
1110
+ # CustomArgument 触发器用户附加信息(注意:只有timer触发器展示),不传值保持原值不变,传值为空则为空。
1111
+
1112
+ # @param request: Request instance for UpdateTrigger.
1113
+ # @type request: :class:`Tencentcloud::scf::V20180416::UpdateTriggerRequest`
1114
+ # @rtype: :class:`Tencentcloud::scf::V20180416::UpdateTriggerResponse`
1115
+ def UpdateTrigger(request)
1116
+ body = send_request('UpdateTrigger', request.serialize)
1117
+ response = JSON.parse(body)
1118
+ if response['Response'].key?('Error') == false
1119
+ model = UpdateTriggerResponse.new
1120
+ model.deserialize(response['Response'])
1121
+ model
1122
+ else
1123
+ code = response['Response']['Error']['Code']
1124
+ message = response['Response']['Error']['Message']
1125
+ reqid = response['Response']['RequestId']
1126
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1127
+ end
1128
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1129
+ raise e
1130
+ rescue StandardError => e
1131
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1132
+ end
1133
+
1095
1134
  # 更新触发器状态的值
1096
1135
 
1097
1136
  # @param request: Request instance for UpdateTriggerStatus.
@@ -4588,6 +4588,70 @@ module TencentCloud
4588
4588
  end
4589
4589
  end
4590
4590
 
4591
+ # UpdateTrigger请求参数结构体
4592
+ class UpdateTriggerRequest < TencentCloud::Common::AbstractModel
4593
+ # @param FunctionName: 函数名称
4594
+ # @type FunctionName: String
4595
+ # @param TriggerName: 触发器名称
4596
+ # @type TriggerName: String
4597
+ # @param Type: 触发器类型
4598
+ # @type Type: String
4599
+ # @param Enable: 触发器开启或关闭,传参为OPEN为开启,CLOSE为关闭
4600
+ # @type Enable: String
4601
+ # @param Qualifier: 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。
4602
+ # @type Qualifier: String
4603
+ # @param Namespace: 函数的命名空间
4604
+ # @type Namespace: String
4605
+ # @param TriggerDesc: TriggerDesc参数
4606
+ # @type TriggerDesc: String
4607
+ # @param Description: 触发器描述
4608
+ # @type Description: String
4609
+ # @param CustomArgument: 用户附加信息
4610
+ # @type CustomArgument: String
4611
+
4612
+ attr_accessor :FunctionName, :TriggerName, :Type, :Enable, :Qualifier, :Namespace, :TriggerDesc, :Description, :CustomArgument
4613
+
4614
+ def initialize(functionname=nil, triggername=nil, type=nil, enable=nil, qualifier=nil, namespace=nil, triggerdesc=nil, description=nil, customargument=nil)
4615
+ @FunctionName = functionname
4616
+ @TriggerName = triggername
4617
+ @Type = type
4618
+ @Enable = enable
4619
+ @Qualifier = qualifier
4620
+ @Namespace = namespace
4621
+ @TriggerDesc = triggerdesc
4622
+ @Description = description
4623
+ @CustomArgument = customargument
4624
+ end
4625
+
4626
+ def deserialize(params)
4627
+ @FunctionName = params['FunctionName']
4628
+ @TriggerName = params['TriggerName']
4629
+ @Type = params['Type']
4630
+ @Enable = params['Enable']
4631
+ @Qualifier = params['Qualifier']
4632
+ @Namespace = params['Namespace']
4633
+ @TriggerDesc = params['TriggerDesc']
4634
+ @Description = params['Description']
4635
+ @CustomArgument = params['CustomArgument']
4636
+ end
4637
+ end
4638
+
4639
+ # UpdateTrigger返回参数结构体
4640
+ class UpdateTriggerResponse < TencentCloud::Common::AbstractModel
4641
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4642
+ # @type RequestId: String
4643
+
4644
+ attr_accessor :RequestId
4645
+
4646
+ def initialize(requestid=nil)
4647
+ @RequestId = requestid
4648
+ end
4649
+
4650
+ def deserialize(params)
4651
+ @RequestId = params['RequestId']
4652
+ end
4653
+ end
4654
+
4591
4655
  # UpdateTriggerStatus请求参数结构体
4592
4656
  class UpdateTriggerStatusRequest < TencentCloud::Common::AbstractModel
4593
4657
  # @param Enable: 触发器的初始是能状态OPEN表示开启 CLOSE表示关闭
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.640
4
+ version: 3.0.642
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-08-21 00:00:00.000000000 Z
11
+ date: 2023-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20180416/models.rb
37
36
  - lib/v20180416/client.rb
37
+ - lib/v20180416/models.rb
38
38
  - lib/tencentcloud-sdk-scf.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby