tencentcloud-sdk-vpc 3.0.628 → 3.0.630

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: 1d209cff18fbd718613cc079479b6f169e19687a
4
- data.tar.gz: 7f18c1b82bd2dd945eb62093c30859e61ac25d77
3
+ metadata.gz: 954e93fc59b9d956b109bbbed6c1a1b0f0d60aa3
4
+ data.tar.gz: 0fe8fc67d75de52fb2fcfedfd72d595f9da31660
5
5
  SHA512:
6
- metadata.gz: c16ff3effa4c33b391ebaed4c59cb826b0d76479b1e10603199b91ad3d02b1df1d5545766562324d8b706ced07548a622de3e1c46e82975d28d77c24e196a01e
7
- data.tar.gz: c29725d324c0af0462cf41b9c877f456048f0d35be1031532d4b775185309a5ca6a4e596166a410cd23c584ece6192378226a5737a15ac9a44cbd943a7e7cd06
6
+ metadata.gz: f36b099d6d1e7d82f065dd3a8e6303faf2a3b148cdf4c02b823b243b41fc7a8bd31cd26491924fd22ca22498a70cf8d4d98e5f74ce31ba14dbf75efea115e0d9
7
+ data.tar.gz: 5288e0332549dce2ca09a734f57de20c653d96e2af8a706e525c3d1a87c51b11d668293ae33ad12db77ccdf79b275cb7818be8cff4c404147e56a2a1e031a1cf
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.628
1
+ 3.0.630
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 本接口(AcceptVpcPeeringConnection)用于接受对等连接请求。
57
+
58
+ # @param request: Request instance for AcceptVpcPeeringConnection.
59
+ # @type request: :class:`Tencentcloud::vpc::V20170312::AcceptVpcPeeringConnectionRequest`
60
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::AcceptVpcPeeringConnectionResponse`
61
+ def AcceptVpcPeeringConnection(request)
62
+ body = send_request('AcceptVpcPeeringConnection', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = AcceptVpcPeeringConnectionResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 接口用于添加带宽包资源,包括[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)和[负载均衡](https://cloud.tencent.com/document/product/214/517)等
57
81
 
58
82
  # @param request: Request instance for AddBandwidthPackageResources.
@@ -1689,6 +1713,30 @@ module TencentCloud
1689
1713
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1690
1714
  end
1691
1715
 
1716
+ # 本接口(CreateVpcPeeringConnection)用于创建私有网络对等连接。
1717
+
1718
+ # @param request: Request instance for CreateVpcPeeringConnection.
1719
+ # @type request: :class:`Tencentcloud::vpc::V20170312::CreateVpcPeeringConnectionRequest`
1720
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::CreateVpcPeeringConnectionResponse`
1721
+ def CreateVpcPeeringConnection(request)
1722
+ body = send_request('CreateVpcPeeringConnection', request.serialize)
1723
+ response = JSON.parse(body)
1724
+ if response['Response'].key?('Error') == false
1725
+ model = CreateVpcPeeringConnectionResponse.new
1726
+ model.deserialize(response['Response'])
1727
+ model
1728
+ else
1729
+ code = response['Response']['Error']['Code']
1730
+ message = response['Response']['Error']['Message']
1731
+ reqid = response['Response']['RequestId']
1732
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1733
+ end
1734
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1735
+ raise e
1736
+ rescue StandardError => e
1737
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1738
+ end
1739
+
1692
1740
  # 本接口(CreateVpnConnection)用于创建VPN通道。
1693
1741
  # >?本接口为异步接口,可调用 [DescribeVpcTaskResult](https://cloud.tencent.com/document/api/215/59037) 接口查询任务执行结果,待任务执行成功后再进行其他操作。
1694
1742
  # >
@@ -2648,6 +2696,30 @@ module TencentCloud
2648
2696
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2649
2697
  end
2650
2698
 
2699
+ # 本接口(DeleteVpcPeeringConnection)用于删除私有网络对等连接。
2700
+
2701
+ # @param request: Request instance for DeleteVpcPeeringConnection.
2702
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DeleteVpcPeeringConnectionRequest`
2703
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DeleteVpcPeeringConnectionResponse`
2704
+ def DeleteVpcPeeringConnection(request)
2705
+ body = send_request('DeleteVpcPeeringConnection', request.serialize)
2706
+ response = JSON.parse(body)
2707
+ if response['Response'].key?('Error') == false
2708
+ model = DeleteVpcPeeringConnectionResponse.new
2709
+ model.deserialize(response['Response'])
2710
+ model
2711
+ else
2712
+ code = response['Response']['Error']['Code']
2713
+ message = response['Response']['Error']['Message']
2714
+ reqid = response['Response']['RequestId']
2715
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2716
+ end
2717
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2718
+ raise e
2719
+ rescue StandardError => e
2720
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2721
+ end
2722
+
2651
2723
  # 本接口(DeleteVpnConnection)用于删除VPN通道。
