tencentcloud-sdk-vpc 3.0.570 → 3.0.572
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170312/client.rb +48 -0
- data/lib/v20170312/models.rb +134 -0
- 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: 73d5f8237db9df76e84d2aafabfefd10724ad37f
|
4
|
+
data.tar.gz: d2e72f96bf0797536e7a4345d5c1749a8c8e67ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bb02be46a6ba71538440084f60008d2bf35591145aac3a873bff4efbf5ff6076be3ef358e02056f8bc2a0cd36c33f4271d0f1bab60dc7c75909295c274fd303
|
7
|
+
data.tar.gz: a1f73a15ac7378848157f662f473b5167dc2a5231858ac0189fea0de7524d28767fb21ac0a22d4a474539ee2c7c8a0d53dffd42d522ca5dde3c450b96f4e5d1f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.572
|
data/lib/v20170312/client.rb
CHANGED
@@ -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.
|
data/lib/v20170312/models.rb
CHANGED
@@ -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。
|
@@ -18439,6 +18514,65 @@ module TencentCloud
|
|
18439
18514
|
end
|
18440
18515
|
end
|
18441
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
|
+
|
18442
18576
|
# ResumeSnapshotInstance请求参数结构体
|
18443
18577
|
class ResumeSnapshotInstanceRequest < TencentCloud::Common::AbstractModel
|
18444
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.
|
4
|
+
version: 3.0.572
|
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-
|
11
|
+
date: 2023-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|