tencentcloud-sdk-teo 3.0.683 → 3.0.685

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: 240e651cbb0aa4305b6a12c455bb536544db000f
4
- data.tar.gz: e4079575ba8c2f9520f59ea0c791c35176a6b875
3
+ metadata.gz: 187638bde48ce7455ede29bda324d9aba4badf25
4
+ data.tar.gz: dc1ceb9f38535c4d213791a3638f4244556eef7d
5
5
  SHA512:
6
- metadata.gz: a35e69db44b0d42181a5ec5c9082cf755c8a8984dd94f0951acdd42ef415fe032851e985a6a7cf50619e0aefdef9dcf121f48f43c71a3f7323948406fe25a2a7
7
- data.tar.gz: d3151079348b6ff6cd2251c4b06b194a3509d00554b129a63d9477e1491ff55648160a5be8e7472ca22dd1495d89d2ae21a97399c374637eb7d2896b6472b27f
6
+ metadata.gz: 09048dee0096b41bcf718ccc629c9b4148bb2af37c9107e853b798731fedc03347d6650bf603ab2ca57df27bf4a6e76d57a11b902cda544575f628a6fa4ad4d2
7
+ data.tar.gz: f84cd92c97efec3d5d5c398786c4a2f8839ed74588c0a2c33d800cc81eeba1e9f418d5dfaf90e4c038d54075c405b181a1ca9e6f529fc1f33659ec21a9ccd01f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.683
1
+ 3.0.685
@@ -175,6 +175,30 @@ module TencentCloud
175
175
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
176
176
  end
177
177
 
178
+ # 创建源站组
179
+
180
+ # @param request: Request instance for CreateOriginGroup.
181
+ # @type request: :class:`Tencentcloud::teo::V20220901::CreateOriginGroupRequest`
182
+ # @rtype: :class:`Tencentcloud::teo::V20220901::CreateOriginGroupResponse`
183
+ def CreateOriginGroup(request)
184
+ body = send_request('CreateOriginGroup', request.serialize)
185
+ response = JSON.parse(body)
186
+ if response['Response'].key?('Error') == false
187
+ model = CreateOriginGroupResponse.new
188
+ model.deserialize(response['Response'])
189
+ model
190
+ else
191
+ code = response['Response']['Error']['Code']
192
+ message = response['Response']['Error']['Message']
193
+ reqid = response['Response']['RequestId']
194
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
195
+ end
196
+ rescue TencentCloud::Common::TencentCloudSDKException => e
197
+ raise e
198
+ rescue StandardError => e
199
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
200
+ end
201
+
178
202
  # 为未购买套餐的站点购买套餐
179
203
 
180
204
  # @param request: Request instance for CreatePlanForZone.
@@ -443,6 +467,30 @@ module TencentCloud
443
467
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
444
468
  end
445
469
 
470
+ # 删除源站组,若源站组仍然被服务(例如:四层代理,域名服务,负载均衡,规则引起)引用,将不允许删除。
471
+
472
+ # @param request: Request instance for DeleteOriginGroup.
473
+ # @type request: :class:`Tencentcloud::teo::V20220901::DeleteOriginGroupRequest`
474
+ # @rtype: :class:`Tencentcloud::teo::V20220901::DeleteOriginGroupResponse`
475
+ def DeleteOriginGroup(request)
476
+ body = send_request('DeleteOriginGroup', request.serialize)
477
+ response = JSON.parse(body)
478
+ if response['Response'].key?('Error') == false
479
+ model = DeleteOriginGroupResponse.new
480
+ model.deserialize(response['Response'])
481
+ model
482
+ else
483
+ code = response['Response']['Error']['Code']
484
+ message = response['Response']['Error']['Message']
485
+ reqid = response['Response']['RequestId']
486
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
487
+ end
488
+ rescue TencentCloud::Common::TencentCloudSDKException => e
489
+ raise e
490
+ rescue StandardError => e
491
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
492
+ end
493
+
446
494
  # 批量删除规则引擎规则。
447
495
 
448
496
  # @param request: Request instance for DeleteRules.
@@ -1405,6 +1453,30 @@ module TencentCloud
1405
1453
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1406
1454
  end
1407
1455
 
1456
+ # 修改源站组
1457
+
1458
+ # @param request: Request instance for ModifyOriginGroup.
1459
+ # @type request: :class:`Tencentcloud::teo::V20220901::ModifyOriginGroupRequest`
1460
+ # @rtype: :class:`Tencentcloud::teo::V20220901::ModifyOriginGroupResponse`
1461
+ def ModifyOriginGroup(request)
1462
+ body = send_request('ModifyOriginGroup', request.serialize)
1463
+ response = JSON.parse(body)
1464
+ if response['Response'].key?('Error') == false
1465
+ model = ModifyOriginGroupResponse.new
1466
+ model.deserialize(response['Response'])
1467
+ model
1468
+ else
1469
+ code = response['Response']['Error']['Code']
1470
+ message = response['Response']['Error']['Message']
1471
+ reqid = response['Response']['RequestId']
1472
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1473
+ end
1474
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1475
+ raise e
1476
+ rescue StandardError => e
1477
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1478
+ end
1479
+
1408
1480
  # 修改规则引擎规则。