2652
2724
 
2653
2725
  # @param request: Request instance for DeleteVpnConnection.
@@ -4564,6 +4636,30 @@ module TencentCloud
4564
4636
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4565
4637
  end
4566
4638
 
4639
+ # 查询私有网络对等连接。
4640
+
4641
+ # @param request: Request instance for DescribeVpcPeeringConnections.
4642
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeVpcPeeringConnectionsRequest`
4643
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeVpcPeeringConnectionsResponse`
4644
+ def DescribeVpcPeeringConnections(request)
4645
+ body = send_request('DescribeVpcPeeringConnections', request.serialize)
4646
+ response = JSON.parse(body)
4647
+ if response['Response'].key?('Error') == false
4648
+ model = DescribeVpcPeeringConnectionsResponse.new
4649
+ model.deserialize(response['Response'])
4650
+ model
4651
+ else
4652
+ code = response['Response']['Error']['Code']
4653
+ message = response['Response']['Error']['Message']
4654
+ reqid = response['Response']['RequestId']
4655
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4656
+ end
4657
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4658
+ raise e
4659
+ rescue StandardError => e
4660
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4661
+ end
4662
+
4567
4663
  # 本接口(DescribeVpcPrivateIpAddresses)用于查询VPC内网IP信息。<br />
4568
4664
  # 只能查询已使用的IP信息,当查询未使用的IP时,本接口不会报错,但不会出现在返回结果里。
4569
4665
 
@@ -6795,6 +6891,30 @@ module TencentCloud
6795
6891
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
6796
6892
  end
6797
6893
 
6894
+ # 本接口(ModifyVpcPeeringConnection)用于修改私有网络对等连接属性。
6895
+
6896
+ # @param request: Request instance for ModifyVpcPeeringConnection.
6897
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ModifyVpcPeeringConnectionRequest`
6898
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ModifyVpcPeeringConnectionResponse`
6899
+ def ModifyVpcPeeringConnection(request)
6900
+ body = send_request('ModifyVpcPeeringConnection', request.serialize)
6901
+ response = JSON.parse(body)
6902
+ if response['Response'].key?('Error') == false
6903
+ model = ModifyVpcPeeringConnectionResponse.new
6904
+ model.deserialize(response['Response'])
6905
+ model
6906
+ else
6907
+ code = response['Response']['Error']['Code']
6908
+ message = response['Response']['Error']['Message']
6909
+ reqid = response['Response']['RequestId']
6910
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
6911
+ end
6912
+ rescue TencentCloud::Common::TencentCloudSDKException => e
6913
+ raise e
6914
+ rescue StandardError => e
6915
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
6916
+ end
6917
+
6798
6918
  # 本接口(ModifyVpnConnectionAttribute)用于修改VPN通道。
6799
6919
 
6800
6920
  # @param request: Request instance for ModifyVpnConnectionAttribute.
@@ -6963,6 +7083,30 @@ module TencentCloud
6963
7083
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
6964
7084
  end
6965
7085
 
