tencentcloud-sdk-vpc 3.0.569 → 3.0.571

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: e48b909ddc1dd139840ee0e0a8fe9b9c36b22ff5
4
- data.tar.gz: 7d56edbdc33656d5eb6a71b098b5ed3de7f1e06e
3
+ metadata.gz: fd871aaf429124a2c2cb2ceaf7f4d9e7c21c5fb3
4
+ data.tar.gz: 885e446d344b2c9c0889096cbf6e7eb14038a4fd
5
5
  SHA512:
6
- metadata.gz: 3ba6f1cbd39bbbea40d64f0d29acf271b7c320a7c82faac899c7e24717555756bfce93b47a545a5a4fec697113c1b5f017987348006707d16b2ddb172b3133ee
7
- data.tar.gz: 07868d915f0cf9f13184f88af759ea2f14cf8f86c00ce8bee86bbe52924682e558a08f1b63a4f0a6e61f8ed90b8d21d345c63e968c41859885f4eda4903ae628
6
+ metadata.gz: c85a4d3288ed0d2f7d430eebb089cdb6b73cb64bbfd74b98f40ba9f7b4f0c62e3d964c0199e897937bc6eb0275732f40458fad14589fea0891f7693f5dc546ca
7
+ data.tar.gz: 96e2bc3d7da716f8f4d51b775246b16cebfbb960426e027d90390a5aef7a313d1bb80f9a5086a32c08ae4732269b9330f34f647b16ead33f795265a533292bff
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.569
1
+ 3.0.571
@@ -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.
@@ -2525,6 +2525,30 @@ module TencentCloud
2525
2525
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2526
2526
  end
2527
2527
 
2528
+ # 删除共享带宽包(仅非活动状态的流量包可删除)。
2529
+
2530
+ # @param request: Request instance for DeleteTrafficPackages.
2531
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DeleteTrafficPackagesRequest`
2532
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DeleteTrafficPackagesResponse`
2533
+ def DeleteTrafficPackages(request)
2534
+ body = send_request('DeleteTrafficPackages', request.serialize)
2535
+ response = JSON.parse(body)
2536
+ if response['Response'].key?('Error') == false
2537
+ model = DeleteTrafficPackagesResponse.new
2538
+ model.deserialize(response['Response'])
2539
+ model
2540
+ else
2541
+ code = response['Response']['Error']['Code']
2542
+ message = response['Response']['Error']['Message']
2543
+ reqid = response['Response']['RequestId']
2544
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2545
+ end
2546
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2547
+ raise e
2548
+ rescue StandardError => e
2549
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2550
+ end
2551
+
2528
2552
  # 本接口(DeleteVpc)用于删除私有网络。
2529
2553
  # * 删除前请确保 VPC 内已经没有相关资源,例如云服务器、云数据库、NoSQL、VPN网关、专线网关、负载均衡、对等连接、与之互通的基础网络设备等。
2530
2554
  # * 删除私有网络是不可逆的操作,请谨慎处理。
@@ -4168,6 +4192,30 @@ module TencentCloud
4168
4192
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4169
4193
  end
4170
4194
 
4195
+ # 本接口(DescribeSubnetResourceDashboard)用于查看Subnet资源信息。
4196
+
4197
+ # @param request: Request instance for DescribeSubnetResourceDashboard.
4198
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeSubnetResourceDashboardRequest`
4199
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeSubnetResourceDashboardResponse`
4200
+ def DescribeSubnetResourceDashboard(request)
4201
+ body = send_request('DescribeSubnetResourceDashboard', request.serialize)
4202
+ response = JSON.parse(body)
4203
+ if response['Response'].key?('Error') == false
4204
+ model = DescribeSubnetResourceDashboardResponse.new
4205
+ model.deserialize(response['Response'])
4206
+ model
4207
+ else
4208
+ code = response['Response']['Error']['Code']
4209
+ message = response['Response']['Error']['Message']
4210
+ reqid = response['Response']['RequestId']
4211
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4212
+ end
4213
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4214
+ raise e
4215
+ rescue StandardError => e
4216
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4217
+ end
4218
+
4171
4219
  # 本接口(DescribeSubnets)用于查询子网列表。
4172
4220
 
4173
4221
  # @param request: Request instance for DescribeSubnets.
@@ -4290,6 +4338,31 @@ module TencentCloud
4290
4338
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4291
4339
  end
4292
4340
 