1409
1481
 
1410
1482
  # @param request: Request instance for ModifyRule.
@@ -69,6 +69,24 @@ module TencentCloud
69
69
  # @param OriginDetail: 源站信息。
70
70
  # 注意:此字段可能返回 null,表示取不到有效值。
71
71
  # @type OriginDetail: :class:`Tencentcloud::Teo.v20220901.models.OriginDetail`
72
+ # @param OriginProtocol: 回源协议,取值有:
73
+ # <li>FOLLOW: 协议跟随;</li>
74
+ # <li>HTTP: HTTP协议回源;</li>
75
+ # <li>HTTPS: HTTPS协议回源。</li>
76
+ # 注意:此字段可能返回 null,表示取不到有效值。
77
+ # @type OriginProtocol: String
78
+ # @param HttpOriginPort: HTTP回源端口。
79
+ # 注意:此字段可能返回 null,表示取不到有效值。
80
+ # @type HttpOriginPort: Integer
81
+ # @param HttpsOriginPort: HTTPS回源端口。
82
+ # 注意:此字段可能返回 null,表示取不到有效值。
83
+ # @type HttpsOriginPort: Integer
84
+ # @param IPv6Status: IPv6状态,取值有:
85
+ # <li>follow:遵循站点IPv6配置;</li>
86
+ # <li>on:开启状态;</li>
87
+ # <li>off:关闭状态。</li>
88
+ # 注意:此字段可能返回 null,表示取不到有效值。
89
+ # @type IPv6Status: String
72
90
  # @param Cname: CNAME 地址。
73
91
  # @type Cname: String
74
92
  # @param IdentificationStatus: 加速域名归属权验证状态,取值有: <li>pending:待验证;</li> <li>finished:已完成验证。</li>
@@ -85,13 +103,17 @@ module TencentCloud
85
103
  # 注意:此字段可能返回 null,表示取不到有效值。
86
104
  # @type Certificate: :class:`Tencentcloud::Teo.v20220901.models.AccelerationDomainCertificate`
87
105
 
88
- attr_accessor :ZoneId, :DomainName, :DomainStatus, :OriginDetail, :Cname, :IdentificationStatus, :CreatedOn, :ModifiedOn, :OwnershipVerification, :Certificate
106
+ attr_accessor :ZoneId, :DomainName, :DomainStatus, :OriginDetail, :OriginProtocol, :HttpOriginPort, :HttpsOriginPort, :IPv6Status, :Cname, :IdentificationStatus, :CreatedOn, :ModifiedOn, :OwnershipVerification, :Certificate
89
107
 
90
- def initialize(zoneid=nil, domainname=nil, domainstatus=nil, origindetail=nil, cname=nil, identificationstatus=nil, createdon=nil, modifiedon=nil, ownershipverification=nil, certificate=nil)
108
+ def initialize(zoneid=nil, domainname=nil, domainstatus=nil, origindetail=nil, originprotocol=nil, httporiginport=nil, httpsoriginport=nil, ipv6status=nil, cname=nil, identificationstatus=nil, createdon=nil, modifiedon=nil, ownershipverification=nil, certificate=nil)
91
109
  @ZoneId = zoneid
92
110
  @DomainName = domainname
93
111
  @DomainStatus = domainstatus
94
112
  @OriginDetail = origindetail
113
+ @OriginProtocol = originprotocol
114
+ @HttpOriginPort = httporiginport
115
+ @HttpsOriginPort = httpsoriginport
116
+ @IPv6Status = ipv6status
95
117
  @Cname = cname
96
118
  @IdentificationStatus = identificationstatus
97
119
  @CreatedOn = createdon
@@ -108,6 +130,10 @@ module TencentCloud
108
130
  @OriginDetail = OriginDetail.new
109
131
  @OriginDetail.deserialize(params['OriginDetail'])
110
132
  end
133
+ @OriginProtocol = params['OriginProtocol']
134
+ @HttpOriginPort = params['HttpOriginPort']
135
+ @HttpsOriginPort = params['HttpsOriginPort']
136
+ @IPv6Status = params['IPv6Status']
111
137
  @Cname = params['Cname']
112
138
  @IdentificationStatus = params['IdentificationStatus']
113
139
  @CreatedOn = params['CreatedOn']
@@ -1625,13 +1651,33 @@ module TencentCloud
1625
1651
  # @type DomainName: String
1626
1652
  # @param OriginInfo: 源站信息。
1627
1653
  # @type OriginInfo: :class:`Tencentcloud::Teo.v20220901.models.OriginInfo`