7086
+ # 本接口(RejectVpcPeeringConnection)用于驳回对等连接请求。
7087
+
7088
+ # @param request: Request instance for RejectVpcPeeringConnection.
7089
+ # @type request: :class:`Tencentcloud::vpc::V20170312::RejectVpcPeeringConnectionRequest`
7090
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::RejectVpcPeeringConnectionResponse`
7091
+ def RejectVpcPeeringConnection(request)
7092
+ body = send_request('RejectVpcPeeringConnection', request.serialize)
7093
+ response = JSON.parse(body)
7094
+ if response['Response'].key?('Error') == false
7095
+ model = RejectVpcPeeringConnectionResponse.new
7096
+ model.deserialize(response['Response'])
7097
+ model
7098
+ else
7099
+ code = response['Response']['Error']['Code']
7100
+ message = response['Response']['Error']['Message']
7101
+ reqid = response['Response']['RequestId']
7102
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
7103
+ end
7104
+ rescue TencentCloud::Common::TencentCloudSDKException => e
7105
+ raise e
7106
+ rescue StandardError => e
7107
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7108
+ end
7109
+
6966
7110
  # 本接口 (ReleaseAddresses) 用于释放一个或多个[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。
6967
7111
  # * 该操作不可逆,释放后 EIP 关联的 IP 地址将不再属于您的名下。
6968
7112
  # * 只有状态为 UNBIND 的 EIP 才能进行释放操作。
@@ -60,6 +60,33 @@ module TencentCloud
60
60
  end
61
61
  end
62
62
 
63
+ # AcceptVpcPeeringConnection请求参数结构体
64
+ class AcceptVpcPeeringConnectionRequest < TencentCloud::Common::AbstractModel
65
+
66
+
67
+ def initialize()
68
+ end
69
+
70
+ def deserialize(params)
71
+ end
72
+ end
73
+
74
+ # AcceptVpcPeeringConnection返回参数结构体
75
+ class AcceptVpcPeeringConnectionResponse < TencentCloud::Common::AbstractModel
76
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
77
+ # @type RequestId: String
78
+
79
+ attr_accessor :RequestId
80
+
81
+ def initialize(requestid=nil)
82
+ @RequestId = requestid
83
+ end
84
+
85
+ def deserialize(params)
86
+ @RequestId = params['RequestId']
87
+ end
88
+ end
89
+
63
90
  # 策略信息
64
91
  class AccessPolicy < TencentCloud::Common::AbstractModel
65
92
  # @param TargetCidr: 目的CIDR
@@ -4561,6 +4588,33 @@ module TencentCloud
4561
4588
  end
4562
4589
  end
4563
4590
 
4591
+ # CreateVpcPeeringConnection请求参数结构体
4592
+ class CreateVpcPeeringConnectionRequest < TencentCloud::Common::AbstractModel
4593
+
4594
+
4595
+ def initialize()
4596
+ end
4597
+
4598
+ def deserialize(params)
4599
+ end
4600
+ end
4601
+
4602
+ # CreateVpcPeeringConnection返回参数结构体
4603
+ class CreateVpcPeeringConnectionResponse < TencentCloud::Common::AbstractModel
4604
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4605
+ # @type RequestId: String
4606
+
4607
+ attr_accessor :RequestId
4608
+
4609
+ def initialize(requestid=nil)
4610
+ @RequestId = requestid
4611
+ end
4612
+
4613
+ def deserialize(params)
4614
+ @RequestId = params['RequestId']
4615
+ end
4616
+ end
4617
+
4564
4618
  # CreateVpc请求参数结构体
4565
4619
  class CreateVpcRequest < TencentCloud::Common::AbstractModel
4566
4620
  # @param VpcName: vpc名称,最大长度不能超过60个字节。
@@ -6436,6 +6490,33 @@ module TencentCloud
6436
6490
  end
6437
6491
  end
6438
6492
 
6493
+ # DeleteVpcPeeringConnection请求参数结构体
6494
+ class DeleteVpcPeeringConnectionRequest < TencentCloud::Common::AbstractModel
6495
+
6496
+
6497
+ def initialize()
6498
+ end
6499
+
6500
+ def deserialize(params)
6501
+ end
6502
+ end
6503
+
6504
+ # DeleteVpcPeeringConnection返回参数结构体
6505
+ class DeleteVpcPeeringConnectionResponse < TencentCloud::Common::AbstractModel
6506
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6507
+ # @type RequestId: String
6508
+
6509
+ attr_accessor :RequestId
6510
+
6511
+ def initialize(requestid=nil)
6512
+ @RequestId = requestid
6513
+ end
6514
+
6515
+ def deserialize(params)
6516
+ @RequestId = params['RequestId']
6517
+ end
6518
+ end
6519
+
6439
6520
  # DeleteVpc请求参数结构体
6440
6521
  class DeleteVpcRequest < TencentCloud::Common::AbstractModel
6441
6522
  # @param VpcId: VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。
@@ -11271,6 +11352,68 @@ module TencentCloud
11271
11352
  end
11272
11353
  end
11273
11354
 
11355
+ # DescribeVpcPeeringConnections请求参数结构体
11356
+ class DescribeVpcPeeringConnectionsRequest < TencentCloud::Common::AbstractModel
11357
+ # @param PeeringConnectionIds: 对等连接唯一ID数组。
11358
+ # @type PeeringConnectionIds: Array
11359
+ # @param Filters: 过滤条件,参数不支持同时指定PeeringConnectionIds和Filters。
11360
+ # <li>vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。</li>
11361
+ # <li>state String - (过滤条件)对等连接状态,可选值有:PENDING,投放中;ACTIVE,使用中;EXPIRED,已过期;REJECTED,拒绝。</li>
11362
+ # <li>peering-connection-name - String - (过滤条件)对等连接名称。</li>
11363
+ # @type Filters: Array
11364
+ # @param Offset: 偏移量。
11365
+ # @type Offset: Integer
11366
+ # @param Limit: 请求对象个数。
11367
+ # @type Limit: Integer
11368
+ # @param OrderField: 排序字段,可选值有:CreatedTime,PeeringConnectionName。
11369
+ # @type OrderField: String
11370
+ # @param OrderDirection: 排序方式:DESC,降序;ASC,升序。
11371
+ # @type OrderDirection: String
11372
+
11373
+ attr_accessor :PeeringConnectionIds, :Filters, :Offset, :Limit, :OrderField, :OrderDirection
11374
+
11375
+ def initialize(peeringconnectionids=nil, filters=nil, offset=nil, limit=nil, orderfield=nil, orderdirection=nil)
11376
+ @PeeringConnectionIds = peeringconnectionids
11377
+ @Filters = filters
11378
+ @Offset = offset
11379
+ @Limit = limit
11380
+ @OrderField = orderfield
11381
+ @OrderDirection = orderdirection
11382
+ end
11383
+
11384
+ def deserialize(params)
11385
+ @PeeringConnectionIds = params['PeeringConnectionIds']
11386
+ unless params['Filters'].nil?
11387
+ @Filters = []
11388
+ params['Filters'].each do |i|
11389
+ filter_tmp = Filter.new
11390
+ filter_tmp.deserialize(i)
11391
+ @Filters << filter_tmp
11392
+ end
11393
+ end
11394
+ @Offset = params['Offset']
11395
+ @Limit = params['Limit']
11396
+ @OrderField = params['OrderField']
11397
+ @OrderDirection = params['OrderDirection']
11398
+ end
11399
+ end
11400
+
11401
+ # DescribeVpcPeeringConnections返回参数结构体
11402
+ class DescribeVpcPeeringConnectionsResponse < TencentCloud::Common::AbstractModel
11403
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11404
+ # @type RequestId: String
11405
+
11406
+ attr_accessor :RequestId
11407
+
11408
+ def initialize(requestid=nil)
11409
+ @RequestId = requestid
11410
+ end
11411
+
11412
+ def deserialize(params)
11413
+ @RequestId = params['RequestId']
11414
+ end
11415
+ end
11416
+
11274
11417
  # DescribeVpcPrivateIpAddresses请求参数结构体
11275
11418
  class DescribeVpcPrivateIpAddressesRequest < TencentCloud::Common::AbstractModel
11276
11419
  # @param VpcId: `VPC`实例`ID`,形如:`vpc-f49l6u0z`。
@@ -16489,6 +16632,33 @@ module TencentCloud
16489
16632
  end
16490
16633
  end
16491
16634
 
16635
+ # ModifyVpcPeeringConnection请求参数结构体
16636
+ class ModifyVpcPeeringConnectionRequest < TencentCloud::Common::AbstractModel
16637
+
16638
+
16639
+ def initialize()
16640
+ end
16641
+
16642
+ def deserialize(params)
16643
+ end
16644
+ end
16645
+
16646
+ # ModifyVpcPeeringConnection返回参数结构体
16647
+ class ModifyVpcPeeringConnectionResponse < TencentCloud::Common::AbstractModel
16648
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
16649
+ # @type RequestId: String
16650
+
16651
+ attr_accessor :RequestId
16652
+
16653
+ def initialize(requestid=nil)
16654
+ @RequestId = requestid
16655
+ end
16656
+
16657
+ def deserialize(params)
16658
+ @RequestId = params['RequestId']
16659
+ end
16660
+ end
16661
+
16492
16662
  # ModifyVpnConnectionAttribute请求参数结构体
16493
16663
  class ModifyVpnConnectionAttributeRequest < TencentCloud::Common::AbstractModel
16494
16664
  # @param VpnConnectionId: VPN通道实例ID。形如:vpnx-f49l6u0z。
@@ -17786,6 +17956,33 @@ module TencentCloud
17786
17956
  end
17787
17957
  end
17788
17958
 
17959
+ # RejectVpcPeeringConnection请求参数结构体
17960
+ class RejectVpcPeeringConnectionRequest < TencentCloud::Common::AbstractModel
17961
+
17962
+
17963
+ def initialize()
17964
+ end
17965
+
17966
+ def deserialize(params)
17967
+ end
17968
+ end
17969
+
17970
+ # RejectVpcPeeringConnection返回参数结构体
17971
+ class RejectVpcPeeringConnectionResponse < TencentCloud::Common::AbstractModel
17972
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
17973
+ # @type RequestId: String
17974
+
17975
+ attr_accessor :RequestId
17976
+
17977
+ def initialize(requestid=nil)
17978
+ @RequestId = requestid
17979
+ end
17980
+
17981
+ def deserialize(params)
17982
+ @RequestId = params['RequestId']
17983
+ end
17984
+ end
17985
+
17789
17986
  # ReleaseAddresses请求参数结构体
17790
17987
  class ReleaseAddressesRequest < TencentCloud::Common::AbstractModel
17791
17988
  # @param AddressIds: 标识 EIP 的唯一 ID 列表。EIP 唯一 ID 形如:`eip-11112222`。
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.628
4
+ version: 3.0.630
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-08-04 00:00:00.000000000 Z
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common