tencentcloud-sdk-vpc 3.0.1202 → 3.0.1205

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: 97714c17dfcf245cabcf9b33d9a2a8bceabed0fb
4
- data.tar.gz: 2481d78421d7999b651914ea483c45a073b6f4dd
3
+ metadata.gz: f5d70a45b7458d13bb62738d749c0fe4ce58b03c
4
+ data.tar.gz: 6278bc8565aeeac6c281efc3a1a1296a86109c87
5
5
  SHA512:
6
- metadata.gz: cbc6b17b6af151c31f76ac9686ced2e78d7ab546b9864e36a22084a642963d8e554116cfe4a2cca3060c2646e9a83f2801990d4b3686d7da69d7da1c7137a2c7
7
- data.tar.gz: 4202cba9a01a7e3bfd0801bcd982dd9a7556fddedc6857ef3fcfc3a2bfdf4637d8a01fd08fbf38e2d58c732a60f1ac5cdecd6e8fa2361e95771f889880e77b49
6
+ metadata.gz: ceb9cb5e8339f0327cf6bbd59b9d7ae4a4f2a99177f64d9341b154403b82d09034a45514ca317d1b8e1c3e0223d9a44ed3947204fb81d0d9485cd9ee1dab2b23
7
+ data.tar.gz: 01c85b89eb3f2623c644029370cf0c6ff05c7a5d7e729fb183c00e688caa62852e4b57f135c12346d8ceb130a52c3b497d8e3ba5e38f18d3db0d57a6bcf32ef5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1202
1
+ 3.0.1205
@@ -10752,6 +10752,30 @@ module TencentCloud
10752
10752
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
10753
10753
  end
10754
10754
 