1628
-
1629
- attr_accessor :ZoneId, :DomainName, :OriginInfo
1630
-
1631
- def initialize(zoneid=nil, domainname=nil, origininfo=nil)
1654
+ # @param OriginProtocol: 回源协议,取值有:
1655
+ # <li>FOLLOW: 协议跟随;</li>
1656
+ # <li>HTTP: HTTP协议回源;</li>
1657
+ # <li>HTTPS: HTTPS协议回源。</li>
1658
+ # <li>不填默认为: FOLLOW。</li>
1659
+ # @type OriginProtocol: String
1660
+ # @param HttpOriginPort: HTTP回源端口,取值为1-65535,当OriginProtocol=FOLLOW/HTTP时生效, 不填默认为80。
1661
+ # @type HttpOriginPort: Integer
1662
+ # @param HttpsOriginPort: HTTPS回源端口,取值为1-65535,当OriginProtocol=FOLLOW/HTTPS时生效,不填默认为443。
1663
+ # @type HttpsOriginPort: Integer
1664
+ # @param IPv6Status: IPv6状态,取值有:
1665
+ # <li>follow:遵循站点IPv6配置;</li>
1666
+ # <li>on:开启状态;</li>
1667
+ # <li>off:关闭状态。</li>
1668
+ # <li>不填默认为:follow。</li>
1669
+ # @type IPv6Status: String
1670
+
1671
+ attr_accessor :ZoneId, :DomainName, :OriginInfo, :OriginProtocol, :HttpOriginPort, :HttpsOriginPort, :IPv6Status
1672
+
1673
+ def initialize(zoneid=nil, domainname=nil, origininfo=nil, originprotocol=nil, httporiginport=nil, httpsoriginport=nil, ipv6status=nil)
1632
1674
  @ZoneId = zoneid
1633
1675
  @DomainName = domainname
1634
1676
  @OriginInfo = origininfo
1677
+ @OriginProtocol = originprotocol
1678
+ @HttpOriginPort = httporiginport
1679
+ @HttpsOriginPort = httpsoriginport
1680
+ @IPv6Status = ipv6status
1635
1681
  end
1636
1682
 
1637
1683
  def deserialize(params)
@@ -1641,6 +1687,10 @@ module TencentCloud
1641
1687
  @OriginInfo = OriginInfo.new
1642
1688
  @OriginInfo.deserialize(params['OriginInfo'])
1643
1689
  end
1690
+ @OriginProtocol = params['OriginProtocol']
1691
+ @HttpOriginPort = params['HttpOriginPort']
1692
+ @HttpsOriginPort = params['HttpsOriginPort']
1693
+ @IPv6Status = params['IPv6Status']
1644
1694
  end
1645
1695
  end
1646
1696
 
@@ -1907,6 +1957,63 @@ module TencentCloud
1907
1957
  end
1908
1958
  end
1909
1959
 
1960
+ # CreateOriginGroup请求参数结构体
1961
+ class CreateOriginGroupRequest < TencentCloud::Common::AbstractModel
1962
+ # @param ZoneId: 站点ID。
1963
+ # @type ZoneId: String
1964
+ # @param Name: 源站组名称,可输入1-200个字符,允许的字符为 a-z, A-Z, 0-9, _, - 。
1965
+ # @type Name: String
1966
+ # @param Type: 源站组类型,此参数必填,取值有:
1967
+ # <li>GENERAL:通用型源站组,仅支持添加 IP/域名 源站,可以被域名服务、规则引擎、四层代理、通用型负载均衡引用;</li>
1968
+ # <li>HTTP: HTTP专用型源站组,支持添加 IP/域名、对象存储源站,无法被四层代理引用。</li>
1969
+ # @type Type: String
1970
+ # @param Records: 源站记录信息,此参数必填。
1971
+ # @type Records: Array
1972
+
1973
+ attr_accessor :ZoneId, :Name, :Type, :Records
1974
+
1975
+ def initialize(zoneid=nil, name=nil, type=nil, records=nil)
1976
+ @ZoneId = zoneid
1977
+ @Name = name
1978
+ @Type = type
1979
+ @Records = records
1980
+ end
1981
+
1982
+ def deserialize(params)
1983
+ @ZoneId = params['ZoneId']
1984
+ @Name = params['Name']
1985
+ @Type = params['Type']
1986
+ unless params['Records'].nil?
1987
+ @Records = []
1988
+ params['Records'].each do |i|
1989
+ originrecord_tmp = OriginRecord.new
1990
+ originrecord_tmp.deserialize(i)
1991
+ @Records << originrecord_tmp
1992
+ end
1993
+ end
1994
+ end
1995
+ end
1996
+
1997
+ # CreateOriginGroup返回参数结构体
1998
+ class CreateOriginGroupResponse < TencentCloud::Common::AbstractModel
1999
+ # @param OriginGroupId: 源站组ID。
2000
+ # @type OriginGroupId: String
2001
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2002
+ # @type RequestId: String
2003
+
2004
+ attr_accessor :OriginGroupId, :RequestId
2005
+
2006
+ def initialize(origingroupid=nil, requestid=nil)
2007
+ @OriginGroupId = origingroupid
2008
+ @RequestId = requestid
2009
+ end
2010
+
2011
+ def deserialize(params)
2012
+ @OriginGroupId = params['OriginGroupId']
2013
+ @RequestId = params['RequestId']
2014
+ end
2015
+ end
2016
+
1910
2017
  # CreatePlanForZone请求参数结构体
