tencentcloud-sdk-clb 3.0.509 → 3.0.510
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 +59 -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: 8eb341f68734351e1fbefe518e023e4e1017e3ef
|
4
|
+
data.tar.gz: 3ed3dedf7e452ce985b08485fd617f9dbddb898b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38923702b089b0d85ec545f006b46c80df7f9c2241660b6b92b4530b8ad57da13ad2d6b4d603a1db3c9c147e2900eeb1e9967709e406bb665eb5733ad2ef63f5
|
7
|
+
data.tar.gz: 1d3985e9e0222806c6eb9a402e8043d3fb44615fb7336b443fce3b7fd00dcd3622435a95579a4873502ac599cab3da98153bbe3c7e417d2793aa17e097d48b20
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.510
|
data/lib/v20180317/client.rb
CHANGED
@@ -1489,6 +1489,30 @@ module TencentCloud
|
|
1489
1489
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1490
1490
|
end
|
1491
1491
|
|
1492
|
+
# 修改负载均衡转发规则上所绑定的云函数。
|
1493
|
+
|
1494
|
+
# @param request: Request instance for ModifyFunctionTargets.
|
1495
|
+
# @type request: :class:`Tencentcloud::clb::V20180317::ModifyFunctionTargetsRequest`
|
1496
|
+
# @rtype: :class:`Tencentcloud::clb::V20180317::ModifyFunctionTargetsResponse`
|
1497
|
+
def ModifyFunctionTargets(request)
|
1498
|
+
body = send_request('ModifyFunctionTargets', request.serialize)
|
1499
|
+
response = JSON.parse(body)
|
1500
|
+
if response['Response'].key?('Error') == false
|
1501
|
+
model = ModifyFunctionTargetsResponse.new
|
1502
|
+
model.deserialize(response['Response'])
|
1503
|
+
model
|
1504
|
+
else
|
1505
|
+
code = response['Response']['Error']['Code']
|
1506
|
+
message = response['Response']['Error']['Message']
|
1507
|
+
reqid = response['Response']['RequestId']
|
1508
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1509
|
+
end
|
1510
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1511
|
+
raise e
|
1512
|
+
rescue StandardError => e
|
1513
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1514
|
+
end
|
1515
|
+
|
1492
1516
|
# ModifyListener接口用来修改负载均衡监听器的属性,包括监听器名称、健康检查参数、证书信息、转发策略等。本接口不支持传统型负载均衡。
|
1493
1517
|
# 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
|
1494
1518
|
|
data/lib/v20180317/models.rb
CHANGED
@@ -5518,6 +5518,65 @@ module TencentCloud
|
|
5518
5518
|
end
|
5519
5519
|
end
|
5520
5520
|
|
5521
|
+
# ModifyFunctionTargets请求参数结构体
|
5522
|
+
class ModifyFunctionTargetsRequest < TencentCloud::Common::AbstractModel
|
5523
|
+
# @param LoadBalancerId: 负载均衡实例ID。
|
5524
|
+
# @type LoadBalancerId: String
|
5525
|
+
# @param ListenerId: 负载均衡监听器ID。
|
5526
|
+
# @type ListenerId: String
|
5527
|
+
# @param FunctionTargets: 要修改的后端云函数服务列表。
|
5528
|
+
# @type FunctionTargets: Array
|
5529
|
+
# @param LocationId: 转发规则的ID,当绑定机器到七层转发规则时,必须提供此参数或Domain+Url两者之一。
|
5530
|
+
# @type LocationId: String
|
5531
|
+
# @param Domain: 目标规则的域名,提供LocationId参数时本参数不生效。
|
5532
|
+
# @type Domain: String
|
5533
|
+
# @param Url: 目标规则的URL,提供LocationId参数时本参数不生效。
|
5534
|
+
# @type Url: String
|
5535
|
+
|
5536
|
+
attr_accessor :LoadBalancerId, :ListenerId, :FunctionTargets, :LocationId, :Domain, :Url
|
5537
|
+
|
5538
|
+
def initialize(loadbalancerid=nil, listenerid=nil, functiontargets=nil, locationid=nil, domain=nil, url=nil)
|
5539
|
+
@LoadBalancerId = loadbalancerid
|
5540
|
+
@ListenerId = listenerid
|
5541
|
+
@FunctionTargets = functiontargets
|
5542
|
+
@LocationId = locationid
|
5543
|
+
@Domain = domain
|
5544
|
+
@Url = url
|
5545
|
+
end
|
5546
|
+
|
5547
|
+
def deserialize(params)
|
5548
|
+
@LoadBalancerId = params['LoadBalancerId']
|
5549
|
+
@ListenerId = params['ListenerId']
|
5550
|
+
unless params['FunctionTargets'].nil?
|
5551
|
+
@FunctionTargets = []
|
5552
|
+
params['FunctionTargets'].each do |i|
|
5553
|
+
functiontarget_tmp = FunctionTarget.new
|
5554
|
+
functiontarget_tmp.deserialize(i)
|
5555
|
+
@FunctionTargets << functiontarget_tmp
|
5556
|
+
end
|
5557
|
+
end
|
5558
|
+
@LocationId = params['LocationId']
|
5559
|
+
@Domain = params['Domain']
|
5560
|
+
@Url = params['Url']
|
5561
|
+
end
|
5562
|
+
end
|
5563
|
+
|
5564
|
+
# ModifyFunctionTargets返回参数结构体
|
5565
|
+
class ModifyFunctionTargetsResponse < TencentCloud::Common::AbstractModel
|
5566
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5567
|
+
# @type RequestId: String
|
5568
|
+
|
5569
|
+
attr_accessor :RequestId
|
5570
|
+
|
5571
|
+
def initialize(requestid=nil)
|
5572
|
+
@RequestId = requestid
|
5573
|
+
end
|
5574
|
+
|
5575
|
+
def deserialize(params)
|
5576
|
+
@RequestId = params['RequestId']
|
5577
|
+
end
|
5578
|
+
end
|
5579
|
+
|
5521
5580
|
# ModifyListener请求参数结构体
|
5522
5581
|
class ModifyListenerRequest < TencentCloud::Common::AbstractModel
|
5523
5582
|
# @param LoadBalancerId: 负载均衡实例ID。
|
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.510
|
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-02-
|
11
|
+
date: 2023-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|