tencentcloud-sdk-privatedns 3.0.1161 → 3.0.1172
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/v20201028/client.rb +97 -1
- data/lib/v20201028/models.rb +329 -5
- 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: ceebede1cdd9e7cf1b33c226436b4566119958d6
|
|
4
|
+
data.tar.gz: 520ef5dfcee16ff228ba16e067610c3751a1fb86
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a28926fa190ef38f459aec960c47382f30eb3a7edb46571ae620b327a739312cb1fc3285dbbe543b1516fd29da27ebd5e64a2a8dc0f2793347190e611661aa6
|
|
7
|
+
data.tar.gz: 3c4a636ca819a9faccce775957ede5e02667207d7a396019af0f77b49890fdd39167f51ce54c74f69bf6964f9480cfe1529f81b2e643f8e554de8ed429133e57
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1172
|
data/lib/v20201028/client.rb
CHANGED
|
@@ -173,6 +173,30 @@ module TencentCloud
|
|
|
173
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
174
174
|
end
|
|
175
175
|
|
|
176
|
+
# 批量创建私有域
|
|
177
|
+
|
|
178
|
+
# @param request: Request instance for CreatePrivateZoneList.
|
|
179
|
+
# @type request: :class:`Tencentcloud::privatedns::V20201028::CreatePrivateZoneListRequest`
|
|
180
|
+
# @rtype: :class:`Tencentcloud::privatedns::V20201028::CreatePrivateZoneListResponse`
|
|
181
|
+
def CreatePrivateZoneList(request)
|
|
182
|
+
body = send_request('CreatePrivateZoneList', request.serialize)
|
|
183
|
+
response = JSON.parse(body)
|
|
184
|
+
if response['Response'].key?('Error') == false
|
|
185
|
+
model = CreatePrivateZoneListResponse.new
|
|
186
|
+
model.deserialize(response['Response'])
|
|
187
|
+
model
|
|
188
|
+
else
|
|
189
|
+
code = response['Response']['Error']['Code']
|
|
190
|
+
message = response['Response']['Error']['Message']
|
|
191
|
+
reqid = response['Response']['RequestId']
|
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
193
|
+
end
|
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
195
|
+
raise e
|
|
196
|
+
rescue StandardError => e
|
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
198
|
+
end
|
|
199
|
+
|
|
176
200
|
# 添加私有域解析记录
|
|
177
201
|
|
|
178
202
|
# @param request: Request instance for CreatePrivateZoneRecord.
|
|
@@ -197,6 +221,30 @@ module TencentCloud
|
|
|
197
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
198
222
|
end
|
|
199
223
|
|
|
224
|
+
# 批量添加私有域解析记录
|
|
225
|
+
|
|
226
|
+
# @param request: Request instance for CreatePrivateZoneRecordList.
|
|
227
|
+
# @type request: :class:`Tencentcloud::privatedns::V20201028::CreatePrivateZoneRecordListRequest`
|
|
228
|
+
# @rtype: :class:`Tencentcloud::privatedns::V20201028::CreatePrivateZoneRecordListResponse`
|
|
229
|
+
def CreatePrivateZoneRecordList(request)
|
|
230
|
+
body = send_request('CreatePrivateZoneRecordList', request.serialize)
|
|
231
|
+
response = JSON.parse(body)
|
|
232
|
+
if response['Response'].key?('Error') == false
|
|
233
|
+
model = CreatePrivateZoneRecordListResponse.new
|
|
234
|
+
model.deserialize(response['Response'])
|
|
235
|
+
model
|
|
236
|
+
else
|
|
237
|
+
code = response['Response']['Error']['Code']
|
|
238
|
+
message = response['Response']['Error']['Message']
|
|
239
|
+
reqid = response['Response']['RequestId']
|
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
241
|
+
end
|
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
243
|
+
raise e
|
|
244
|
+
rescue StandardError => e
|
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
246
|
+
end
|
|
247
|
+
|
|
200
248
|
# 删除终端节点
|
|
201
249
|
|
|
202
250
|
# @param request: Request instance for DeleteEndPoint.
|
|
@@ -365,7 +413,7 @@ module TencentCloud
|
|
|
365
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
366
414
|
end
|
|
367
415
|
|
|
368
|
-
#
|
|
416
|
+
# 获取关联账号的VPC列表
|
|
369
417
|
|
|
370
418
|
# @param request: Request instance for DescribeAccountVpcList.
|
|
371
419
|
# @type request: :class:`Tencentcloud::privatedns::V20201028::DescribeAccountVpcListRequest`
|
|
@@ -413,6 +461,54 @@ module TencentCloud
|
|
|
413
461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
414
462
|
end
|
|
415
463
|
|
|
464
|
+
# 查询批量添加私有域解析记录结果
|
|
465
|
+
|
|
466
|
+
# @param request: Request instance for DescribeCreateRecordListResult.
|
|
467
|
+
# @type request: :class:`Tencentcloud::privatedns::V20201028::DescribeCreateRecordListResultRequest`
|
|
468
|
+
# @rtype: :class:`Tencentcloud::privatedns::V20201028::DescribeCreateRecordListResultResponse`
|
|
469
|
+
def DescribeCreateRecordListResult(request)
|
|
470
|
+
body = send_request('DescribeCreateRecordListResult', request.serialize)
|
|
471
|
+
response = JSON.parse(body)
|
|
472
|
+
if response['Response'].key?('Error') == false
|
|
473
|
+
model = DescribeCreateRecordListResultResponse.new
|
|
474
|
+
model.deserialize(response['Response'])
|
|
475
|
+
model
|
|
476
|
+
else
|
|
477
|
+
code = response['Response']['Error']['Code']
|
|
478
|
+
message = response['Response']['Error']['Message']
|
|
479
|
+
reqid = response['Response']['RequestId']
|
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
481
|
+
end
|
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
483
|
+
raise e
|
|
484
|
+
rescue StandardError => e
|
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# 查询批量添加私有域结果
|
|
489
|
+
|
|
490
|
+
# @param request: Request instance for DescribeCreateZoneListResult.
|
|
491
|
+
# @type request: :class:`Tencentcloud::privatedns::V20201028::DescribeCreateZoneListResultRequest`
|
|
492
|
+
# @rtype: :class:`Tencentcloud::privatedns::V20201028::DescribeCreateZoneListResultResponse`
|
|
493
|
+
def DescribeCreateZoneListResult(request)
|
|
494
|
+
body = send_request('DescribeCreateZoneListResult', request.serialize)
|
|
495
|
+
response = JSON.parse(body)
|
|
496
|
+
if response['Response'].key?('Error') == false
|
|
497
|
+
model = DescribeCreateZoneListResultResponse.new
|
|
498
|
+
model.deserialize(response['Response'])
|
|
499
|
+
model
|
|
500
|
+
else
|
|
501
|
+
code = response['Response']['Error']['Code']
|
|
502
|
+
message = response['Response']['Error']['Message']
|
|
503
|
+
reqid = response['Response']['RequestId']
|
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
505
|
+
end
|
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
507
|
+
raise e
|
|
508
|
+
rescue StandardError => e
|
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
510
|
+
end
|
|
511
|
+
|
|
416
512
|
# 获取私有域解析概览
|
|
417
513
|
|
|
418
514
|
# @param request: Request instance for DescribeDashboard.
|
data/lib/v20201028/models.rb
CHANGED
|
@@ -437,6 +437,81 @@ module TencentCloud
|
|
|
437
437
|
end
|
|
438
438
|
end
|
|
439
439
|
|
|
440
|
+
# CreatePrivateZoneList请求参数结构体
|
|
441
|
+
class CreatePrivateZoneListRequest < TencentCloud::Common::AbstractModel
|
|
442
|
+
# @param Domains: 私有域域名数组,域名格式必须是标准的TLD
|
|
443
|
+
# @type Domains: Array
|
|
444
|
+
|
|
445
|
+
attr_accessor :Domains
|
|
446
|
+
|
|
447
|
+
def initialize(domains=nil)
|
|
448
|
+
@Domains = domains
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
def deserialize(params)
|
|
452
|
+
@Domains = params['Domains']
|
|
453
|
+
end
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
# CreatePrivateZoneList返回参数结构体
|
|
457
|
+
class CreatePrivateZoneListResponse < TencentCloud::Common::AbstractModel
|
|
458
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
459
|
+
# @type RequestId: String
|
|
460
|
+
|
|
461
|
+
attr_accessor :RequestId
|
|
462
|
+
|
|
463
|
+
def initialize(requestid=nil)
|
|
464
|
+
@RequestId = requestid
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
def deserialize(params)
|
|
468
|
+
@RequestId = params['RequestId']
|
|
469
|
+
end
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# CreatePrivateZoneRecordList请求参数结构体
|
|
473
|
+
class CreatePrivateZoneRecordListRequest < TencentCloud::Common::AbstractModel
|
|
474
|
+
# @param ZoneIds: 私有域ID数组
|
|
475
|
+
# @type ZoneIds: Array
|
|
476
|
+
# @param RecordsInfo: 私有域解析记录数据
|
|
477
|
+
# @type RecordsInfo: Array
|
|
478
|
+
|
|
479
|
+
attr_accessor :ZoneIds, :RecordsInfo
|
|
480
|
+
|
|
481
|
+
def initialize(zoneids=nil, recordsinfo=nil)
|
|
482
|
+
@ZoneIds = zoneids
|
|
483
|
+
@RecordsInfo = recordsinfo
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
def deserialize(params)
|
|
487
|
+
@ZoneIds = params['ZoneIds']
|
|
488
|
+
unless params['RecordsInfo'].nil?
|
|
489
|
+
@RecordsInfo = []
|
|
490
|
+
params['RecordsInfo'].each do |i|
|
|
491
|
+
recordsinfo_tmp = RecordsInfo.new
|
|
492
|
+
recordsinfo_tmp.deserialize(i)
|
|
493
|
+
@RecordsInfo << recordsinfo_tmp
|
|
494
|
+
end
|
|
495
|
+
end
|
|
496
|
+
end
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
# CreatePrivateZoneRecordList返回参数结构体
|
|
500
|
+
class CreatePrivateZoneRecordListResponse < TencentCloud::Common::AbstractModel
|
|
501
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
502
|
+
# @type RequestId: String
|
|
503
|
+
|
|
504
|
+
attr_accessor :RequestId
|
|
505
|
+
|
|
506
|
+
def initialize(requestid=nil)
|
|
507
|
+
@RequestId = requestid
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
def deserialize(params)
|
|
511
|
+
@RequestId = params['RequestId']
|
|
512
|
+
end
|
|
513
|
+
end
|
|
514
|
+
|
|
440
515
|
# CreatePrivateZoneRecord请求参数结构体
|
|
441
516
|
class CreatePrivateZoneRecordRequest < TencentCloud::Common::AbstractModel
|
|
442
517
|
# @param ZoneId: 私有域ID
|
|
@@ -522,8 +597,8 @@ module TencentCloud
|
|
|
522
597
|
|
|
523
598
|
attr_accessor :Domain, :TagSet, :VpcSet, :Remark, :DnsForwardStatus, :Vpcs, :AccountVpcSet, :CnameSpeedupStatus
|
|
524
599
|
extend Gem::Deprecate
|
|
525
|
-
deprecate :Vpcs, :none, 2025,
|
|
526
|
-
deprecate :Vpcs=, :none, 2025,
|
|
600
|
+
deprecate :Vpcs, :none, 2025, 11
|
|
601
|
+
deprecate :Vpcs=, :none, 2025, 11
|
|
527
602
|
|
|
528
603
|
def initialize(domain=nil, tagset=nil, vpcset=nil, remark=nil, dnsforwardstatus=nil, vpcs=nil, accountvpcset=nil, cnamespeedupstatus=nil)
|
|
529
604
|
@Domain = domain
|
|
@@ -952,9 +1027,9 @@ module TencentCloud
|
|
|
952
1027
|
|
|
953
1028
|
# DescribeAccountVpcList返回参数结构体
|
|
954
1029
|
class DescribeAccountVpcListResponse < TencentCloud::Common::AbstractModel
|
|
955
|
-
# @param TotalCount: VPC数量
|
|
1030
|
+
# @param TotalCount: 关联账号VPC数量
|
|
956
1031
|
# @type TotalCount: Integer
|
|
957
|
-
# @param VpcSet: VPC 列表
|
|
1032
|
+
# @param VpcSet: 关联账号VPC 列表
|
|
958
1033
|
# @type VpcSet: Array
|
|
959
1034
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
960
1035
|
# @type RequestId: String
|
|
@@ -1047,6 +1122,105 @@ module TencentCloud
|
|
|
1047
1122
|
end
|
|
1048
1123
|
end
|
|
1049
1124
|
|
|
1125
|
+
# DescribeCreateRecordListResult请求参数结构体
|
|
1126
|
+
class DescribeCreateRecordListResultRequest < TencentCloud::Common::AbstractModel
|
|
1127
|
+
# @param ZoneIds: 私有域ID数组
|
|
1128
|
+
# @type ZoneIds: Array
|
|
1129
|
+
# @param RecordsInfo: 私有域解析记录数据
|
|
1130
|
+
# @type RecordsInfo: Array
|
|
1131
|
+
|
|
1132
|
+
attr_accessor :ZoneIds, :RecordsInfo
|
|
1133
|
+
|
|
1134
|
+
def initialize(zoneids=nil, recordsinfo=nil)
|
|
1135
|
+
@ZoneIds = zoneids
|
|
1136
|
+
@RecordsInfo = recordsinfo
|
|
1137
|
+
end
|
|
1138
|
+
|
|
1139
|
+
def deserialize(params)
|
|
1140
|
+
@ZoneIds = params['ZoneIds']
|
|
1141
|
+
unless params['RecordsInfo'].nil?
|
|
1142
|
+
@RecordsInfo = []
|
|
1143
|
+
params['RecordsInfo'].each do |i|
|
|
1144
|
+
recordsinfo_tmp = RecordsInfo.new
|
|
1145
|
+
recordsinfo_tmp.deserialize(i)
|
|
1146
|
+
@RecordsInfo << recordsinfo_tmp
|
|
1147
|
+
end
|
|
1148
|
+
end
|
|
1149
|
+
end
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
# DescribeCreateRecordListResult返回参数结构体
|
|
1153
|
+
class DescribeCreateRecordListResultResponse < TencentCloud::Common::AbstractModel
|
|
1154
|
+
# @param RecordsResult: 批量添加解析记录结果
|
|
1155
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1156
|
+
# @type RecordsResult: Array
|
|
1157
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1158
|
+
# @type RequestId: String
|
|
1159
|
+
|
|
1160
|
+
attr_accessor :RecordsResult, :RequestId
|
|
1161
|
+
|
|
1162
|
+
def initialize(recordsresult=nil, requestid=nil)
|
|
1163
|
+
@RecordsResult = recordsresult
|
|
1164
|
+
@RequestId = requestid
|
|
1165
|
+
end
|
|
1166
|
+
|
|
1167
|
+
def deserialize(params)
|
|
1168
|
+
unless params['RecordsResult'].nil?
|
|
1169
|
+
@RecordsResult = []
|
|
1170
|
+
params['RecordsResult'].each do |i|
|
|
1171
|
+
recordsinforesult_tmp = RecordsInfoResult.new
|
|
1172
|
+
recordsinforesult_tmp.deserialize(i)
|
|
1173
|
+
@RecordsResult << recordsinforesult_tmp
|
|
1174
|
+
end
|
|
1175
|
+
end
|
|
1176
|
+
@RequestId = params['RequestId']
|
|
1177
|
+
end
|
|
1178
|
+
end
|
|
1179
|
+
|
|
1180
|
+
# DescribeCreateZoneListResult请求参数结构体
|
|
1181
|
+
class DescribeCreateZoneListResultRequest < TencentCloud::Common::AbstractModel
|
|
1182
|
+
# @param Domains: 私有域域名数组,域名格式必须是标准的TLD
|
|
1183
|
+
# @type Domains: Array
|
|
1184
|
+
|
|
1185
|
+
attr_accessor :Domains
|
|
1186
|
+
|
|
1187
|
+
def initialize(domains=nil)
|
|
1188
|
+
@Domains = domains
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1191
|
+
def deserialize(params)
|
|
1192
|
+
@Domains = params['Domains']
|
|
1193
|
+
end
|
|
1194
|
+
end
|
|
1195
|
+
|
|
1196
|
+
# DescribeCreateZoneListResult返回参数结构体
|
|
1197
|
+
class DescribeCreateZoneListResultResponse < TencentCloud::Common::AbstractModel
|
|
1198
|
+
# @param ZonesInfo: 私有域域名和zoneId
|
|
1199
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1200
|
+
# @type ZonesInfo: Array
|
|
1201
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1202
|
+
# @type RequestId: String
|
|
1203
|
+
|
|
1204
|
+
attr_accessor :ZonesInfo, :RequestId
|
|
1205
|
+
|
|
1206
|
+
def initialize(zonesinfo=nil, requestid=nil)
|
|
1207
|
+
@ZonesInfo = zonesinfo
|
|
1208
|
+
@RequestId = requestid
|
|
1209
|
+
end
|
|
1210
|
+
|
|
1211
|
+
def deserialize(params)
|
|
1212
|
+
unless params['ZonesInfo'].nil?
|
|
1213
|
+
@ZonesInfo = []
|
|
1214
|
+
params['ZonesInfo'].each do |i|
|
|
1215
|
+
zoneinfo_tmp = ZoneInfo.new
|
|
1216
|
+
zoneinfo_tmp.deserialize(i)
|
|
1217
|
+
@ZonesInfo << zoneinfo_tmp
|
|
1218
|
+
end
|
|
1219
|
+
end
|
|
1220
|
+
@RequestId = params['RequestId']
|
|
1221
|
+
end
|
|
1222
|
+
end
|
|
1223
|
+
|
|
1050
1224
|
# DescribeDashboard请求参数结构体
|
|
1051
1225
|
class DescribeDashboardRequest < TencentCloud::Common::AbstractModel
|
|
1052
1226
|
|
|
@@ -1212,7 +1386,7 @@ module TencentCloud
|
|
|
1212
1386
|
# @type Offset: Integer
|
|
1213
1387
|
# @param Limit: 分页限制数目, 最大100,默认20
|
|
1214
1388
|
# @type Limit: Integer
|
|
1215
|
-
# @param Filters: 过滤参数,支持EndPointName,EndpointName,
|
|
1389
|
+
# @param Filters: 过滤参数,支持EndPointName,EndpointName,EndPointId
|
|
1216
1390
|
# @type Filters: Array
|
|
1217
1391
|
|
|
1218
1392
|
attr_accessor :Offset, :Limit, :Filters
|
|
@@ -2537,6 +2711,130 @@ module TencentCloud
|
|
|
2537
2711
|
end
|
|
2538
2712
|
end
|
|
2539
2713
|
|
|
2714
|
+
# 私有域解析记录信息
|
|
2715
|
+
class RecordsInfo < TencentCloud::Common::AbstractModel
|
|
2716
|
+
# @param RecordType: 记录类型,可选的记录类型为:"A", "AAAA", "CNAME", "MX", "TXT", "PTR"
|
|
2717
|
+
# @type RecordType: String
|
|
2718
|
+
# @param SubDomain: 子域名,例如 "www", "m", "@"
|
|
2719
|
+
# @type SubDomain: String
|
|
2720
|
+
# @param RecordValue: 记录值,例如 IP:192.168.10.2,CNAME:cname.qcloud.com.,MX:mail.qcloud.com.
|
|
2721
|
+
# @type RecordValue: String
|
|
2722
|
+
# @param Weight: 记录权重,值为1-100
|
|
2723
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2724
|
+
# @type Weight: Integer
|
|
2725
|
+
# @param TTL: 记录缓存时间,数值越小生效越快,取值1-86400s, 默认 600
|
|
2726
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2727
|
+
# @type TTL: Integer
|
|
2728
|
+
# @param MX: MX优先级:记录类型为MX时必填。取值范围:5,10,15,20,30,40,50
|
|
2729
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2730
|
+
# @type MX: Integer
|
|
2731
|
+
|
|
2732
|
+
attr_accessor :RecordType, :SubDomain, :RecordValue, :Weight, :TTL, :MX
|
|
2733
|
+
|
|
2734
|
+
def initialize(recordtype=nil, subdomain=nil, recordvalue=nil, weight=nil, ttl=nil, mx=nil)
|
|
2735
|
+
@RecordType = recordtype
|
|
2736
|
+
@SubDomain = subdomain
|
|
2737
|
+
@RecordValue = recordvalue
|
|
2738
|
+
@Weight = weight
|
|
2739
|
+
@TTL = ttl
|
|
2740
|
+
@MX = mx
|
|
2741
|
+
end
|
|
2742
|
+
|
|
2743
|
+
def deserialize(params)
|
|
2744
|
+
@RecordType = params['RecordType']
|
|
2745
|
+
@SubDomain = params['SubDomain']
|
|
2746
|
+
@RecordValue = params['RecordValue']
|
|
2747
|
+
@Weight = params['Weight']
|
|
2748
|
+
@TTL = params['TTL']
|
|
2749
|
+
@MX = params['MX']
|
|
2750
|
+
end
|
|
2751
|
+
end
|
|
2752
|
+
|
|
2753
|
+
# 批量添加解析记录返回结果
|
|
2754
|
+
class RecordsInfoResult < TencentCloud::Common::AbstractModel
|
|
2755
|
+
# @param ZoneId: 私有域ID
|
|
2756
|
+
# @type ZoneId: String
|
|
2757
|
+
# @param Domain: 私有域域名
|
|
2758
|
+
# @type Domain: String
|
|
2759
|
+
# @param RecordsStatus: 私有域解析记录创建结果
|
|
2760
|
+
# @type RecordsStatus: Array
|
|
2761
|
+
# @param Remark: 备注
|
|
2762
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2763
|
+
# @type Remark: String
|
|
2764
|
+
|
|
2765
|
+
attr_accessor :ZoneId, :Domain, :RecordsStatus, :Remark
|
|
2766
|
+
|
|
2767
|
+
def initialize(zoneid=nil, domain=nil, recordsstatus=nil, remark=nil)
|
|
2768
|
+
@ZoneId = zoneid
|
|
2769
|
+
@Domain = domain
|
|
2770
|
+
@RecordsStatus = recordsstatus
|
|
2771
|
+
@Remark = remark
|
|
2772
|
+
end
|
|
2773
|
+
|
|
2774
|
+
def deserialize(params)
|
|
2775
|
+
@ZoneId = params['ZoneId']
|
|
2776
|
+
@Domain = params['Domain']
|
|
2777
|
+
unless params['RecordsStatus'].nil?
|
|
2778
|
+
@RecordsStatus = []
|
|
2779
|
+
params['RecordsStatus'].each do |i|
|
|
2780
|
+
recordsinfostatus_tmp = RecordsInfoStatus.new
|
|
2781
|
+
recordsinfostatus_tmp.deserialize(i)
|
|
2782
|
+
@RecordsStatus << recordsinfostatus_tmp
|
|
2783
|
+
end
|
|
2784
|
+
end
|
|
2785
|
+
@Remark = params['Remark']
|
|
2786
|
+
end
|
|
2787
|
+
end
|
|
2788
|
+
|
|
2789
|
+
# 批量添加解析记录结果
|
|
2790
|
+
class RecordsInfoStatus < TencentCloud::Common::AbstractModel
|
|
2791
|
+
# @param RecordType: 记录类型,可选的记录类型为:"A", "AAAA", "CNAME", "MX", "TXT", "PTR"
|
|
2792
|
+
# @type RecordType: String
|
|
2793
|
+
# @param SubDomain: 子域名,例如 "www", "m", "@"
|
|
2794
|
+
# @type SubDomain: String
|
|
2795
|
+
# @param RecordValue: 记录值,例如 IP:192.168.10.2,CNAME:cname.qcloud.com.,MX:mail.qcloud.com.
|
|
2796
|
+
# @type RecordValue: String
|
|
2797
|
+
# @param Weight: 记录权重,值为1-100
|
|
2798
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2799
|
+
# @type Weight: Integer
|
|
2800
|
+
# @param TTL: 记录缓存时间,数值越小生效越快,取值1-86400s, 默认 600
|
|
2801
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2802
|
+
# @type TTL: Integer
|
|
2803
|
+
# @param MX: MX优先级:记录类型为MX时必填。取值范围:5,10,15,20,30,40,50
|
|
2804
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2805
|
+
# @type MX: Integer
|
|
2806
|
+
# @param Status: 是否添加成功:0是失败,1是成功
|
|
2807
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2808
|
+
# @type Status: Integer
|
|
2809
|
+
# @param Message: 若status为0,则此处为失败原因描述
|
|
2810
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2811
|
+
# @type Message: String
|
|
2812
|
+
|
|
2813
|
+
attr_accessor :RecordType, :SubDomain, :RecordValue, :Weight, :TTL, :MX, :Status, :Message
|
|
2814
|
+
|
|
2815
|
+
def initialize(recordtype=nil, subdomain=nil, recordvalue=nil, weight=nil, ttl=nil, mx=nil, status=nil, message=nil)
|
|
2816
|
+
@RecordType = recordtype
|
|
2817
|
+
@SubDomain = subdomain
|
|
2818
|
+
@RecordValue = recordvalue
|
|
2819
|
+
@Weight = weight
|
|
2820
|
+
@TTL = ttl
|
|
2821
|
+
@MX = mx
|
|
2822
|
+
@Status = status
|
|
2823
|
+
@Message = message
|
|
2824
|
+
end
|
|
2825
|
+
|
|
2826
|
+
def deserialize(params)
|
|
2827
|
+
@RecordType = params['RecordType']
|
|
2828
|
+
@SubDomain = params['SubDomain']
|
|
2829
|
+
@RecordValue = params['RecordValue']
|
|
2830
|
+
@Weight = params['Weight']
|
|
2831
|
+
@TTL = params['TTL']
|
|
2832
|
+
@MX = params['MX']
|
|
2833
|
+
@Status = params['Status']
|
|
2834
|
+
@Message = params['Message']
|
|
2835
|
+
end
|
|
2836
|
+
end
|
|
2837
|
+
|
|
2540
2838
|
# 终端节点信息
|
|
2541
2839
|
class SubnetIpInfo < TencentCloud::Common::AbstractModel
|
|
2542
2840
|
# @param SubnetId: 子网ID
|
|
@@ -2656,6 +2954,32 @@ module TencentCloud
|
|
|
2656
2954
|
end
|
|
2657
2955
|
end
|
|
2658
2956
|
|
|
2957
|
+
# 创建私有域成功后返回私有域信息
|
|
2958
|
+
class ZoneInfo < TencentCloud::Common::AbstractModel
|
|
2959
|
+
# @param ZoneId: 私有域ID
|
|
2960
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2961
|
+
# @type ZoneId: String
|
|
2962
|
+
# @param Domain: 私有域域名
|
|
2963
|
+
# @type Domain: String
|
|
2964
|
+
# @param Reason: 失败原因
|
|
2965
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2966
|
+
# @type Reason: String
|
|
2967
|
+
|
|
2968
|
+
attr_accessor :ZoneId, :Domain, :Reason
|
|
2969
|
+
|
|
2970
|
+
def initialize(zoneid=nil, domain=nil, reason=nil)
|
|
2971
|
+
@ZoneId = zoneid
|
|
2972
|
+
@Domain = domain
|
|
2973
|
+
@Reason = reason
|
|
2974
|
+
end
|
|
2975
|
+
|
|
2976
|
+
def deserialize(params)
|
|
2977
|
+
@ZoneId = params['ZoneId']
|
|
2978
|
+
@Domain = params['Domain']
|
|
2979
|
+
@Reason = params['Reason']
|
|
2980
|
+
end
|
|
2981
|
+
end
|
|
2982
|
+
|
|
2659
2983
|
end
|
|
2660
2984
|
end
|
|
2661
2985
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-privatedns
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1172
|
|
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-
|
|
11
|
+
date: 2025-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|