1911
2018
  class CreatePlanForZoneRequest < TencentCloud::Common::AbstractModel
1912
2019
  # @param ZoneId: 站点ID。
@@ -2214,8 +2321,10 @@ module TencentCloud
2214
2321
  # @param ZoneId: 共享 CNAME 所属站点的 ID。
2215
2322
  # @type ZoneId: String
2216
2323
  # @param SharedCNAMEPrefix: 共享 CNAME 前缀。请输入合法的域名前缀,例如"test-api"、"test-api.com",限制输入 50 个字符。
2217
- # 共享 CNAME 完整格式为:<自定义前缀>+<zoneid中的12位随机字符串>+"share.eo.dnse[0-5].com"。例如前缀传入 example.com,EO 会为您创建共享 CNAME:example.com.sai2ig51kaa5.eo.dns2.com
2218
- # 示例值:example.com
2324
+
2325
+ # 共享 CNAME 完整格式为:<自定义前缀>+<zoneid中的12位随机字符串>+"share.eo.dnse[0-5].com"。
2326
+
2327
+ # 例如前缀传入 example.com,EO 会为您创建共享 CNAME:example.com.sai2ig51kaa5.share.eo.dnse2.com
2219
2328
  # @type SharedCNAMEPrefix: String
2220
2329
  # @param Description: 描述。可输入 1-50 个任意字符。
2221
2330
  # @type Description: String
@@ -2686,6 +2795,42 @@ module TencentCloud
2686
2795
  end
2687
2796
  end
2688
2797
 
2798
+ # DeleteOriginGroup请求参数结构体
2799
+ class DeleteOriginGroupRequest < TencentCloud::Common::AbstractModel
2800
+ # @param ZoneId: 站点ID。
2801
+ # @type ZoneId: String
2802
+ # @param GroupId: 源站组ID,此参数必填。
2803
+ # @type GroupId: String
2804
+
2805
+ attr_accessor :ZoneId, :GroupId
2806
+
2807
+ def initialize(zoneid=nil, groupid=nil)
2808
+ @ZoneId = zoneid
2809
+ @GroupId = groupid
2810
+ end
2811
+
2812
+ def deserialize(params)
2813
+ @ZoneId = params['ZoneId']
2814
+ @GroupId = params['GroupId']
2815
+ end
2816
+ end
2817
+
2818
+ # DeleteOriginGroup返回参数结构体
2819
+ class DeleteOriginGroupResponse < TencentCloud::Common::AbstractModel
2820
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2821
+ # @type RequestId: String
2822
+
2823
+ attr_accessor :RequestId
2824
+
2825
+ def initialize(requestid=nil)
2826
+ @RequestId = requestid
2827
+ end
2828
+
2829
+ def deserialize(params)
2830
+ @RequestId = params['RequestId']
2831
+ end
2832
+ end
2833
+
2689
2834
  # DeleteRules请求参数结构体
2690
2835
  class DeleteRulesRequest < TencentCloud::Common::AbstractModel
2691
2836
  # @param ZoneId: 站点 ID。
@@ -3571,23 +3716,27 @@ module TencentCloud
3571
3716
 
3572
3717
  # DescribeOriginGroup请求参数结构体
3573
3718
  class DescribeOriginGroupRequest < TencentCloud::Common::AbstractModel
3574
- # @param Offset: 分页查询偏移量,默认为0。
3719
+ # @param ZoneId: 站点ID,此参数必填。
3720
+ # @type ZoneId: String
3721
+ # @param Offset: 分页查询偏移量,不填默认为0。
3575
3722
  # @type Offset: Integer
3576
- # @param Limit: 分页查询限制数目,默认为10,取值:1-1000。
3723
+ # @param Limit: 分页查询限制数目,不填默认为20,取值:1-1000。
3577
3724
  # @type Limit: Integer
3578
3725
  # @param Filters: 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:
3579
- # <li>zone-id<br>   按照【<strong>站点ID</strong>】进行过滤。站点ID形如:zone-20hzkd4rdmy0<br>   类型:String<br>   必选:否<br>   模糊查询:不支持</li><li>origin-group-id<br>   按照【<strong>源站组ID</strong>】进行过滤。源站组ID形如:origin-2ccgtb24-7dc5-46s2-9r3e-95825d53dwe3a<br>   类型:String<br>   必选:否<br>   模糊查询:不支持</li><li>origin-group-name<br>   按照【<strong>源站组名称</strong>】进行过滤<br>   类型:String<br>   必选:否<br>   模糊查询:支持。使用模糊查询时,仅支持填写一个源站组名称</li>
3726
+ # <li>origin-group-id<br>   按照【<strong>源站组ID</strong>】进行过滤。源站组ID形如:origin-2ccgtb24-7dc5-46s2-9r3e-95825d53dwe3a<br>   模糊查询:不支持</li><li>origin-group-name<br>   按照【<strong>源站组名称</strong>】进行过滤<br>   模糊查询:支持。使用模糊查询时,仅支持填写一个源站组名称</li>
3580
3727
  # @type Filters: Array
