tencentcloud-sdk-dnspod 3.0.934 → 3.0.936
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 +51 -0
- data/lib/v20210323/models.rb +144 -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: 0f3d27c0effc23baf8cc5d944e256eccec57e73d
|
4
|
+
data.tar.gz: 352bb4b98830fdbafab120a29f6f007910ab47f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10c1b274ee36375ef03b82e4adb1bb0164f55e9950afc7274d6c51a18fad955a355751f8df39b332449182baa8bd5e4e7653374c67fda88dc1385a55f9ce884d
|
7
|
+
data.tar.gz: d9aeec3dceb27006489a9e08f6cde1ab6c23be119b93ab6fe306d1e6a24ead2a5f918fea2f11206e012e2e2a784e3033cfb1bc6f88623bd2c9daf41a893ae8e1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.936
|
data/lib/v20210323/client.rb
CHANGED
@@ -103,6 +103,8 @@ module TencentCloud
|
|
103
103
|
|
104
104
|
# 添加域名
|
105
105
|
|
106
|
+
# 备注:该接口不支持添加子域名。
|
107
|
+
|
106
108
|
# @param request: Request instance for CreateDomain.
|
107
109
|
# @type request: :class:`Tencentcloud::dnspod::V20210323::CreateDomainRequest`
|
108
110
|
# @rtype: :class:`Tencentcloud::dnspod::V20210323::CreateDomainResponse`
|
@@ -318,6 +320,31 @@ module TencentCloud
|
|
318
320
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
319
321
|
end
|
320
322
|
|
323
|
+
# 添加TXT记录
|
324
|
+
# 备注:新添加的解析记录存在短暂的索引延迟,如果查询不到新增记录,请在 30 秒后重试
|
325
|
+
|
326
|
+
# @param request: Request instance for CreateTXTRecord.
|
327
|
+
# @type request: :class:`Tencentcloud::dnspod::V20210323::CreateTXTRecordRequest`
|
328
|
+
# @rtype: :class:`Tencentcloud::dnspod::V20210323::CreateTXTRecordResponse`
|
329
|
+
def CreateTXTRecord(request)
|
330
|
+
body = send_request('CreateTXTRecord', request.serialize)
|
331
|
+
response = JSON.parse(body)
|
332
|
+
if response['Response'].key?('Error') == false
|
333
|
+
model = CreateTXTRecordResponse.new
|
334
|
+
model.deserialize(response['Response'])
|
335
|
+
model
|
336
|
+
else
|
337
|
+
code = response['Response']['Error']['Code']
|
338
|
+
message = response['Response']['Error']['Message']
|
339
|
+
reqid = response['Response']['RequestId']
|
340
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
341
|
+
end
|
342
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
343
|
+
raise e
|
344
|
+
rescue StandardError => e
|
345
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
346
|
+
end
|
347
|
+
|
321
348
|
# 删除域名
|
322
349
|
|
323
350
|
# @param request: Request instance for DeleteDomain.
|
@@ -1742,6 +1769,30 @@ module TencentCloud
|
|
1742
1769
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1743
1770
|
end
|
1744
1771
|
|
1772
|
+
# 修改TXT记录
|
1773
|
+
|
1774
|
+
# @param request: Request instance for ModifyTXTRecord.
|
1775
|
+
# @type request: :class:`Tencentcloud::dnspod::V20210323::ModifyTXTRecordRequest`
|
1776
|
+
# @rtype: :class:`Tencentcloud::dnspod::V20210323::ModifyTXTRecordResponse`
|
1777
|
+
def ModifyTXTRecord(request)
|
1778
|
+
body = send_request('ModifyTXTRecord', request.serialize)
|
1779
|
+
response = JSON.parse(body)
|
1780
|
+
if response['Response'].key?('Error') == false
|
1781
|
+
model = ModifyTXTRecordResponse.new
|
1782
|
+
model.deserialize(response['Response'])
|
1783
|
+
model
|
1784
|
+
else
|
1785
|
+
code = response['Response']['Error']['Code']
|
1786
|
+
message = response['Response']['Error']['Message']
|
1787
|
+
reqid = response['Response']['RequestId']
|
1788
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1789
|
+
end
|
1790
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1791
|
+
raise e
|
1792
|
+
rescue StandardError => e
|
1793
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1794
|
+
end
|
1795
|
+
|
1745
1796
|
# 增值服务自动续费设置
|
1746
1797
|
|
1747
1798
|
# @param request: Request instance for ModifyVasAutoRenewStatus.
|
data/lib/v20210323/models.rb
CHANGED
@@ -1065,6 +1065,78 @@ module TencentCloud
|
|
1065
1065
|
end
|
1066
1066
|
end
|
1067
1067
|
|
1068
|
+
# CreateTXTRecord请求参数结构体
|
1069
|
+
class CreateTXTRecordRequest < TencentCloud::Common::AbstractModel
|
1070
|
+
# @param Domain: 域名
|
1071
|
+
# @type Domain: String
|
1072
|
+
# @param RecordLine: 记录线路,通过 API 记录线路获得,中文,比如:默认。
|
1073
|
+
# @type RecordLine: String
|
1074
|
+
# @param Value: 记录值,如 IP : 200.200.200.200, CNAME : cname.dnspod.com., MX : mail.dnspod.com.。
|
1075
|
+
# @type Value: String
|
1076
|
+
# @param DomainId: 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。
|
1077
|
+
# @type DomainId: Integer
|
1078
|
+
# @param SubDomain: 主机记录,如 www,如果不传,默认为 @。
|
1079
|
+
# @type SubDomain: String
|
1080
|
+
# @param RecordLineId: 线路的 ID,通过 API 记录线路获得,英文字符串,比如:10=1。参数RecordLineId优先级高于RecordLine,如果同时传递二者,优先使用RecordLineId参数。
|
1081
|
+
# @type RecordLineId: String
|
1082
|
+
# @param TTL: TTL,范围1-604800,不同套餐域名最小值不同。
|
1083
|
+
# @type TTL: Integer
|
1084
|
+
# @param Status: 记录初始状态,取值范围为 ENABLE 和 DISABLE 。默认为 ENABLE ,如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。
|
1085
|
+
# @type Status: String
|
1086
|
+
# @param Remark: 备注
|
1087
|
+
# @type Remark: String
|
1088
|
+
# @param GroupId: 记录分组 Id。可以通过接口 DescribeRecordGroupList 接口 GroupId 字段获取。
|
1089
|
+
# @type GroupId: Integer
|
1090
|
+
|
1091
|
+
attr_accessor :Domain, :RecordLine, :Value, :DomainId, :SubDomain, :RecordLineId, :TTL, :Status, :Remark, :GroupId
|
1092
|
+
|
1093
|
+
def initialize(domain=nil, recordline=nil, value=nil, domainid=nil, subdomain=nil, recordlineid=nil, ttl=nil, status=nil, remark=nil, groupid=nil)
|
1094
|
+
@Domain = domain
|
1095
|
+
@RecordLine = recordline
|
1096
|
+
@Value = value
|
1097
|
+
@DomainId = domainid
|
1098
|
+
@SubDomain = subdomain
|
1099
|
+
@RecordLineId = recordlineid
|
1100
|
+
@TTL = ttl
|
1101
|
+
@Status = status
|
1102
|
+
@Remark = remark
|
1103
|
+
@GroupId = groupid
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
def deserialize(params)
|
1107
|
+
@Domain = params['Domain']
|
1108
|
+
@RecordLine = params['RecordLine']
|
1109
|
+
@Value = params['Value']
|
1110
|
+
@DomainId = params['DomainId']
|
1111
|
+
@SubDomain = params['SubDomain']
|
1112
|
+
@RecordLineId = params['RecordLineId']
|
1113
|
+
@TTL = params['TTL']
|
1114
|
+
@Status = params['Status']
|
1115
|
+
@Remark = params['Remark']
|
1116
|
+
@GroupId = params['GroupId']
|
1117
|
+
end
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# CreateTXTRecord返回参数结构体
|
1121
|
+
class CreateTXTRecordResponse < TencentCloud::Common::AbstractModel
|
1122
|
+
# @param RecordId: 记录ID
|
1123
|
+
# @type RecordId: Integer
|
1124
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1125
|
+
# @type RequestId: String
|
1126
|
+
|
1127
|
+
attr_accessor :RecordId, :RequestId
|
1128
|
+
|
1129
|
+
def initialize(recordid=nil, requestid=nil)
|
1130
|
+
@RecordId = recordid
|
1131
|
+
@RequestId = requestid
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
def deserialize(params)
|
1135
|
+
@RecordId = params['RecordId']
|
1136
|
+
@RequestId = params['RequestId']
|
1137
|
+
end
|
1138
|
+
end
|
1139
|
+
|
1068
1140
|
# 自定义线路详情
|
1069
1141
|
class CustomLineInfo < TencentCloud::Common::AbstractModel
|
1070
1142
|
# @param DomainId: 域名ID
|
@@ -5189,6 +5261,78 @@ module TencentCloud
|
|
5189
5261
|
end
|
5190
5262
|
end
|
5191
5263
|
|
5264
|
+
# ModifyTXTRecord请求参数结构体
|
5265
|
+
class ModifyTXTRecordRequest < TencentCloud::Common::AbstractModel
|
5266
|
+
# @param Domain: 域名
|
5267
|
+
# @type Domain: String
|
5268
|
+
# @param RecordLine: 记录线路,通过 API 记录线路获得,中文,比如:默认。
|
5269
|
+
# @type RecordLine: String
|
5270
|
+
# @param Value: 记录值,如 IP : 200.200.200.200, CNAME : cname.dnspod.com., MX : mail.dnspod.com.。
|
5271
|
+
# @type Value: String
|
5272
|
+
# @param RecordId: 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId
|
5273
|
+
# @type RecordId: Integer
|
5274
|
+
# @param DomainId: 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId
|
5275
|
+
# @type DomainId: Integer
|
5276
|
+
# @param SubDomain: 主机记录,如 www,如果不传,默认为 @。
|
5277
|
+
# @type SubDomain: String
|
5278
|
+
# @param RecordLineId: 线路的 ID,通过 API 记录线路获得,英文字符串,比如:10=1。参数RecordLineId优先级高于RecordLine,如果同时传递二者,优先使用RecordLineId参数。
|
5279
|
+
# @type RecordLineId: String
|
5280
|
+
# @param TTL: TTL,范围1-604800,不同等级域名最小值不同。
|
5281
|
+
# @type TTL: Integer
|
5282
|
+
# @param Status: 记录初始状态,取值范围为 ENABLE 和 DISABLE 。默认为 ENABLE ,如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。
|
5283
|
+
# @type Status: String
|
5284
|
+
# @param Remark: 记录的备注信息。传空删除备注。
|
5285
|
+
# @type Remark: String
|
5286
|
+
|
5287
|
+
attr_accessor :Domain, :RecordLine, :Value, :RecordId, :DomainId, :SubDomain, :RecordLineId, :TTL, :Status, :Remark
|
5288
|
+
|
5289
|
+
def initialize(domain=nil, recordline=nil, value=nil, recordid=nil, domainid=nil, subdomain=nil, recordlineid=nil, ttl=nil, status=nil, remark=nil)
|
5290
|
+
@Domain = domain
|
5291
|
+
@RecordLine = recordline
|
5292
|
+
@Value = value
|
5293
|
+
@RecordId = recordid
|
5294
|
+
@DomainId = domainid
|
5295
|
+
@SubDomain = subdomain
|
5296
|
+
@RecordLineId = recordlineid
|
5297
|
+
@TTL = ttl
|
5298
|
+
@Status = status
|
5299
|
+
@Remark = remark
|
5300
|
+
end
|
5301
|
+
|
5302
|
+
def deserialize(params)
|
5303
|
+
@Domain = params['Domain']
|
5304
|
+
@RecordLine = params['RecordLine']
|
5305
|
+
@Value = params['Value']
|
5306
|
+
@RecordId = params['RecordId']
|
5307
|
+
@DomainId = params['DomainId']
|
5308
|
+
@SubDomain = params['SubDomain']
|
5309
|
+
@RecordLineId = params['RecordLineId']
|
5310
|
+
@TTL = params['TTL']
|
5311
|
+
@Status = params['Status']
|
5312
|
+
@Remark = params['Remark']
|
5313
|
+
end
|
5314
|
+
end
|
5315
|
+
|
5316
|
+
# ModifyTXTRecord返回参数结构体
|
5317
|
+
class ModifyTXTRecordResponse < TencentCloud::Common::AbstractModel
|
5318
|
+
# @param RecordId: 记录ID
|
5319
|
+
# @type RecordId: Integer
|
5320
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5321
|
+
# @type RequestId: String
|
5322
|
+
|
5323
|
+
attr_accessor :RecordId, :RequestId
|
5324
|
+
|
5325
|
+
def initialize(recordid=nil, requestid=nil)
|
5326
|
+
@RecordId = recordid
|
5327
|
+
@RequestId = requestid
|
5328
|
+
end
|
5329
|
+
|
5330
|
+
def deserialize(params)
|
5331
|
+
@RecordId = params['RecordId']
|
5332
|
+
@RequestId = params['RequestId']
|
5333
|
+
end
|
5334
|
+
end
|
5335
|
+
|
5192
5336
|
# ModifyVasAutoRenewStatus请求参数结构体
|
5193
5337
|
class ModifyVasAutoRenewStatusRequest < TencentCloud::Common::AbstractModel
|
5194
5338
|
# @param ResourceId: 资源ID。可以从控制台查看所有的资源
|
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: 3.0.
|
4
|
+
version: 3.0.936
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|