tencentcloud-sdk-teo 3.0.1153 → 3.0.1156

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: a1964a55d177baaaf54c517ee72611f34849ff64
4
- data.tar.gz: 118e066f5b96b2fdac750e3d10aa90d9b8bb7ede
3
+ metadata.gz: c881fb746f4ed351be2e98aebb4ff0a281a9e5b5
4
+ data.tar.gz: a267631e6ebb7ac17101f5a713a623b367a6de58
5
5
  SHA512:
6
- metadata.gz: fccaf31f11c10d3c5023d848171f279b655d8fc2013adb94666941883fb6bc961d17dc65e9d2e7046839440f549654a0edfef2be576a8921d422b0d08a0b3f9f
7
- data.tar.gz: b10a9f31aad1cb7d3233a791d6e751c6f6b1b4f8f923327635eefdd731c83dcb78c001976e9ff6d78b92d28179d820808bb40b55a564b6d568661efc2b3b7aae
6
+ metadata.gz: 280b82630a6369dfcbc2afb3c03b1029127ed410a4adbda78cdaa99c370d847dc0c9d5cbc3c97d0aa494cc87d10dcd9d10a47d3fdd6b7da440c069d539596325
7
+ data.tar.gz: 734b19e4881e8a5657b0f675def22747cedac6a49ff1754af1af676bcb278cbede26e8ea4279d53353abb4e409daa0ea3e576214aa7a021f92386739b29421e3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1153
1
+ 3.0.1156
@@ -417,7 +417,7 @@ module TencentCloud
417
417
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
418
418
  end
419
419
 
420
- # 创建边缘函数的触发规则。
420
+ # 创建边缘函数的触发规则。支持通过自定义过滤条件来决定是否需要执行函数,当需要执行函数时,提供了多种选择目标函数的方式,包括:直接指定,基于客户端归属地区选择和基于权重选择。
421
421
 
422
422
  # @param request: Request instance for CreateFunctionRule.
423
423
  # @type request: :class:`Tencentcloud::teo::V20220901::CreateFunctionRuleRequest`
@@ -3897,7 +3897,7 @@ module TencentCloud
3897
3897
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3898
3898
  end
3899
3899
 
3900
- # 修改边缘函数触发规则,支持修改规则条件、执行函数以及描述信息。
3900
+ # 修改边缘函数触发规则,支持修改规则条件、执行函数以及描述信息。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。
3901
3901
 
3902
3902
  # @param request: Request instance for ModifyFunctionRule.
3903
3903
  # @type request: :class:`Tencentcloud::teo::V20220901::ModifyFunctionRuleRequest`
@@ -3657,17 +3657,30 @@ module TencentCloud
3657
3657
  # @type ZoneId: String
3658
3658
  # @param FunctionRuleConditions: 规则条件列表,相同触发规则的不同条件匹配项之间为或关系。
3659
3659
  # @type FunctionRuleConditions: Array
3660
- # @param FunctionId: 函数 ID,命中触发规则条件后执行的函数。
3660
+ # @param TriggerType: 函数选择配置类型:
3661
+ # <li> direct:直接指定执行函数;</li>
3662
+ # <li> weight:基于权重比选择函数;</li>
3663
+ # <li> region:基于客户端 IP 的国家/地区选择函数。</li>
3664
+ # 不填时默认为 direct 。
3665
+ # @type TriggerType: String
3666
+ # @param FunctionId: 指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。
3661
3667
  # @type FunctionId: String
3668
+ # @param RegionMappingSelections: 基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。
3669
+ # @type RegionMappingSelections: Array
3670
+ # @param WeightedSelections: 基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。
3671
+ # @type WeightedSelections: Array
3662
3672
  # @param Remark: 规则描述,最大支持 60 个字符。
3663
3673
  # @type Remark: String
3664
3674
 
3665
- attr_accessor :ZoneId, :FunctionRuleConditions, :FunctionId, :Remark
3675
+ attr_accessor :ZoneId, :FunctionRuleConditions, :TriggerType, :FunctionId, :RegionMappingSelections, :WeightedSelections, :Remark
3666
3676
 
3667
- def initialize(zoneid=nil, functionruleconditions=nil, functionid=nil, remark=nil)
3677
+ def initialize(zoneid=nil, functionruleconditions=nil, triggertype=nil, functionid=nil, regionmappingselections=nil, weightedselections=nil, remark=nil)
3668
3678
  @ZoneId = zoneid