3581
3728
 
3582
- attr_accessor :Offset, :Limit, :Filters
3729
+ attr_accessor :ZoneId, :Offset, :Limit, :Filters
3583
3730
 
3584
- def initialize(offset=nil, limit=nil, filters=nil)
3731
+ def initialize(zoneid=nil, offset=nil, limit=nil, filters=nil)
3732
+ @ZoneId = zoneid
3585
3733
  @Offset = offset
3586
3734
  @Limit = limit
3587
3735
  @Filters = filters
3588
3736
  end
3589
3737
 
3590
3738
  def deserialize(params)
3739
+ @ZoneId = params['ZoneId']
3591
3740
  @Offset = params['Offset']
3592
3741
  @Limit = params['Limit']
3593
3742
  unless params['Filters'].nil?
@@ -6086,13 +6235,33 @@ module TencentCloud
6086
6235
  # @type DomainName: String
6087
6236
  # @param OriginInfo: 源站信息。
6088
6237
  # @type OriginInfo: :class:`Tencentcloud::Teo.v20220901.models.OriginInfo`
6089
-
6090
- attr_accessor :ZoneId, :DomainName, :OriginInfo
6091
-
6092
- def initialize(zoneid=nil, domainname=nil, origininfo=nil)
6238
+ # @param OriginProtocol: 回源协议,取值有:
6239
+ # <li>FOLLOW: 协议跟随;</li>
6240
+ # <li>HTTP: HTTP协议回源;</li>
6241
+ # <li>HTTPS: HTTPS协议回源。</li>
6242
+ # <li>不填保持原有配置。</li>
6243
+ # @type OriginProtocol: String
6244
+ # @param HttpOriginPort: HTTP回源端口,取值为1-65535,当OriginProtocol=FOLLOW/HTTP时生效, 不填保持原有配置。
6245
+ # @type HttpOriginPort: Integer
6246
+ # @param HttpsOriginPort: HTTPS回源端口,取值为1-65535,当OriginProtocol=FOLLOW/HTTPS时生效,不填保持原有配置。
6247
+ # @type HttpsOriginPort: Integer
6248
+ # @param IPv6Status: IPv6状态,取值有:
6249
+ # <li>follow:遵循站点IPv6配置;</li>
6250
+ # <li>on:开启状态;</li>
6251
+ # <li>off:关闭状态。</li>
6252
+ # <li>不填保持原有配置。</li>
6253
+ # @type IPv6Status: String
6254
+
6255
+ attr_accessor :ZoneId, :DomainName, :OriginInfo, :OriginProtocol, :HttpOriginPort, :HttpsOriginPort, :IPv6Status
6256
+
6257
+ def initialize(zoneid=nil, domainname=nil, origininfo=nil, originprotocol=nil, httporiginport=nil, httpsoriginport=nil, ipv6status=nil)
6093
6258
  @ZoneId = zoneid
6094
6259
  @DomainName = domainname
6095
6260
  @OriginInfo = origininfo
6261
+ @OriginProtocol = originprotocol
6262
+ @HttpOriginPort = httporiginport
6263
+ @HttpsOriginPort = httpsoriginport
6264
+ @IPv6Status = ipv6status
6096
6265
  end
6097
6266
 
6098
6267
  def deserialize(params)
@@ -6102,6 +6271,10 @@ module TencentCloud
6102
6271
  @OriginInfo = OriginInfo.new
6103
6272
  @OriginInfo.deserialize(params['OriginInfo'])
6104
6273
  end
6274
+ @OriginProtocol = params['OriginProtocol']
6275
+ @HttpOriginPort = params['HttpOriginPort']
6276
+ @HttpsOriginPort = params['HttpsOriginPort']
6277
+ @IPv6Status = params['IPv6Status']
6105
6278
  end
6106
6279
  end
6107
6280
 
@@ -6574,6 +6747,63 @@ module TencentCloud
6574
6747
  end
6575
6748
  end
6576
6749
 
