tencentcloud-sdk-vpc 3.0.1031 → 3.0.1033

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9032cccb43abfe2d49fce4b5ece2c0bd809c7bb9
4
- data.tar.gz: 2fed13d006cc90d80af1df0e7be1ebde9fdf0c36
3
+ metadata.gz: 9c9a7af3d380c1016f382cce7f3a9c951cb979fb
4
+ data.tar.gz: 63950a349b92daa30368ca6ba03c33e34b4a1045
5
5
  SHA512:
6
- metadata.gz: 70fdaafffae21ff0996688a6c8f792bb74c3d51e35b4e94fe904cf22320d60178950ec003a4421843c457854cd58f687aa8940a4584af26f1958a9d76429b22c
7
- data.tar.gz: 1901227d55269a2405043720ddd7373d6d76b6657e854f276dc61ab1a1daefb3a3ff6480a3ec07ec4758c8c89c18726ea8fe2112d701d0b9622db472bf9f4ced
6
+ metadata.gz: ba5e0fedc5770c240bc4011d811ccb560e90ba7c43de5ba27b463d7b85849e3b3208efa3eb337ad2b5fa2c2b37ee15fbfdb22b483b8c0745b783707ff34efbd8
7
+ data.tar.gz: 9e14c22ee87e74e80e04ca678585829736b965ac41edc718fa72081fb67d5f864c82d739a2ad8dd0d0c87c807baf290b8c01fcf18cc97c62c72d8003f3e7b4a7
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1031
1
+ 3.0.1033
@@ -4723,6 +4723,33 @@ module TencentCloud
4723
4723
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4724
4724
  end
4725
4725
 
4726
+ # 本接口(DescribeNatGatewayFlowMonitorDetail)用于查询NAT网关流量监控明细。
4727
+
4728
+ # - 只支持单个网关实例查询。即入参 `NatGatewayId` 最多只支持传一个,且必须传一个。
4729
+ # - 如果网关有流量,但调用本接口没有返回数据,请在控制台对应网关详情页确认是否开启网关流量监控。
4730
+
4731
+ # @param request: Request instance for DescribeNatGatewayFlowMonitorDetail.
4732
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeNatGatewayFlowMonitorDetailRequest`
4733
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeNatGatewayFlowMonitorDetailResponse`
4734
+ def DescribeNatGatewayFlowMonitorDetail(request)
4735
+ body = send_request('DescribeNatGatewayFlowMonitorDetail', request.serialize)
4736
+ response = JSON.parse(body)
4737
+ if response['Response'].key?('Error') == false
4738
+ model = DescribeNatGatewayFlowMonitorDetailResponse.new
4739
+ model.deserialize(response['Response'])
4740
+ model
4741
+ else
4742
+ code = response['Response']['Error']['Code']
4743
+ message = response['Response']['Error']['Message']
4744
+ reqid = response['Response']['RequestId']
4745
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4746
+ end
4747
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4748
+ raise e
4749
+ rescue StandardError => e
4750
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4751
+ end
4752
+
4726
4753
  # 本接口(DescribeNatGatewaySourceIpTranslationNatRules)用于查询NAT网关SNAT转发规则对象数组。
4727
4754
 
4728
4755
  # @param request: Request instance for DescribeNatGatewaySourceIpTranslationNatRules.
@@ -4663,8 +4663,8 @@ module TencentCloud
4663
4663
 
4664
4664
  attr_accessor :NatGatewayName, :VpcId, :InternetMaxBandwidthOut, :MaxConcurrentConnection, :AddressCount, :PublicIpAddresses, :Zone, :Tags, :SubnetId, :StockPublicIpAddressesBandwidthOut, :PublicIpAddressesBandwidthOut, :PublicIpFromSameZone, :NatProductVersion
4665
4665
  extend Gem::Deprecate
4666
- deprecate :SubnetId, :none, 2025, 3
4667
- deprecate :SubnetId=, :none, 2025, 3
4666
+ deprecate :SubnetId, :none, 2025, 4
4667
+ deprecate :SubnetId=, :none, 2025, 4
4668
4668
 
4669
4669
  def initialize(natgatewayname=nil, vpcid=nil, internetmaxbandwidthout=nil, maxconcurrentconnection=nil, addresscount=nil, publicipaddresses=nil, zone=nil, tags=nil, subnetid=nil, stockpublicipaddressesbandwidthout=nil, publicipaddressesbandwidthout=nil, publicipfromsamezone=nil, natproductversion=nil)
