tencentcloud-sdk-vpc 3.0.1017 → 3.0.1018

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: ec41f3ef79136b293227426d9428d9c5491ba278
4
- data.tar.gz: 213ad4ef6ccb1f9a7502df86cbc87922a17188ef
3
+ metadata.gz: 8df4b1f6958d9ca529b6529c9d8bb11891c21b69
4
+ data.tar.gz: 940a4b5058b25b2b5f114e936db518c372b998a1
5
5
  SHA512:
6
- metadata.gz: 87acfbfa93af22ad3f3f61fb27854e8a4529f296511d57973f4ebdeebefe3e78a3a7f2540ff209e9b746b3c75c84b3eaa9335d8095b865253ecc05d020e2ade5
7
- data.tar.gz: d93f36f3d48415431620f5dd80a1d9d613c7360c643ad662d77ed627fd8191202d431b188f862ebb947d851575d2d51d214b20f2306da30a6e193e1be025915f
6
+ metadata.gz: f4c0b552fddee2915e0f04c56c80301fbfbdb66161bfb4240ee0a0b62d8c6556be023520dba37a6a6a5ee3e86b02ea4735259fba6a650c4a74d22c3c07eb6656
7
+ data.tar.gz: 3d696058e6a3074c4a9c22c228ac1e28e376e490a9b374d2ee627745b59a6cd404aa74172bfa77e73e0f909e35d2eda1a049be5789a424752c40a8c95420cd9b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1017
1
+ 3.0.1018
@@ -756,6 +756,30 @@ module TencentCloud
756
756
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
757
757
  end
758
758
 
759
+ # 本接口(CheckGatewayFlowMonitor)用于查询网关是否启用流量监控。
760
+
761
+ # @param request: Request instance for CheckGatewayFlowMonitor.
762
+ # @type request: :class:`Tencentcloud::vpc::V20170312::CheckGatewayFlowMonitorRequest`
763
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::CheckGatewayFlowMonitorResponse`
764
+ def CheckGatewayFlowMonitor(request)
765
+ body = send_request('CheckGatewayFlowMonitor', request.serialize)
766
+ response = JSON.parse(body)
767
+ if response['Response'].key?('Error') == false
768
+ model = CheckGatewayFlowMonitorResponse.new
769
+ model.deserialize(response['Response'])
770
+ model
771
+ else
772
+ code = response['Response']['Error']['Code']
773
+ message = response['Response']['Error']['Message']
774
+ reqid = response['Response']['RequestId']
775
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
776
+ end
777
+ rescue TencentCloud::Common::TencentCloudSDKException => e
778
+ raise e
779
+ rescue StandardError => e
780
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
781
+ end
782
+
759
783
  # 本接口(CheckNetDetectState)用于验证网络探测。
760
784
 
761
785
  # @param request: Request instance for CheckNetDetectState.
@@ -2967,6 +2967,49 @@ module TencentCloud
2967
2967
  end
2968
2968
  end
2969
2969
 
2970
+ # CheckGatewayFlowMonitor请求参数结构体
2971
+ class CheckGatewayFlowMonitorRequest < TencentCloud::Common::AbstractModel
2972
+ # @param GatewayId: 网关实例ID,目前我们支持的网关实例类型有,
2973
+ # 专线网关实例ID,形如,`dcg-ltjahce6`;
2974
+ # Nat网关实例ID,形如,`nat-ltjahce6`;
2975
+ # VPN网关实例ID,形如,`vpn-ltjahce6`。
2976
+ # @type GatewayId: String
2977
+
2978
+ attr_accessor :GatewayId
2979
+
2980
+ def initialize(gatewayid=nil)
2981
+ @GatewayId = gatewayid
2982
+ end
2983
+
2984
+ def deserialize(params)
2985
+ @GatewayId = params['GatewayId']
2986
+ end
2987
+ end
2988
+
2989
+ # CheckGatewayFlowMonitor返回参数结构体
2990
+ class CheckGatewayFlowMonitorResponse < TencentCloud::Common::AbstractModel
2991
+ # @param Enabled: 网关是否启用了流控。true为启用,false未启用。
2992
+ # @type Enabled: Boolean
2993
+ # @param Bandwidth: 网关的带宽。
2994
+ # @type Bandwidth: Integer
2995
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2996
+ # @type RequestId: String
2997
+
2998
+ attr_accessor :Enabled, :Bandwidth, :RequestId
2999
+
3000
+ def initialize(enabled=nil, bandwidth=nil, requestid=nil)
3001
+ @Enabled = enabled
3002
+ @Bandwidth = bandwidth
3003
+ @RequestId = requestid
3004
+ end
3005
+
3006
+ def deserialize(params)
3007
+ @Enabled = params['Enabled']
3008
+ @Bandwidth = params['Bandwidth']
3009
+ @RequestId = params['RequestId']
3010
+ end
3011
+ end
3012
+
2970
3013
  # CheckNetDetectState请求参数结构体
2971
3014
  class CheckNetDetectStateRequest < TencentCloud::Common::AbstractModel
2972
3015
  # @param DetectDestinationIp: 探测目的IPv4地址数组,最多两个。
@@ -4620,8 +4663,8 @@ module TencentCloud
4620
4663
 
4621
4664
  attr_accessor :NatGatewayName, :VpcId, :InternetMaxBandwidthOut, :MaxConcurrentConnection, :AddressCount, :PublicIpAddresses, :Zone, :Tags, :SubnetId, :StockPublicIpAddressesBandwidthOut, :PublicIpAddressesBandwidthOut, :PublicIpFromSameZone, :NatProductVersion
4622
4665
  extend Gem::Deprecate
4623
- deprecate :SubnetId, :none, 2025, 2
4624
- deprecate :SubnetId=, :none, 2025, 2
4666
+ deprecate :SubnetId, :none, 2025, 3
4667
+ deprecate :SubnetId=, :none, 2025, 3
4625
4668
 
4626
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)
4627
4670
  @NatGatewayName = natgatewayname
@@ -18195,8 +18238,8 @@ module TencentCloud
18195
18238
 
18196
18239
  attr_accessor :EncryptAlgorithm, :IntegrityAlgorith, :IPSECSaLifetimeSeconds, :PfsDhGroup, :IPSECSaLifetimeTraffic, :IntegrityAlgorithm
18197
18240
  extend Gem::Deprecate
18198
- deprecate :IntegrityAlgorith, :none, 2025, 2
18199
- deprecate :IntegrityAlgorith=, :none, 2025, 2
18241
+ deprecate :IntegrityAlgorith, :none, 2025, 3
18242
+ deprecate :IntegrityAlgorith=, :none, 2025, 3
18200
18243
 
18201
18244
  def initialize(encryptalgorithm=nil, integrityalgorith=nil, ipsecsalifetimeseconds=nil, pfsdhgroup=nil, ipsecsalifetimetraffic=nil, integrityalgorithm=nil)
18202
18245
  @EncryptAlgorithm = encryptalgorithm
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.1017
4
+ version: 3.0.1018
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-03-12 00:00:00.000000000 Z
11
+ date: 2025-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20170312/models.rb
37
- - lib/v20170312/client.rb
38
36
  - lib/tencentcloud-sdk-vpc.rb
37
+ - lib/v20170312/client.rb
38
+ - lib/v20170312/models.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: