tencentcloud-sdk-vpc 3.0.648 → 3.0.650

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: de18483c3b1f6c25cf56e74c2dd09963d1e153d3
4
- data.tar.gz: 30b364c1e81eb3d507110c1eadd6ef8895810804
3
+ metadata.gz: 6d6b2e3ba6e8b80c1a4548625fec390721199aec
4
+ data.tar.gz: 76d01f0a77c87de0a9e41272e4fbaeb9111e86b4
5
5
  SHA512:
6
- metadata.gz: 631edacff468ad1957c04f3c5afcbe725faa3e957f392ad6030ec70ff2d7a0f3c6f9795c181355e3e43ead6bccc985eebb8e047928b56b8c43cc1974af5e9f76
7
- data.tar.gz: da0370bc025c040fb65f3746047e7048627d5fc294abc221eb106dcd2e7e0d8745f809e60356b1183bd466099f0efb4cbf1747f533f721e940c5c426cf7d8bfa
6
+ metadata.gz: d1ee00e5aeed68d2024461e98c4cb5abf980b4923a881e3e26b64c80e99749321a32bbf43f8f039ed7af1b67683cee4007b765e9dbb8b2d2121a630c8200a24b
7
+ data.tar.gz: 7dac62bfaea8a89a1c7fba0ad625e4ef7093f1f3ffaa5bb55a7636b3ca42511af799d5a32239b853e7b920f9bc4cd7b9bc63f3c4ef7b678399c2545fac4875be
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.648
1
+ 3.0.650
@@ -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.
@@ -2712,6 +2712,8 @@ module TencentCloud
2712
2712
  # <li>TOP5_POSTPAID_BY_MONTH: 按月后付费TOP5计费</li>
2713
2713
  # <li>PERCENT95_POSTPAID_BY_MONTH: 按月后付费月95计费</li>
2714
2714
  # <li>FIXED_PREPAID_BY_MONTH: 包月预付费计费</li>
2715
+ # <li>ENHANCED95_POSTPAID_BY_MONTH: 按月后付费增强型95计费</li>
2716
+ # <li>PEAK_BANDWIDTH_POSTPAID_BY_DAY: 后付费日结按带宽计费</li>
2715
2717
  # @type ChargeType: String
2716
2718
  # @param BandwidthPackageName: 带宽包名称。
2717
2719
  # @type BandwidthPackageName: String
@@ -3650,6 +3652,45 @@ module TencentCloud
3650
3652
  end
3651
3653
  end
3652
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
+
3653
3694
  # CreateNetworkAclQuintupleEntries请求参数结构体
3654
3695
  class CreateNetworkAclQuintupleEntriesRequest < TencentCloud::Common::AbstractModel
3655
3696
  # @param NetworkAclId: 网络ACL实例ID。例如:acl-12345678。
@@ -5932,6 +5973,45 @@ module TencentCloud
5932
5973
  end
5933
5974
  end
5934
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
+
5935
6015
  # DeleteNetworkAclQuintupleEntries请求参数结构体
5936
6016
  class DeleteNetworkAclQuintupleEntriesRequest < TencentCloud::Common::AbstractModel
5937
6017
  # @param NetworkAclId: 网络ACL实例ID。例如:acl-12345678。
@@ -15922,13 +16002,16 @@ module TencentCloud
15922
16002
  # @type NetworkAclEntrySet: :class:`Tencentcloud::Vpc.v20170312.models.NetworkAclEntrySet`
15923
16003
  # @param NetworkAclQuintupleSet: 网络ACL五元组规则集。NetworkAclEntrySet和NetworkAclQuintupleSet只能输入一个。
15924
16004
  # @type NetworkAclQuintupleSet: :class:`Tencentcloud::Vpc.v20170312.models.NetworkAclQuintupleEntries`
16005
+ # @param EnableUpdateAclEntries: 三元组的增量更新。该接口的默认语义为全量覆盖。当需要实现增量更新语义时,设置该参数为True。
16006
+ # @type EnableUpdateAclEntries: Boolean
15925
16007
 
15926
- attr_accessor :NetworkAclId, :NetworkAclEntrySet, :NetworkAclQuintupleSet
16008
+ attr_accessor :NetworkAclId, :NetworkAclEntrySet, :NetworkAclQuintupleSet, :EnableUpdateAclEntries
15927
16009
 
15928
- def initialize(networkaclid=nil, networkaclentryset=nil, networkaclquintupleset=nil)
16010
+ def initialize(networkaclid=nil, networkaclentryset=nil, networkaclquintupleset=nil, enableupdateaclentries=nil)
15929
16011
  @NetworkAclId = networkaclid
15930
16012
  @NetworkAclEntrySet = networkaclentryset
15931
16013
  @NetworkAclQuintupleSet = networkaclquintupleset
16014
+ @EnableUpdateAclEntries = enableupdateaclentries
15932
16015
  end
15933
16016
 