6750
+ # ModifyOriginGroup请求参数结构体
6751
+ class ModifyOriginGroupRequest < TencentCloud::Common::AbstractModel
6752
+ # @param ZoneId: 站点ID。
6753
+ # @type ZoneId: String
6754
+ # @param GroupId: 源站组ID,此参数必填。
6755
+ # @type GroupId: String
6756
+ # @param Name: 源站组名称,不填保持原有配置,可输入1-200个字符,允许的字符为 a-z, A-Z, 0-9, _, - 。
6757
+ # @type Name: String
6758
+ # @param Type: 源站组类型,取值有:
6759
+ # <li>GENERAL:通用型源站组,仅支持添加 IP/域名 源站,可以被域名服务、规则引擎、四层代理、通用型负载均衡引用;</li>
6760
+ # <li>HTTP: HTTP专用型源站组,支持添加 IP/域名、对象存储源站,无法被四层代理引用。</li>不填保持原有配置。
6761
+ # @type Type: String
6762
+ # @param Records: 源站记录信息,不填保持原有配置。
6763
+ # @type Records: Array
6764
+
6765
+ attr_accessor :ZoneId, :GroupId, :Name, :Type, :Records
6766
+
6767
+ def initialize(zoneid=nil, groupid=nil, name=nil, type=nil, records=nil)
6768
+ @ZoneId = zoneid
6769
+ @GroupId = groupid
6770
+ @Name = name
6771
+ @Type = type
6772
+ @Records = records
6773
+ end
6774
+
6775
+ def deserialize(params)
6776
+ @ZoneId = params['ZoneId']
6777
+ @GroupId = params['GroupId']
6778
+ @Name = params['Name']
6779
+ @Type = params['Type']
6780
+ unless params['Records'].nil?
6781
+ @Records = []
6782
+ params['Records'].each do |i|
6783
+ originrecord_tmp = OriginRecord.new
6784
+ originrecord_tmp.deserialize(i)
6785
+ @Records << originrecord_tmp
6786
+ end
6787
+ end
6788
+ end
6789
+ end
6790
+
6791
+ # ModifyOriginGroup返回参数结构体
6792
+ class ModifyOriginGroupResponse < TencentCloud::Common::AbstractModel
6793
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6794
+ # @type RequestId: String
6795
+
6796
+ attr_accessor :RequestId
6797
+
6798
+ def initialize(requestid=nil)
6799
+ @RequestId = requestid
6800
+ end
6801
+
6802
+ def deserialize(params)
6803
+ @RequestId = params['RequestId']
6804
+ end
6805
+ end
6806
+
6577
6807
  # ModifyRule请求参数结构体
6578
6808
  class ModifyRuleRequest < TencentCloud::Common::AbstractModel
6579
6809
  # @param ZoneId: 站点 ID。
@@ -7194,63 +7424,85 @@ module TencentCloud
7194
7424
 
7195
7425
  # 源站组信息
7196
7426
  class OriginGroup < TencentCloud::Common::AbstractModel
7197
- # @param ZoneId: 站点ID。
7198
- # @type ZoneId: String
7199
- # @param ZoneName: 站点名称。
7200
- # @type ZoneName: String
7201
- # @param OriginGroupId: 源站组ID。
7202
- # @type OriginGroupId: String
7203
- # @param OriginType: 源站类型,取值有:
7204
- # <li>self:自有源站;</li>
7205
- # <li>third_party:第三方源站;</li>
7206
- # <li>cos:腾讯云COS源站。</li>
7207
- # @type OriginType: String
7208
- # @param OriginGroupName: 源站组名称。
7209
- # @type OriginGroupName: String
7210
- # @param ConfigurationType: 源站配置类型,当OriginType=self时,取值有:
7211
- # <li>area:按区域配置;</li>
7212
- # <li>weight: 按权重配置。</li>
7213
- # <li>proto: 按HTTP协议配置。</li>当OriginType=third_party/cos时放空。
7214
- # @type ConfigurationType: String
7215
- # @param OriginRecords: 源站记录信息。
7216
- # @type OriginRecords: Array
7427
+ # @param GroupId: 源站组ID。
7428
+ # @type GroupId: String
7429
+ # @param Name: 源站组名称。
7430
+ # @type Name: String
7431
+ # @param Type: 源站组类型,取值有:
7432
+ # <li>GENERAL:通用型源站组;</li>
7433
+ # <li>HTTP: HTTP专用型源站组。</li>
7434
+ # @type Type: String
7435
+ # @param Records: 源站记录信息。
7436
+ # @type Records: Array
7437
+ # @param References: 源站组被引用实例列表。
7438
+ # @type References: Array
7439
+ # @param CreateTime: 源站组创建时间。
7440
+ # @type CreateTime: String
7217
7441
  # @param UpdateTime: 源站组更新时间。
7218
7442
  # @type UpdateTime: String
7219
- # @param HostHeader: 当OriginType=self时,表示回源Host。
7220
- # 注意:此字段可能返回 null,表示取不到有效值。
7221
- # @type HostHeader: String
7222
7443
 
7223
- attr_accessor :ZoneId, :ZoneName, :OriginGroupId, :OriginType, :OriginGroupName, :ConfigurationType, :OriginRecords, :UpdateTime, :HostHeader
7444
+ attr_accessor :GroupId, :Name, :Type, :Records, :References, :CreateTime, :UpdateTime
7224
7445
 