4670
4670
  @NatGatewayName = natgatewayname
@@ -12017,6 +12017,73 @@ module TencentCloud
12017
12017
  end
12018
12018
  end
12019
12019
 
12020
+ # DescribeNatGatewayFlowMonitorDetail请求参数结构体
12021
+ class DescribeNatGatewayFlowMonitorDetailRequest < TencentCloud::Common::AbstractModel
12022
+ # @param TimePoint: 时间点。表示要查询的时刻。聚合粒度为60、300时,会查询最近一个整分钟开始的聚合周期;聚合粒度为3600时,会查询最近一个整点开始的聚合周期;聚合粒度为86400时,会查询最近一个整天开始的聚合周期。形如:`2019-03-24T10:51:23+08:00`。
12023
+ # @type TimePoint: String
12024
+ # @param NatGatewayId: NAT网关的ID,形如:`nat-ig8xpno8`。
12025
+ # @type NatGatewayId: String
12026
+ # @param TopN: 展示排序靠前的数据。默认值:10,表示默认展示排序前 10 的数据。最大值:100。
12027
+ # @type TopN: Integer
12028
+ # @param OrderField: 排序字段。支持:入包量`InPkg`、出包量`OutPkg`、入流量`InTraffic`、出流量`OutTraffic`,标准型nat额外支持 并发连接数`ConcurrentConnectionCount` 、新建连接速率`NewConnectionRate`。默认值`OutTraffic`。
12029
+ # @type OrderField: String
12030
+ # @param AggregationTimeRange: 聚合时间粒度。支持:60、300、3600、86400,即按照1分钟、5分钟、1小时、1天进行聚合查询。
12031
+ # @type AggregationTimeRange: Integer
12032
+ # @param AllMetricMode: 是否查询全部指标。默认值:True,表示查询全部指标。
12033
+ # @type AllMetricMode: Boolean
12034
+
12035
+ attr_accessor :TimePoint, :NatGatewayId, :TopN, :OrderField, :AggregationTimeRange, :AllMetricMode
12036
+
12037
+ def initialize(timepoint=nil, natgatewayid=nil, topn=nil, orderfield=nil, aggregationtimerange=nil, allmetricmode=nil)
12038
+ @TimePoint = timepoint
12039
+ @NatGatewayId = natgatewayid
12040
+ @TopN = topn
12041
+ @OrderField = orderfield
12042
+ @AggregationTimeRange = aggregationtimerange
12043
+ @AllMetricMode = allmetricmode
12044
+ end
12045
+
12046
+ def deserialize(params)
12047
+ @TimePoint = params['TimePoint']
12048
+ @NatGatewayId = params['NatGatewayId']
12049
+ @TopN = params['TopN']
12050
+ @OrderField = params['OrderField']
12051
+ @AggregationTimeRange = params['AggregationTimeRange']
12052
+ @AllMetricMode = params['AllMetricMode']
12053
+ end
12054
+ end
12055
+
12056
+ # DescribeNatGatewayFlowMonitorDetail返回参数结构体
12057
+ class DescribeNatGatewayFlowMonitorDetailResponse < TencentCloud::Common::AbstractModel
12058
+ # @param TotalCount: 符合条件的对象数。
12059
+ # @type TotalCount: Integer
12060
+ # @param NatGatewayFlowMonitorDetailSet: 网关流量监控明细。
12061
+ # @type NatGatewayFlowMonitorDetailSet: Array
12062
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
12063
+ # @type RequestId: String
12064
+
12065
+ attr_accessor :TotalCount, :NatGatewayFlowMonitorDetailSet, :RequestId
12066
+
12067
+ def initialize(totalcount=nil, natgatewayflowmonitordetailset=nil, requestid=nil)
12068
+ @TotalCount = totalcount
12069
+ @NatGatewayFlowMonitorDetailSet = natgatewayflowmonitordetailset
12070
+ @RequestId = requestid
12071
+ end
12072
+
12073
+ def deserialize(params)
12074
+ @TotalCount = params['TotalCount']
12075
+ unless params['NatGatewayFlowMonitorDetailSet'].nil?
12076
+ @NatGatewayFlowMonitorDetailSet = []
12077
+ params['NatGatewayFlowMonitorDetailSet'].each do |i|
12078
+ natgatewayflowmonitordetail_tmp = NatGatewayFlowMonitorDetail.new
12079
+ natgatewayflowmonitordetail_tmp.deserialize(i)
12080
+ @NatGatewayFlowMonitorDetailSet << natgatewayflowmonitordetail_tmp
12081
+ end
12082
+ end
12083
+ @RequestId = params['RequestId']
12084
+ end
12085
+ end
12086
+
12020
12087
  # DescribeNatGatewaySourceIpTranslationNatRules请求参数结构体
