tencentcloud-sdk-teo 3.0.693 → 3.0.695
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220901/client.rb +49 -1
- data/lib/v20220901/models.rb +108 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca1df9a199832f8062512a321f125713d8bac2dd
|
4
|
+
data.tar.gz: 89ac8444c77d364650327999c7cf1d359c71c269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf010acf5abb71f87061caa277f15d3572a56505833ed83ea422a517bdfc87d8ed73b9e4ee22f02be76f0a273ecfe423c07c1b8a1977e5f5a059a62b9e718b2e
|
7
|
+
data.tar.gz: ab5d8325e3aadd8323371bd8bef9dea885ca0386b2dddba6b460a61f4010d6d62156b3cc3b7ef085251623b0d28c7ac6f513e04076713f619517e2338a8c717f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.695
|
data/lib/v20220901/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 用于加速域名绑定或解绑共享 CNAME,该功能白名单内测中。
|
57
|
+
|
58
|
+
# @param request: Request instance for BindSharedCNAME.
|
59
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::BindSharedCNAMERequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::BindSharedCNAMEResponse`
|
61
|
+
def BindSharedCNAME(request)
|
62
|
+
body = send_request('BindSharedCNAME', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = BindSharedCNAMEResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 将未绑定套餐的站点绑定到已有套餐
|
57
81
|
|
58
82
|
# @param request: Request instance for BindZoneToPlan.
|
@@ -345,7 +369,7 @@ module TencentCloud
|
|
345
369
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
346
370
|
end
|
347
371
|
|
348
|
-
#
|
372
|
+
# 用于创建共享 CNAME,该功能白名单内测中。
|
349
373
|
|
350
374
|
# @param request: Request instance for CreateSharedCNAME.
|
351
375
|
# @type request: :class:`Tencentcloud::teo::V20220901::CreateSharedCNAMERequest`
|
@@ -563,6 +587,30 @@ module TencentCloud
|
|
563
587
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
564
588
|
end
|
565
589
|
|
590
|
+
# 用于删除共享 CNAME,该功能白名单内测中。
|
591
|
+
|
592
|
+
# @param request: Request instance for DeleteSharedCNAME.
|
593
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteSharedCNAMERequest`
|
594
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteSharedCNAMEResponse`
|
595
|
+
def DeleteSharedCNAME(request)
|
596
|
+
body = send_request('DeleteSharedCNAME', request.serialize)
|
597
|
+
response = JSON.parse(body)
|
598
|
+
if response['Response'].key?('Error') == false
|
599
|
+
model = DeleteSharedCNAMEResponse.new
|
600
|
+
model.deserialize(response['Response'])
|
601
|
+
model
|
602
|
+
else
|
603
|
+
code = response['Response']['Error']['Code']
|
604
|
+
message = response['Response']['Error']['Message']
|
605
|
+
reqid = response['Response']['RequestId']
|
606
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
607
|
+
end
|
608
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
609
|
+
raise e
|
610
|
+
rescue StandardError => e
|
611
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
612
|
+
end
|
613
|
+
|
566
614
|
# 删除站点。
|
567
615
|
|
568
616
|
# @param request: Request instance for DeleteZone.
|
data/lib/v20220901/models.rb
CHANGED
@@ -996,6 +996,75 @@ module TencentCloud
|
|
996
996
|
end
|
997
997
|
end
|
998
998
|
|
999
|
+
# 共享 CNAME 和接入域名的绑定关系
|
1000
|
+
class BindSharedCNAMEMap < TencentCloud::Common::AbstractModel
|
1001
|
+
# @param SharedCNAME: 需要绑定或解绑的共享 CNAME。
|
1002
|
+
# @type SharedCNAME: String
|
1003
|
+
# @param DomainNames: 加速域名,可传递多个,最多20个。
|
1004
|
+
# @type DomainNames: Array
|
1005
|
+
|
1006
|
+
attr_accessor :SharedCNAME, :DomainNames
|
1007
|
+
|
1008
|
+
def initialize(sharedcname=nil, domainnames=nil)
|
1009
|
+
@SharedCNAME = sharedcname
|
1010
|
+
@DomainNames = domainnames
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
def deserialize(params)
|
1014
|
+
@SharedCNAME = params['SharedCNAME']
|
1015
|
+
@DomainNames = params['DomainNames']
|
1016
|
+
end
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
# BindSharedCNAME请求参数结构体
|
1020
|
+
class BindSharedCNAMERequest < TencentCloud::Common::AbstractModel
|
1021
|
+
# @param ZoneId: 加速域名所属站点 ID。
|
1022
|
+
# @type ZoneId: String
|
1023
|
+
# @param BindType: 绑定类型,取值有:
|
1024
|
+
# <li>bind:绑定;</li>
|
1025
|
+
# <li>unbind:解绑。</li>
|
1026
|
+
# @type BindType: String
|
1027
|
+
# @param BindSharedCNAMEMaps: 接入域名与共享 CNAME 的绑定关系。
|
1028
|
+
# @type BindSharedCNAMEMaps: Array
|
1029
|
+
|
1030
|
+
attr_accessor :ZoneId, :BindType, :BindSharedCNAMEMaps
|
1031
|
+
|
1032
|
+
def initialize(zoneid=nil, bindtype=nil, bindsharedcnamemaps=nil)
|
1033
|
+
@ZoneId = zoneid
|
1034
|
+
@BindType = bindtype
|
1035
|
+
@BindSharedCNAMEMaps = bindsharedcnamemaps
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
def deserialize(params)
|
1039
|
+
@ZoneId = params['ZoneId']
|
1040
|
+
@BindType = params['BindType']
|
1041
|
+
unless params['BindSharedCNAMEMaps'].nil?
|
1042
|
+
@BindSharedCNAMEMaps = []
|
1043
|
+
params['BindSharedCNAMEMaps'].each do |i|
|
1044
|
+
bindsharedcnamemap_tmp = BindSharedCNAMEMap.new
|
1045
|
+
bindsharedcnamemap_tmp.deserialize(i)
|
1046
|
+
@BindSharedCNAMEMaps << bindsharedcnamemap_tmp
|
1047
|
+
end
|
1048
|
+
end
|
1049
|
+
end
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
# BindSharedCNAME返回参数结构体
|
1053
|
+
class BindSharedCNAMEResponse < TencentCloud::Common::AbstractModel
|
1054
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1055
|
+
# @type RequestId: String
|
1056
|
+
|
1057
|
+
attr_accessor :RequestId
|
1058
|
+
|
1059
|
+
def initialize(requestid=nil)
|
1060
|
+
@RequestId = requestid
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
def deserialize(params)
|
1064
|
+
@RequestId = params['RequestId']
|
1065
|
+
end
|
1066
|
+
end
|
1067
|
+
|
999
1068
|
# BindZoneToPlan请求参数结构体
|
1000
1069
|
class BindZoneToPlanRequest < TencentCloud::Common::AbstractModel
|
1001
1070
|
# @param ZoneId: 未绑定套餐的站点ID。
|
@@ -2379,9 +2448,9 @@ module TencentCloud
|
|
2379
2448
|
# @type ZoneId: String
|
2380
2449
|
# @param SharedCNAMEPrefix: 共享 CNAME 前缀。请输入合法的域名前缀,例如"test-api"、"test-api.com",限制输入 50 个字符。
|
2381
2450
|
|
2382
|
-
# 共享 CNAME 完整格式为:<自定义前缀>+<zoneid中的12位随机字符串>+"share.
|
2451
|
+
# 共享 CNAME 完整格式为:<自定义前缀>+<zoneid中的12位随机字符串>+"share.dnse[0-5].com"。
|
2383
2452
|
|
2384
|
-
# 例如前缀传入 example.com,EO 会为您创建共享 CNAME:example.com.sai2ig51kaa5.share.
|
2453
|
+
# 例如前缀传入 example.com,EO 会为您创建共享 CNAME:example.com.sai2ig51kaa5.share.dnse2.com。
|
2385
2454
|
# @type SharedCNAMEPrefix: String
|
2386
2455
|
# @param Description: 描述。可输入 1-50 个任意字符。
|
2387
2456
|
# @type Description: String
|
@@ -2403,7 +2472,7 @@ module TencentCloud
|
|
2403
2472
|
|
2404
2473
|
# CreateSharedCNAME返回参数结构体
|
2405
2474
|
class CreateSharedCNAMEResponse < TencentCloud::Common::AbstractModel
|
2406
|
-
# @param SharedCNAME: 共享 CNAME。格式为:<自定义前缀>+<ZoneId中的12位随机字符串>+"share.
|
2475
|
+
# @param SharedCNAME: 共享 CNAME。格式为:<自定义前缀>+<ZoneId中的12位随机字符串>+"share.dnse[0-5].com"。
|
2407
2476
|
# @type SharedCNAME: String
|
2408
2477
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2409
2478
|
# @type RequestId: String
|
@@ -2960,6 +3029,42 @@ module TencentCloud
|
|
2960
3029
|
end
|
2961
3030
|
end
|
2962
3031
|
|
3032
|
+
# DeleteSharedCNAME请求参数结构体
|
3033
|
+
class DeleteSharedCNAMERequest < TencentCloud::Common::AbstractModel
|
3034
|
+
# @param ZoneId: 共享 CNAME 所属站点 ID。
|
3035
|
+
# @type ZoneId: String
|
3036
|
+
# @param SharedCNAME: 需要删除的共享 CNAME。
|
3037
|
+
# @type SharedCNAME: String
|
3038
|
+
|
3039
|
+
attr_accessor :ZoneId, :SharedCNAME
|
3040
|
+
|
3041
|
+
def initialize(zoneid=nil, sharedcname=nil)
|
3042
|
+
@ZoneId = zoneid
|
3043
|
+
@SharedCNAME = sharedcname
|
3044
|
+
end
|
3045
|
+
|
3046
|
+
def deserialize(params)
|
3047
|
+
@ZoneId = params['ZoneId']
|
3048
|
+
@SharedCNAME = params['SharedCNAME']
|
3049
|
+
end
|
3050
|
+
end
|
3051
|
+
|
3052
|
+
# DeleteSharedCNAME返回参数结构体
|
3053
|
+
class DeleteSharedCNAMEResponse < TencentCloud::Common::AbstractModel
|
3054
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3055
|
+
# @type RequestId: String
|
3056
|
+
|
3057
|
+
attr_accessor :RequestId
|
3058
|
+
|
3059
|
+
def initialize(requestid=nil)
|
3060
|
+
@RequestId = requestid
|
3061
|
+
end
|
3062
|
+
|
3063
|
+
def deserialize(params)
|
3064
|
+
@RequestId = params['RequestId']
|
3065
|
+
end
|
3066
|
+
end
|
3067
|
+
|
2963
3068
|
# DeleteZone请求参数结构体
|
2964
3069
|
class DeleteZoneRequest < TencentCloud::Common::AbstractModel
|
2965
3070
|
# @param ZoneId: 站点 ID。
|
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.695
|
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-11-
|
11
|
+
date: 2023-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|