tencentcloud-sdk-privatedns 3.0.938 → 3.0.940

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: da3d8f8dda1d95e327e31c43fd9b8e97303ce8ce
4
- data.tar.gz: 5801332da2cddd96a679496b59b0dc3f850e9287
3
+ metadata.gz: 2bee2c0270ad4ccf70c933990f02064fe23e6086
4
+ data.tar.gz: c4f4129f4597e650d8ab8d6c127eee7013796a89
5
5
  SHA512:
6
- metadata.gz: 2c758a9bb3bfdb700cb0a056a3a45fe3584e7306619cd6d7b5db3c7d2bff63cb5a40479ee3058a28a750d68b8924f7aca929e3619e7e86f21f8f6425c3f26c07
7
- data.tar.gz: 99b670d21bb73151e75677996b21dfcfd8ab051467b2eebcd2a58d1b8bcb4eb7dcf876dbe53ef1806da664c9cdd4263fa4367d2d7a09eefae297e30511570757
6
+ metadata.gz: c0b58119f3239df452ace3d849ec67771335441140abc29f4d1d75a9ad2b23fb0753623dcfb219f16891a72f77ee2c69febe926a222abeed9cab1b2909f77773
7
+ data.tar.gz: 26c0a9307dc60e74e061425b41c9798ce999698a8f0e9c57c3905b093b328212d48aae156df7dc50a68f9ddcda3a2cfc5c13dfae691fd782624d685e56aa63cb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.938
1
+ 3.0.940
@@ -221,6 +221,30 @@ module TencentCloud
221
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
222
  end
223
223
 