10755
+ # 本接口(UpgradeNatGatewayProductVersion)用于升级NAT实例产品版本,将传统型NAT实例升级到标准型NAT。
10756
+
10757
+ # @param request: Request instance for UpgradeNatGatewayProductVersion.
10758
+ # @type request: :class:`Tencentcloud::vpc::V20170312::UpgradeNatGatewayProductVersionRequest`
10759
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::UpgradeNatGatewayProductVersionResponse`
10760
+ def UpgradeNatGatewayProductVersion(request)
10761
+ body = send_request('UpgradeNatGatewayProductVersion', request.serialize)
10762
+ response = JSON.parse(body)
10763
+ if response['Response'].key?('Error') == false
10764
+ model = UpgradeNatGatewayProductVersionResponse.new
10765
+ model.deserialize(response['Response'])
10766
+ model
10767
+ else
10768
+ code = response['Response']['Error']['Code']
10769
+ message = response['Response']['Error']['Message']
10770
+ reqid = response['Response']['RequestId']
10771
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
10772
+ end
10773
+ rescue TencentCloud::Common::TencentCloudSDKException => e
10774
+ raise e
10775
+ rescue StandardError => e
10776
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
10777
+ end
10778
+
10755
10779
  # 本接口(WithdrawNotifyRoutes)用于撤销已发布到云联网的路由。路由表列表页操作增加“从云联网撤销”。
10756
10780
 
10757
10781
  # @param request: Request instance for WithdrawNotifyRoutes.
@@ -22152,9 +22152,9 @@ module TencentCloud
22152
22152
  class ModifyNatGatewayAttributeRequest < TencentCloud::Common::AbstractModel
22153
22153
  # @param NatGatewayId: NAT网关的ID,形如:`nat-df45454`。
22154
22154
  # @type NatGatewayId: String
22155
- # @param NatGatewayName: NAT网关的名称,形如:`test_nat`。
22155
+ # @param NatGatewayName: NAT网关的名称,形如:`test_nat`,边界值:[1,60] 字符。
22156
22156
  # @type NatGatewayName: String
22157
- # @param InternetMaxBandwidthOut: NAT网关最大外网出带宽(单位:Mbps)。
22157
+ # @param InternetMaxBandwidthOut: NAT网关最大外网出带宽(单位:Mbps),边界值:[0,50000]
22158
22158
  # @type InternetMaxBandwidthOut: Integer
22159
22159
  # @param ModifySecurityGroup: 是否修改NAT网关绑定的安全组。
22160
22160
  # @type ModifySecurityGroup: Boolean
@@ -22162,16 +22162,19 @@ module TencentCloud
22162
22162
  # @type SecurityGroupIds: Array
22163
22163
  # @param DeletionProtectionEnabled: NAT实例是否开启删除保护
22164
22164
  # @type DeletionProtectionEnabled: Boolean
22165
+ # @param PublicAddressAffinity: 同一个内网地址通过NAT网关访问同一个目的IP时,是否使用固定的弹性公网IP。默认为true,使用固定IP;false代表使用随机IP。当前适用于标准型NAT网关。
22166
+ # @type PublicAddressAffinity: Boolean
22165
22167
 
22166
- attr_accessor :NatGatewayId, :NatGatewayName, :InternetMaxBandwidthOut, :ModifySecurityGroup, :SecurityGroupIds, :DeletionProtectionEnabled
22168
+ attr_accessor :NatGatewayId, :NatGatewayName, :InternetMaxBandwidthOut, :ModifySecurityGroup, :SecurityGroupIds, :DeletionProtectionEnabled, :PublicAddressAffinity
22167
22169
 
22168
- def initialize(natgatewayid=nil, natgatewayname=nil, internetmaxbandwidthout=nil, modifysecuritygroup=nil, securitygroupids=nil, deletionprotectionenabled=nil)
22170
+ def initialize(natgatewayid=nil, natgatewayname=nil, internetmaxbandwidthout=nil, modifysecuritygroup=nil, securitygroupids=nil, deletionprotectionenabled=nil, publicaddressaffinity=nil)
22169
22171
  @NatGatewayId = natgatewayid
22170
22172
  @NatGatewayName = natgatewayname
22171
22173
  @InternetMaxBandwidthOut = internetmaxbandwidthout
22172
22174
  @ModifySecurityGroup = modifysecuritygroup
22173
22175
  @SecurityGroupIds = securitygroupids
22174
22176
  @DeletionProtectionEnabled = deletionprotectionenabled
22177
+ @PublicAddressAffinity = publicaddressaffinity
22175
22178
  end
22176
22179
 
22177
22180
  def deserialize(params)
@@ -22181,6 +22184,7 @@ module TencentCloud
22181
22184
  @ModifySecurityGroup = params['ModifySecurityGroup']
22182
22185
  @SecurityGroupIds = params['SecurityGroupIds']
22183
22186
  @DeletionProtectionEnabled = params['DeletionProtectionEnabled']
22187
+ @PublicAddressAffinity = params['PublicAddressAffinity']
22184
22188
  end
22185
22189
  end
22186
22190
 
@@ -29601,6 +29605,51 @@ module TencentCloud
29601
29605
  end
29602
29606
  end
29603
29607
 
29608
+ # UpgradeNatGatewayProductVersion请求参数结构体
29609
+ class UpgradeNatGatewayProductVersionRequest < TencentCloud::Common::AbstractModel
29610
+ # @param VpcId: VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。
29611
+ # @type VpcId: String
29612
+ # @param NatGatewayId: NAT网关的ID,形如:`nat-ig8xpno8`。
29613
+ # @type NatGatewayId: String
29614
+ # @param Force: 是否热迁移。1表示冷迁移,0表示热迁移,默认值是0。
29615
+ # @type Force: Integer
29616
+ # @param CheckOnlyMode: 是否仅校验迁移可能性。true表示仅校验能否迁移,不做实际迁移。false表示正常迁移。默认值为false。
29617
+ # 仅校验模式,不报错表示校验迁移成功。
29618
+ # @type CheckOnlyMode: Boolean
29619
+
29620
+ attr_accessor :VpcId, :NatGatewayId, :Force, :CheckOnlyMode
29621
+
29622
+ def initialize(vpcid=nil, natgatewayid=nil, force=nil, checkonlymode=nil)
29623
+ @VpcId = vpcid
29624
+ @NatGatewayId = natgatewayid
29625
+ @Force = force
29626
+ @CheckOnlyMode = checkonlymode
29627
+ end
29628
+
29629
+ def deserialize(params)
29630
+ @VpcId = params['VpcId']
29631
+ @NatGatewayId = params['NatGatewayId']
29632
+ @Force = params['Force']
29633
+ @CheckOnlyMode = params['CheckOnlyMode']
29634
+ end
29635
+ end
29636
+
29637
+ # UpgradeNatGatewayProductVersion返回参数结构体
29638
+ class UpgradeNatGatewayProductVersionResponse < TencentCloud::Common::AbstractModel
29639
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
29640
+ # @type RequestId: String
29641
+
29642
+ attr_accessor :RequestId
29643
+
29644
+ def initialize(requestid=nil)
29645
+ @RequestId = requestid
29646
+ end
29647
+
29648
+ def deserialize(params)
29649
+ @RequestId = params['RequestId']
29650
+ end
29651
+ end
29652
+
29604
29653
  # 共享流量包用量明细
29605
29654
  class UsedDetail < TencentCloud::Common::AbstractModel
29606
29655
  # @param TrafficPackageId: 流量包唯一ID
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.1202
4
+ version: 3.0.1205
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-14 00:00:00.000000000 Z
11
+ date: 2026-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common