tencentcloud-sdk-vpc 3.0.568 → 3.0.570

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0a5391f369ffbd55038ebadacf6a35422bc1bb9
4
- data.tar.gz: 10d52ca6e0fd79fe70c685686b7b87a6a4e6d36c
3
+ metadata.gz: b6b238a4c77715e52eb83e0fecc5596273df9f51
4
+ data.tar.gz: 6c43a8dcec6fe14d5fcb33d0e5d22c21d9ad683c
5
5
  SHA512:
6
- metadata.gz: 0bf7aa359366fe9d7eec198d314651bf9cf8f616bb8b158961547cfac13692fd867aeb59692aeb10e66c65fa2d8eb090e9b632a104c16ebba587ef16cd4a7525
7
- data.tar.gz: 029d31abdcd19cd164a1d6e9c632df484f36f9b8fffcbc29be25ebbbf899ea3c3fa0bbb5a77939472929f0b308b9433cbec4bf7241e854bdde23a24b654c6779
6
+ metadata.gz: e4967cbf661e2c7e4c71724f098271cfb689a5a625262283e70da0e5d80a00f1422934d31299f09e7ec0bde2265e6b00acae70ccebb9f8b4945111d5cdaba55a
7
+ data.tar.gz: e720c6d47a2a2764be6e3650050e65da82e9fa55355220fc3a3e6e143729cc1e28c2433aaacc5c23dab01369b3704bcca836bebc9ceceef25d88d37a845fd376
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.568
1
+ 3.0.570
@@ -1306,7 +1306,7 @@ module TencentCloud
1306
1306
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1307
1307
  end
1308
1308
 
1309
- # 本接口(CreateRoutes)用于创建路由策略。
1309
+ # 本接口(CreateRoutes)用于创建路由策略。
1310
1310
  # * 向指定路由表批量新增路由策略。
1311
1311
 
1312
1312
  # @param request: Request instance for CreateRoutes.
@@ -2623,7 +2623,7 @@ module TencentCloud
2623
2623
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2624
2624
  end
2625
2625
 
2626
- # 本接口(DeleteVpnConnection)用于删除VPN通道。
2626
+ # 本接口(DeleteVpnConnection)用于删除VPN通道。
2627
2627
 
2628
2628
  # @param request: Request instance for DeleteVpnConnection.
2629
2629
  # @type request: :class:`Tencentcloud::vpc::V20170312::DeleteVpnConnectionRequest`
@@ -4290,6 +4290,31 @@ module TencentCloud
4290
4290
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4291
4291
  end
4292
4292
 
4293
+ # 本接口(DescribeUsedIpAddress)用于查询Subnet或者Vpc内的ip的使用情况,
4294
+ # 如被ip被占用,返回占用ip的资源类别与id;如未被占用,返回空值
4295
+
4296
+ # @param request: Request instance for DescribeUsedIpAddress.
4297
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeUsedIpAddressRequest`
4298
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeUsedIpAddressResponse`
4299
+ def DescribeUsedIpAddress(request)
4300
+ body = send_request('DescribeUsedIpAddress', request.serialize)
4301
+ response = JSON.parse(body)
4302
+ if response['Response'].key?('Error') == false
4303
+ model = DescribeUsedIpAddressResponse.new
4304
+ model.deserialize(response['Response'])
4305
+ model
4306
+ else
4307
+ code = response['Response']['Error']['Code']
4308
+ message = response['Response']['Error']['Message']
4309
+ reqid = response['Response']['RequestId']
4310
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4311
+ end
4312
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4313
+ raise e
4314
+ rescue StandardError => e
4315
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4316
+ end
4317
+
4293
4318
  # 本接口(DescribeVpcEndPoint)用于查询终端节点列表。
4294
4319
 
4295
4320
  # @param request: Request instance for DescribeVpcEndPoint.
@@ -4563,7 +4588,7 @@ module TencentCloud
4563
4588
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4564
4589
  end
4565
4590
 
4566
- # 本接口(DescribeVpnConnections)查询VPN通道列表。
4591
+ # 本接口(DescribeVpnConnections)用于查询VPN通道列表。
4567
4592
 
4568
4593
  # @param request: Request instance for DescribeVpnConnections.
