tencentcloud-sdk-clb 3.0.678 → 3.0.680
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 +92 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03ef7b6226c3bce98c93779b6ca72fe618b4e68f
|
4
|
+
data.tar.gz: 56e81ebe80d54a36bd7ebaaa5a026c361ccefbde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ffbeae11a72a7073f3072ba8d28999b3b774d8710119373ec99f7cea1a24dcaa63f50ba872159c896e4ac2501b8d0e7da5e8ab6e0fbd721b14762f5d4f1cd2c
|
7
|
+
data.tar.gz: fcff501ea8f5fb43c2d4da5ad55fc4e923b7115c53764f9dd3baf3985a1f71f1b9fdbe7210eefd1c1fb11f5fae5c92e7efda6f710066ef2aab2bba94c7283602
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.680
|
data/lib/v20180317/client.rb
CHANGED
@@ -103,6 +103,30 @@ module TencentCloud
|
|
103
103
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
104
104
|
end
|
105
105
|
|
106
|
+
# BatchModifyTargetTag 接口用于批量修改负载均衡监听器绑定的后端机器的标签。批量修改的资源数量上限为500。本接口为同步接口。<br/>负载均衡的4层和7层监听器支持此接口,传统型负载均衡不支持。
|
107
|
+
|
108
|
+
# @param request: Request instance for BatchModifyTargetTag.
|
109
|
+
# @type request: :class:`Tencentcloud::clb::V20180317::BatchModifyTargetTagRequest`
|
110
|
+
# @rtype: :class:`Tencentcloud::clb::V20180317::BatchModifyTargetTagResponse`
|
111
|
+
def BatchModifyTargetTag(request)
|
112
|
+
body = send_request('BatchModifyTargetTag', request.serialize)
|
113
|
+
response = JSON.parse(body)
|
114
|
+
if response['Response'].key?('Error') == false
|
115
|
+
model = BatchModifyTargetTagResponse.new
|
116
|
+
model.deserialize(response['Response'])
|
117
|
+
model
|
118
|
+
else
|
119
|
+
code = response['Response']['Error']['Code']
|
120
|
+
message = response['Response']['Error']['Message']
|
121
|
+
reqid = response['Response']['RequestId']
|
122
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
123
|
+
end
|
124
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
125
|
+
raise e
|
126
|
+
rescue StandardError => e
|
127
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
128
|
+
end
|
129
|
+
|
106
130
|
# BatchModifyTargetWeight 接口用于批量修改负载均衡监听器绑定的后端机器的转发权重。批量修改的资源数量上限为500。本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。<br/>负载均衡的4层和7层监听器支持此接口,传统型负载均衡不支持。
|
107
131
|
|
108
132
|
# @param request: Request instance for BatchModifyTargetWeight.
|
data/lib/v20180317/models.rb
CHANGED
@@ -275,6 +275,49 @@ module TencentCloud
|
|
275
275
|
end
|
276
276
|
end
|
277
277
|
|
278
|
+
# BatchModifyTargetTag请求参数结构体
|
279
|
+
class BatchModifyTargetTagRequest < TencentCloud::Common::AbstractModel
|
280
|
+
# @param LoadBalancerId: 负载均衡实例 ID。
|
281
|
+
# @type LoadBalancerId: String
|
282
|
+
# @param ModifyList: 要批量修改标签的列表。
|
283
|
+
# @type ModifyList: Array
|
284
|
+
|
285
|
+
attr_accessor :LoadBalancerId, :ModifyList
|
286
|
+
|
287
|
+
def initialize(loadbalancerid=nil, modifylist=nil)
|
288
|
+
@LoadBalancerId = loadbalancerid
|
289
|
+
@ModifyList = modifylist
|
290
|
+
end
|
291
|
+
|
292
|
+
def deserialize(params)
|
293
|
+
@LoadBalancerId = params['LoadBalancerId']
|
294
|
+
unless params['ModifyList'].nil?
|
295
|
+
@ModifyList = []
|
296
|
+
params['ModifyList'].each do |i|
|
297
|
+
rstagrule_tmp = RsTagRule.new
|
298
|
+
rstagrule_tmp.deserialize(i)
|
299
|
+
@ModifyList << rstagrule_tmp
|
300
|
+
end
|
301
|
+
end
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
# BatchModifyTargetTag返回参数结构体
|
306
|
+
class BatchModifyTargetTagResponse < TencentCloud::Common::AbstractModel
|
307
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
308
|
+
# @type RequestId: String
|
309
|
+
|
310
|
+
attr_accessor :RequestId
|
311
|
+
|
312
|
+
def initialize(requestid=nil)
|
313
|
+
@RequestId = requestid
|
314
|
+
end
|
315
|
+
|
316
|
+
def deserialize(params)
|
317
|
+
@RequestId = params['RequestId']
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
278
321
|
# BatchModifyTargetWeight请求参数结构体
|
279
322
|
class BatchModifyTargetWeightRequest < TencentCloud::Common::AbstractModel
|
280
323
|
# @param LoadBalancerId: 负载均衡实例 ID。
|
@@ -381,16 +424,19 @@ module TencentCloud
|
|
381
424
|
# @type Weight: Integer
|
382
425
|
# @param LocationId: 七层规则 ID。
|
383
426
|
# @type LocationId: String
|
427
|
+
# @param Tag: 标签。
|
428
|
+
# @type Tag: String
|
384
429
|
|
385
|
-
attr_accessor :ListenerId, :Port, :InstanceId, :EniIp, :Weight, :LocationId
|
430
|
+
attr_accessor :ListenerId, :Port, :InstanceId, :EniIp, :Weight, :LocationId, :Tag
|
386
431
|
|
387
|
-
def initialize(listenerid=nil, port=nil, instanceid=nil, eniip=nil, weight=nil, locationid=nil)
|
432
|
+
def initialize(listenerid=nil, port=nil, instanceid=nil, eniip=nil, weight=nil, locationid=nil, tag=nil)
|
388
433
|
@ListenerId = listenerid
|
389
434
|
@Port = port
|
390
435
|
@InstanceId = instanceid
|
391
436
|
@EniIp = eniip
|
392
437
|
@Weight = weight
|
393
438
|
@LocationId = locationid
|
439
|
+
@Tag = tag
|
394
440
|
end
|
395
441
|
|
396
442
|
def deserialize(params)
|
@@ -400,6 +446,7 @@ module TencentCloud
|
|
400
446
|
@EniIp = params['EniIp']
|
401
447
|
@Weight = params['Weight']
|
402
448
|
@LocationId = params['LocationId']
|
449
|
+
@Tag = params['Tag']
|
403
450
|
end
|
404
451
|
end
|
405
452
|
|
@@ -2587,7 +2634,7 @@ module TencentCloud
|
|
2587
2634
|
# @param Filters: 查询集群中资源列表条件,详细的过滤条件如下:
|
2588
2635
|
# <li> cluster-id - String - 是否必填:否 - (过滤条件)按照 集群 的唯一ID过滤,如 :"tgw-12345678","stgw-12345678","vpcgw-12345678"。</li>
|
2589
2636
|
# <li> vip - String - 是否必填:否 - (过滤条件)按照vip过滤。</li>
|
2590
|
-
# <li>
|
2637
|
+
# <li> loadbalancer-id - String - 是否必填:否 - (过滤条件)按照负载均衡唯一ID过滤。</li>
|
2591
2638
|
# <li> idle - String 是否必填:否 - (过滤条件)按照是否闲置过滤,如"True","False"。</li>
|
2592
2639
|
# @type Filters: Array
|
2593
2640
|
|
@@ -6982,6 +7029,41 @@ module TencentCloud
|
|
6982
7029
|
end
|
6983
7030
|
end
|
6984
7031
|
|
7032
|
+
# 修改节点标签的数据类型
|
7033
|
+
class RsTagRule < TencentCloud::Common::AbstractModel
|
7034
|
+
# @param ListenerId: 负载均衡监听器 ID。
|
7035
|
+
# @type ListenerId: String
|
7036
|
+
# @param Targets: 要修改标签的后端机器列表。
|
7037
|
+
# @type Targets: Array
|
7038
|
+
# @param LocationId: 转发规则的ID,七层规则时需要此参数,4层规则不需要。
|
7039
|
+
# @type LocationId: String
|
7040
|
+
# @param Tag: 后端服务修改后的标签。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Tag参数,即最终的标签以Target中的Tag参数值为准,仅当Target中的Weight参数为空时,才以RsTagRule中的Tag参数为准。
|
7041
|
+
# @type Tag: String
|
7042
|
+
|
7043
|
+
attr_accessor :ListenerId, :Targets, :LocationId, :Tag
|
7044
|
+
|
7045
|
+
def initialize(listenerid=nil, targets=nil, locationid=nil, tag=nil)
|
7046
|
+
@ListenerId = listenerid
|
7047
|
+
@Targets = targets
|
7048
|
+
@LocationId = locationid
|
7049
|
+
@Tag = tag
|
7050
|
+
end
|
7051
|
+
|
7052
|
+
def deserialize(params)
|
7053
|
+
@ListenerId = params['ListenerId']
|
7054
|
+
unless params['Targets'].nil?
|
7055
|
+
@Targets = []
|
7056
|
+
params['Targets'].each do |i|
|
7057
|
+
target_tmp = Target.new
|
7058
|
+
target_tmp.deserialize(i)
|
7059
|
+
@Targets << target_tmp
|
7060
|
+
end
|
7061
|
+
end
|
7062
|
+
@LocationId = params['LocationId']
|
7063
|
+
@Tag = params['Tag']
|
7064
|
+
end
|
7065
|
+
end
|
7066
|
+
|
6985
7067
|
# 修改节点权重的数据类型
|
6986
7068
|
class RsWeightRule < TencentCloud::Common::AbstractModel
|
6987
7069
|
# @param ListenerId: 负载均衡监听器 ID。
|
@@ -7652,15 +7734,19 @@ module TencentCloud
|
|
7652
7734
|
# 注意:参数 InstanceId、EniIp 有且只能传入其中一个参数。如果绑定双栈IPV6子机,则必须传该参数。如果是跨地域绑定,则必须传该参数,不支持传InstanceId参数。
|
7653
7735
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7654
7736
|
# @type EniIp: String
|
7737
|
+
# @param Tag: 标签。
|
7738
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7739
|
+
# @type Tag: String
|
7655
7740
|
|
7656
|
-
attr_accessor :Port, :Type, :InstanceId, :Weight, :EniIp
|
7741
|
+
attr_accessor :Port, :Type, :InstanceId, :Weight, :EniIp, :Tag
|
7657
7742
|
|
7658
|
-
def initialize(port=nil, type=nil, instanceid=nil, weight=nil, eniip=nil)
|
7743
|
+
def initialize(port=nil, type=nil, instanceid=nil, weight=nil, eniip=nil, tag=nil)
|
7659
7744
|
@Port = port
|
7660
7745
|
@Type = type
|
7661
7746
|
@InstanceId = instanceid
|
7662
7747
|
@Weight = weight
|
7663
7748
|
@EniIp = eniip
|
7749
|
+
@Tag = tag
|
7664
7750
|
end
|
7665
7751
|
|
7666
7752
|
def deserialize(params)
|
@@ -7669,6 +7755,7 @@ module TencentCloud
|
|
7669
7755
|
@InstanceId = params['InstanceId']
|
7670
7756
|
@Weight = params['Weight']
|
7671
7757
|
@EniIp = params['EniIp']
|
7758
|
+
@Tag = params['Tag']
|
7672
7759
|
end
|
7673
7760
|
end
|
7674
7761
|
|
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.680
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,8 +33,8 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/v20180317/models.rb
|
37
36
|
- lib/v20180317/client.rb
|
37
|
+
- lib/v20180317/models.rb
|
38
38
|
- lib/tencentcloud-sdk-clb.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|