4341
+ # 本接口(DescribeUsedIpAddress)用于查询Subnet或者Vpc内的ip的使用情况,
4342
+ # 如被ip被占用,返回占用ip的资源类别与id;如未被占用,返回空值
4343
+
4344
+ # @param request: Request instance for DescribeUsedIpAddress.
4345
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeUsedIpAddressRequest`
4346
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeUsedIpAddressResponse`
4347
+ def DescribeUsedIpAddress(request)
4348
+ body = send_request('DescribeUsedIpAddress', request.serialize)
4349
+ response = JSON.parse(body)
4350
+ if response['Response'].key?('Error') == false
4351
+ model = DescribeUsedIpAddressResponse.new
4352
+ model.deserialize(response['Response'])
4353
+ model
4354
+ else
4355
+ code = response['Response']['Error']['Code']
4356
+ message = response['Response']['Error']['Message']
4357
+ reqid = response['Response']['RequestId']
4358
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4359
+ end
4360
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4361
+ raise e
4362
+ rescue StandardError => e
4363
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4364
+ end
4365
+
4293
4366
  # 本接口(DescribeVpcEndPoint)用于查询终端节点列表。
4294
4367
 
4295
4368
  # @param request: Request instance for DescribeVpcEndPoint.
@@ -6281,6 +6281,38 @@ module TencentCloud
6281
6281
  end
6282
6282
  end
6283
6283
 
6284
+ # DeleteTrafficPackages请求参数结构体
6285
+ class DeleteTrafficPackagesRequest < TencentCloud::Common::AbstractModel
6286
+ # @param TrafficPackageIds: 待删除的流量包唯一ID数组
6287
+ # @type TrafficPackageIds: Array
6288
+
6289
+ attr_accessor :TrafficPackageIds
6290
+
6291
+ def initialize(trafficpackageids=nil)
6292
+ @TrafficPackageIds = trafficpackageids
6293
+ end
6294
+
6295
+ def deserialize(params)
6296
+ @TrafficPackageIds = params['TrafficPackageIds']
6297
+ end
6298
+ end
6299
+
6300
+ # DeleteTrafficPackages返回参数结构体
6301
+ class DeleteTrafficPackagesResponse < TencentCloud::Common::AbstractModel
6302
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6303
+ # @type RequestId: String
6304
+
6305
+ attr_accessor :RequestId
6306
+
6307
+ def initialize(requestid=nil)
6308
+ @RequestId = requestid
6309
+ end
6310
+
6311
+ def deserialize(params)
6312
+ @RequestId = params['RequestId']
6313
+ end
6314
+ end
6315
+
6284
6316
  # DeleteVpcEndPoint请求参数结构体
6285
6317
  class DeleteVpcEndPointRequest < TencentCloud::Common::AbstractModel
6286
6318
  # @param EndPointId: 终端节点ID。
@@ -10343,6 +10375,49 @@ module TencentCloud
10343
10375
  end
10344
10376
  end
10345
10377
 
10378
+ # DescribeSubnetResourceDashboard请求参数结构体
10379
+ class DescribeSubnetResourceDashboardRequest < TencentCloud::Common::AbstractModel
10380
+ # @param SubnetIds: Subnet实例ID,例如:subnet-f1xjkw1b。
10381
+ # @type SubnetIds: Array
10382
+
10383
+ attr_accessor :SubnetIds
10384
+
10385
+ def initialize(subnetids=nil)
10386
+ @SubnetIds = subnetids
10387
+ end
10388
+
10389
+ def deserialize(params)
10390
+ @SubnetIds = params['SubnetIds']
10391
+ end
10392
+ end
10393
+
10394
+ # DescribeSubnetResourceDashboard返回参数结构体
10395
+ class DescribeSubnetResourceDashboardResponse < TencentCloud::Common::AbstractModel
10396
+ # @param ResourceStatisticsSet: 资源统计结果。
10397
+ # @type ResourceStatisticsSet: Array
10398
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10399
+ # @type RequestId: String
10400
+
10401
+ attr_accessor :ResourceStatisticsSet, :RequestId
10402
+
10403
+ def initialize(resourcestatisticsset=nil, requestid=nil)
10404
+ @ResourceStatisticsSet = resourcestatisticsset
10405
+ @RequestId = requestid
10406
+ end
10407
+
10408
+ def deserialize(params)
10409
+ unless params['ResourceStatisticsSet'].nil?
10410
+ @ResourceStatisticsSet = []
10411
+ params['ResourceStatisticsSet'].each do |i|
10412
+ resourcestatistics_tmp = ResourceStatistics.new
10413
+ resourcestatistics_tmp.deserialize(i)
10414
+ @ResourceStatisticsSet << resourcestatistics_tmp
10415
+ end
10416
+ end
10417
+ @RequestId = params['RequestId']
10418
+ end
10419
+ end
10420
+
10346
10421
  # DescribeSubnets请求参数结构体
