tencentcloud-sdk-vpc 3.0.421 → 3.0.422
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 +24 -0
- data/lib/v20170312/models.rb +41 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b0917b6d0b3ea3449ac01d93bad0085dadcf71a
|
4
|
+
data.tar.gz: 888fffb27a78268a6458b8d1efb0fae9389e99b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62168fceaa0aacd7e8246a6458ac9dfc2f1231c03363c5f0b1e01298ca82be10694ea82b024f2431a74d6c861d2e34854879c7b2408b97d3cad47003fb8a9d42
|
7
|
+
data.tar.gz: 5ca14af58aa7011c23acd4c74fea48351d511d0fba6f016c77d50bad2c54f02f4e7be3ba90ad8048c11d8ac959ad1d90cf123f813f031016bd8a8e2869aa2dbc
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.422
|
data/lib/v20170312/client.rb
CHANGED
@@ -6916,6 +6916,30 @@ module TencentCloud
|
|
6916
6916
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6917
6917
|
end
|
6918
6918
|
|
6919
|
+
# 设置VPNGW续费标记
|
6920
|
+
|
6921
|
+
# @param request: Request instance for SetVpnGatewaysRenewFlag.
|
6922
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::SetVpnGatewaysRenewFlagRequest`
|
6923
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::SetVpnGatewaysRenewFlagResponse`
|
6924
|
+
def SetVpnGatewaysRenewFlag(request)
|
6925
|
+
body = send_request('SetVpnGatewaysRenewFlag', request.serialize)
|
6926
|
+
response = JSON.parse(body)
|
6927
|
+
if response['Response'].key?('Error') == false
|
6928
|
+
model = SetVpnGatewaysRenewFlagResponse.new
|
6929
|
+
model.deserialize(response['Response'])
|
6930
|
+
model
|
6931
|
+
else
|
6932
|
+
code = response['Response']['Error']['Code']
|
6933
|
+
message = response['Response']['Error']['Message']
|
6934
|
+
reqid = response['Response']['RequestId']
|
6935
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
6936
|
+
end
|
6937
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
6938
|
+
raise e
|
6939
|
+
rescue StandardError => e
|
6940
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6941
|
+
end
|
6942
|
+
|
6919
6943
|
# 本接口 (TransformAddress) 用于将实例的普通公网 IP 转换为[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。
|
6920
6944
|
# * 平台对用户每地域每日解绑 EIP 重新分配普通公网 IP 次数有所限制(可参见 [EIP 产品简介](/document/product/213/1941))。上述配额可通过 [DescribeAddressQuota](https://cloud.tencent.com/document/api/213/1378) 接口获取。
|
6921
6945
|
|
data/lib/v20170312/models.rb
CHANGED
@@ -17804,6 +17804,47 @@ module TencentCloud
|
|
17804
17804
|
end
|
17805
17805
|
end
|
17806
17806
|
|
17807
|
+
# SetVpnGatewaysRenewFlag请求参数结构体
|
17808
|
+
class SetVpnGatewaysRenewFlagRequest < TencentCloud::Common::AbstractModel
|
17809
|
+
# @param VpnGatewayIds: VPNGW字符型ID列表
|
17810
|
+
# @type VpnGatewayIds: Array
|
17811
|
+
# @param AutoRenewFlag: 自动续费标记[0, 1, 2]
|
17812
|
+
# 0表示默认状态(初始状态), 1表示自动续费,2表示明确不自动续费
|
17813
|
+
# @type AutoRenewFlag: Integer
|
17814
|
+
# @param Type: VPNGW类型['IPSEC', 'SSL']
|
17815
|
+
# @type Type: String
|
17816
|
+
|
17817
|
+
attr_accessor :VpnGatewayIds, :AutoRenewFlag, :Type
|
17818
|
+
|
17819
|
+
def initialize(vpngatewayids=nil, autorenewflag=nil, type=nil)
|
17820
|
+
@VpnGatewayIds = vpngatewayids
|
17821
|
+
@AutoRenewFlag = autorenewflag
|
17822
|
+
@Type = type
|
17823
|
+
end
|
17824
|
+
|
17825
|
+
def deserialize(params)
|
17826
|
+
@VpnGatewayIds = params['VpnGatewayIds']
|
17827
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
17828
|
+
@Type = params['Type']
|
17829
|
+
end
|
17830
|
+
end
|
17831
|
+
|
17832
|
+
# SetVpnGatewaysRenewFlag返回参数结构体
|
17833
|
+
class SetVpnGatewaysRenewFlagResponse < TencentCloud::Common::AbstractModel
|
17834
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
17835
|
+
# @type RequestId: String
|
17836
|
+
|
17837
|
+
attr_accessor :RequestId
|
17838
|
+
|
17839
|
+
def initialize(requestid=nil)
|
17840
|
+
@RequestId = requestid
|
17841
|
+
end
|
17842
|
+
|
17843
|
+
def deserialize(params)
|
17844
|
+
@RequestId = params['RequestId']
|
17845
|
+
end
|
17846
|
+
end
|
17847
|
+
|
17807
17848
|
# NAT的SNAT规则
|
17808
17849
|
class SourceIpTranslationNatRule < TencentCloud::Common::AbstractModel
|
17809
17850
|
# @param ResourceId: 资源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.
|
4
|
+
version: 3.0.422
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|