4569
4594
  # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeVpnConnectionsRequest`
@@ -7208,7 +7233,7 @@ module TencentCloud
7208
7233
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7209
7234
  end
7210
7235
 
7211
- # 本接口(ResetVpnConnection)用于重置VPN通道。
7236
+ # 本接口(ResetVpnConnection)用于重置VPN通道。
7212
7237
 
7213
7238
  # @param request: Request instance for ResetVpnConnection.
7214
7239
  # @type request: :class:`Tencentcloud::vpc::V20170312::ResetVpnConnectionRequest`
@@ -7232,7 +7257,7 @@ module TencentCloud
7232
7257
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7233
7258
  end
7234
7259
 
7235
- # 本接口(ResetVpnGatewayInternetMaxBandwidth)调整VPN网关带宽上限。目前支持升级配置,如果是包年包月VPN网关需要在有效期内。
7260
+ # 本接口(ResetVpnGatewayInternetMaxBandwidth)用于调整VPN网关带宽上限。VPN网关带宽目前仅支持部分带宽范围内升降配,如【5,100】Mbps和【200,1000】Mbps,在各自带宽范围内可提升配额,跨范围提升配额和降配暂不支持,如果是包年包月VPN网关需要在有效期内。
7236
7261
 
7237
7262
  # @param request: Request instance for ResetVpnGatewayInternetMaxBandwidth.
7238
7263
  # @type request: :class:`Tencentcloud::vpc::V20170312::ResetVpnGatewayInternetMaxBandwidthRequest`
@@ -10634,6 +10634,71 @@ module TencentCloud
10634
10634
  end
10635
10635
  end
10636
10636
 
10637
+ # DescribeUsedIpAddress请求参数结构体
10638
+ class DescribeUsedIpAddressRequest < TencentCloud::Common::AbstractModel
10639
+ # @param VpcId: VPC实例ID。
10640
+ # @type VpcId: String
10641
+ # @param SubnetId: 子网实例ID。
10642
+ # @type SubnetId: String
10643
+ # @param IpAddresses: 查询是否占用的ip列表
10644
+ # @type IpAddresses: Array
10645
+ # @param Offset: 偏移量。
10646
+ # @type Offset: Integer
10647
+ # @param Limit: 请求对象个数。
10648
+ # @type Limit: Integer
10649
+
10650
+ attr_accessor :VpcId, :SubnetId, :IpAddresses, :Offset, :Limit
10651
+
10652
+ def initialize(vpcid=nil, subnetid=nil, ipaddresses=nil, offset=nil, limit=nil)
10653
+ @VpcId = vpcid
10654
+ @SubnetId = subnetid
10655
+ @IpAddresses = ipaddresses
10656
+ @Offset = offset
10657
+ @Limit = limit
10658
+ end
10659
+
10660
+ def deserialize(params)
10661
+ @VpcId = params['VpcId']
10662
+ @SubnetId = params['SubnetId']
10663
+ @IpAddresses = params['IpAddresses']
10664
+ @Offset = params['Offset']
10665
+ @Limit = params['Limit']
10666
+ end
10667
+ end
10668
+
10669
+ # DescribeUsedIpAddress返回参数结构体
10670
+ class DescribeUsedIpAddressResponse < TencentCloud::Common::AbstractModel
10671
+ # @param IpAddressStates: 占用ip地址的资源信息
10672
+ # 注意:此字段可能返回 null,表示取不到有效值。
10673
+ # @type IpAddressStates: Array
10674
+ # @param TotalCount: 返回占用资源的个数
10675
+ # 注意:此字段可能返回 null,表示取不到有效值。
10676
+ # @type TotalCount: Integer
10677
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10678
+ # @type RequestId: String
10679
+
10680
+ attr_accessor :IpAddressStates, :TotalCount, :RequestId
10681
+
10682
+ def initialize(ipaddressstates=nil, totalcount=nil, requestid=nil)
10683
+ @IpAddressStates = ipaddressstates
10684
+ @TotalCount = totalcount
10685
+ @RequestId = requestid
10686
+ end
10687
+
10688
+ def deserialize(params)
10689
+ unless params['IpAddressStates'].nil?
10690
+ @IpAddressStates = []
10691
+ params['IpAddressStates'].each do |i|
10692
+ ipaddressstates_tmp = IpAddressStates.new
10693
+ ipaddressstates_tmp.deserialize(i)
10694
+ @IpAddressStates << ipaddressstates_tmp
10695
+ end
10696
+ end
10697
+ @TotalCount = params['TotalCount']
10698
+ @RequestId = params['RequestId']
10699
+ end
10700
+ end
10701
+
10637
10702
  # DescribeVpcEndPoint请求参数结构体
