tencentcloud-sdk-scf 3.0.639 → 3.0.641

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82ba7add1c4528d7578ef356ece2388fe698efac
4
- data.tar.gz: ca8bcc42b7dc44db6a03c111cd45af7a03cc58d4
3
+ metadata.gz: 31b1056ff286abcf3b905ec634ea394eea8bf2d4
4
+ data.tar.gz: 7c5640cacde5251544ebb50342c42200ca0479ec
5
5
  SHA512:
6
- metadata.gz: af87423c4d173fc109a3aded2e79a789dd893ad11808425b1ccc11772a1a872b3d1e85242dcc870c5e4686c47b2c71e5ca9f4109baa87d5c6429f08df9c856d5
7
- data.tar.gz: 89e545b58ce33d5f32ce88f7987f3b7d365eaa0cf41feab40cb2339bab2a3557637b9a5cab34a08b59b3ffeb026b79c43a43698218ae9fe99696ebff19d5988d
6
+ metadata.gz: b2e51e0d2820726c0e7e46597d114fc2c67e1fb1f24f2cd0565058f0ba7a8dc8e6597eca58e06698a21dcaa2eff4d3afff07e8e5685fea95e3dbc4a12c3f61b7
7
+ data.tar.gz: 8a90d1c2ef75c8007301fee0c197903745c32963ddd3358964bc1c6762298e93dd55e115287608d73b384ccc15636f26b6cd59526321bf8e250c19dc15ac523e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.639
1
+ 3.0.641
@@ -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.639
4
+ version: 3.0.641
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-18 00:00:00.000000000 Z
11
+ date: 2023-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common