7225
- def initialize(zoneid=nil, zonename=nil, origingroupid=nil, origintype=nil, origingroupname=nil, configurationtype=nil, originrecords=nil, updatetime=nil, hostheader=nil)
7226
- @ZoneId = zoneid
7227
- @ZoneName = zonename
7228
- @OriginGroupId = origingroupid
7229
- @OriginType = origintype
7230
- @OriginGroupName = origingroupname
7231
- @ConfigurationType = configurationtype
7232
- @OriginRecords = originrecords
7446
+ def initialize(groupid=nil, name=nil, type=nil, records=nil, references=nil, createtime=nil, updatetime=nil)
7447
+ @GroupId = groupid
7448
+ @Name = name
7449
+ @Type = type
7450
+ @Records = records
7451
+ @References = references
7452
+ @CreateTime = createtime
7233
7453
  @UpdateTime = updatetime
7234
- @HostHeader = hostheader
7235
7454
  end
7236
7455
 
7237
7456
  def deserialize(params)
7238
- @ZoneId = params['ZoneId']
7239
- @ZoneName = params['ZoneName']
7240
- @OriginGroupId = params['OriginGroupId']
7241
- @OriginType = params['OriginType']
7242
- @OriginGroupName = params['OriginGroupName']
7243
- @ConfigurationType = params['ConfigurationType']
7244
- unless params['OriginRecords'].nil?
7245
- @OriginRecords = []
7246
- params['OriginRecords'].each do |i|
7457
+ @GroupId = params['GroupId']
7458
+ @Name = params['Name']
7459
+ @Type = params['Type']
7460
+ unless params['Records'].nil?
7461
+ @Records = []
7462
+ params['Records'].each do |i|
7247
7463
  originrecord_tmp = OriginRecord.new
7248
7464
  originrecord_tmp.deserialize(i)
7249
- @OriginRecords << originrecord_tmp
7465
+ @Records << originrecord_tmp
7250
7466
  end
7251
7467
  end
7468
+ unless params['References'].nil?
7469
+ @References = []
7470
+ params['References'].each do |i|
7471
+ origingroupreference_tmp = OriginGroupReference.new
7472
+ origingroupreference_tmp.deserialize(i)
7473
+ @References << origingroupreference_tmp
7474
+ end
7475
+ end
7476
+ @CreateTime = params['CreateTime']
7252
7477
  @UpdateTime = params['UpdateTime']
7253
- @HostHeader = params['HostHeader']
7478
+ end
7479
+ end
7480
+
7481
+ # 源站组引用服务。
7482
+ class OriginGroupReference < TencentCloud::Common::AbstractModel
7483
+ # @param InstanceType: 引用服务类型,取值有:
7484
+ # <li>AccelerationDomain: 加速域名;</li>
7485
+ # <li>RuleEngine: 规则引擎;</li>
7486
+ # <li>Loadbalance: 负载均衡;</li>
7487
+ # <li>ApplicationProxy: 四层代理。</li>
7488
+ # @type InstanceType: String
7489
+ # @param InstanceId: 引用类型的实例ID。
7490
+ # @type InstanceId: String
7491
+ # @param InstanceName: 应用类型的实例名称。
7492
+ # @type InstanceName: String
7493
+
7494
+ attr_accessor :InstanceType, :InstanceId, :InstanceName
7495
+
7496
+ def initialize(instancetype=nil, instanceid=nil, instancename=nil)
7497
+ @InstanceType = instancetype
7498
+ @InstanceId = instanceid
7499
+ @InstanceName = instancename
7500
+ end
7501
+
7502
+ def deserialize(params)
7503
+ @InstanceType = params['InstanceType']
7504
+ @InstanceId = params['InstanceId']
7505
+ @InstanceName = params['InstanceName']
7254
7506
  end
7255
7507
  end
7256
7508
 
@@ -7364,56 +7616,39 @@ module TencentCloud
7364
7616
  class OriginRecord < TencentCloud::Common::AbstractModel
7365
7617
  # @param Record: 源站记录值,不包含端口信息,可以为:IPv4,IPv6,域名格式。
7366
7618
  # @type Record: String
7619
+ # @param Type: 源站类型,取值有:
7620
+ # <li>IP_DOMAIN:IPV4、IPV6、域名类型源站;</li>
7621
+ # <li>COS:COS源。</li>
7622
+ # <li>AWS_S3:AWS S3对象存储源站。</li>
7623
+ # @type Type: String
7367
7624
  # @param RecordId: 源站记录ID。
7368
7625
  # @type RecordId: String
7369
- # @param Port: 源站端口,取值范围:[1-65535]。
7370
- # @type Port: Integer
7371
- # @param Weight: 当源站配置类型ConfigurationType=weight时,表示权重。
7372
- # 不配置权重信息时,所有源站组记录统一填写为0或者不填写,表示多个源站轮询回源。
7373
- # 配置权重信息时,取值为[1-100],多个源站权重总和应为100,表示多个源站按照权重回源。
7374
- # 当源站配置类型ConfigurationType=proto时,表示权重。
7375
- # 不配置权重信息时,所有源站组记录统一填写为0或者不填写,表示多个源站轮询回源。
7376
- # 配置权重信息时,取值为[1-100],源站组内Proto相同的多个源站权重总和应为100,表示多个源站按照权重回源。
7626
+ # @param Weight: 源站权重,取值为0-100, 不填表示不设置权重,由系统自由调度,填0表示权重为0, 流量将不会调度到此源站。
7627
+ # 注意:此字段可能返回 null,表示取不到有效值。
7377
7628
  # @type Weight: Integer
