tencentcloud-sdk-vpc 3.0.970 → 3.0.971
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 +72 -0
- data/lib/v20170312/models.rb +209 -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: 011145b0ab489abfdfd728bc60c33886adf7cd94
|
4
|
+
data.tar.gz: df73a05dfb0e1b3947dbd530387ce536f37ff79f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cebac1022265f109abe537d3fe4ecfce15ee9323423cb5dbccb6999fcad92230fdb8c78870542d6f60429cd61b0a4c56399e0a9ccbecdfe41ec6d4dc2cd78d1
|
7
|
+
data.tar.gz: b28ad2d66aba4a17ca8705eb60feb546a41b9cb2460b22ad6cc07af8ecf69b8283b313d4ff544f1a38a47885adcd13fdb3c807ca230ccb81a467cd82d675f9f8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.971
|
data/lib/v20170312/client.rb
CHANGED
@@ -6820,6 +6820,30 @@ module TencentCloud
|
|
6820
6820
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6821
6821
|
end
|
6822
6822
|
|
6823
|
+
# 本接口(InquiryPriceAllocateAddresses)用于新购弹性公网IP询价。
|
6824
|
+
|
6825
|
+
# @param request: Request instance for InquiryPriceAllocateAddresses.
|
6826
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::InquiryPriceAllocateAddressesRequest`
|
6827
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::InquiryPriceAllocateAddressesResponse`
|
6828
|
+
def InquiryPriceAllocateAddresses(request)
|
6829
|
+
body = send_request('InquiryPriceAllocateAddresses', request.serialize)
|
6830
|
+
response = JSON.parse(body)
|
6831
|
+
if response['Response'].key?('Error') == false
|
6832
|
+
model = InquiryPriceAllocateAddressesResponse.new
|
6833
|
+
model.deserialize(response['Response'])
|
6834
|
+
model
|
6835
|
+
else
|
6836
|
+
code = response['Response']['Error']['Code']
|
6837
|
+
message = response['Response']['Error']['Message']
|
6838
|
+
reqid = response['Response']['RequestId']
|
6839
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
6840
|
+
end
|
6841
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
6842
|
+
raise e
|
6843
|
+
rescue StandardError => e
|
6844
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6845
|
+
end
|
6846
|
+
|
6823
6847
|
# 本接口(InquiryPriceCreateVpnGateway)用于创建VPN网关询价。
|
6824
6848
|
|
6825
6849
|
# @param request: Request instance for InquiryPriceCreateVpnGateway.
|
@@ -6844,6 +6868,54 @@ module TencentCloud
|
|
6844
6868
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6845
6869
|
end
|
6846
6870
|
|
6871
|
+
# EIP修改带宽询价
|
6872
|
+
|
6873
|
+
# @param request: Request instance for InquiryPriceModifyAddressesBandwidth.
|
6874
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::InquiryPriceModifyAddressesBandwidthRequest`
|
6875
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::InquiryPriceModifyAddressesBandwidthResponse`
|
6876
|
+
def InquiryPriceModifyAddressesBandwidth(request)
|
6877
|
+
body = send_request('InquiryPriceModifyAddressesBandwidth', request.serialize)
|
6878
|
+
response = JSON.parse(body)
|
6879
|
+
if response['Response'].key?('Error') == false
|
6880
|
+
model = InquiryPriceModifyAddressesBandwidthResponse.new
|
6881
|
+
model.deserialize(response['Response'])
|
6882
|
+
model
|
6883
|
+
else
|
6884
|
+
code = response['Response']['Error']['Code']
|
6885
|
+
message = response['Response']['Error']['Message']
|
6886
|
+
reqid = response['Response']['RequestId']
|
6887
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
6888
|
+
end
|
6889
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
6890
|
+
raise e
|
6891
|
+
rescue StandardError => e
|
6892
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6893
|
+
end
|
6894
|
+
|
6895
|
+
# 本接口(InquiryPriceRenewAddresses)用于续费预付费弹性公网IP询价。
|
6896
|
+
|
6897
|
+
# @param request: Request instance for InquiryPriceRenewAddresses.
|
6898
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::InquiryPriceRenewAddressesRequest`
|
6899
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::InquiryPriceRenewAddressesResponse`
|
6900
|
+
def InquiryPriceRenewAddresses(request)
|
6901
|
+
body = send_request('InquiryPriceRenewAddresses', request.serialize)
|
6902
|
+
response = JSON.parse(body)
|
6903
|
+
if response['Response'].key?('Error') == false
|
6904
|
+
model = InquiryPriceRenewAddressesResponse.new
|
6905
|
+
model.deserialize(response['Response'])
|
6906
|
+
model
|
6907
|
+
else
|
6908
|
+
code = response['Response']['Error']['Code']
|
6909
|
+
message = response['Response']['Error']['Message']
|
6910
|
+
reqid = response['Response']['RequestId']
|
6911
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
6912
|
+
end
|
6913
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
6914
|
+
raise e
|
6915
|
+
rescue StandardError => e
|
6916
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
6917
|
+
end
|
6918
|
+
|
6847
6919
|
# 本接口(InquiryPriceRenewVpnGateway)用于续费VPN网关询价。目前仅支持IPSEC类型网关的询价。
|
6848
6920
|
|
6849
6921
|
# @param request: Request instance for InquiryPriceRenewVpnGateway.
|
data/lib/v20170312/models.rb
CHANGED
@@ -17774,6 +17774,77 @@ module TencentCloud
|
|
17774
17774
|
end
|
17775
17775
|
end
|
17776
17776
|
|
17777
|
+
# InquiryPriceAllocateAddresses请求参数结构体
|
17778
|
+
class InquiryPriceAllocateAddressesRequest < TencentCloud::Common::AbstractModel
|
17779
|
+
# @param InternetChargeType: EIP计费方式。
|
17780
|
+
# <ul style="margin:0"><li>账号为标准账户类型的用户,可选值:<ul>
|
17781
|
+
# <li>BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费</li>
|
17782
|
+
# <li>BANDWIDTH_PREPAID_BY_MONTH:包月按带宽预付费</li>
|
17783
|
+
# <li>TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费</li></ul>默认值:TRAFFIC_POSTPAID_BY_HOUR。</li>
|
17784
|
+
# </ul>
|
17785
|
+
# @type InternetChargeType: String
|
17786
|
+
# @param InternetMaxBandwidthOut: EIP出带宽上限,单位:Mbps。
|
17787
|
+
# <ul style="margin:0"><li>账号为标准账户类型的用户,可选值范围取决于EIP计费方式:<ul>
|
17788
|
+
# <li>BANDWIDTH_POSTPAID_BY_HOUR:1 Mbps 至 100 Mbps</li>
|
17789
|
+
# <li>BANDWIDTH_PREPAID_BY_MONTH:1 Mbps 至 200 Mbps</li>
|
17790
|
+
# <li>TRAFFIC_POSTPAID_BY_HOUR:1 Mbps 至 100 Mbps</li></ul>默认值:1 Mbps。</li>
|
17791
|
+
# <li>账号为传统账户类型的用户,EIP出带宽上限取决于与其绑定的实例的公网出带宽上限,无需传递此参数。</li></ul>
|
17792
|
+
# @type InternetMaxBandwidthOut: Integer
|
17793
|
+
# @param AddressChargePrepaid: 包月按带宽预付费EIP的计费参数。EIP为包月按带宽预付费时,该参数必传,其余场景不需传递
|
17794
|
+
# @type AddressChargePrepaid: :class:`Tencentcloud::Vpc.v20170312.models.AddressChargePrepaid`
|
17795
|
+
# @param AddressType: EIP类型。默认值:EIP。
|
17796
|
+
|
17797
|
+
# <ul style="margin:0"><li>精品IP,可选值:<ul><li>HighQualityEIP:精品IP</li></ul>注意:仅部分地域支持精品IP。</li></ul><ul style="margin:0">
|
17798
|
+
# <li>高防IP,可选值:<ul>
|
17799
|
+
# <li>AntiDDoSEIP:高防IP</li>
|
17800
|
+
# </ul>
|
17801
|
+
# </li>
|
17802
|
+
# </ul>
|
17803
|
+
# @type AddressType: String
|
17804
|
+
|
17805
|
+
attr_accessor :InternetChargeType, :InternetMaxBandwidthOut, :AddressChargePrepaid, :AddressType
|
17806
|
+
|
17807
|
+
def initialize(internetchargetype=nil, internetmaxbandwidthout=nil, addresschargeprepaid=nil, addresstype=nil)
|
17808
|
+
@InternetChargeType = internetchargetype
|
17809
|
+
@InternetMaxBandwidthOut = internetmaxbandwidthout
|
17810
|
+
@AddressChargePrepaid = addresschargeprepaid
|
17811
|
+
@AddressType = addresstype
|
17812
|
+
end
|
17813
|
+
|
17814
|
+
def deserialize(params)
|
17815
|
+
@InternetChargeType = params['InternetChargeType']
|
17816
|
+
@InternetMaxBandwidthOut = params['InternetMaxBandwidthOut']
|
17817
|
+
unless params['AddressChargePrepaid'].nil?
|
17818
|
+
@AddressChargePrepaid = AddressChargePrepaid.new
|
17819
|
+
@AddressChargePrepaid.deserialize(params['AddressChargePrepaid'])
|
17820
|
+
end
|
17821
|
+
@AddressType = params['AddressType']
|
17822
|
+
end
|
17823
|
+
end
|
17824
|
+
|
17825
|
+
# InquiryPriceAllocateAddresses返回参数结构体
|
17826
|
+
class InquiryPriceAllocateAddressesResponse < TencentCloud::Common::AbstractModel
|
17827
|
+
# @param Price: 弹性公网IP价格
|
17828
|
+
# @type Price: :class:`Tencentcloud::Vpc.v20170312.models.InternetPrice`
|
17829
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
17830
|
+
# @type RequestId: String
|
17831
|
+
|
17832
|
+
attr_accessor :Price, :RequestId
|
17833
|
+
|
17834
|
+
def initialize(price=nil, requestid=nil)
|
17835
|
+
@Price = price
|
17836
|
+
@RequestId = requestid
|
17837
|
+
end
|
17838
|
+
|
17839
|
+
def deserialize(params)
|
17840
|
+
unless params['Price'].nil?
|
17841
|
+
@Price = InternetPrice.new
|
17842
|
+
@Price.deserialize(params['Price'])
|
17843
|
+
end
|
17844
|
+
@RequestId = params['RequestId']
|
17845
|
+
end
|
17846
|
+
end
|
17847
|
+
|
17777
17848
|
# InquiryPriceCreateVpnGateway请求参数结构体
|
17778
17849
|
class InquiryPriceCreateVpnGatewayRequest < TencentCloud::Common::AbstractModel
|
17779
17850
|
# @param InternetMaxBandwidthOut: 公网带宽设置。可选带宽规格:5, 10, 20, 50, 100, 200, 500, 1000, 3000;单位:Mbps。
|
@@ -17832,6 +17903,95 @@ module TencentCloud
|
|
17832
17903
|
end
|
17833
17904
|
end
|
17834
17905
|
|
17906
|
+
# InquiryPriceModifyAddressesBandwidth请求参数结构体
|
17907
|
+
class InquiryPriceModifyAddressesBandwidthRequest < TencentCloud::Common::AbstractModel
|
17908
|
+
# @param AddressIds: EIP唯一ID
|
17909
|
+
# @type AddressIds: Array
|
17910
|
+
# @param InternetMaxBandwidthOut: 新带宽值
|
17911
|
+
# @type InternetMaxBandwidthOut: Integer
|
17912
|
+
|
17913
|
+
attr_accessor :AddressIds, :InternetMaxBandwidthOut
|
17914
|
+
|
17915
|
+
def initialize(addressids=nil, internetmaxbandwidthout=nil)
|
17916
|
+
@AddressIds = addressids
|
17917
|
+
@InternetMaxBandwidthOut = internetmaxbandwidthout
|
17918
|
+
end
|
17919
|
+
|
17920
|
+
def deserialize(params)
|
17921
|
+
@AddressIds = params['AddressIds']
|
17922
|
+
@InternetMaxBandwidthOut = params['InternetMaxBandwidthOut']
|
17923
|
+
end
|
17924
|
+
end
|
17925
|
+
|
17926
|
+
# InquiryPriceModifyAddressesBandwidth返回参数结构体
|
17927
|
+
class InquiryPriceModifyAddressesBandwidthResponse < TencentCloud::Common::AbstractModel
|
17928
|
+
# @param Price: 弹性公网IP调整带宽询价结果
|
17929
|
+
# @type Price: :class:`Tencentcloud::Vpc.v20170312.models.InternetPrice`
|
17930
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
17931
|
+
# @type RequestId: String
|
17932
|
+
|
17933
|
+
attr_accessor :Price, :RequestId
|
17934
|
+
|
17935
|
+
def initialize(price=nil, requestid=nil)
|
17936
|
+
@Price = price
|
17937
|
+
@RequestId = requestid
|
17938
|
+
end
|
17939
|
+
|
17940
|
+
def deserialize(params)
|
17941
|
+
unless params['Price'].nil?
|
17942
|
+
@Price = InternetPrice.new
|
17943
|
+
@Price.deserialize(params['Price'])
|
17944
|
+
end
|
17945
|
+
@RequestId = params['RequestId']
|
17946
|
+
end
|
17947
|
+
end
|
17948
|
+
|
17949
|
+
# InquiryPriceRenewAddresses请求参数结构体
|
17950
|
+
class InquiryPriceRenewAddressesRequest < TencentCloud::Common::AbstractModel
|
17951
|
+
# @param AddressIds: 续费资源实例ID。
|
17952
|
+
# @type AddressIds: Array
|
17953
|
+
# @param AddressChargePrepaid: 包月按带宽预付费EIP的计费参数。EIP为包月按带宽预付费时,该参数必传,其余场景不需传递。
|
17954
|
+
# @type AddressChargePrepaid: :class:`Tencentcloud::Vpc.v20170312.models.AddressChargePrepaid`
|
17955
|
+
|
17956
|
+
attr_accessor :AddressIds, :AddressChargePrepaid
|
17957
|
+
|
17958
|
+
def initialize(addressids=nil, addresschargeprepaid=nil)
|
17959
|
+
@AddressIds = addressids
|
17960
|
+
@AddressChargePrepaid = addresschargeprepaid
|
17961
|
+
end
|
17962
|
+
|
17963
|
+
def deserialize(params)
|
17964
|
+
@AddressIds = params['AddressIds']
|
17965
|
+
unless params['AddressChargePrepaid'].nil?
|
17966
|
+
@AddressChargePrepaid = AddressChargePrepaid.new
|
17967
|
+
@AddressChargePrepaid.deserialize(params['AddressChargePrepaid'])
|
17968
|
+
end
|
17969
|
+
end
|
17970
|
+
end
|
17971
|
+
|
17972
|
+
# InquiryPriceRenewAddresses返回参数结构体
|
17973
|
+
class InquiryPriceRenewAddressesResponse < TencentCloud::Common::AbstractModel
|
17974
|
+
# @param Price: 弹性公网IP续费价格。
|
17975
|
+
# @type Price: :class:`Tencentcloud::Vpc.v20170312.models.InternetPrice`
|
17976
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
17977
|
+
# @type RequestId: String
|
17978
|
+
|
17979
|
+
attr_accessor :Price, :RequestId
|
17980
|
+
|
17981
|
+
def initialize(price=nil, requestid=nil)
|
17982
|
+
@Price = price
|
17983
|
+
@RequestId = requestid
|
17984
|
+
end
|
17985
|
+
|
17986
|
+
def deserialize(params)
|
17987
|
+
unless params['Price'].nil?
|
17988
|
+
@Price = InternetPrice.new
|
17989
|
+
@Price.deserialize(params['Price'])
|
17990
|
+
end
|
17991
|
+
@RequestId = params['RequestId']
|
17992
|
+
end
|
17993
|
+
end
|
17994
|
+
|
17835
17995
|
# InquiryPriceRenewVpnGateway请求参数结构体
|
17836
17996
|
class InquiryPriceRenewVpnGatewayRequest < TencentCloud::Common::AbstractModel
|
17837
17997
|
# @param VpnGatewayId: VPN网关实例ID。
|
@@ -18018,6 +18178,55 @@ module TencentCloud
|
|
18018
18178
|
end
|
18019
18179
|
end
|
18020
18180
|
|
18181
|
+
# 公网询价出参
|
18182
|
+
class InternetPrice < TencentCloud::Common::AbstractModel
|
18183
|
+
# @param AddressPrice: 公网IP询价详细参数。
|
18184
|
+
# @type AddressPrice: :class:`Tencentcloud::Vpc.v20170312.models.InternetPriceDetail`
|
18185
|
+
|
18186
|
+
attr_accessor :AddressPrice
|
18187
|
+
|
18188
|
+
def initialize(addressprice=nil)
|
18189
|
+
@AddressPrice = addressprice
|
18190
|
+
end
|
18191
|
+
|
18192
|
+
def deserialize(params)
|
18193
|
+
unless params['AddressPrice'].nil?
|
18194
|
+
@AddressPrice = InternetPriceDetail.new
|
18195
|
+
@AddressPrice.deserialize(params['AddressPrice'])
|
18196
|
+
end
|
18197
|
+
end
|
18198
|
+
end
|
18199
|
+
|
18200
|
+
# 公网IP询价出参
|
18201
|
+
class InternetPriceDetail < TencentCloud::Common::AbstractModel
|
18202
|
+
# @param UnitPrice: 付费单价,单位:元,仅后付费价格查询返回。
|
18203
|
+
# @type UnitPrice: Float
|
18204
|
+
# @param DiscountPrice: 折扣后的价格,单位:元。
|
18205
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
18206
|
+
# @type DiscountPrice: Float
|
18207
|
+
# @param ChargeUnit: 计价单元,可取值范围:<ul> <li>HOUR:表示计价单元是按每小时来计算。当前涉及该计价单元的场景有:流量按小时后付费(TRAFFIC_POSTPAID_BY_HOUR)、带宽按小时后付费(BANDWIDTH_POSTPAID_BY_HOUR)。</li></ul>
|
18208
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
18209
|
+
# @type ChargeUnit: String
|
18210
|
+
# @param OriginalPrice: 原价,单位:元,仅预付费价格查询返回。
|
18211
|
+
# @type OriginalPrice: Float
|
18212
|
+
|
18213
|
+
attr_accessor :UnitPrice, :DiscountPrice, :ChargeUnit, :OriginalPrice
|
18214
|
+
|
18215
|
+
def initialize(unitprice=nil, discountprice=nil, chargeunit=nil, originalprice=nil)
|
18216
|
+
@UnitPrice = unitprice
|
18217
|
+
@DiscountPrice = discountprice
|
18218
|
+
@ChargeUnit = chargeunit
|
18219
|
+
@OriginalPrice = originalprice
|
18220
|
+
end
|
18221
|
+
|
18222
|
+
def deserialize(params)
|
18223
|
+
@UnitPrice = params['UnitPrice']
|
18224
|
+
@DiscountPrice = params['DiscountPrice']
|
18225
|
+
@ChargeUnit = params['ChargeUnit']
|
18226
|
+
@OriginalPrice = params['OriginalPrice']
|
18227
|
+
end
|
18228
|
+
end
|
18229
|
+
|
18021
18230
|
# IPV6转换规则
|
18022
18231
|
class Ip6Rule < TencentCloud::Common::AbstractModel
|
18023
18232
|
# @param Ip6RuleId: IPV6转换规则唯一ID,形如rule6-xxxxxxxx
|
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.971
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|