12021
12088
  class DescribeNatGatewaySourceIpTranslationNatRulesRequest < TencentCloud::Common::AbstractModel
12022
12089
  # @param NatGatewayId: NAT网关统一 ID,形如:`nat-123xx454`。
@@ -18271,8 +18338,8 @@ module TencentCloud
18271
18338
 
18272
18339
  attr_accessor :EncryptAlgorithm, :IntegrityAlgorith, :IPSECSaLifetimeSeconds, :PfsDhGroup, :IPSECSaLifetimeTraffic, :IntegrityAlgorithm
18273
18340
  extend Gem::Deprecate
18274
- deprecate :IntegrityAlgorith, :none, 2025, 3
18275
- deprecate :IntegrityAlgorith=, :none, 2025, 3
18341
+ deprecate :IntegrityAlgorith, :none, 2025, 4
18342
+ deprecate :IntegrityAlgorith=, :none, 2025, 4
18276
18343
 
18277
18344
  def initialize(encryptalgorithm=nil, integrityalgorith=nil, ipsecsalifetimeseconds=nil, pfsdhgroup=nil, ipsecsalifetimetraffic=nil, integrityalgorithm=nil)
18278
18345
  @EncryptAlgorithm = encryptalgorithm
@@ -22631,6 +22698,46 @@ module TencentCloud
22631
22698
  end
22632
22699
  end
22633
22700
 
22701
+ # nat网关流量监控明细。
22702
+ class NatGatewayFlowMonitorDetail < TencentCloud::Common::AbstractModel
22703
+ # @param PrivateIpAddress: 来源`IP`。
22704
+ # @type PrivateIpAddress: String
22705
+ # @param InPkg: 入包量。
22706
+ # @type InPkg: Integer
22707
+ # @param OutPkg: 出包量。
22708
+ # @type OutPkg: Integer
22709
+ # @param InTraffic: 入流量,单位:`Byte`。
22710
+ # @type InTraffic: Integer
22711
+ # @param OutTraffic: 出流量,单位:`Byte`。
22712
+ # @type OutTraffic: Integer
22713
+ # @param ConcurrentConnectionCount: 并发连接数。仅标准型nat支持此参数。
22714
+ # @type ConcurrentConnectionCount: Integer
22715
+ # @param NewConnectionRate: 新建连接速率。仅标准型nat支持此参数。
22716
+ # @type NewConnectionRate: Integer
22717
+
22718
+ attr_accessor :PrivateIpAddress, :InPkg, :OutPkg, :InTraffic, :OutTraffic, :ConcurrentConnectionCount, :NewConnectionRate
22719
+
22720
+ def initialize(privateipaddress=nil, inpkg=nil, outpkg=nil, intraffic=nil, outtraffic=nil, concurrentconnectioncount=nil, newconnectionrate=nil)
22721
+ @PrivateIpAddress = privateipaddress
22722
+ @InPkg = inpkg
22723
+ @OutPkg = outpkg
22724
+ @InTraffic = intraffic
22725
+ @OutTraffic = outtraffic
22726
+ @ConcurrentConnectionCount = concurrentconnectioncount
22727
+ @NewConnectionRate = newconnectionrate
22728
+ end
22729
+
22730
+ def deserialize(params)
22731
+ @PrivateIpAddress = params['PrivateIpAddress']
22732
+ @InPkg = params['InPkg']
22733
+ @OutPkg = params['OutPkg']
22734
+ @InTraffic = params['InTraffic']
22735
+ @OutTraffic = params['OutTraffic']
22736
+ @ConcurrentConnectionCount = params['ConcurrentConnectionCount']
22737
+ @NewConnectionRate = params['NewConnectionRate']
22738
+ end
22739
+ end
22740
+
22634
22741
  # NAT地域地区对象
22635
22742
  class NatRegionInfoWithArea < TencentCloud::Common::AbstractModel
22636
22743
 
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.1031
4
+ version: 3.0.1033
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-01 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common