tencentcloud-sdk-vpc 3.0.1002 → 3.0.1003
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 +48 -0
- data/lib/v20170312/models.rb +110 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae775c026bcd1a1483f2f33238c5a4a8af3fac0f
|
4
|
+
data.tar.gz: b44daa067decdf6301b3e221e094d7ef7457eb96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59118322733749977746b12772287f8591d44496a8b6bd128d7203535f48a10593b000fa2daff2b05913618f6d369a9c861b013fc6f627fa29166588b8671a66
|
7
|
+
data.tar.gz: 598a1fe245b7720b4e1926bd88903bfaa1177edde1d0d5ee35833c529d8276185507dac7ccadd56cc4b249090f3b82fc03931b211e74ba9c78d7495b4e7aa0a9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1003
|
data/lib/v20170312/client.rb
CHANGED
@@ -3582,6 +3582,30 @@ module TencentCloud
|
|
3582
3582
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3583
3583
|
end
|
3584
3584
|
|
3585
|
+
# 查询指定EIP的带宽上下限范围。
|
3586
|
+
|
3587
|
+
# @param request: Request instance for DescribeAddressBandwidthRange.
|
3588
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::DescribeAddressBandwidthRangeRequest`
|
3589
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeAddressBandwidthRangeResponse`
|
3590
|
+
def DescribeAddressBandwidthRange(request)
|
3591
|
+
body = send_request('DescribeAddressBandwidthRange', request.serialize)
|
3592
|
+
response = JSON.parse(body)
|
3593
|
+
if response['Response'].key?('Error') == false
|
3594
|
+
model = DescribeAddressBandwidthRangeResponse.new
|
3595
|
+
model.deserialize(response['Response'])
|
3596
|
+
model
|
3597
|
+
else
|
3598
|
+
code = response['Response']['Error']['Code']
|
3599
|
+
message = response['Response']['Error']['Message']
|
3600
|
+
reqid = response['Response']['RequestId']
|
3601
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3602
|
+
end
|
3603
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3604
|
+
raise e
|
3605
|
+
rescue StandardError => e
|
3606
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3607
|
+
end
|
3608
|
+
|
3585
3609
|
# 本接口 (DescribeAddressQuota) 用于查询您账户的[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)在当前地域的配额信息。配额详情可参见 [EIP 产品简介](https://cloud.tencent.com/document/product/213/5733)。
|
3586
3610
|
|
3587
3611
|
# @param request: Request instance for DescribeAddressQuota.
|
@@ -3703,6 +3727,30 @@ module TencentCloud
|
|
3703
3727
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3704
3728
|
end
|
3705
3729
|
|
3730
|
+
# 查询指定带宽包的带宽上下限范围
|
3731
|
+
|
3732
|
+
# @param request: Request instance for DescribeBandwidthPackageBandwidthRange.
|
3733
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::DescribeBandwidthPackageBandwidthRangeRequest`
|
3734
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeBandwidthPackageBandwidthRangeResponse`
|
3735
|
+
def DescribeBandwidthPackageBandwidthRange(request)
|
3736
|
+
body = send_request('DescribeBandwidthPackageBandwidthRange', request.serialize)
|
3737
|
+
response = JSON.parse(body)
|
3738
|
+
if response['Response'].key?('Error') == false
|
3739
|
+
model = DescribeBandwidthPackageBandwidthRangeResponse.new
|
3740
|
+
model.deserialize(response['Response'])
|
3741
|
+
model
|
3742
|
+
else
|
3743
|
+
code = response['Response']['Error']['Code']
|
3744
|
+
message = response['Response']['Error']['Message']
|
3745
|
+
reqid = response['Response']['RequestId']
|
3746
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3747
|
+
end
|
3748
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3749
|
+
raise e
|
3750
|
+
rescue StandardError => e
|
3751
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3752
|
+
end
|
3753
|
+
|
3706
3754
|
# 本接口 (DescribeBandwidthPackageBillUsage) 用于查询后付费共享带宽包当前的计费用量.
|
3707
3755
|
|
3708
3756
|
# @param request: Request instance for DescribeBandwidthPackageBillUsage.
|
data/lib/v20170312/models.rb
CHANGED
@@ -1932,6 +1932,30 @@ module TencentCloud
|
|
1932
1932
|
end
|
1933
1933
|
end
|
1934
1934
|
|
1935
|
+
# 带宽上下限。
|
1936
|
+
class BandwidthRange < TencentCloud::Common::AbstractModel
|
1937
|
+
# @param ResourceId: 资源ID。
|
1938
|
+
# @type ResourceId: String
|
1939
|
+
# @param BandwidthLowerLimit: 带宽下限,单位:Mbps。
|
1940
|
+
# @type BandwidthLowerLimit: Integer
|
1941
|
+
# @param BandwidthUpperLimit: 带宽上限,单位:Mbps。
|
1942
|
+
# @type BandwidthUpperLimit: Integer
|
1943
|
+
|
1944
|
+
attr_accessor :ResourceId, :BandwidthLowerLimit, :BandwidthUpperLimit
|
1945
|
+
|
1946
|
+
def initialize(resourceid=nil, bandwidthlowerlimit=nil, bandwidthupperlimit=nil)
|
1947
|
+
@ResourceId = resourceid
|
1948
|
+
@BandwidthLowerLimit = bandwidthlowerlimit
|
1949
|
+
@BandwidthUpperLimit = bandwidthupperlimit
|
1950
|
+
end
|
1951
|
+
|
1952
|
+
def deserialize(params)
|
1953
|
+
@ResourceId = params['ResourceId']
|
1954
|
+
@BandwidthLowerLimit = params['BandwidthLowerLimit']
|
1955
|
+
@BandwidthUpperLimit = params['BandwidthUpperLimit']
|
1956
|
+
end
|
1957
|
+
end
|
1958
|
+
|
1935
1959
|
# 批量修改快照策略信息
|
1936
1960
|
class BatchModifySnapshotPolicy < TencentCloud::Common::AbstractModel
|
1937
1961
|
# @param SnapshotPolicyId: 快照策略Id。
|
@@ -9032,6 +9056,49 @@ module TencentCloud
|
|
9032
9056
|
end
|
9033
9057
|
end
|
9034
9058
|
|
9059
|
+
# DescribeAddressBandwidthRange请求参数结构体
|
9060
|
+
class DescribeAddressBandwidthRangeRequest < TencentCloud::Common::AbstractModel
|
9061
|
+
# @param AddressIds: EIP资源ID列表,单次查询上限20。
|
9062
|
+
# @type AddressIds: Array
|
9063
|
+
|
9064
|
+
attr_accessor :AddressIds
|
9065
|
+
|
9066
|
+
def initialize(addressids=nil)
|
9067
|
+
@AddressIds = addressids
|
9068
|
+
end
|
9069
|
+
|
9070
|
+
def deserialize(params)
|
9071
|
+
@AddressIds = params['AddressIds']
|
9072
|
+
end
|
9073
|
+
end
|
9074
|
+
|
9075
|
+
# DescribeAddressBandwidthRange返回参数结构体
|
9076
|
+
class DescribeAddressBandwidthRangeResponse < TencentCloud::Common::AbstractModel
|
9077
|
+
# @param BandwidthRangeSet: EIP带宽上下限详细信息。
|
9078
|
+
# @type BandwidthRangeSet: Array
|
9079
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9080
|
+
# @type RequestId: String
|
9081
|
+
|
9082
|
+
attr_accessor :BandwidthRangeSet, :RequestId
|
9083
|
+
|
9084
|
+
def initialize(bandwidthrangeset=nil, requestid=nil)
|
9085
|
+
@BandwidthRangeSet = bandwidthrangeset
|
9086
|
+
@RequestId = requestid
|
9087
|
+
end
|
9088
|
+
|
9089
|
+
def deserialize(params)
|
9090
|
+
unless params['BandwidthRangeSet'].nil?
|
9091
|
+
@BandwidthRangeSet = []
|
9092
|
+
params['BandwidthRangeSet'].each do |i|
|
9093
|
+
bandwidthrange_tmp = BandwidthRange.new
|
9094
|
+
bandwidthrange_tmp.deserialize(i)
|
9095
|
+
@BandwidthRangeSet << bandwidthrange_tmp
|
9096
|
+
end
|
9097
|
+
end
|
9098
|
+
@RequestId = params['RequestId']
|
9099
|
+
end
|
9100
|
+
end
|
9101
|
+
|
9035
9102
|
# DescribeAddressQuota请求参数结构体
|
9036
9103
|
class DescribeAddressQuotaRequest < TencentCloud::Common::AbstractModel
|
9037
9104
|
|
@@ -9386,6 +9453,49 @@ module TencentCloud
|
|
9386
9453
|
end
|
9387
9454
|
end
|
9388
9455
|
|
9456
|
+
# DescribeBandwidthPackageBandwidthRange请求参数结构体
|
9457
|
+
class DescribeBandwidthPackageBandwidthRangeRequest < TencentCloud::Common::AbstractModel
|
9458
|
+
# @param BandwidthPackageIds: 带宽包资源ID列表,单次查询上限20。
|
9459
|
+
# @type BandwidthPackageIds: Array
|
9460
|
+
|
9461
|
+
attr_accessor :BandwidthPackageIds
|
9462
|
+
|
9463
|
+
def initialize(bandwidthpackageids=nil)
|
9464
|
+
@BandwidthPackageIds = bandwidthpackageids
|
9465
|
+
end
|
9466
|
+
|
9467
|
+
def deserialize(params)
|
9468
|
+
@BandwidthPackageIds = params['BandwidthPackageIds']
|
9469
|
+
end
|
9470
|
+
end
|
9471
|
+
|
9472
|
+
# DescribeBandwidthPackageBandwidthRange返回参数结构体
|
9473
|
+
class DescribeBandwidthPackageBandwidthRangeResponse < TencentCloud::Common::AbstractModel
|
9474
|
+
# @param BandwidthRangeSet: 带宽包带宽上下限详细信息。
|
9475
|
+
# @type BandwidthRangeSet: Array
|
9476
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9477
|
+
# @type RequestId: String
|
9478
|
+
|
9479
|
+
attr_accessor :BandwidthRangeSet, :RequestId
|
9480
|
+
|
9481
|
+
def initialize(bandwidthrangeset=nil, requestid=nil)
|
9482
|
+
@BandwidthRangeSet = bandwidthrangeset
|
9483
|
+
@RequestId = requestid
|
9484
|
+
end
|
9485
|
+
|
9486
|
+
def deserialize(params)
|
9487
|
+
unless params['BandwidthRangeSet'].nil?
|
9488
|
+
@BandwidthRangeSet = []
|
9489
|
+
params['BandwidthRangeSet'].each do |i|
|
9490
|
+
bandwidthrange_tmp = BandwidthRange.new
|
9491
|
+
bandwidthrange_tmp.deserialize(i)
|
9492
|
+
@BandwidthRangeSet << bandwidthrange_tmp
|
9493
|
+
end
|
9494
|
+
end
|
9495
|
+
@RequestId = params['RequestId']
|
9496
|
+
end
|
9497
|
+
end
|
9498
|
+
|
9389
9499
|
# DescribeBandwidthPackageBillUsage请求参数结构体
|
9390
9500
|
class DescribeBandwidthPackageBillUsageRequest < TencentCloud::Common::AbstractModel
|
9391
9501
|
# @param BandwidthPackageId: 后付费共享带宽包的唯一ID
|