10347
10422
  class DescribeSubnetsRequest < TencentCloud::Common::AbstractModel
10348
10423
  # @param SubnetIds: 子网实例ID查询。形如:subnet-pxir56ns。每次请求的实例的上限为100。参数不支持同时指定SubnetIds和Filters。
@@ -10634,6 +10709,71 @@ module TencentCloud
10634
10709
  end
10635
10710
  end
10636
10711
 
10712
+ # DescribeUsedIpAddress请求参数结构体
10713
+ class DescribeUsedIpAddressRequest < TencentCloud::Common::AbstractModel
10714
+ # @param VpcId: VPC实例ID。
10715
+ # @type VpcId: String
10716
+ # @param SubnetId: 子网实例ID。
10717
+ # @type SubnetId: String
10718
+ # @param IpAddresses: 查询是否占用的ip列表
10719
+ # @type IpAddresses: Array
10720
+ # @param Offset: 偏移量。
10721
+ # @type Offset: Integer
10722
+ # @param Limit: 请求对象个数。
10723
+ # @type Limit: Integer
10724
+
10725
+ attr_accessor :VpcId, :SubnetId, :IpAddresses, :Offset, :Limit
10726
+
10727
+ def initialize(vpcid=nil, subnetid=nil, ipaddresses=nil, offset=nil, limit=nil)
10728
+ @VpcId = vpcid
10729
+ @SubnetId = subnetid
10730
+ @IpAddresses = ipaddresses
10731
+ @Offset = offset
10732
+ @Limit = limit
10733
+ end
10734
+
10735
+ def deserialize(params)
10736
+ @VpcId = params['VpcId']
10737
+ @SubnetId = params['SubnetId']
10738
+ @IpAddresses = params['IpAddresses']
10739
+ @Offset = params['Offset']
10740
+ @Limit = params['Limit']
10741
+ end
10742
+ end
10743
+
10744
+ # DescribeUsedIpAddress返回参数结构体
10745
+ class DescribeUsedIpAddressResponse < TencentCloud::Common::AbstractModel
10746
+ # @param IpAddressStates: 占用ip地址的资源信息
10747
+ # 注意:此字段可能返回 null,表示取不到有效值。
10748
+ # @type IpAddressStates: Array
10749
+ # @param TotalCount: 返回占用资源的个数
10750
+ # 注意:此字段可能返回 null,表示取不到有效值。
10751
+ # @type TotalCount: Integer
10752
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10753
+ # @type RequestId: String
10754
+
10755
+ attr_accessor :IpAddressStates, :TotalCount, :RequestId
10756
+
10757
+ def initialize(ipaddressstates=nil, totalcount=nil, requestid=nil)
10758
+ @IpAddressStates = ipaddressstates
10759
+ @TotalCount = totalcount
10760
+ @RequestId = requestid
10761
+ end
10762
+
10763
+ def deserialize(params)
10764
+ unless params['IpAddressStates'].nil?
10765
+ @IpAddressStates = []
10766
+ params['IpAddressStates'].each do |i|
10767
+ ipaddressstates_tmp = IpAddressStates.new
10768
+ ipaddressstates_tmp.deserialize(i)
10769
+ @IpAddressStates << ipaddressstates_tmp
10770
+ end
10771
+ end
10772
+ @TotalCount = params['TotalCount']
10773
+ @RequestId = params['RequestId']
10774
+ end
10775
+ end
10776
+
10637
10777
  # DescribeVpcEndPoint请求参数结构体
10638
10778
  class DescribeVpcEndPointRequest < TencentCloud::Common::AbstractModel
10639
10779
  # @param Filters: 过滤条件。
@@ -13921,6 +14061,38 @@ module TencentCloud
13921
14061
  end
13922
14062
  end
13923
14063
 
14064
+ # 占用ip的资源信息
14065
+ class IpAddressStates < TencentCloud::Common::AbstractModel
14066
+ # @param VpcId: VPC实例ID。
14067
+ # @type VpcId: String
14068
+ # @param SubnetId: 子网实例ID。
14069
+ # @type SubnetId: String
14070
+ # @param IpAddress: IP地址。
14071
+ # @type IpAddress: String
14072
+ # @param ResourceType: 资源类型
14073
+ # @type ResourceType: String
14074
+ # @param ResourceId: 资源ID
14075
+ # @type ResourceId: String
14076
+
14077
+ attr_accessor :VpcId, :SubnetId, :IpAddress, :ResourceType, :ResourceId
14078
+
14079
+ def initialize(vpcid=nil, subnetid=nil, ipaddress=nil, resourcetype=nil, resourceid=nil)
14080
+ @VpcId = vpcid
14081
+ @SubnetId = subnetid
14082
+ @IpAddress = ipaddress
14083
+ @ResourceType = resourcetype
14084
+ @ResourceId = resourceid
14085
+ end
14086
+
14087
+ def deserialize(params)
14088
+ @VpcId = params['VpcId']
14089
+ @SubnetId = params['SubnetId']
14090
+ @IpAddress = params['IpAddress']
14091
+ @ResourceType = params['ResourceType']
14092
+ @ResourceId = params['ResourceId']
14093
+ end
14094
+ end
14095
+
13924
14096
  # IP在线查询的字段信息
