tencentcloud-sdk-clb 3.0.770 → 3.0.772
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 +26 -0
- data/lib/v20180317/models.rb +42 -2
- 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: ce3c6b05819fcd3a5b223bf9e95d67601a854ae1
|
4
|
+
data.tar.gz: e3117787e7a0d39d277b76cd49b8e8eb2e03672b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 977207ca7ce3ae5c231d2d9238750038830585e3c211ad0c107f4e12c92c7ea621dc1e1e30e98c1fbd36364597432e1fc7d0f49bd924aba77b078b75d1b886b5
|
7
|
+
data.tar.gz: f94f6cabee7f216a23081a93a39a76fc224593fb6a7f9c5727285661aea2485b6ca8ee2458ccadcec9592d4e7ba89e1e8152980f53a53618a13e61f05adff8c6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.772
|
data/lib/v20180317/client.rb
CHANGED
@@ -2127,6 +2127,32 @@ module TencentCloud
|
|
2127
2127
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2128
2128
|
end
|
2129
2129
|
|
2130
|
+
# 启停负载均衡实例或者监听器。
|
2131
|
+
# 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
2132
|
+
# 该功能正在内测中,如需使用,请通过[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1)。
|
2133
|
+
|
2134
|
+
# @param request: Request instance for SetLoadBalancerStartStatus.
|
2135
|
+
# @type request: :class:`Tencentcloud::clb::V20180317::SetLoadBalancerStartStatusRequest`
|
2136
|
+
# @rtype: :class:`Tencentcloud::clb::V20180317::SetLoadBalancerStartStatusResponse`
|
2137
|
+
def SetLoadBalancerStartStatus(request)
|
2138
|
+
body = send_request('SetLoadBalancerStartStatus', request.serialize)
|
2139
|
+
response = JSON.parse(body)
|
2140
|
+
if response['Response'].key?('Error') == false
|
2141
|
+
model = SetLoadBalancerStartStatusResponse.new
|
2142
|
+
model.deserialize(response['Response'])
|
2143
|
+
model
|
2144
|
+
else
|
2145
|
+
code = response['Response']['Error']['Code']
|
2146
|
+
message = response['Response']['Error']['Message']
|
2147
|
+
reqid = response['Response']['RequestId']
|
2148
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2149
|
+
end
|
2150
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2151
|
+
raise e
|
2152
|
+
rescue StandardError => e
|
2153
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2154
|
+
end
|
2155
|
+
|
2130
2156
|
# 绑定或解绑一个安全组到多个公网负载均衡实例。注意:内网负载均衡不支持绑定安全组。
|
2131
2157
|
|
2132
2158
|
# @param request: Request instance for SetSecurityGroupForLoadbalancers.
|
data/lib/v20180317/models.rb
CHANGED
@@ -7597,6 +7597,46 @@ module TencentCloud
|
|
7597
7597
|
end
|
7598
7598
|
end
|
7599
7599
|
|
7600
|
+
# SetLoadBalancerStartStatus请求参数结构体
|
7601
|
+
class SetLoadBalancerStartStatusRequest < TencentCloud::Common::AbstractModel
|
7602
|
+
# @param OperationType: 操作类型。Start:启动实例,Stop:停止实例。
|
7603
|
+
# @type OperationType: String
|
7604
|
+
# @param LoadBalancerId: 负载均衡实例ID。
|
7605
|
+
# @type LoadBalancerId: String
|
7606
|
+
# @param ListenerIds: 监听器ID。如果该字段为空,则表示操作负载均衡实例,如果不为空,则表示操作监听器。
|
7607
|
+
# @type ListenerIds: Array
|
7608
|
+
|
7609
|
+
attr_accessor :OperationType, :LoadBalancerId, :ListenerIds
|
7610
|
+
|
7611
|
+
def initialize(operationtype=nil, loadbalancerid=nil, listenerids=nil)
|
7612
|
+
@OperationType = operationtype
|
7613
|
+
@LoadBalancerId = loadbalancerid
|
7614
|
+
@ListenerIds = listenerids
|
7615
|
+
end
|
7616
|
+
|
7617
|
+
def deserialize(params)
|
7618
|
+
@OperationType = params['OperationType']
|
7619
|
+
@LoadBalancerId = params['LoadBalancerId']
|
7620
|
+
@ListenerIds = params['ListenerIds']
|
7621
|
+
end
|
7622
|
+
end
|
7623
|
+
|
7624
|
+
# SetLoadBalancerStartStatus返回参数结构体
|
7625
|
+
class SetLoadBalancerStartStatusResponse < TencentCloud::Common::AbstractModel
|
7626
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7627
|
+
# @type RequestId: String
|
7628
|
+
|
7629
|
+
attr_accessor :RequestId
|
7630
|
+
|
7631
|
+
def initialize(requestid=nil)
|
7632
|
+
@RequestId = requestid
|
7633
|
+
end
|
7634
|
+
|
7635
|
+
def deserialize(params)
|
7636
|
+
@RequestId = params['RequestId']
|
7637
|
+
end
|
7638
|
+
end
|
7639
|
+
|
7600
7640
|
# SetSecurityGroupForLoadbalancers请求参数结构体
|
7601
7641
|
class SetSecurityGroupForLoadbalancersRequest < TencentCloud::Common::AbstractModel
|
7602
7642
|
# @param SecurityGroup: 安全组ID,如 sg-12345678
|
@@ -7955,8 +7995,8 @@ module TencentCloud
|
|
7955
7995
|
|
7956
7996
|
attr_accessor :IP, :Port, :HealthStatus, :TargetId, :HealthStatusDetail, :HealthStatusDetial
|
7957
7997
|
extend Gem::Deprecate
|
7958
|
-
deprecate :HealthStatusDetial, :none, 2024,
|
7959
|
-
deprecate :HealthStatusDetial=, :none, 2024,
|
7998
|
+
deprecate :HealthStatusDetial, :none, 2024, 2
|
7999
|
+
deprecate :HealthStatusDetial=, :none, 2024, 2
|
7960
8000
|
|
7961
8001
|
def initialize(ip=nil, port=nil, healthstatus=nil, targetid=nil, healthstatusdetail=nil, healthstatusdetial=nil)
|
7962
8002
|
@IP = ip
|
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.772
|
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-02-
|
11
|
+
date: 2024-02-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|