3669
3679
  @FunctionRuleConditions = functionruleconditions
3680
+ @TriggerType = triggertype
3670
3681
  @FunctionId = functionid
3682
+ @RegionMappingSelections = regionmappingselections
3683
+ @WeightedSelections = weightedselections
3671
3684
  @Remark = remark
3672
3685
  end
3673
3686
 
@@ -3681,7 +3694,24 @@ module TencentCloud
3681
3694
  @FunctionRuleConditions << functionrulecondition_tmp
3682
3695
  end
3683
3696
  end
3697
+ @TriggerType = params['TriggerType']
3684
3698
  @FunctionId = params['FunctionId']
3699
+ unless params['RegionMappingSelections'].nil?
3700
+ @RegionMappingSelections = []
3701
+ params['RegionMappingSelections'].each do |i|
3702
+ functionregionselection_tmp = FunctionRegionSelection.new
3703
+ functionregionselection_tmp.deserialize(i)
3704
+ @RegionMappingSelections << functionregionselection_tmp
3705
+ end
3706
+ end
3707
+ unless params['WeightedSelections'].nil?
3708
+ @WeightedSelections = []
3709
+ params['WeightedSelections'].each do |i|
3710
+ functionweightedselection_tmp = FunctionWeightedSelection.new
3711
+ functionweightedselection_tmp.deserialize(i)
3712
+ @WeightedSelections << functionweightedselection_tmp
3713
+ end
3714
+ end
3685
3715
  @Remark = params['Remark']
3686
3716
  end
3687
3717
  end
@@ -12604,34 +12634,66 @@ module TencentCloud
12604
12634
  end
12605
12635
  end
12606
12636
 
12637
+ # 地区策略配置。
12638
+ class FunctionRegionSelection < TencentCloud::Common::AbstractModel
12639
+ # @param FunctionId: 函数 ID 。
12640
+ # @type FunctionId: String
12641
+ # @param Regions: 国家/地区列表。示例值:CN:中国,CN.GD:中国广东。取值请参考:[国家/地区及对应代码枚举](https://cloud.tencent.com/document/product/1552/112542)。
12642
+ # @type Regions: Array
12643
+
12644
+ attr_accessor :FunctionId, :Regions
12645
+
12646
+ def initialize(functionid=nil, regions=nil)
12647
+ @FunctionId = functionid
12648
+ @Regions = regions
12649
+ end
12650
+
12651
+ def deserialize(params)
12652
+ @FunctionId = params['FunctionId']
12653
+ @Regions = params['Regions']
12654
+ end
12655
+ end
12656
+
12607
12657
  # 边缘函数触发规则。
12608
12658
  class FunctionRule < TencentCloud::Common::AbstractModel
12609
12659
  # @param RuleId: 规则ID。
12610
12660
  # @type RuleId: String
12611
12661
  # @param FunctionRuleConditions: 规则条件列表,列表项之间为或关系。
12612
12662
  # @type FunctionRuleConditions: Array
12613
- # @param FunctionId: 函数 ID,命中触发规则条件后执行的函数。
12663
+ # @param TriggerType: 函数选择配置类型:
12664
+ # <li> direct:直接指定执行函数;</li>
12665
+ # <li> weight:基于权重比选择函数;</li>
12666
+ # <li> region:基于客户端 IP 的国家/地区选择函数。</li>
12667
+ # @type TriggerType: String
12668
+ # @param FunctionId: 指定执行的函数 ID。当 TriggerType 为 direct 时有效。
12614
12669
  # @type FunctionId: String
12615
- # @param Remark: 规则描述。
12616
- # @type Remark: String
12617
- # @param FunctionName: 函数名称。
12670
+ # @param FunctionName: 指定执行的函数名称。
12618
12671
  # @type FunctionName: String
12672
+ # @param RegionMappingSelections: 基于客户端 IP 国家/地区的函数选择配置。
12673
+ # @type RegionMappingSelections: Array
12674
+ # @param WeightedSelections: 基于权重的函数选择配置。
12675
+ # @type WeightedSelections: Array
12619
12676
  # @param Priority: 函数触发规则优先级,数值越大,优先级越高。