10638
10703
  class DescribeVpcEndPointRequest < TencentCloud::Common::AbstractModel
10639
10704
  # @param Filters: 过滤条件。
@@ -13921,6 +13986,38 @@ module TencentCloud
13921
13986
  end
13922
13987
  end
13923
13988
 
13989
+ # 占用ip的资源信息
13990
+ class IpAddressStates < TencentCloud::Common::AbstractModel
13991
+ # @param VpcId: VPC实例ID。
13992
+ # @type VpcId: String
13993
+ # @param SubnetId: 子网实例ID。
13994
+ # @type SubnetId: String
13995
+ # @param IpAddress: IP地址。
13996
+ # @type IpAddress: String
13997
+ # @param ResourceType: 资源类型
13998
+ # @type ResourceType: String
13999
+ # @param ResourceId: 资源ID
14000
+ # @type ResourceId: String
14001
+
14002
+ attr_accessor :VpcId, :SubnetId, :IpAddress, :ResourceType, :ResourceId
14003
+
14004
+ def initialize(vpcid=nil, subnetid=nil, ipaddress=nil, resourcetype=nil, resourceid=nil)
14005
+ @VpcId = vpcid
14006
+ @SubnetId = subnetid
14007
+ @IpAddress = ipaddress
14008
+ @ResourceType = resourcetype
14009
+ @ResourceId = resourceid
14010
+ end
14011
+
14012
+ def deserialize(params)
14013
+ @VpcId = params['VpcId']
14014
+ @SubnetId = params['SubnetId']
14015
+ @IpAddress = params['IpAddress']
14016
+ @ResourceType = params['ResourceType']
14017
+ @ResourceId = params['ResourceId']
14018
+ end
14019
+ end
14020
+
13924
14021
  # IP在线查询的字段信息
13925
14022
  class IpField < TencentCloud::Common::AbstractModel
13926
14023
  # @param Country: 国家字段信息
@@ -17230,7 +17327,7 @@ module TencentCloud
17230
17327
  class Price < TencentCloud::Common::AbstractModel
17231
17328
  # @param InstancePrice: 实例价格。
17232
17329
  # @type InstancePrice: :class:`Tencentcloud::Vpc.v20170312.models.ItemPrice`
17233
- # @param BandwidthPrice: 网络价格。
17330
+ # @param BandwidthPrice: 带宽价格。
17234
17331
  # @type BandwidthPrice: :class:`Tencentcloud::Vpc.v20170312.models.ItemPrice`
17235
17332
 
17236
17333
  attr_accessor :InstancePrice, :BandwidthPrice
@@ -18106,7 +18203,7 @@ module TencentCloud
18106
18203
  class ResetVpnGatewayInternetMaxBandwidthRequest < TencentCloud::Common::AbstractModel
18107
18204
  # @param VpnGatewayId: VPN网关实例ID。
18108
18205
  # @type VpnGatewayId: String
18109
- # @param InternetMaxBandwidthOut: 公网带宽设置。可选带宽规格:5, 10, 20, 50, 100;单位:Mbps。
18206
+ # @param InternetMaxBandwidthOut: 新规格公网带宽设置。可选带宽规格:5, 10, 20, 50, 100, 200, 500, 1000;单位:Mbps。VPN网关带宽目前仅支持部分带宽范围内升降配,如【5,100】Mbps和【200,1000】Mbps,在各自带宽范围内可提升配额,跨范围提升配额和降配暂不支持。
18110
18207
  # @type InternetMaxBandwidthOut: Integer
18111
18208
 
18112
18209
  attr_accessor :VpnGatewayId, :InternetMaxBandwidthOut
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-vpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.568
4
+ version: 3.0.570
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-12 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common