tencentcloud-sdk-teo 3.0.721 → 3.0.722

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: 697b917ae93871fe2c31e2136e87c0612412f5d9
4
- data.tar.gz: 9a23f493b0c3e2e3187d2daccb7b11f55a68a0a6
3
+ metadata.gz: 2435b0ba43ecbb73449921c76f7a5cdc35c64c54
4
+ data.tar.gz: 72ab608fc472bfb0acd11202be07de544821cb24
5
5
  SHA512:
6
- metadata.gz: b873ee3e1f324f26e04ca67e808654424f957dee9ec58d21936333700d953330ac66343347816e013380a0c4d38612ea78805600b0410eb56f95eb4831d4afb8
7
- data.tar.gz: f8afe5b0aef389ece0dc897533d56332149407fe3abf183d3998f833335fcbdf585c2bc13756dc9020fd420fbe9e0274c3190bd288d31a3924ecbf048058f296
6
+ metadata.gz: 63363db6935aa46f5e74bd61886dc00ba5c9374a93f34eb94e4489f3c857733e9eca493c9310ee85c499ba9daf2187b4777bb78dd6378bab1a81e171b8749b39
7
+ data.tar.gz: cc15f84ffe00caaa7cc8eca40e9e78781bb4f90551360138ec4729415c8e6f8f095bfc46ad5c2e7842225ca408be2022ba7726a185faae273241c3c897f9926e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.721
1
+ 3.0.722
@@ -1019,6 +1019,30 @@ module TencentCloud
1019
1019
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1020
1020
  end
1021
1021
 
1022
+ # 该接口可用于查询 IP 是否为 EdgeOne IP。
1023
+
1024
+ # @param request: Request instance for DescribeIPRegion.
1025
+ # @type request: :class:`Tencentcloud::teo::V20220901::DescribeIPRegionRequest`
1026
+ # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeIPRegionResponse`
1027
+ def DescribeIPRegion(request)
1028
+ body = send_request('DescribeIPRegion', request.serialize)
1029
+ response = JSON.parse(body)
1030
+ if response['Response'].key?('Error') == false
1031
+ model = DescribeIPRegionResponse.new
1032
+ model.deserialize(response['Response'])
1033
+ model
1034
+ else
1035
+ code = response['Response']['Error']['Code']
1036
+ message = response['Response']['Error']['Message']
1037
+ reqid = response['Response']['RequestId']
1038
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1039
+ end
1040
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1041
+ raise e
1042
+ rescue StandardError => e
1043
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1044
+ end
1045
+
1022
1046
  # 查询站点的验证信息。
1023
1047
 
1024
1048
  # @param request: Request instance for DescribeIdentifications.
@@ -4239,6 +4239,49 @@ module TencentCloud
4239
4239
  end
4240
4240
  end
4241
4241
 
4242
+ # DescribeIPRegion请求参数结构体
4243
+ class DescribeIPRegionRequest < TencentCloud::Common::AbstractModel
4244
+ # @param IPs: 待查询的 IP 列表,支持 IPV4 和 IPV6,最大可查询 100 条。
4245
+ # @type IPs: Array
4246
+
4247
+ attr_accessor :IPs
4248
+
4249
+ def initialize(ips=nil)
4250
+ @IPs = ips
4251
+ end
4252
+
4253
+ def deserialize(params)
4254
+ @IPs = params['IPs']
4255
+ end
4256
+ end
4257
+
4258
+ # DescribeIPRegion返回参数结构体
4259
+ class DescribeIPRegionResponse < TencentCloud::Common::AbstractModel
4260
+ # @param IPRegionInfo: IP 归属信息列表。
4261
+ # @type IPRegionInfo: Array
4262
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4263
+ # @type RequestId: String
4264
+
4265
+ attr_accessor :IPRegionInfo, :RequestId
4266
+
4267
+ def initialize(ipregioninfo=nil, requestid=nil)
4268
+ @IPRegionInfo = ipregioninfo
4269
+ @RequestId = requestid
4270
+ end
4271
+
4272
+ def deserialize(params)
4273
+ unless params['IPRegionInfo'].nil?
4274
+ @IPRegionInfo = []
4275
+ params['IPRegionInfo'].each do |i|
4276
+ ipregioninfo_tmp = IPRegionInfo.new
4277
+ ipregioninfo_tmp.deserialize(i)
4278
+ @IPRegionInfo << ipregioninfo_tmp
4279
+ end
4280
+ end
4281
+ @RequestId = params['RequestId']
4282
+ end
4283
+ end
4284
+
4242
4285
  # DescribeIdentifications请求参数结构体
4243
4286
  class DescribeIdentificationsRequest < TencentCloud::Common::AbstractModel
4244
4287
  # @param Filters: 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:
@@ -6530,6 +6573,28 @@ module TencentCloud
6530
6573
  end
6531
6574
  end
6532
6575
 
6576
+ # IP 归属信息查询
6577
+ class IPRegionInfo < TencentCloud::Common::AbstractModel
6578
+ # @param IP: IP 地址,IPV4 或 IPV6。
6579
+ # @type IP: String
6580
+ # @param IsEdgeOneIP: IP 是否属于 EdgeOne 节点,取值有:
6581
+ # <li>yes:该 IP 属于 EdgeOne 节点;</li>
6582
+ # <li>no:该 IP 不属于 EdgeOne 节点。</li>
6583
+ # @type IsEdgeOneIP: String
6584
+
6585
+ attr_accessor :IP, :IsEdgeOneIP
6586
+
6587
+ def initialize(ip=nil, isedgeoneip=nil)
6588
+ @IP = ip
6589
+ @IsEdgeOneIP = isedgeoneip
6590
+ end
6591
+
6592
+ def deserialize(params)
6593
+ @IP = params['IP']
6594
+ @IsEdgeOneIP = params['IsEdgeOneIP']
6595
+ end
6596
+ end
6597
+
6533
6598
  # 源站防护IP白名单
6534
6599
  class IPWhitelist < TencentCloud::Common::AbstractModel
6535
6600
  # @param IPv4: IPv4列表。
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.721
4
+ version: 3.0.722
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud