tencentcloud-sdk-teo 3.0.1149 → 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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220901/client.rb +2 -2
- data/lib/v20220901/models.rb +212 -79
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c881fb746f4ed351be2e98aebb4ff0a281a9e5b5
|
|
4
|
+
data.tar.gz: a267631e6ebb7ac17101f5a713a623b367a6de58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 280b82630a6369dfcbc2afb3c03b1029127ed410a4adbda78cdaa99c370d847dc0c9d5cbc3c97d0aa494cc87d10dcd9d10a47d3fdd6b7da440c069d539596325
|
|
7
|
+
data.tar.gz: 734b19e4881e8a5657b0f675def22747cedac6a49ff1754af1af676bcb278cbede26e8ea4279d53353abb4e409daa0ea3e576214aa7a021f92386739b29421e3
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1156
|
data/lib/v20220901/client.rb
CHANGED
|
@@ -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`
|
data/lib/v20220901/models.rb
CHANGED
|
@@ -142,88 +142,90 @@ module TencentCloud
|
|
|
142
142
|
# <li>process:部署中;</li>
|
|
143
143
|
# <li>offline:已停用;</li>
|
|
144
144
|
# <li>forbidden:已封禁;</li>
|
|
145
|
-
# <li>init
|
|
145
|
+
# <li>init:未生效,待激活站点。</li>
|
|
146
146
|
# @type DomainStatus: String
|
|
147
|
+
# @param Cname: CNAME 地址。
|
|
148
|
+
# @type Cname: String
|
|
149
|
+
# @param IPv6Status: IPv6 状态,取值有:
|
|
150
|
+
# <li>follow:遵循站点IPv6配置;</li>
|
|
151
|
+
# <li>on:开启状态;</li>
|
|
152
|
+
# <li>off:关闭状态。</li>
|
|
153
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
154
|
+
# @type IPv6Status: String
|
|
155
|
+
# @param IdentificationStatus: 加速域名归属权验证状态,取值有:
|
|
156
|
+
# <li>pending:待验证;</li>
|
|
157
|
+
# <li>finished:已完成验证。</li>
|
|
158
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
159
|
+
# @type IdentificationStatus: String
|
|
160
|
+
# @param OwnershipVerification: 加速域名需进行归属权验证才能继续提供服务时,该对象会携带对应验证方式所需要的信息。
|
|
161
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
162
|
+
# @type OwnershipVerification: :class:`Tencentcloud::Teo.v20220901.models.OwnershipVerification`
|
|
147
163
|
# @param OriginDetail: 源站信息。
|
|
148
164
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
149
165
|
# @type OriginDetail: :class:`Tencentcloud::Teo.v20220901.models.OriginDetail`
|
|
150
166
|
# @param OriginProtocol: 回源协议,取值有:
|
|
151
|
-
# <li>FOLLOW
|
|
152
|
-
# <li>HTTP
|
|
153
|
-
# <li>HTTPS
|
|
167
|
+
# <li>FOLLOW:协议跟随;</li>
|
|
168
|
+
# <li>HTTP:HTTP协议回源;</li>
|
|
169
|
+
# <li>HTTPS:HTTPS协议回源。</li>
|
|
154
170
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
155
171
|
# @type OriginProtocol: String
|
|
156
|
-
# @param
|
|
157
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
158
|
-
# @type Certificate: :class:`Tencentcloud::Teo.v20220901.models.AccelerationDomainCertificate`
|
|
159
|
-
# @param HttpOriginPort: HTTP回源端口。
|
|
172
|
+
# @param HttpOriginPort: HTTP 回源端口。
|
|
160
173
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
161
174
|
# @type HttpOriginPort: Integer
|
|
162
|
-
# @param HttpsOriginPort: HTTPS回源端口。
|
|
175
|
+
# @param HttpsOriginPort: HTTPS 回源端口。
|
|
163
176
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
164
177
|
# @type HttpsOriginPort: Integer
|
|
165
|
-
# @param
|
|
166
|
-
# <li>follow:遵循站点IPv6配置;</li>
|
|
167
|
-
# <li>on:开启状态;</li>
|
|
168
|
-
# <li>off:关闭状态。</li>
|
|
178
|
+
# @param Certificate: 加速域名证书信息。
|
|
169
179
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
170
|
-
# @type
|
|
171
|
-
# @param Cname: CNAME 地址。
|
|
172
|
-
# @type Cname: String
|
|
173
|
-
# @param IdentificationStatus: 加速域名归属权验证状态,取值有: <li>pending:待验证;</li> <li>finished:已完成验证。</li>
|
|
174
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
175
|
-
# @type IdentificationStatus: String
|
|
180
|
+
# @type Certificate: :class:`Tencentcloud::Teo.v20220901.models.AccelerationDomainCertificate`
|
|
176
181
|
# @param CreatedOn: 创建时间。
|
|
177
182
|
# @type CreatedOn: String
|
|
178
183
|
# @param ModifiedOn: 修改时间。
|
|
179
184
|
# @type ModifiedOn: String
|
|
180
|
-
# @param OwnershipVerification: 当域名需要进行归属权验证才能继续提供服务时,该对象会携带对应验证方式所需要的信息。
|
|
181
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
182
|
-
# @type OwnershipVerification: :class:`Tencentcloud::Teo.v20220901.models.OwnershipVerification`
|
|
183
185
|
|
|
184
|
-
attr_accessor :ZoneId, :DomainName, :DomainStatus, :
|
|
186
|
+
attr_accessor :ZoneId, :DomainName, :DomainStatus, :Cname, :IPv6Status, :IdentificationStatus, :OwnershipVerification, :OriginDetail, :OriginProtocol, :HttpOriginPort, :HttpsOriginPort, :Certificate, :CreatedOn, :ModifiedOn
|
|
185
187
|
|
|
186
|
-
def initialize(zoneid=nil, domainname=nil, domainstatus=nil,
|
|
188
|
+
def initialize(zoneid=nil, domainname=nil, domainstatus=nil, cname=nil, ipv6status=nil, identificationstatus=nil, ownershipverification=nil, origindetail=nil, originprotocol=nil, httporiginport=nil, httpsoriginport=nil, certificate=nil, createdon=nil, modifiedon=nil)
|
|
187
189
|
@ZoneId = zoneid
|
|
188
190
|
@DomainName = domainname
|
|
189
191
|
@DomainStatus = domainstatus
|
|
192
|
+
@Cname = cname
|
|
193
|
+
@IPv6Status = ipv6status
|
|
194
|
+
@IdentificationStatus = identificationstatus
|
|
195
|
+
@OwnershipVerification = ownershipverification
|
|
190
196
|
@OriginDetail = origindetail
|
|
191
197
|
@OriginProtocol = originprotocol
|
|
192
|
-
@Certificate = certificate
|
|
193
198
|
@HttpOriginPort = httporiginport
|
|
194
199
|
@HttpsOriginPort = httpsoriginport
|
|
195
|
-
@
|
|
196
|
-
@Cname = cname
|
|
197
|
-
@IdentificationStatus = identificationstatus
|
|
200
|
+
@Certificate = certificate
|
|
198
201
|
@CreatedOn = createdon
|
|
199
202
|
@ModifiedOn = modifiedon
|
|
200
|
-
@OwnershipVerification = ownershipverification
|
|
201
203
|
end
|
|
202
204
|
|
|
203
205
|
def deserialize(params)
|
|
204
206
|
@ZoneId = params['ZoneId']
|
|
205
207
|
@DomainName = params['DomainName']
|
|
206
208
|
@DomainStatus = params['DomainStatus']
|
|
209
|
+
@Cname = params['Cname']
|
|
210
|
+
@IPv6Status = params['IPv6Status']
|
|
211
|
+
@IdentificationStatus = params['IdentificationStatus']
|
|
212
|
+
unless params['OwnershipVerification'].nil?
|
|
213
|
+
@OwnershipVerification = OwnershipVerification.new
|
|
214
|
+
@OwnershipVerification.deserialize(params['OwnershipVerification'])
|
|
215
|
+
end
|
|
207
216
|
unless params['OriginDetail'].nil?
|
|
208
217
|
@OriginDetail = OriginDetail.new
|
|
209
218
|
@OriginDetail.deserialize(params['OriginDetail'])
|
|
210
219
|
end
|
|
211
220
|
@OriginProtocol = params['OriginProtocol']
|
|
221
|
+
@HttpOriginPort = params['HttpOriginPort']
|
|
222
|
+
@HttpsOriginPort = params['HttpsOriginPort']
|
|
212
223
|
unless params['Certificate'].nil?
|
|
213
224
|
@Certificate = AccelerationDomainCertificate.new
|
|
214
225
|
@Certificate.deserialize(params['Certificate'])
|
|
215
226
|
end
|
|
216
|
-
@HttpOriginPort = params['HttpOriginPort']
|
|
217
|
-
@HttpsOriginPort = params['HttpsOriginPort']
|
|
218
|
-
@IPv6Status = params['IPv6Status']
|
|
219
|
-
@Cname = params['Cname']
|
|
220
|
-
@IdentificationStatus = params['IdentificationStatus']
|
|
221
227
|
@CreatedOn = params['CreatedOn']
|
|
222
228
|
@ModifiedOn = params['ModifiedOn']
|
|
223
|
-
unless params['OwnershipVerification'].nil?
|
|
224
|
-
@OwnershipVerification = OwnershipVerification.new
|
|
225
|
-
@OwnershipVerification.deserialize(params['OwnershipVerification'])
|
|
226
|
-
end
|
|
227
229
|
end
|
|
228
230
|
end
|
|
229
231
|
|
|
@@ -1884,8 +1886,8 @@ module TencentCloud
|
|
|
1884
1886
|
|
|
1885
1887
|
attr_accessor :Switch, :CacheTime, :IgnoreCacheControl
|
|
1886
1888
|
extend Gem::Deprecate
|
|
1887
|
-
deprecate :IgnoreCacheControl, :none, 2025,
|
|
1888
|
-
deprecate :IgnoreCacheControl=, :none, 2025,
|
|
1889
|
+
deprecate :IgnoreCacheControl, :none, 2025, 10
|
|
1890
|
+
deprecate :IgnoreCacheControl=, :none, 2025, 10
|
|
1889
1891
|
|
|
1890
1892
|
def initialize(switch=nil, cachetime=nil, ignorecachecontrol=nil)
|
|
1891
1893
|
@Switch = switch
|
|
@@ -3655,17 +3657,30 @@ module TencentCloud
|
|
|
3655
3657
|
# @type ZoneId: String
|
|
3656
3658
|
# @param FunctionRuleConditions: 规则条件列表,相同触发规则的不同条件匹配项之间为或关系。
|
|
3657
3659
|
# @type FunctionRuleConditions: Array
|
|
3658
|
-
# @param
|
|
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 不填时生效。
|
|
3659
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
|
|
3660
3672
|
# @param Remark: 规则描述,最大支持 60 个字符。
|
|
3661
3673
|
# @type Remark: String
|
|
3662
3674
|
|
|
3663
|
-
attr_accessor :ZoneId, :FunctionRuleConditions, :FunctionId, :Remark
|
|
3675
|
+
attr_accessor :ZoneId, :FunctionRuleConditions, :TriggerType, :FunctionId, :RegionMappingSelections, :WeightedSelections, :Remark
|
|
3664
3676
|
|
|
3665
|
-
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)
|
|
3666
3678
|
@ZoneId = zoneid
|
|
3667
3679
|
@FunctionRuleConditions = functionruleconditions
|
|
3680
|
+
@TriggerType = triggertype
|
|
3668
3681
|
@FunctionId = functionid
|
|
3682
|
+
@RegionMappingSelections = regionmappingselections
|
|
3683
|
+
@WeightedSelections = weightedselections
|
|
3669
3684
|
@Remark = remark
|
|
3670
3685
|
end
|
|
3671
3686
|
|
|
@@ -3679,7 +3694,24 @@ module TencentCloud
|
|
|
3679
3694
|
@FunctionRuleConditions << functionrulecondition_tmp
|
|
3680
3695
|
end
|
|
3681
3696
|
end
|
|
3697
|
+
@TriggerType = params['TriggerType']
|
|
3682
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
|
|
3683
3715
|
@Remark = params['Remark']
|
|
3684
3716
|
end
|
|
3685
3717
|
end
|
|
@@ -4374,8 +4406,8 @@ module TencentCloud
|
|
|
4374
4406
|
|
|
4375
4407
|
attr_accessor :ZoneId, :Targets, :EncodeUrl, :Headers, :PrefetchMediaSegments
|
|
4376
4408
|
extend Gem::Deprecate
|
|
4377
|
-
deprecate :EncodeUrl, :none, 2025,
|
|
4378
|
-
deprecate :EncodeUrl=, :none, 2025,
|
|
4409
|
+
deprecate :EncodeUrl, :none, 2025, 10
|
|
4410
|
+
deprecate :EncodeUrl=, :none, 2025, 10
|
|
4379
4411
|
|
|
4380
4412
|
def initialize(zoneid=nil, targets=nil, encodeurl=nil, headers=nil, prefetchmediasegments=nil)
|
|
4381
4413
|
@ZoneId = zoneid
|
|
@@ -4457,8 +4489,8 @@ module TencentCloud
|
|
|
4457
4489
|
|
|
4458
4490
|
attr_accessor :ZoneId, :Type, :Method, :Targets, :EncodeUrl, :CacheTag
|
|
4459
4491
|
extend Gem::Deprecate
|
|
4460
|
-
deprecate :EncodeUrl, :none, 2025,
|
|
4461
|
-
deprecate :EncodeUrl=, :none, 2025,
|
|
4492
|
+
deprecate :EncodeUrl, :none, 2025, 10
|
|
4493
|
+
deprecate :EncodeUrl=, :none, 2025, 10
|
|
4462
4494
|
|
|
4463
4495
|
def initialize(zoneid=nil, type=nil, method=nil, targets=nil, encodeurl=nil, cachetag=nil)
|
|
4464
4496
|
@ZoneId = zoneid
|
|
@@ -5067,10 +5099,10 @@ module TencentCloud
|
|
|
5067
5099
|
|
|
5068
5100
|
attr_accessor :Type, :ZoneName, :Area, :PlanId, :AliasZoneName, :Tags, :AllowDuplicates, :JumpStart
|
|
5069
5101
|
extend Gem::Deprecate
|
|
5070
|
-
deprecate :AllowDuplicates, :none, 2025,
|
|
5071
|
-
deprecate :AllowDuplicates=, :none, 2025,
|
|
5072
|
-
deprecate :JumpStart, :none, 2025,
|
|
5073
|
-
deprecate :JumpStart=, :none, 2025,
|
|
5102
|
+
deprecate :AllowDuplicates, :none, 2025, 10
|
|
5103
|
+
deprecate :AllowDuplicates=, :none, 2025, 10
|
|
5104
|
+
deprecate :JumpStart, :none, 2025, 10
|
|
5105
|
+
deprecate :JumpStart=, :none, 2025, 10
|
|
5074
5106
|
|
|
5075
5107
|
def initialize(type=nil, zonename=nil, area=nil, planid=nil, aliaszonename=nil, tags=nil, allowduplicates=nil, jumpstart=nil)
|
|
5076
5108
|
@Type = type
|
|
@@ -12602,34 +12634,66 @@ module TencentCloud
|
|
|
12602
12634
|
end
|
|
12603
12635
|
end
|
|
12604
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
|
+
|
|
12605
12657
|
# 边缘函数触发规则。
|
|
12606
12658
|
class FunctionRule < TencentCloud::Common::AbstractModel
|
|
12607
12659
|
# @param RuleId: 规则ID。
|
|
12608
12660
|
# @type RuleId: String
|
|
12609
12661
|
# @param FunctionRuleConditions: 规则条件列表,列表项之间为或关系。
|
|
12610
12662
|
# @type FunctionRuleConditions: Array
|
|
12611
|
-
# @param
|
|
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 时有效。
|
|
12612
12669
|
# @type FunctionId: String
|
|
12613
|
-
# @param
|
|
12614
|
-
# @type Remark: String
|
|
12615
|
-
# @param FunctionName: 函数名称。
|
|
12670
|
+
# @param FunctionName: 指定执行的函数名称。
|
|
12616
12671
|
# @type FunctionName: String
|
|
12672
|
+
# @param RegionMappingSelections: 基于客户端 IP 国家/地区的函数选择配置。
|
|
12673
|
+
# @type RegionMappingSelections: Array
|
|
12674
|
+
# @param WeightedSelections: 基于权重的函数选择配置。
|
|
12675
|
+
# @type WeightedSelections: Array
|
|
12617
12676
|
# @param Priority: 函数触发规则优先级,数值越大,优先级越高。
|
|
12618
12677
|
# @type Priority: Integer
|
|
12678
|
+
# @param Remark: 规则描述。
|
|
12679
|
+
# @type Remark: String
|
|
12619
12680
|
# @param CreateTime: 创建时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
|
|
12620
12681
|
# @type CreateTime: String
|
|
12621
12682
|
# @param UpdateTime: 更新时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
|
|
12622
12683
|
# @type UpdateTime: String
|
|
12623
12684
|
|
|
12624
|
-
attr_accessor :RuleId, :FunctionRuleConditions, :
|
|
12685
|
+
attr_accessor :RuleId, :FunctionRuleConditions, :TriggerType, :FunctionId, :FunctionName, :RegionMappingSelections, :WeightedSelections, :Priority, :Remark, :CreateTime, :UpdateTime
|
|
12625
12686
|
|
|
12626
|
-
def initialize(ruleid=nil, functionruleconditions=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)
|
|
12627
12688
|
@RuleId = ruleid
|
|
12628
12689
|
@FunctionRuleConditions = functionruleconditions
|
|
12690
|
+
@TriggerType = triggertype
|
|
12629
12691
|
@FunctionId = functionid
|
|
12630
|
-
@Remark = remark
|
|
12631
12692
|
@FunctionName = functionname
|
|
12693
|
+
@RegionMappingSelections = regionmappingselections
|
|
12694
|
+
@WeightedSelections = weightedselections
|
|
12632
12695
|
@Priority = priority
|
|
12696
|
+
@Remark = remark
|
|
12633
12697
|
@CreateTime = createtime
|
|
12634
12698
|
@UpdateTime = updatetime
|
|
12635
12699
|
end
|
|
@@ -12644,10 +12708,27 @@ module TencentCloud
|
|
|
12644
12708
|
@FunctionRuleConditions << functionrulecondition_tmp
|
|
12645
12709
|
end
|
|
12646
12710
|
end
|
|
12711
|
+
@TriggerType = params['TriggerType']
|
|
12647
12712
|
@FunctionId = params['FunctionId']
|
|
12648
|
-
@Remark = params['Remark']
|
|
12649
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
|
|
12650
12730
|
@Priority = params['Priority']
|
|
12731
|
+
@Remark = params['Remark']
|
|
12651
12732
|
@CreateTime = params['CreateTime']
|
|
12652
12733
|
@UpdateTime = params['UpdateTime']
|
|
12653
12734
|
end
|
|
@@ -12676,6 +12757,28 @@ module TencentCloud
|
|
|
12676
12757
|
end
|
|
12677
12758
|
end
|
|
12678
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
|
+
|
|
12679
12782
|
# 多通道安全网关可用地域
|
|
12680
12783
|
class GatewayRegion < TencentCloud::Common::AbstractModel
|
|
12681
12784
|
# @param RegionId: 地域 ID 。
|
|
@@ -15235,22 +15338,35 @@ module TencentCloud
|
|
|
15235
15338
|
class ModifyFunctionRuleRequest < TencentCloud::Common::AbstractModel
|
|
15236
15339
|
# @param ZoneId: 站点 ID。
|
|
15237
15340
|
# @type ZoneId: String
|
|
15238
|
-
# @param RuleId: 规则 ID
|
|
15341
|
+
# @param RuleId: 规则 ID。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。
|
|
15239
15342
|
# @type RuleId: String
|
|
15240
15343
|
# @param FunctionRuleConditions: 规则条件列表,相同触发规则的不同条件匹配项之间为或关系,不填写保持原有配置。
|
|
15241
15344
|
# @type FunctionRuleConditions: Array
|
|
15242
|
-
# @param
|
|
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 不填时生效。
|
|
15243
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
|
|
15244
15357
|
# @param Remark: 规则描述,最大支持 60 个字符,不填写保持原有配置。
|
|
15245
15358
|
# @type Remark: String
|
|
15246
15359
|
|
|
15247
|
-
attr_accessor :ZoneId, :RuleId, :FunctionRuleConditions, :FunctionId, :Remark
|
|
15360
|
+
attr_accessor :ZoneId, :RuleId, :FunctionRuleConditions, :TriggerType, :FunctionId, :RegionMappingSelections, :WeightedSelections, :Remark
|
|
15248
15361
|
|
|
15249
|
-
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)
|
|
15250
15363
|
@ZoneId = zoneid
|
|
15251
15364
|
@RuleId = ruleid
|
|
15252
15365
|
@FunctionRuleConditions = functionruleconditions
|
|
15366
|
+
@TriggerType = triggertype
|
|
15253
15367
|
@FunctionId = functionid
|
|
15368
|
+
@RegionMappingSelections = regionmappingselections
|
|
15369
|
+
@WeightedSelections = weightedselections
|
|
15254
15370
|
@Remark = remark
|
|
15255
15371
|
end
|
|
15256
15372
|
|
|
@@ -15265,7 +15381,24 @@ module TencentCloud
|
|
|
15265
15381
|
@FunctionRuleConditions << functionrulecondition_tmp
|
|
15266
15382
|
end
|
|
15267
15383
|
end
|
|
15384
|
+
@TriggerType = params['TriggerType']
|
|
15268
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
|
|
15269
15402
|
@Remark = params['Remark']
|
|
15270
15403
|
end
|
|
15271
15404
|
end
|
|
@@ -15312,8 +15445,8 @@ module TencentCloud
|
|
|
15312
15445
|
|
|
15313
15446
|
attr_accessor :ZoneId, :Hosts, :Mode, :ServerCertInfo, :ApplyType, :ClientCertInfo, :UpstreamCertInfo
|
|
15314
15447
|
extend Gem::Deprecate
|
|
15315
|
-
deprecate :ApplyType, :none, 2025,
|
|
15316
|
-
deprecate :ApplyType=, :none, 2025,
|
|
15448
|
+
deprecate :ApplyType, :none, 2025, 10
|
|
15449
|
+
deprecate :ApplyType=, :none, 2025, 10
|
|
15317
15450
|
|
|
15318
15451
|
def initialize(zoneid=nil, hosts=nil, mode=nil, servercertinfo=nil, applytype=nil, clientcertinfo=nil, upstreamcertinfo=nil)
|
|
15319
15452
|
@ZoneId = zoneid
|
|
@@ -17500,12 +17633,12 @@ module TencentCloud
|
|
|
17500
17633
|
|
|
17501
17634
|
attr_accessor :OriginType, :Origin, :BackupOrigin, :OriginGroupName, :BackOriginGroupName, :PrivateAccess, :PrivateParameters, :HostHeader, :VodeoSubAppId, :VodeoDistributionRange, :VodeoBucketId, :VodOriginScope, :VodBucketId
|
|
17502
17635
|
extend Gem::Deprecate
|
|
17503
|
-
deprecate :VodeoSubAppId, :none, 2025,
|
|
17504
|
-
deprecate :VodeoSubAppId=, :none, 2025,
|
|
17505
|
-
deprecate :VodeoDistributionRange, :none, 2025,
|
|
17506
|
-
deprecate :VodeoDistributionRange=, :none, 2025,
|
|
17507
|
-
deprecate :VodeoBucketId, :none, 2025,
|
|
17508
|
-
deprecate :VodeoBucketId=, :none, 2025,
|
|
17636
|
+
deprecate :VodeoSubAppId, :none, 2025, 10
|
|
17637
|
+
deprecate :VodeoSubAppId=, :none, 2025, 10
|
|
17638
|
+
deprecate :VodeoDistributionRange, :none, 2025, 10
|
|
17639
|
+
deprecate :VodeoDistributionRange=, :none, 2025, 10
|
|
17640
|
+
deprecate :VodeoBucketId, :none, 2025, 10
|
|
17641
|
+
deprecate :VodeoBucketId=, :none, 2025, 10
|
|
17509
17642
|
|
|
17510
17643
|
def initialize(origintype=nil, origin=nil, backuporigin=nil, origingroupname=nil, backorigingroupname=nil, privateaccess=nil, privateparameters=nil, hostheader=nil, vodeosubappid=nil, vodeodistributionrange=nil, vodeobucketid=nil, vodoriginscope=nil, vodbucketid=nil)
|
|
17511
17644
|
@OriginType = origintype
|
|
@@ -17810,12 +17943,12 @@ module TencentCloud
|
|
|
17810
17943
|
|
|
17811
17944
|
attr_accessor :OriginType, :Origin, :BackupOrigin, :PrivateAccess, :PrivateParameters, :HostHeader, :VodeoSubAppId, :VodeoDistributionRange, :VodeoBucketId, :VodOriginScope, :VodBucketId
|
|
17812
17945
|
extend Gem::Deprecate
|
|
17813
|
-
deprecate :VodeoSubAppId, :none, 2025,
|
|
17814
|
-
deprecate :VodeoSubAppId=, :none, 2025,
|
|
17815
|
-
deprecate :VodeoDistributionRange, :none, 2025,
|
|
17816
|
-
deprecate :VodeoDistributionRange=, :none, 2025,
|
|
17817
|
-
deprecate :VodeoBucketId, :none, 2025,
|
|
17818
|
-
deprecate :VodeoBucketId=, :none, 2025,
|
|
17946
|
+
deprecate :VodeoSubAppId, :none, 2025, 10
|
|
17947
|
+
deprecate :VodeoSubAppId=, :none, 2025, 10
|
|
17948
|
+
deprecate :VodeoDistributionRange, :none, 2025, 10
|
|
17949
|
+
deprecate :VodeoDistributionRange=, :none, 2025, 10
|
|
17950
|
+
deprecate :VodeoBucketId, :none, 2025, 10
|
|
17951
|
+
deprecate :VodeoBucketId=, :none, 2025, 10
|
|
17819
17952
|
|
|
17820
17953
|
def initialize(origintype=nil, origin=nil, backuporigin=nil, privateaccess=nil, privateparameters=nil, hostheader=nil, vodeosubappid=nil, vodeodistributionrange=nil, vodeobucketid=nil, vodoriginscope=nil, vodbucketid=nil)
|
|
17821
17954
|
@OriginType = origintype
|
|
@@ -19504,8 +19637,8 @@ module TencentCloud
|
|
|
19504
19637
|
|
|
19505
19638
|
attr_accessor :Operator, :Target, :Values, :IgnoreCase, :Name, :IgnoreNameCase
|
|
19506
19639
|
extend Gem::Deprecate
|
|
19507
|
-
deprecate :IgnoreNameCase, :none, 2025,
|
|
19508
|
-
deprecate :IgnoreNameCase=, :none, 2025,
|
|
19640
|
+
deprecate :IgnoreNameCase, :none, 2025, 10
|
|
19641
|
+
deprecate :IgnoreNameCase=, :none, 2025, 10
|
|
19509
19642
|
|
|
19510
19643
|
def initialize(operator=nil, target=nil, values=nil, ignorecase=nil, name=nil, ignorenamecase=nil)
|
|
19511
19644
|
@Operator = operator
|
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.
|
|
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-
|
|
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
|
|
@@ -33,11 +33,11 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/
|
|
36
|
+
- lib/tencentcloud-sdk-teo.rb
|
|
37
37
|
- lib/v20220901/models.rb
|
|
38
|
-
- lib/
|
|
38
|
+
- lib/v20220901/client.rb
|
|
39
39
|
- lib/v20220106/models.rb
|
|
40
|
-
- lib/
|
|
40
|
+
- lib/v20220106/client.rb
|
|
41
41
|
- lib/VERSION
|
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
43
43
|
licenses:
|