tencentcloud-sdk-clb 3.0.396 → 3.0.397
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/v20180317/client.rb +24 -0
- data/lib/v20180317/models.rb +97 -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: 9e5449d28caa52b89438a9384e585baa6ee2b662
|
4
|
+
data.tar.gz: d80f9e52e4e90ee5138b1a89e49fc208cd30099a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cf9c725bebc4557188c1eb8990a36041d6f38c42397669faeb3197e3d3cb097a9a9254b57187d8c44ddbf4d5bfd69faae085531e66da9f7ea3fd228433d944b
|
7
|
+
data.tar.gz: dd4cf5562657f2016590ac3b0d7b519de39587a2181fdc2bbd0b0f7efbe8ea16f9bd328443aea3bb971cfa36b767da6e87b7ce1f1d2220745f13d2cf74f74969
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.397
|
data/lib/v20180317/client.rb
CHANGED
@@ -896,6 +896,30 @@ module TencentCloud
|
|
896
896
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
897
897
|
end
|
898
898
|
|
899
|
+
# 闲置实例是指创建超过7天后付费实例,且没有创建规则或创建规则没有绑定子机的负载均衡实例。
|
900
|
+
|
901
|
+
# @param request: Request instance for DescribeIdleLoadBalancers.
|
902
|
+
# @type request: :class:`Tencentcloud::clb::V20180317::DescribeIdleLoadBalancersRequest`
|
903
|
+
# @rtype: :class:`Tencentcloud::clb::V20180317::DescribeIdleLoadBalancersResponse`
|
904
|
+
def DescribeIdleLoadBalancers(request)
|
905
|
+
body = send_request('DescribeIdleLoadBalancers', request.serialize)
|
906
|
+
response = JSON.parse(body)
|
907
|
+
if response['Response'].key?('Error') == false
|
908
|
+
model = DescribeIdleLoadBalancersResponse.new
|
909
|
+
model.deserialize(response['Response'])
|
910
|
+
model
|
911
|
+
else
|
912
|
+
code = response['Response']['Error']['Code']
|
913
|
+
message = response['Response']['Error']['Message']
|
914
|
+
reqid = response['Response']['RequestId']
|
915
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
916
|
+
end
|
917
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
918
|
+
raise e
|
919
|
+
rescue StandardError => e
|
920
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
921
|
+
end
|
922
|
+
|
899
923
|
# 查询后端云主机或弹性网卡绑定的负载均衡,支持弹性网卡和cvm查询。
|
900
924
|
|
901
925
|
# @param request: Request instance for DescribeLBListeners.
|
data/lib/v20180317/models.rb
CHANGED
@@ -2778,6 +2778,62 @@ module TencentCloud
|
|
2778
2778
|
end
|
2779
2779
|
end
|
2780
2780
|
|
2781
|
+
# DescribeIdleLoadBalancers请求参数结构体
|
2782
|
+
class DescribeIdleLoadBalancersRequest < TencentCloud::Common::AbstractModel
|
2783
|
+
# @param Offset: 数据偏移量,默认为0。
|
2784
|
+
# @type Offset: Integer
|
2785
|
+
# @param Limit: 返回负载均衡实例的数量,默认为20,最大值为100。
|
2786
|
+
# @type Limit: Integer
|
2787
|
+
# @param LoadBalancerRegion: 负载均衡所在地域。
|
2788
|
+
# @type LoadBalancerRegion: String
|
2789
|
+
|
2790
|
+
attr_accessor :Offset, :Limit, :LoadBalancerRegion
|
2791
|
+
|
2792
|
+
def initialize(offset=nil, limit=nil, loadbalancerregion=nil)
|
2793
|
+
@Offset = offset
|
2794
|
+
@Limit = limit
|
2795
|
+
@LoadBalancerRegion = loadbalancerregion
|
2796
|
+
end
|
2797
|
+
|
2798
|
+
def deserialize(params)
|
2799
|
+
@Offset = params['Offset']
|
2800
|
+
@Limit = params['Limit']
|
2801
|
+
@LoadBalancerRegion = params['LoadBalancerRegion']
|
2802
|
+
end
|
2803
|
+
end
|
2804
|
+
|
2805
|
+
# DescribeIdleLoadBalancers返回参数结构体
|
2806
|
+
class DescribeIdleLoadBalancersResponse < TencentCloud::Common::AbstractModel
|
2807
|
+
# @param IdleLoadBalancers: 闲置实例列表
|
2808
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2809
|
+
# @type IdleLoadBalancers: Array
|
2810
|
+
# @param TotalCount: 所有闲置实例数目
|
2811
|
+
# @type TotalCount: Integer
|
2812
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2813
|
+
# @type RequestId: String
|
2814
|
+
|
2815
|
+
attr_accessor :IdleLoadBalancers, :TotalCount, :RequestId
|
2816
|
+
|
2817
|
+
def initialize(idleloadbalancers=nil, totalcount=nil, requestid=nil)
|
2818
|
+
@IdleLoadBalancers = idleloadbalancers
|
2819
|
+
@TotalCount = totalcount
|
2820
|
+
@RequestId = requestid
|
2821
|
+
end
|
2822
|
+
|
2823
|
+
def deserialize(params)
|
2824
|
+
unless params['IdleLoadBalancers'].nil?
|
2825
|
+
@IdleLoadBalancers = []
|
2826
|
+
params['IdleLoadBalancers'].each do |i|
|
2827
|
+
idleloadbalancer_tmp = IdleLoadBalancer.new
|
2828
|
+
idleloadbalancer_tmp.deserialize(i)
|
2829
|
+
@IdleLoadBalancers << idleloadbalancer_tmp
|
2830
|
+
end
|
2831
|
+
end
|
2832
|
+
@TotalCount = params['TotalCount']
|
2833
|
+
@RequestId = params['RequestId']
|
2834
|
+
end
|
2835
|
+
end
|
2836
|
+
|
2781
2837
|
# DescribeLBListeners请求参数结构体
|
2782
2838
|
class DescribeLBListenersRequest < TencentCloud::Common::AbstractModel
|
2783
2839
|
# @param Backends: 需要查询的内网ip列表
|
@@ -3956,6 +4012,47 @@ module TencentCloud
|
|
3956
4012
|
end
|
3957
4013
|
end
|
3958
4014
|
|
4015
|
+
# 闲置实例。
|
4016
|
+
class IdleLoadBalancer < TencentCloud::Common::AbstractModel
|
4017
|
+
# @param LoadBalancerId: 负载均衡ID
|
4018
|
+
# @type LoadBalancerId: String
|
4019
|
+
# @param LoadBalancerName: 负载均衡名字
|
4020
|
+
# @type LoadBalancerName: String
|
4021
|
+
# @param Region: 负载均衡所在地域
|
4022
|
+
# @type Region: String
|
4023
|
+
# @param Vip: 负载均衡的vip
|
4024
|
+
# @type Vip: String
|
4025
|
+
# @param IdleReason: 闲置原因。NO_RULES:没有规则,NO_RS:有规则没有绑定子机。
|
4026
|
+
# @type IdleReason: String
|
4027
|
+
# @param Status: 负载均衡实例的状态,包括
|
4028
|
+
# 0:创建中,1:正常运行。
|
4029
|
+
# @type Status: Integer
|
4030
|
+
# @param Forward: 负载均衡类型标识,1:负载均衡,0:传统型负载均衡。
|
4031
|
+
# @type Forward: Integer
|
4032
|
+
|
4033
|
+
attr_accessor :LoadBalancerId, :LoadBalancerName, :Region, :Vip, :IdleReason, :Status, :Forward
|
4034
|
+
|
4035
|
+
def initialize(loadbalancerid=nil, loadbalancername=nil, region=nil, vip=nil, idlereason=nil, status=nil, forward=nil)
|
4036
|
+
@LoadBalancerId = loadbalancerid
|
4037
|
+
@LoadBalancerName = loadbalancername
|
4038
|
+
@Region = region
|
4039
|
+
@Vip = vip
|
4040
|
+
@IdleReason = idlereason
|
4041
|
+
@Status = status
|
4042
|
+
@Forward = forward
|
4043
|
+
end
|
4044
|
+
|
4045
|
+
def deserialize(params)
|
4046
|
+
@LoadBalancerId = params['LoadBalancerId']
|
4047
|
+
@LoadBalancerName = params['LoadBalancerName']
|
4048
|
+
@Region = params['Region']
|
4049
|
+
@Vip = params['Vip']
|
4050
|
+
@IdleReason = params['IdleReason']
|
4051
|
+
@Status = params['Status']
|
4052
|
+
@Forward = params['Forward']
|
4053
|
+
end
|
4054
|
+
end
|
4055
|
+
|
3959
4056
|
# 网络计费模式,最大出带宽
|
3960
4057
|
class InternetAccessible < TencentCloud::Common::AbstractModel
|
3961
4058
|
# @param InternetChargeType: TRAFFIC_POSTPAID_BY_HOUR 按流量按小时后计费 ; BANDWIDTH_POSTPAID_BY_HOUR 按带宽按小时后计费;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-clb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.397
|
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-08-
|
11
|
+
date: 2022-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|