224
+ # 删除转发规则并停止转发
225
+
226
+ # @param request: Request instance for DeleteForwardRule.
227
+ # @type request: :class:`Tencentcloud::privatedns::V20201028::DeleteForwardRuleRequest`
228
+ # @rtype: :class:`Tencentcloud::privatedns::V20201028::DeleteForwardRuleResponse`
229
+ def DeleteForwardRule(request)
230
+ body = send_request('DeleteForwardRule', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DeleteForwardRuleResponse.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
+
224
248
  # 删除私有域解析账号
225
249
 
226
250
  # @param request: Request instance for DeletePrivateDNSAccount.
@@ -413,6 +437,54 @@ module TencentCloud
413
437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
438
  end
415
439
 
440
+ # 查询终端节点已经启用了的地域
441
+
442
+ # @param request: Request instance for DescribeEndPointRegion.
443
+ # @type request: :class:`Tencentcloud::privatedns::V20201028::DescribeEndPointRegionRequest`
444
+ # @rtype: :class:`Tencentcloud::privatedns::V20201028::DescribeEndPointRegionResponse`
445
+ def DescribeEndPointRegion(request)
446
+ body = send_request('DescribeEndPointRegion', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = DescribeEndPointRegionResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
464
+ # 查询转发规则
465
+
466
+ # @param request: Request instance for DescribeForwardRule.
467
+ # @type request: :class:`Tencentcloud::privatedns::V20201028::DescribeForwardRuleRequest`
468
+ # @rtype: :class:`Tencentcloud::privatedns::V20201028::DescribeForwardRuleResponse`
469
+ def DescribeForwardRule(request)
470
+ body = send_request('DescribeForwardRule', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = DescribeForwardRuleResponse.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
+
416
488
  # 查询转发规则列表
417
489
 
418
490
  # @param request: Request instance for DescribeForwardRuleList.
@@ -605,6 +677,30 @@ module TencentCloud
605
677
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
678
  end
607
679
 
680
+ # 修改转发规则
681
+
682
+ # @param request: Request instance for ModifyForwardRule.
683
+ # @type request: :class:`Tencentcloud::privatedns::V20201028::ModifyForwardRuleRequest`
684
+ # @rtype: :class:`Tencentcloud::privatedns::V20201028::ModifyForwardRuleResponse`
685
+ def ModifyForwardRule(request)
686
+ body = send_request('ModifyForwardRule', request.serialize)
687
+ response = JSON.parse(body)
688
+ if response['Response'].key?('Error') == false
689
+ model = ModifyForwardRuleResponse.new
690
+ model.deserialize(response['Response'])
691
+ model
692
+ else
693
+ code = response['Response']['Error']['Code']
694
+ message = response['Response']['Error']['Message']
695
+ reqid = response['Response']['RequestId']
696
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
697
+ end
698
+ rescue TencentCloud::Common::TencentCloudSDKException => e
699
+ raise e
700
+ rescue StandardError => e
701
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
+ end
703
+
608
704
  # 修改私有域信息
609
705
 
610
706
  # @param request: Request instance for ModifyPrivateZone.
@@ -691,6 +691,38 @@ module TencentCloud
691
691
  end
692
692
  end
693
693
 
694
+ # DeleteForwardRule请求参数结构体
695
+ class DeleteForwardRuleRequest < TencentCloud::Common::AbstractModel
696
+ # @param RuleIdSet: 转发规则ID数组
697
+ # @type RuleIdSet: Array
698
+
699
+ attr_accessor :RuleIdSet
700
+
701
+ def initialize(ruleidset=nil)
702
+ @RuleIdSet = ruleidset
703
+ end
704
+
705
+ def deserialize(params)
706
+ @RuleIdSet = params['RuleIdSet']
707
+ end
708
+ end
709
+
710
+ # DeleteForwardRule返回参数结构体
711
+ class DeleteForwardRuleResponse < TencentCloud::Common::AbstractModel
712
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
713
+ # @type RequestId: String
714
+
715
+ attr_accessor :RequestId
716
+
717
+ def initialize(requestid=nil)
718
+ @RequestId = requestid
719
+ end
720
+
721
+ def deserialize(params)
722
+ @RequestId = params['RequestId']
723
+ end
724
+ end
725
+
694
726
  # DeletePrivateDNSAccount请求参数结构体
695
727
  class DeletePrivateDNSAccountRequest < TencentCloud::Common::AbstractModel
696
728
  # @param Account: 私有域解析账号
@@ -1136,6 +1168,44 @@ module TencentCloud
1136
1168
  end
1137
1169
  end
1138
1170
 
1171
+ # DescribeEndPointRegion请求参数结构体
1172
+ class DescribeEndPointRegionRequest < TencentCloud::Common::AbstractModel
1173
+
1174
+
1175
+ def initialize()
1176
+ end
1177
+
1178
+ def deserialize(params)
1179
+ end
1180
+ end
1181
+
1182
+ # DescribeEndPointRegion返回参数结构体
1183
+ class DescribeEndPointRegionResponse < TencentCloud::Common::AbstractModel
1184
+ # @param RegionSet: 地域数组
1185
+ # @type RegionSet: Array
1186
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1187
+ # @type RequestId: String
1188
+
1189
+ attr_accessor :RegionSet, :RequestId
1190
+
1191
+ def initialize(regionset=nil, requestid=nil)
1192
+ @RegionSet = regionset
1193
+ @RequestId = requestid
1194
+ end
1195
+
1196
+ def deserialize(params)
1197
+ unless params['RegionSet'].nil?
1198
+ @RegionSet = []
1199
+ params['RegionSet'].each do |i|
1200
+ regioninfo_tmp = RegionInfo.new
1201
+ regioninfo_tmp.deserialize(i)
1202
+ @RegionSet << regioninfo_tmp
1203
+ end
1204
+ end
1205
+ @RequestId = params['RequestId']
1206
+ end
1207
+ end
1208
+
1139
1209
  # DescribeForwardRuleList请求参数结构体
1140
1210
  class DescribeForwardRuleListRequest < TencentCloud::Common::AbstractModel
1141
1211
  # @param Offset: 分页偏移量,从0开始
@@ -1198,6 +1268,45 @@ module TencentCloud
1198
1268
  end
1199
1269
  end
1200
1270
 
1271
+ # DescribeForwardRule请求参数结构体
1272
+ class DescribeForwardRuleRequest < TencentCloud::Common::AbstractModel
1273
+ # @param RuleId: 转发规则ID
1274
+ # @type RuleId: String
1275
+
1276
+ attr_accessor :RuleId
1277
+
1278
+ def initialize(ruleid=nil)
1279
+ @RuleId = ruleid
1280
+ end
1281
+
1282
+ def deserialize(params)
1283
+ @RuleId = params['RuleId']
1284
+ end
1285
+ end
1286
+
1287
+ # DescribeForwardRule返回参数结构体
1288
+ class DescribeForwardRuleResponse < TencentCloud::Common::AbstractModel
1289
+ # @param ForwardRule: 转发规则详情
1290
+ # @type ForwardRule: :class:`Tencentcloud::Privatedns.v20201028.models.ForwardRule`
1291
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1292
+ # @type RequestId: String
1293
+
1294
+ attr_accessor :ForwardRule, :RequestId
1295
+
1296
+ def initialize(forwardrule=nil, requestid=nil)
1297
+ @ForwardRule = forwardrule
1298
+ @RequestId = requestid
1299
+ end
1300
+
1301
+ def deserialize(params)
1302
+ unless params['ForwardRule'].nil?
1303
+ @ForwardRule = ForwardRule.new
1304
+ @ForwardRule.deserialize(params['ForwardRule'])
1305
+ end
1306
+ @RequestId = params['RequestId']
1307
+ end
1308
+ end
1309
+
1201
1310
  # DescribePrivateDNSAccountList请求参数结构体
1202
1311
  class DescribePrivateDNSAccountListRequest < TencentCloud::Common::AbstractModel
1203
1312
  # @param Offset: 分页偏移量,从0开始
@@ -1755,6 +1864,46 @@ module TencentCloud
1755
1864
  end
1756
1865
  end
1757
1866
 
1867
+ # ModifyForwardRule请求参数结构体
1868
+ class ModifyForwardRuleRequest < TencentCloud::Common::AbstractModel
1869
+ # @param RuleId: 转发规则ID
1870
+ # @type RuleId: String
1871
+ # @param RuleName: 转发规则名称
1872
+ # @type RuleName: String
1873
+ # @param EndPointId: 终端节点ID
1874
+ # @type EndPointId: String
1875
+
1876
+ attr_accessor :RuleId, :RuleName, :EndPointId
1877
+
1878
+ def initialize(ruleid=nil, rulename=nil, endpointid=nil)
1879
+ @RuleId = ruleid
1880
+ @RuleName = rulename
1881
+ @EndPointId = endpointid
1882
+ end
1883
+
1884
+ def deserialize(params)
1885
+ @RuleId = params['RuleId']
1886
+ @RuleName = params['RuleName']
1887
+ @EndPointId = params['EndPointId']
1888
+ end
1889
+ end
1890
+
1891
+ # ModifyForwardRule返回参数结构体
1892
+ class ModifyForwardRuleResponse < TencentCloud::Common::AbstractModel
1893
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1894
+ # @type RequestId: String
1895
+
1896
+ attr_accessor :RequestId
1897
+
1898
+ def initialize(requestid=nil)
1899
+ @RequestId = requestid
1900
+ end
1901
+
1902
+ def deserialize(params)
1903
+ @RequestId = params['RequestId']
1904
+ end
1905
+ end
1906
+
1758
1907
  # ModifyPrivateZoneRecord请求参数结构体
1759
1908
  class ModifyPrivateZoneRecordRequest < TencentCloud::Common::AbstractModel
1760
1909
  # @param ZoneId: 私有域ID
@@ -2250,6 +2399,41 @@ module TencentCloud
2250
2399
  end
2251
2400
  end
2252
2401
 
2402
+ # 地域信息
2403
+ class RegionInfo < TencentCloud::Common::AbstractModel
2404
+ # @param RegionCode: 地域编码
2405
+ # @type RegionCode: String
2406
+ # @param CnName: 地域中文名
2407
+ # 注意:此字段可能返回 null,表示取不到有效值。
2408
+ # @type CnName: String
2409
+ # @param EnName: 地域英文名
2410
+ # @type EnName: String
2411
+ # @param RegionId: 地域ID
2412
+ # 注意:此字段可能返回 null,表示取不到有效值。
2413
+ # @type RegionId: Integer
2414
+ # @param AvailableZoneNum: 可用区数量
2415
+ # 注意:此字段可能返回 null,表示取不到有效值。
2416
+ # @type AvailableZoneNum: Integer
2417
+
2418
+ attr_accessor :RegionCode, :CnName, :EnName, :RegionId, :AvailableZoneNum
2419
+
2420
+ def initialize(regioncode=nil, cnname=nil, enname=nil, regionid=nil, availablezonenum=nil)
2421
+ @RegionCode = regioncode
2422
+ @CnName = cnname
2423
+ @EnName = enname
2424
+ @RegionId = regionid
2425
+ @AvailableZoneNum = availablezonenum
2426
+ end
2427
+
2428
+ def deserialize(params)
2429
+ @RegionCode = params['RegionCode']
2430
+ @CnName = params['CnName']
2431
+ @EnName = params['EnName']
2432
+ @RegionId = params['RegionId']
2433
+ @AvailableZoneNum = params['AvailableZoneNum']
2434
+ end
2435
+ end
2436
+
2253
2437
  # SubscribePrivateZoneService请求参数结构体
2254
2438
  class SubscribePrivateZoneServiceRequest < TencentCloud::Common::AbstractModel
2255
2439
 
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.938
4
+ version: 3.0.940
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-07 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common