7378
- # @param Proto: 当源站配置类型ConfigurationType=proto时,表示源站的协议类型,将按照客户端请求协议回到相应的源站,取值有:
7379
- # <li>http:HTTP协议源站;</li>
7380
- # <li>https:HTTPS协议源站。</li>
7381
- # @type Proto: String
7382
- # @param Area: 当源站配置类型ConfigurationType=area时,表示区域,为空表示全部地区。取值为iso-3166中alpha-2编码或者大洲区域代码。大洲区域代码取值为:
7383
- # <li>Asia:亚洲;</li>
7384
- # <li>Europe:欧洲;</li>
7385
- # <li>Africa:非洲;</li>
7386
- # <li>Oceania:大洋洲;</li>
7387
- # <li>Americas:美洲。</li>源站组记录中,至少需要有一项为全部地区。
7388
- # @type Area: Array
7389
- # @param Private: 当源站类型OriginType=third_part时有效
7390
- # 是否私有鉴权,取值有:
7629
+ # @param Private: 是否私有鉴权,当源站类型 RecordType=COS/AWS_S3 时生效,取值有:
7391
7630
  # <li>true:使用私有鉴权;</li>
7392
7631
  # <li>false:不使用私有鉴权。</li>不填写,默认值为:false。
7393
7632
  # @type Private: Boolean
7394
- # @param PrivateParameters: 当源站类型Private=true时有效,表示私有鉴权使用参数。
7633
+ # @param PrivateParameters: 私有鉴权参数,当源站类型Private=true时有效。
7395
7634
  # @type PrivateParameters: Array
7396
7635
 
7397
- attr_accessor :Record, :RecordId, :Port, :Weight, :Proto, :Area, :Private, :PrivateParameters
7636
+ attr_accessor :Record, :Type, :RecordId, :Weight, :Private, :PrivateParameters
7398
7637
 
7399
- def initialize(record=nil, recordid=nil, port=nil, weight=nil, proto=nil, area=nil, private=nil, privateparameters=nil)
7638
+ def initialize(record=nil, type=nil, recordid=nil, weight=nil, private=nil, privateparameters=nil)
7400
7639
  @Record = record
7640
+ @Type = type
7401
7641
  @RecordId = recordid
7402
- @Port = port
7403
7642
  @Weight = weight
7404
- @Proto = proto
7405
- @Area = area
7406
7643
  @Private = private
7407
7644
  @PrivateParameters = privateparameters
7408
7645
  end
7409
7646
 
7410
7647
  def deserialize(params)
7411
7648
  @Record = params['Record']
7649
+ @Type = params['Type']
7412
7650
  @RecordId = params['RecordId']
7413
- @Port = params['Port']
7414
7651
  @Weight = params['Weight']
7415
- @Proto = params['Proto']
7416
- @Area = params['Area']
7417
7652
  @Private = params['Private']
7418
7653
  unless params['PrivateParameters'].nil?
7419
7654
  @PrivateParameters = []
@@ -7575,11 +7810,13 @@ module TencentCloud
7575
7810
  end
7576
7811
  end
7577
7812
 
7578
- # 源站记录私有鉴权参数
7813
+ # 对象存储源站记录私有鉴权参数
7579
7814
  class PrivateParameter < TencentCloud::Common::AbstractModel
7580
7815
  # @param Name: 私有鉴权参数名称,取值有:
7581
7816
  # <li>AccessKeyId:鉴权参数Access Key ID;</li>
7582
- # <li>SecretAccessKey:鉴权参数Secret Access Key。</li>
7817
+ # <li>SecretAccessKey:鉴权参数Secret Access Key;</li>
7818
+ # <li>SignatureVersion:鉴权版本,v2或者v4;</li>
7819
+ # <li>Region:存储桶地域。</li>
7583
7820
  # @type Name: String
7584
7821
  # @param Value: 私有鉴权参数值。
7585
7822
  # @type Value: String
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.683
4
+ version: 3.0.685
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-10-24 00:00:00.000000000 Z
11
+ date: 2023-10-26 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/v20220106/models.rb
36
+ - lib/v20220901/client.rb
37
+ - lib/v20220901/models.rb
37
38
  - lib/v20220106/client.rb
39
+ - lib/v20220106/models.rb
38
40
  - lib/tencentcloud-sdk-teo.rb
39
- - lib/v20220901/models.rb
40
- - lib/v20220901/client.rb
41
41
  - lib/VERSION
42
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
43
  licenses: