tencentcloud-sdk-vpc 3.0.649 → 3.0.650
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 +50 -0
- data/lib/v20170312/models.rb +78 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d6b2e3ba6e8b80c1a4548625fec390721199aec
|
4
|
+
data.tar.gz: 76d01f0a77c87de0a9e41272e4fbaeb9111e86b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1ee00e5aeed68d2024461e98c4cb5abf980b4923a881e3e26b64c80e99749321a32bbf43f8f039ed7af1b67683cee4007b765e9dbb8b2d2121a630c8200a24b
|
7
|
+
data.tar.gz: 7dac62bfaea8a89a1c7fba0ad625e4ef7093f1f3ffaa5bb55a7636b3ca42511af799d5a32239b853e7b920f9bc4cd7b9bc63f3c4ef7b678399c2545fac4875be
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.650
|
data/lib/v20170312/client.rb
CHANGED
@@ -1249,6 +1249,30 @@ module TencentCloud
|
|
1249
1249
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1250
1250
|
end
|
1251
1251
|
|
1252
|
+
# 本接口(CreateNetworkAclEntries)用于增量添加网络ACL三元组的入站规则和出站规则。
|
1253
|
+
|
1254
|
+
# @param request: Request instance for CreateNetworkAclEntries.
|
1255
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::CreateNetworkAclEntriesRequest`
|
1256
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::CreateNetworkAclEntriesResponse`
|
1257
|
+
def CreateNetworkAclEntries(request)
|
1258
|
+
body = send_request('CreateNetworkAclEntries', request.serialize)
|
1259
|
+
response = JSON.parse(body)
|
1260
|
+
if response['Response'].key?('Error') == false
|
1261
|
+
model = CreateNetworkAclEntriesResponse.new
|
1262
|
+
model.deserialize(response['Response'])
|
1263
|
+
model
|
1264
|
+
else
|
1265
|
+
code = response['Response']['Error']['Code']
|
1266
|
+
message = response['Response']['Error']['Message']
|
1267
|
+
reqid = response['Response']['RequestId']
|
1268
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1269
|
+
end
|
1270
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1271
|
+
raise e
|
1272
|
+
rescue StandardError => e
|
1273
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1274
|
+
end
|
1275
|
+
|
1252
1276
|
# 本接口(CreateNetworkAclQuintupleEntries)用于增量网络ACL五元组的入站规则和出站规则。
|
1253
1277
|
|
1254
1278
|
# @param request: Request instance for CreateNetworkAclQuintupleEntries.
|
@@ -2301,6 +2325,32 @@ module TencentCloud
|
|
2301
2325
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2302
2326
|
end
|
2303
2327
|
|
2328
|
+
# 本接口(DeleteNetworkAclEntries)用于删除三元组网络ACL的入站规则和出站规则。在NetworkAclEntrySet参数中:
|
2329
|
+
# * 删除IPv4规则,需要传入NetworkAclIpv4EntryId。
|
2330
|
+
# * 删除IPv6规则,需要传入NetworkAclIpv6EntryId。
|
2331
|
+
|
2332
|
+
# @param request: Request instance for DeleteNetworkAclEntries.
|
2333
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::DeleteNetworkAclEntriesRequest`
|
2334
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::DeleteNetworkAclEntriesResponse`
|
2335
|
+
def DeleteNetworkAclEntries(request)
|
2336
|
+
body = send_request('DeleteNetworkAclEntries', request.serialize)
|
2337
|
+
response = JSON.parse(body)
|
2338
|
+
if response['Response'].key?('Error') == false
|
2339
|
+
model = DeleteNetworkAclEntriesResponse.new
|
2340
|
+
model.deserialize(response['Response'])
|
2341
|
+
model
|
2342
|
+
else
|
2343
|
+
code = response['Response']['Error']['Code']
|
2344
|
+
message = response['Response']['Error']['Message']
|
2345
|
+
reqid = response['Response']['RequestId']
|
2346
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2347
|
+
end
|
2348
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2349
|
+
raise e
|
2350
|
+
rescue StandardError => e
|
2351
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2352
|
+
end
|
2353
|
+
|
2304
2354
|
# 本接口(DeleteNetworkAclQuintupleEntries)用于删除网络ACL五元组指定的入站规则和出站规则(但不是全量删除该ACL下的所有条目)。在NetworkAclQuintupleEntrySet参数中:NetworkAclQuintupleEntry需要提供NetworkAclQuintupleEntryId。
|
2305
2355
|
|
2306
2356
|
# @param request: Request instance for DeleteNetworkAclQuintupleEntries.
|
data/lib/v20170312/models.rb
CHANGED
@@ -3652,6 +3652,45 @@ module TencentCloud
|
|
3652
3652
|
end
|
3653
3653
|
end
|
3654
3654
|
|
3655
|
+
# CreateNetworkAclEntries请求参数结构体
|
3656
|
+
class CreateNetworkAclEntriesRequest < TencentCloud::Common::AbstractModel
|
3657
|
+
# @param NetworkAclId: 网络ACL实例ID。例如:acl-12345678。
|
3658
|
+
# @type NetworkAclId: String
|
3659
|
+
# @param NetworkAclEntrySet: 网络三元组ACL规则集。
|
3660
|
+
# @type NetworkAclEntrySet: :class:`Tencentcloud::Vpc.v20170312.models.NetworkAclEntrySet`
|
3661
|
+
|
3662
|
+
attr_accessor :NetworkAclId, :NetworkAclEntrySet
|
3663
|
+
|
3664
|
+
def initialize(networkaclid=nil, networkaclentryset=nil)
|
3665
|
+
@NetworkAclId = networkaclid
|
3666
|
+
@NetworkAclEntrySet = networkaclentryset
|
3667
|
+
end
|
3668
|
+
|
3669
|
+
def deserialize(params)
|
3670
|
+
@NetworkAclId = params['NetworkAclId']
|
3671
|
+
unless params['NetworkAclEntrySet'].nil?
|
3672
|
+
@NetworkAclEntrySet = NetworkAclEntrySet.new
|
3673
|
+
@NetworkAclEntrySet.deserialize(params['NetworkAclEntrySet'])
|
3674
|
+
end
|
3675
|
+
end
|
3676
|
+
end
|
3677
|
+
|
3678
|
+
# CreateNetworkAclEntries返回参数结构体
|
3679
|
+
class CreateNetworkAclEntriesResponse < TencentCloud::Common::AbstractModel
|
3680
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3681
|
+
# @type RequestId: String
|
3682
|
+
|
3683
|
+
attr_accessor :RequestId
|
3684
|
+
|
3685
|
+
def initialize(requestid=nil)
|
3686
|
+
@RequestId = requestid
|
3687
|
+
end
|
3688
|
+
|
3689
|
+
def deserialize(params)
|
3690
|
+
@RequestId = params['RequestId']
|
3691
|
+
end
|
3692
|
+
end
|
3693
|
+
|
3655
3694
|
# CreateNetworkAclQuintupleEntries请求参数结构体
|
3656
3695
|
class CreateNetworkAclQuintupleEntriesRequest < TencentCloud::Common::AbstractModel
|
3657
3696
|
# @param NetworkAclId: 网络ACL实例ID。例如:acl-12345678。
|
@@ -5934,6 +5973,45 @@ module TencentCloud
|
|
5934
5973
|
end
|
5935
5974
|
end
|
5936
5975
|
|
5976
|
+
# DeleteNetworkAclEntries请求参数结构体
|
5977
|
+
class DeleteNetworkAclEntriesRequest < TencentCloud::Common::AbstractModel
|
5978
|
+
# @param NetworkAclId: 三元组网络ACL实例ID。例如:acl-12345678。
|
5979
|
+
# @type NetworkAclId: String
|
5980
|
+
# @param NetworkAclEntrySet: 三元组网络ACL规则集。
|
5981
|
+
# @type NetworkAclEntrySet: :class:`Tencentcloud::Vpc.v20170312.models.NetworkAclEntrySet`
|
5982
|
+
|
5983
|
+
attr_accessor :NetworkAclId, :NetworkAclEntrySet
|
5984
|
+
|
5985
|
+
def initialize(networkaclid=nil, networkaclentryset=nil)
|
5986
|
+
@NetworkAclId = networkaclid
|
5987
|
+
@NetworkAclEntrySet = networkaclentryset
|
5988
|
+
end
|
5989
|
+
|
5990
|
+
def deserialize(params)
|
5991
|
+
@NetworkAclId = params['NetworkAclId']
|
5992
|
+
unless params['NetworkAclEntrySet'].nil?
|
5993
|
+
@NetworkAclEntrySet = NetworkAclEntrySet.new
|
5994
|
+
@NetworkAclEntrySet.deserialize(params['NetworkAclEntrySet'])
|
5995
|
+
end
|
5996
|
+
end
|
5997
|
+
end
|
5998
|
+
|
5999
|
+
# DeleteNetworkAclEntries返回参数结构体
|
6000
|
+
class DeleteNetworkAclEntriesResponse < TencentCloud::Common::AbstractModel
|
6001
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6002
|
+
# @type RequestId: String
|
6003
|
+
|
6004
|
+
attr_accessor :RequestId
|
6005
|
+
|
6006
|
+
def initialize(requestid=nil)
|
6007
|
+
@RequestId = requestid
|
6008
|
+
end
|
6009
|
+
|
6010
|
+
def deserialize(params)
|
6011
|
+
@RequestId = params['RequestId']
|
6012
|
+
end
|
6013
|
+
end
|
6014
|
+
|
5937
6015
|
# DeleteNetworkAclQuintupleEntries请求参数结构体
|
5938
6016
|
class DeleteNetworkAclQuintupleEntriesRequest < TencentCloud::Common::AbstractModel
|
5939
6017
|
# @param NetworkAclId: 网络ACL实例ID。例如:acl-12345678。
|