13925
14097
  class IpField < TencentCloud::Common::AbstractModel
13926
14098
  # @param Country: 国家字段信息
@@ -17230,7 +17402,7 @@ module TencentCloud
17230
17402
  class Price < TencentCloud::Common::AbstractModel
17231
17403
  # @param InstancePrice: 实例价格。
17232
17404
  # @type InstancePrice: :class:`Tencentcloud::Vpc.v20170312.models.ItemPrice`
17233
- # @param BandwidthPrice: 网络价格。
17405
+ # @param BandwidthPrice: 带宽价格。
17234
17406
  # @type BandwidthPrice: :class:`Tencentcloud::Vpc.v20170312.models.ItemPrice`
17235
17407
 
17236
17408
  attr_accessor :InstancePrice, :BandwidthPrice
@@ -18342,6 +18514,65 @@ module TencentCloud
18342
18514
  end
18343
18515
  end
18344
18516
 
18517
+ # 资源统计信息
18518
+ class ResourceStatistics < TencentCloud::Common::AbstractModel
18519
+ # @param VpcId: Vpc实例ID,例如:vpc-f1xjkw1b。
18520
+ # @type VpcId: String
18521
+ # @param SubnetId: 子网实例ID,例如:subnet-bthucmmy。
18522
+ # @type SubnetId: String
18523
+ # @param Ip: 当前已使用的IP总数。
18524
+ # @type Ip: Integer
18525
+ # @param ResourceStatisticsItemSet: 资源统计信息。
18526
+ # @type ResourceStatisticsItemSet: Array
18527
+
18528
+ attr_accessor :VpcId, :SubnetId, :Ip, :ResourceStatisticsItemSet
18529
+
18530
+ def initialize(vpcid=nil, subnetid=nil, ip=nil, resourcestatisticsitemset=nil)
18531
+ @VpcId = vpcid
18532
+ @SubnetId = subnetid
18533
+ @Ip = ip
18534
+ @ResourceStatisticsItemSet = resourcestatisticsitemset
18535
+ end
18536
+
18537
+ def deserialize(params)
18538
+ @VpcId = params['VpcId']
18539
+ @SubnetId = params['SubnetId']
18540
+ @Ip = params['Ip']
18541
+ unless params['ResourceStatisticsItemSet'].nil?
18542
+ @ResourceStatisticsItemSet = []
18543
+ params['ResourceStatisticsItemSet'].each do |i|
18544
+ resourcestatisticsitem_tmp = ResourceStatisticsItem.new
18545
+ resourcestatisticsitem_tmp.deserialize(i)
18546
+ @ResourceStatisticsItemSet << resourcestatisticsitem_tmp
18547
+ end
18548
+ end
18549
+ end
18550
+ end
18551
+
18552
+ # 资源统计项。
18553
+ class ResourceStatisticsItem < TencentCloud::Common::AbstractModel
18554
+ # @param ResourceType: 资源类型。比如,CVM,ENI等。
18555
+ # @type ResourceType: String
18556
+ # @param ResourceName: 资源名称。
18557
+ # @type ResourceName: String
18558
+ # @param ResourceCount: 资源个数。
18559
+ # @type ResourceCount: Integer
18560
+
18561
+ attr_accessor :ResourceType, :ResourceName, :ResourceCount
18562
+
18563
+ def initialize(resourcetype=nil, resourcename=nil, resourcecount=nil)
18564
+ @ResourceType = resourcetype
18565
+ @ResourceName = resourcename
18566
+ @ResourceCount = resourcecount
18567
+ end
18568
+
18569
+ def deserialize(params)
18570
+ @ResourceType = params['ResourceType']
18571
+ @ResourceName = params['ResourceName']
18572
+ @ResourceCount = params['ResourceCount']
18573
+ end
18574
+ end
18575
+
18345
18576
  # ResumeSnapshotInstance请求参数结构体
18346
18577
  class ResumeSnapshotInstanceRequest < TencentCloud::Common::AbstractModel
18347
18578
  # @param SnapshotPolicyId: 快照策略Id。
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.569
4
+ version: 3.0.571
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-15 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common