12620
12677
  # @type Priority: Integer
12678
+ # @param Remark: 规则描述。
12679
+ # @type Remark: String
12621
12680
  # @param CreateTime: 创建时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
12622
12681
  # @type CreateTime: String
12623
12682
  # @param UpdateTime: 更新时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
12624
12683
  # @type UpdateTime: String
12625
12684
 
12626
- attr_accessor :RuleId, :FunctionRuleConditions, :FunctionId, :Remark, :FunctionName, :Priority, :CreateTime, :UpdateTime
12685
+ attr_accessor :RuleId, :FunctionRuleConditions, :TriggerType, :FunctionId, :FunctionName, :RegionMappingSelections, :WeightedSelections, :Priority, :Remark, :CreateTime, :UpdateTime
12627
12686
 
12628
- def initialize(ruleid=nil, functionruleconditions=nil, functionid=nil, remark=nil, functionname=nil, priority=nil, createtime=nil, updatetime=nil)
12687
+ def initialize(ruleid=nil, functionruleconditions=nil, triggertype=nil, functionid=nil, functionname=nil, regionmappingselections=nil, weightedselections=nil, priority=nil, remark=nil, createtime=nil, updatetime=nil)
12629
12688
  @RuleId = ruleid
12630
12689
  @FunctionRuleConditions = functionruleconditions
12690
+ @TriggerType = triggertype
12631
12691
  @FunctionId = functionid
12632
- @Remark = remark
12633
12692
  @FunctionName = functionname
12693
+ @RegionMappingSelections = regionmappingselections
12694
+ @WeightedSelections = weightedselections
12634
12695
  @Priority = priority
12696
+ @Remark = remark
12635
12697
  @CreateTime = createtime
12636
12698
  @UpdateTime = updatetime
12637
12699
  end
@@ -12646,10 +12708,27 @@ module TencentCloud
12646
12708
  @FunctionRuleConditions << functionrulecondition_tmp
12647
12709
  end
12648
12710
  end
12711
+ @TriggerType = params['TriggerType']
12649
12712
  @FunctionId = params['FunctionId']
12650
- @Remark = params['Remark']
12651
12713
  @FunctionName = params['FunctionName']
12714
+ unless params['RegionMappingSelections'].nil?
12715
+ @RegionMappingSelections = []
12716
+ params['RegionMappingSelections'].each do |i|
12717
+ functionregionselection_tmp = FunctionRegionSelection.new
12718
+ functionregionselection_tmp.deserialize(i)
12719
+ @RegionMappingSelections << functionregionselection_tmp
12720
+ end
12721
+ end
12722
+ unless params['WeightedSelections'].nil?
12723
+ @WeightedSelections = []
12724
+ params['WeightedSelections'].each do |i|
12725
+ functionweightedselection_tmp = FunctionWeightedSelection.new
12726
+ functionweightedselection_tmp.deserialize(i)
12727
+ @WeightedSelections << functionweightedselection_tmp
12728
+ end
12729
+ end
12652
12730
  @Priority = params['Priority']
12731
+ @Remark = params['Remark']
12653
12732
  @CreateTime = params['CreateTime']
12654
12733
  @UpdateTime = params['UpdateTime']
12655
12734
  end
@@ -12678,6 +12757,28 @@ module TencentCloud
12678
12757
  end
12679
12758
  end
12680
12759
 
12760
+ # 权重策略配置。
12761
+ class FunctionWeightedSelection < TencentCloud::Common::AbstractModel
12762
+ # @param FunctionId: 函数 ID 。
12763
+ # @type FunctionId: String
12764
+ # @param Weight: 选中权重。取值范围0-100,所有的权重之和需要为100。
12765
+ # 选中概率计算方式为:
12766
+ # weight/100。例如设置了两个函数 A 和 B ,其中 A 的权重为30,那么 B 的权重必须为70,最终选中 A 的概率为30%,选中 B 的概率为70%。
12767
+ # @type Weight: Integer
12768
+
12769
+ attr_accessor :FunctionId, :Weight
12770
+
12771
+ def initialize(functionid=nil, weight=nil)
12772
+ @FunctionId = functionid
12773
+ @Weight = weight
12774
+ end
12775
+
12776
+ def deserialize(params)
12777
+ @FunctionId = params['FunctionId']
12778
+ @Weight = params['Weight']
12779
+ end
12780
+ end
12781
+
12681
12782
  # 多通道安全网关可用地域
