tencentcloud-sdk-dnspod 1.0.339 → 1.0.340
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/v20210323/client.rb +96 -0
- data/lib/v20210323/models.rb +229 -0
- 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: 05cfd8f92e5c98411d0c09bccd9f04759b273cc5
|
4
|
+
data.tar.gz: 9fa27e4ca5282ca597db90b00fda9c3bcbd4fd23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d23e655a2702e38ed57fcdd51fd3d0d6b172f1ae6bdd492b7aa3c17215b0c3904c811f0d7b934e3c059ea1734f1665d1d3a5385e1f56d5fdfbd695b48659639b
|
7
|
+
data.tar.gz: 97e3f55d3a3372067a0d0262c964a1f6e7e010899983bb491bd504ca5d5dd6580c20ec803ec9feafc376b7ac6f81e4409328af030a3c4475739bd78a94f4bac2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.340
|
data/lib/v20210323/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# DNSPod商品下单
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateDeal.
|
35
|
+
# @type request: :class:`Tencentcloud::dnspod::V20210323::CreateDealRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::dnspod::V20210323::CreateDealResponse`
|
37
|
+
def CreateDeal(request)
|
38
|
+
body = send_request('CreateDeal', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateDealResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 添加域名
|
33
57
|
|
34
58
|
# @param request: Request instance for CreateDomain.
|
@@ -749,6 +773,30 @@ module TencentCloud
|
|
749
773
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
774
|
end
|
751
775
|
|
776
|
+
# DNS 解析套餐自动续费设置
|
777
|
+
|
778
|
+
# @param request: Request instance for ModifyPackageAutoRenew.
|
779
|
+
# @type request: :class:`Tencentcloud::dnspod::V20210323::ModifyPackageAutoRenewRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::dnspod::V20210323::ModifyPackageAutoRenewResponse`
|
781
|
+
def ModifyPackageAutoRenew(request)
|
782
|
+
body = send_request('ModifyPackageAutoRenew', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = ModifyPackageAutoRenewResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
752
800
|
# 修改记录
|
753
801
|
|
754
802
|
# @param request: Request instance for ModifyRecord.
|
@@ -869,6 +917,54 @@ module TencentCloud
|
|
869
917
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
918
|
end
|
871
919
|
|
920
|
+
# 增值服务自动续费设置
|
921
|
+
|
922
|
+
# @param request: Request instance for ModifyVasAutoRenewStatus.
|
923
|
+
# @type request: :class:`Tencentcloud::dnspod::V20210323::ModifyVasAutoRenewStatusRequest`
|
924
|
+
# @rtype: :class:`Tencentcloud::dnspod::V20210323::ModifyVasAutoRenewStatusResponse`
|
925
|
+
def ModifyVasAutoRenewStatus(request)
|
926
|
+
body = send_request('ModifyVasAutoRenewStatus', request.serialize)
|
927
|
+
response = JSON.parse(body)
|
928
|
+
if response['Response'].key?('Error') == false
|
929
|
+
model = ModifyVasAutoRenewStatusResponse.new
|
930
|
+
model.deserialize(response['Response'])
|
931
|
+
model
|
932
|
+
else
|
933
|
+
code = response['Response']['Error']['Code']
|
934
|
+
message = response['Response']['Error']['Message']
|
935
|
+
reqid = response['Response']['RequestId']
|
936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
937
|
+
end
|
938
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
939
|
+
raise e
|
940
|
+
rescue StandardError => e
|
941
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
|
+
end
|
943
|
+
|
944
|
+
# DNSPod商品余额支付
|
945
|
+
|
946
|
+
# @param request: Request instance for PayOrderWithBalance.
|
947
|
+
# @type request: :class:`Tencentcloud::dnspod::V20210323::PayOrderWithBalanceRequest`
|
948
|
+
# @rtype: :class:`Tencentcloud::dnspod::V20210323::PayOrderWithBalanceResponse`
|
949
|
+
def PayOrderWithBalance(request)
|
950
|
+
body = send_request('PayOrderWithBalance', request.serialize)
|
951
|
+
response = JSON.parse(body)
|
952
|
+
if response['Response'].key?('Error') == false
|
953
|
+
model = PayOrderWithBalanceResponse.new
|
954
|
+
model.deserialize(response['Response'])
|
955
|
+
model
|
956
|
+
else
|
957
|
+
code = response['Response']['Error']['Code']
|
958
|
+
message = response['Response']['Error']['Message']
|
959
|
+
reqid = response['Response']['RequestId']
|
960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
961
|
+
end
|
962
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
963
|
+
raise e
|
964
|
+
rescue StandardError => e
|
965
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
|
+
end
|
967
|
+
|
872
968
|
|
873
969
|
end
|
874
970
|
end
|
data/lib/v20210323/models.rb
CHANGED
@@ -141,6 +141,95 @@ module TencentCloud
|
|
141
141
|
end
|
142
142
|
end
|
143
143
|
|
144
|
+
# CreateDeal请求参数结构体
|
145
|
+
class CreateDealRequest < TencentCloud::Common::AbstractModel
|
146
|
+
# @param DealType: 询价类型,1 新购,2 续费,3 套餐升级(增值服务暂时只支持新购)
|
147
|
+
# @type DealType: Integer
|
148
|
+
# @param GoodsType: 商品类型,1 域名套餐 2 增值服务
|
149
|
+
# @type GoodsType: Integer
|
150
|
+
# @param GoodsChildType: 套餐类型:
|
151
|
+
# DP_PLUS:专业版
|
152
|
+
# DP_EXPERT:企业版
|
153
|
+
# DP_ULTRA:尊享版
|
154
|
+
|
155
|
+
# 增值服务类型
|
156
|
+
# LB:负载均衡
|
157
|
+
# URL:URL转发
|
158
|
+
# DMONITOR_TASKS:D监控任务数
|
159
|
+
# DMONITOR_IP:D监控备用 IP 数
|
160
|
+
# CUSTOMLINE:自定义线路数
|
161
|
+
# @type GoodsChildType: String
|
162
|
+
# @param GoodsNum: 增值服务购买数量,如果是域名套餐固定为1,如果是增值服务则按以下规则:
|
163
|
+
# 负载均衡、D监控任务数、D监控备用 IP 数、自定义线路数、URL 转发(必须是5的正整数倍,如 5、10、15 等)
|
164
|
+
# @type GoodsNum: Integer
|
165
|
+
# @param AutoRenew: 是否开启自动续费,1 开启,2 不开启(增值服务暂不支持自动续费),默认值为 2 不开启
|
166
|
+
# @type AutoRenew: Integer
|
167
|
+
# @param Domain: 需要绑定套餐的域名,如 dnspod.cn,如果是续费或升级,domain 参数必须要传,新购可不传。
|
168
|
+
# @type Domain: String
|
169
|
+
# @param TimeSpan: 套餐时长:
|
170
|
+
# 1. 套餐以月为单位(按月只能是 3、6 还有 12 的倍数),套餐例如购买一年则传12,最大120 。(续费最低一年)
|
171
|
+
# 2. 升级套餐时不需要传。
|
172
|
+
# 3. 增值服务的时长单位为年,买一年传1(增值服务新购按年只能是 1,增值服务续费最大为 10)
|
173
|
+
# @type TimeSpan: Integer
|
174
|
+
# @param NewPackageType: 套餐类型,需要升级到的套餐类型,只有升级时需要。
|
175
|
+
# @type NewPackageType: String
|
176
|
+
|
177
|
+
attr_accessor :DealType, :GoodsType, :GoodsChildType, :GoodsNum, :AutoRenew, :Domain, :TimeSpan, :NewPackageType
|
178
|
+
|
179
|
+
def initialize(dealtype=nil, goodstype=nil, goodschildtype=nil, goodsnum=nil, autorenew=nil, domain=nil, timespan=nil, newpackagetype=nil)
|
180
|
+
@DealType = dealtype
|
181
|
+
@GoodsType = goodstype
|
182
|
+
@GoodsChildType = goodschildtype
|
183
|
+
@GoodsNum = goodsnum
|
184
|
+
@AutoRenew = autorenew
|
185
|
+
@Domain = domain
|
186
|
+
@TimeSpan = timespan
|
187
|
+
@NewPackageType = newpackagetype
|
188
|
+
end
|
189
|
+
|
190
|
+
def deserialize(params)
|
191
|
+
@DealType = params['DealType']
|
192
|
+
@GoodsType = params['GoodsType']
|
193
|
+
@GoodsChildType = params['GoodsChildType']
|
194
|
+
@GoodsNum = params['GoodsNum']
|
195
|
+
@AutoRenew = params['AutoRenew']
|
196
|
+
@Domain = params['Domain']
|
197
|
+
@TimeSpan = params['TimeSpan']
|
198
|
+
@NewPackageType = params['NewPackageType']
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# CreateDeal返回参数结构体
|
203
|
+
class CreateDealResponse < TencentCloud::Common::AbstractModel
|
204
|
+
# @param BigDealId: 大订单号,一个大订单号下可以有多个子订单,说明是同一次下单
|
205
|
+
# @type BigDealId: String
|
206
|
+
# @param DealList: 子订单列表
|
207
|
+
# @type DealList: Array
|
208
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
209
|
+
# @type RequestId: String
|
210
|
+
|
211
|
+
attr_accessor :BigDealId, :DealList, :RequestId
|
212
|
+
|
213
|
+
def initialize(bigdealid=nil, deallist=nil, requestid=nil)
|
214
|
+
@BigDealId = bigdealid
|
215
|
+
@DealList = deallist
|
216
|
+
@RequestId = requestid
|
217
|
+
end
|
218
|
+
|
219
|
+
def deserialize(params)
|
220
|
+
@BigDealId = params['BigDealId']
|
221
|
+
unless params['DealList'].nil?
|
222
|
+
@DealList = []
|
223
|
+
params['DealList'].each do |i|
|
224
|
+
deals_tmp = Deals.new
|
225
|
+
deals_tmp.deserialize(i)
|
226
|
+
@DealList << deals_tmp
|
227
|
+
end
|
228
|
+
end
|
229
|
+
@RequestId = params['RequestId']
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
144
233
|
# CreateDomainAlias请求参数结构体
|
145
234
|
class CreateDomainAliasRequest < TencentCloud::Common::AbstractModel
|
146
235
|
# @param DomainAlias: 域名别名
|
@@ -681,6 +770,26 @@ module TencentCloud
|
|
681
770
|
end
|
682
771
|
end
|
683
772
|
|
773
|
+
# 子订单号列表
|
774
|
+
class Deals < TencentCloud::Common::AbstractModel
|
775
|
+
# @param DealId: 子订单ID
|
776
|
+
# @type DealId: String
|
777
|
+
# @param DealName: 子订单号
|
778
|
+
# @type DealName: String
|
779
|
+
|
780
|
+
attr_accessor :DealId, :DealName
|
781
|
+
|
782
|
+
def initialize(dealid=nil, dealname=nil)
|
783
|
+
@DealId = dealid
|
784
|
+
@DealName = dealname
|
785
|
+
end
|
786
|
+
|
787
|
+
def deserialize(params)
|
788
|
+
@DealId = params['DealId']
|
789
|
+
@DealName = params['DealName']
|
790
|
+
end
|
791
|
+
end
|
792
|
+
|
684
793
|
# DeleteDomainAlias请求参数结构体
|
685
794
|
class DeleteDomainAliasRequest < TencentCloud::Common::AbstractModel
|
686
795
|
# @param DomainAliasId: 域名别名ID
|
@@ -2473,6 +2582,42 @@ module TencentCloud
|
|
2473
2582
|
end
|
2474
2583
|
end
|
2475
2584
|
|
2585
|
+
# ModifyPackageAutoRenew请求参数结构体
|
2586
|
+
class ModifyPackageAutoRenewRequest < TencentCloud::Common::AbstractModel
|
2587
|
+
# @param ResourceId: 资源ID
|
2588
|
+
# @type ResourceId: String
|
2589
|
+
# @param Status: enable 开启自动续费;disable 关闭自动续费
|
2590
|
+
# @type Status: String
|
2591
|
+
|
2592
|
+
attr_accessor :ResourceId, :Status
|
2593
|
+
|
2594
|
+
def initialize(resourceid=nil, status=nil)
|
2595
|
+
@ResourceId = resourceid
|
2596
|
+
@Status = status
|
2597
|
+
end
|
2598
|
+
|
2599
|
+
def deserialize(params)
|
2600
|
+
@ResourceId = params['ResourceId']
|
2601
|
+
@Status = params['Status']
|
2602
|
+
end
|
2603
|
+
end
|
2604
|
+
|
2605
|
+
# ModifyPackageAutoRenew返回参数结构体
|
2606
|
+
class ModifyPackageAutoRenewResponse < TencentCloud::Common::AbstractModel
|
2607
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2608
|
+
# @type RequestId: String
|
2609
|
+
|
2610
|
+
attr_accessor :RequestId
|
2611
|
+
|
2612
|
+
def initialize(requestid=nil)
|
2613
|
+
@RequestId = requestid
|
2614
|
+
end
|
2615
|
+
|
2616
|
+
def deserialize(params)
|
2617
|
+
@RequestId = params['RequestId']
|
2618
|
+
end
|
2619
|
+
end
|
2620
|
+
|
2476
2621
|
# 批量添加记录返回结构
|
2477
2622
|
class ModifyRecordBatchDetail < TencentCloud::Common::AbstractModel
|
2478
2623
|
# @param RecordList: 见RecordInfoBatchModify
|
@@ -2814,6 +2959,90 @@ module TencentCloud
|
|
2814
2959
|
end
|
2815
2960
|
end
|
2816
2961
|
|
2962
|
+
# ModifyVasAutoRenewStatus请求参数结构体
|
2963
|
+
class ModifyVasAutoRenewStatusRequest < TencentCloud::Common::AbstractModel
|
2964
|
+
# @param ResourceId: 资源ID
|
2965
|
+
# @type ResourceId: String
|
2966
|
+
# @param Status: enable 开启自动续费;disable 关闭自动续费
|
2967
|
+
# @type Status: String
|
2968
|
+
|
2969
|
+
attr_accessor :ResourceId, :Status
|
2970
|
+
|
2971
|
+
def initialize(resourceid=nil, status=nil)
|
2972
|
+
@ResourceId = resourceid
|
2973
|
+
@Status = status
|
2974
|
+
end
|
2975
|
+
|
2976
|
+
def deserialize(params)
|
2977
|
+
@ResourceId = params['ResourceId']
|
2978
|
+
@Status = params['Status']
|
2979
|
+
end
|
2980
|
+
end
|
2981
|
+
|
2982
|
+
# ModifyVasAutoRenewStatus返回参数结构体
|
2983
|
+
class ModifyVasAutoRenewStatusResponse < TencentCloud::Common::AbstractModel
|
2984
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2985
|
+
# @type RequestId: String
|
2986
|
+
|
2987
|
+
attr_accessor :RequestId
|
2988
|
+
|
2989
|
+
def initialize(requestid=nil)
|
2990
|
+
@RequestId = requestid
|
2991
|
+
end
|
2992
|
+
|
2993
|
+
def deserialize(params)
|
2994
|
+
@RequestId = params['RequestId']
|
2995
|
+
end
|
2996
|
+
end
|
2997
|
+
|
2998
|
+
# PayOrderWithBalance请求参数结构体
|
2999
|
+
class PayOrderWithBalanceRequest < TencentCloud::Common::AbstractModel
|
3000
|
+
# @param BigDealIdList: 需要支付的大订单号数组
|
3001
|
+
# @type BigDealIdList: Array
|
3002
|
+
# @param VoucherIdList: 代金券ID数组
|
3003
|
+
# @type VoucherIdList: Array
|
3004
|
+
|
3005
|
+
attr_accessor :BigDealIdList, :VoucherIdList
|
3006
|
+
|
3007
|
+
def initialize(bigdealidlist=nil, voucheridlist=nil)
|
3008
|
+
@BigDealIdList = bigdealidlist
|
3009
|
+
@VoucherIdList = voucheridlist
|
3010
|
+
end
|
3011
|
+
|
3012
|
+
def deserialize(params)
|
3013
|
+
@BigDealIdList = params['BigDealIdList']
|
3014
|
+
@VoucherIdList = params['VoucherIdList']
|
3015
|
+
end
|
3016
|
+
end
|
3017
|
+
|
3018
|
+
# PayOrderWithBalance返回参数结构体
|
3019
|
+
class PayOrderWithBalanceResponse < TencentCloud::Common::AbstractModel
|
3020
|
+
# @param DealIdList: 此次操作支付成功的订单id数组
|
3021
|
+
# @type DealIdList: Array
|
3022
|
+
# @param BigDealIdList: 此次操作支付成功的大订单号数组
|
3023
|
+
# @type BigDealIdList: Array
|
3024
|
+
# @param DealNameList: 此次操作支付成功的订单号数组
|
3025
|
+
# @type DealNameList: Array
|
3026
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3027
|
+
# @type RequestId: String
|
3028
|
+
|
3029
|
+
attr_accessor :DealIdList, :BigDealIdList, :DealNameList, :RequestId
|
3030
|
+
|
3031
|
+
def initialize(dealidlist=nil, bigdealidlist=nil, dealnamelist=nil, requestid=nil)
|
3032
|
+
@DealIdList = dealidlist
|
3033
|
+
@BigDealIdList = bigdealidlist
|
3034
|
+
@DealNameList = dealnamelist
|
3035
|
+
@RequestId = requestid
|
3036
|
+
end
|
3037
|
+
|
3038
|
+
def deserialize(params)
|
3039
|
+
@DealIdList = params['DealIdList']
|
3040
|
+
@BigDealIdList = params['BigDealIdList']
|
3041
|
+
@DealNameList = params['DealNameList']
|
3042
|
+
@RequestId = params['RequestId']
|
3043
|
+
end
|
3044
|
+
end
|
3045
|
+
|
2817
3046
|
# 域名权限项
|
2818
3047
|
class PurviewInfo < TencentCloud::Common::AbstractModel
|
2819
3048
|
# @param Name: 权限名称
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dnspod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.340
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|