tencentcloud-sdk-clb 3.0.770 → 3.0.771

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29b93d1a6269cca04ff8e1ccbfc778acc8b55780
4
- data.tar.gz: 084f61a04798eaf2ecacb21ba204a68a0e5ff580
3
+ metadata.gz: c86aadf9f6d7ece69d6094fe41dd2cc52f66bc52
4
+ data.tar.gz: feacd2109a524483d52da21a7799762d9e404224
5
5
  SHA512:
6
- metadata.gz: 8ef5679b6cbd89e504d836352019dbfe8b51108376b3592691823db26fc6c19ae917afcd2b115dfff57c84ad7a0ec9a1d87110c913b2583d02df2733b49452ec
7
- data.tar.gz: 1a21e80dd55506b3c6985439be17a9dbae359d59997b0399b85eee42cb200e5f5e82b842c5a41251226ee1e6e79d28822860143c1a852b5d3a805f11b54164b5
6
+ metadata.gz: 9c57904b6f3eea764c4c48fb0ab732bbfa86b30ca1bfdd454c9ed5cba24c82cd38a0499ac8b65950b4c37f668a2f9adcf960e9358f96fdd7066e86057f838d4a
7
+ data.tar.gz: 54fba9c99b81439dafedb04271d0a29559f93ced2cd147457e17f8608219bb130501d7781b94c81f35bee97ff538f945bb94919b160cfc0d8495e4f7e9c1e2d5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.770
1
+ 3.0.771
@@ -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.
@@ -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, 1
7959
- deprecate :HealthStatusDetial=, :none, 2024, 1
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.770
4
+ version: 3.0.771
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-27 00:00:00.000000000 Z
11
+ date: 2024-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common