12682
12783
  class GatewayRegion < TencentCloud::Common::AbstractModel
12683
12784
  # @param RegionId: 地域 ID 。
@@ -15237,22 +15338,35 @@ module TencentCloud
15237
15338
  class ModifyFunctionRuleRequest < TencentCloud::Common::AbstractModel
15238
15339
  # @param ZoneId: 站点 ID。
15239
15340
  # @type ZoneId: String
15240
- # @param RuleId: 规则 ID
15341
+ # @param RuleId: 规则 ID。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。
15241
15342
  # @type RuleId: String
15242
15343
  # @param FunctionRuleConditions: 规则条件列表,相同触发规则的不同条件匹配项之间为或关系,不填写保持原有配置。
15243
15344
  # @type FunctionRuleConditions: Array
15244
- # @param FunctionId: 函数 ID,命中触发规则条件后执行的函数,不填写保持原有配置。
15345
+ # @param TriggerType: 函数选择配置类型:
15346
+ # <li> direct:直接指定执行函数;</li>
15347
+ # <li> weight:基于权重比选择函数;</li>
15348
+ # <li> region:基于客户端 IP 的国家/地区选择函数。</li>
15349
+ # 不填时默认为 direct 。
15350
+ # @type TriggerType: String
15351
+ # @param FunctionId: 指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。
15245
15352
  # @type FunctionId: String
15353
+ # @param RegionMappingSelections: 基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。
15354
+ # @type RegionMappingSelections: Array
15355
+ # @param WeightedSelections: 基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。
15356
+ # @type WeightedSelections: Array
15246
15357
  # @param Remark: 规则描述,最大支持 60 个字符,不填写保持原有配置。
15247
15358
  # @type Remark: String
15248
15359
 
15249
- attr_accessor :ZoneId, :RuleId, :FunctionRuleConditions, :FunctionId, :Remark
15360
+ attr_accessor :ZoneId, :RuleId, :FunctionRuleConditions, :TriggerType, :FunctionId, :RegionMappingSelections, :WeightedSelections, :Remark
15250
15361
 
15251
- def initialize(zoneid=nil, ruleid=nil, functionruleconditions=nil, functionid=nil, remark=nil)
15362
+ def initialize(zoneid=nil, ruleid=nil, functionruleconditions=nil, triggertype=nil, functionid=nil, regionmappingselections=nil, weightedselections=nil, remark=nil)
15252
15363
  @ZoneId = zoneid
15253
15364
  @RuleId = ruleid
15254
15365
  @FunctionRuleConditions = functionruleconditions
15366
+ @TriggerType = triggertype
15255
15367
  @FunctionId = functionid
15368
+ @RegionMappingSelections = regionmappingselections
15369
+ @WeightedSelections = weightedselections
15256
15370
  @Remark = remark
15257
15371
  end
15258
15372
 
@@ -15267,7 +15381,24 @@ module TencentCloud
15267
15381
  @FunctionRuleConditions << functionrulecondition_tmp
15268
15382
  end
15269
15383
  end
15384
+ @TriggerType = params['TriggerType']
15270
15385
  @FunctionId = params['FunctionId']
15386
+ unless params['RegionMappingSelections'].nil?
15387
+ @RegionMappingSelections = []
15388
+ params['RegionMappingSelections'].each do |i|
15389
+ functionregionselection_tmp = FunctionRegionSelection.new
15390
+ functionregionselection_tmp.deserialize(i)
15391
+ @RegionMappingSelections << functionregionselection_tmp
15392
+ end
15393
+ end
15394
+ unless params['WeightedSelections'].nil?
15395
+ @WeightedSelections = []
15396
+ params['WeightedSelections'].each do |i|
15397
+ functionweightedselection_tmp = FunctionWeightedSelection.new
15398
+ functionweightedselection_tmp.deserialize(i)
15399
+ @WeightedSelections << functionweightedselection_tmp
15400
+ end
15401
+ end
15271
15402
  @Remark = params['Remark']
15272
15403
  end
15273
15404
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1153
4
+ version: 3.0.1156
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-15 00:00:00.000000000 Z
11
+ date: 2025-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common