15934
16017
  def deserialize(params)
@@ -15941,6 +16024,7 @@ module TencentCloud
15941
16024
  @NetworkAclQuintupleSet = NetworkAclQuintupleEntries.new
15942
16025
  @NetworkAclQuintupleSet.deserialize(params['NetworkAclQuintupleSet'])
15943
16026
  end
16027
+ @EnableUpdateAclEntries = params['EnableUpdateAclEntries']
15944
16028
  end
15945
16029
  end
15946
16030
 
@@ -17372,13 +17456,11 @@ module TencentCloud
17372
17456
 
17373
17457
  # 网络ACL规则。
17374
17458
  class NetworkAclEntry < TencentCloud::Common::AbstractModel
17375
- # @param ModifyTime: 修改时间。
17376
- # @type ModifyTime: String
17377
17459
  # @param Protocol: 协议, 取值: TCP,UDP, ICMP, ALL。
17378
17460
  # @type Protocol: String
17379
17461
  # @param Port: 端口(all, 单个port, range)。当Protocol为ALL或ICMP时,不能指定Port。
17380
17462
  # @type Port: String
17381
- # @param CidrBlock: 网段或IP(互斥)
17463
+ # @param CidrBlock: 网段或IP(互斥)。增量创建ACL规则时,CidrBlock和Ipv6CidrBlock至少提供一个。
17382
17464
  # @type CidrBlock: String
17383
17465
  # @param Ipv6CidrBlock: 网段或IPv6(互斥)。
17384
17466
  # @type Ipv6CidrBlock: String
@@ -17386,27 +17468,43 @@ module TencentCloud
17386
17468
  # @type Action: String
17387
17469
  # @param Description: 规则描述,最大长度100。
17388
17470
  # @type Description: String
17471
+ # @param ModifyTime: 修改时间。
17472
+ # @type ModifyTime: String
17473
+ # @param Priority: 优先级,从1开始。
17474
+ # @type Priority: Integer
17475
+ # @param NetworkAclIpv4EntryId: IPv4网络ACL条目唯一ID。当修改ACL条目时,NetworkAclIpv4EntryId和NetworkAclIpv6EntryID至少提供一个。
17476
+ # 注意:此字段可能返回 null,表示取不到有效值。
17477
+ # @type NetworkAclIpv4EntryId: String
17478
+ # @param NetworkAclIpv6EntryId: IPv6网络ACL条目唯一ID。当修改ACL条目时,NetworkAclIpv4EntryId和NetworkAclIpv6EntryId至少提供一个。
17479
+ # 注意:此字段可能返回 null,表示取不到有效值。
17480
+ # @type NetworkAclIpv6EntryId: String
17389
17481
 
17390
- attr_accessor :ModifyTime, :Protocol, :Port, :CidrBlock, :Ipv6CidrBlock, :Action, :Description
17482
+ attr_accessor :Protocol, :Port, :CidrBlock, :Ipv6CidrBlock, :Action, :Description, :ModifyTime, :Priority, :NetworkAclIpv4EntryId, :NetworkAclIpv6EntryId
17391
17483
 
17392
- def initialize(modifytime=nil, protocol=nil, port=nil, cidrblock=nil, ipv6cidrblock=nil, action=nil, description=nil)
17393
- @ModifyTime = modifytime
17484
+ def initialize(protocol=nil, port=nil, cidrblock=nil, ipv6cidrblock=nil, action=nil, description=nil, modifytime=nil, priority=nil, networkaclipv4entryid=nil, networkaclipv6entryid=nil)
17394
17485
  @Protocol = protocol
17395
17486
  @Port = port
17396
17487
  @CidrBlock = cidrblock
17397
17488
  @Ipv6CidrBlock = ipv6cidrblock
17398
17489
  @Action = action
17399
17490
  @Description = description
17491
+ @ModifyTime = modifytime
17492
+ @Priority = priority
17493
+ @NetworkAclIpv4EntryId = networkaclipv4entryid
17494
+ @NetworkAclIpv6EntryId = networkaclipv6entryid
17400
17495
  end
17401
17496
 
17402
17497
  def deserialize(params)
17403
- @ModifyTime = params['ModifyTime']
17404
17498
  @Protocol = params['Protocol']
17405
17499
  @Port = params['Port']
17406
17500
  @CidrBlock = params['CidrBlock']
17407
17501
  @Ipv6CidrBlock = params['Ipv6CidrBlock']
17408
17502
  @Action = params['Action']
17409
17503
  @Description = params['Description']
17504
+ @ModifyTime = params['ModifyTime']
17505
+ @Priority = params['Priority']
17506
+ @NetworkAclIpv4EntryId = params['NetworkAclIpv4EntryId']
17507
+ @NetworkAclIpv6EntryId = params['NetworkAclIpv6EntryId']
17410
17508
  end
17411
17509
  end
17412
17510
 
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.648
4
+ version: 3.0.650
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-30 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common