tencentcloud-sdk-clb 3.0.481 → 3.0.483
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180317/client.rb +69 -0
- data/lib/v20180317/models.rb +139 -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: 2e0a80d56c5005d99b26d74d0f892d3498e5a0af
|
4
|
+
data.tar.gz: e02fbf273291b5f744a912557793d7ae2ecd0afd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 298208a605863037b04a8644f9a2d7a2f5ccde7d59c71737ea49bed68d79fe8452f4e6a36bc15153d3d4832575f8f25c7add5f87be2adbe982993991ae624860
|
7
|
+
data.tar.gz: d719bf99f85df062c77d5c5f4df2b7d83bdd82fd190413161bc65acd51d81aa010568ad789385d4c056382c7626a37035437258a53416043c28da52139b79e73
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.483
|
data/lib/v20180317/client.rb
CHANGED
@@ -534,6 +534,41 @@ module TencentCloud
|
|
534
534
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
535
535
|
end
|
536
536
|
|
537
|
+
# DeregisterFunctionTargets 接口用来将一个云函数从负载均衡的转发规则上解绑,对于七层监听器,还需通过 LocationId 或 Domain+Url 指定转发规则。
|
538
|
+
# 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
|
539
|
+
# <br/>限制说明:
|
540
|
+
|
541
|
+
# - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、孟买、东京、硅谷地域支持绑定 SCF。
|
542
|
+
# - 仅标准账户类型支持绑定 SCF,传统账户类型不支持。建议升级为标准账户类型,详情可参见 [账户类型升级说明](https://cloud.tencent.com/document/product/1199/49090)。
|
543
|
+
# - 传统型负载均衡不支持绑定 SCF。
|
544
|
+
# - 基础网络类型不支持绑定 SCF。
|
545
|
+
# - CLB 默认支持绑定同地域下的所有 SCF,可支持跨 VPC 绑定 SCF,不支持跨地域绑定。
|
546
|
+
# - 目前仅 IPv4、IPv6 NAT64 版本的负载均衡支持绑定 SCF,IPv6 版本的暂不支持。
|
547
|
+
# - 仅七层(HTTP、HTTPS)监听器支持绑定 SCF,四层(TCP、UDP、TCP SSL)监听器和七层 QUIC 监听器不支持。
|
548
|
+
# - CLB 绑定 SCF 仅支持绑定“Event 函数”类型的云函数。
|
549
|
+
|
550
|
+
# @param request: Request instance for DeregisterFunctionTargets.
|
551
|
+
# @type request: :class:`Tencentcloud::clb::V20180317::DeregisterFunctionTargetsRequest`
|
552
|
+
# @rtype: :class:`Tencentcloud::clb::V20180317::DeregisterFunctionTargetsResponse`
|
553
|
+
def DeregisterFunctionTargets(request)
|
554
|
+
body = send_request('DeregisterFunctionTargets', request.serialize)
|
555
|
+
response = JSON.parse(body)
|
556
|
+
if response['Response'].key?('Error') == false
|
557
|
+
model = DeregisterFunctionTargetsResponse.new
|
558
|
+
model.deserialize(response['Response'])
|
559
|
+
model
|
560
|
+
else
|
561
|
+
code = response['Response']['Error']['Code']
|
562
|
+
message = response['Response']['Error']['Message']
|
563
|
+
reqid = response['Response']['RequestId']
|
564
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
565
|
+
end
|
566
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
567
|
+
raise e
|
568
|
+
rescue StandardError => e
|
569
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
570
|
+
end
|
571
|
+
|
537
572
|
# 从目标组中解绑服务器。
|
538
573
|
# 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
539
574
|
|
@@ -1701,6 +1736,40 @@ module TencentCloud
|
|
1701
1736
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1702
1737
|
end
|
1703
1738
|
|
1739
|
+
# RegisterFunctionTargets 接口用来将一个云函数绑定到负载均衡的7层转发规则,在此之前您需要先行创建相关的7层监听器(HTTP、HTTPS)和转发规则。
|
1740
|
+
# 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。<br/>
|
1741
|
+
# 限制说明:
|
1742
|
+
# - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、孟买、东京、硅谷地域支持绑定 SCF。
|
1743
|
+
# - 仅标准账户类型支持绑定 SCF,传统账户类型不支持。建议升级为标准账户类型,详情可参见 [账户类型升级说明](https://cloud.tencent.com/document/product/1199/49090)。
|
1744
|
+
# - 传统型负载均衡不支持绑定 SCF。
|
1745
|
+
# - 基础网络类型不支持绑定 SCF。
|
1746
|
+
# - CLB 默认支持绑定同地域下的所有 SCF,可支持跨 VPC 绑定 SCF,不支持跨地域绑定。
|
1747
|
+
# - 目前仅 IPv4、IPv6 NAT64 版本的负载均衡支持绑定 SCF,IPv6 版本的暂不支持。
|
1748
|
+
# - 仅七层(HTTP、HTTPS)监听器支持绑定 SCF,四层(TCP、UDP、TCP SSL)监听器和七层 QUIC 监听器不支持。
|
1749
|
+
# - CLB 绑定 SCF 仅支持绑定“Event 函数”类型的云函数。
|
1750
|
+
|
1751
|
+
# @param request: Request instance for RegisterFunctionTargets.
|
1752
|
+
# @type request: :class:`Tencentcloud::clb::V20180317::RegisterFunctionTargetsRequest`
|
1753
|
+
# @rtype: :class:`Tencentcloud::clb::V20180317::RegisterFunctionTargetsResponse`
|
1754
|
+
def RegisterFunctionTargets(request)
|
1755
|
+
body = send_request('RegisterFunctionTargets', request.serialize)
|
1756
|
+
response = JSON.parse(body)
|
1757
|
+
if response['Response'].key?('Error') == false
|
1758
|
+
model = RegisterFunctionTargetsResponse.new
|
1759
|
+
model.deserialize(response['Response'])
|
1760
|
+
model
|
1761
|
+
else
|
1762
|
+
code = response['Response']['Error']['Code']
|
1763
|
+
message = response['Response']['Error']['Message']
|
1764
|
+
reqid = response['Response']['RequestId']
|
1765
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1766
|
+
end
|
1767
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1768
|
+
raise e
|
1769
|
+
rescue StandardError => e
|
1770
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1771
|
+
end
|
1772
|
+
|
1704
1773
|
# 注册服务器到目标组。
|
1705
1774
|
# 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
1706
1775
|
|
data/lib/v20180317/models.rb
CHANGED
@@ -2034,6 +2034,65 @@ module TencentCloud
|
|
2034
2034
|
end
|
2035
2035
|
end
|
2036
2036
|
|
2037
|
+
# DeregisterFunctionTargets请求参数结构体
|
2038
|
+
class DeregisterFunctionTargetsRequest < TencentCloud::Common::AbstractModel
|
2039
|
+
# @param LoadBalancerId: 负载均衡实例 ID。
|
2040
|
+
# @type LoadBalancerId: String
|
2041
|
+
# @param ListenerId: 负载均衡监听器 ID。
|
2042
|
+
# @type ListenerId: String
|
2043
|
+
# @param FunctionTargets: 待解绑的云函数列表。
|
2044
|
+
# @type FunctionTargets: Array
|
2045
|
+
# @param LocationId: 目标转发规则的 ID,当将云函数从七层转发规则上解绑时,必须输入此参数或 Domain+Url 参数。
|
2046
|
+
# @type LocationId: String
|
2047
|
+
# @param Domain: 目标转发规则的域名,若已经输入 LocationId 参数,则本参数不生效。
|
2048
|
+
# @type Domain: String
|
2049
|
+
# @param Url: 目标转发规则的 URL,若已经输入 LocationId 参数,则本参数不生效。
|
2050
|
+
# @type Url: String
|
2051
|
+
|
2052
|
+
attr_accessor :LoadBalancerId, :ListenerId, :FunctionTargets, :LocationId, :Domain, :Url
|
2053
|
+
|
2054
|
+
def initialize(loadbalancerid=nil, listenerid=nil, functiontargets=nil, locationid=nil, domain=nil, url=nil)
|
2055
|
+
@LoadBalancerId = loadbalancerid
|
2056
|
+
@ListenerId = listenerid
|
2057
|
+
@FunctionTargets = functiontargets
|
2058
|
+
@LocationId = locationid
|
2059
|
+
@Domain = domain
|
2060
|
+
@Url = url
|
2061
|
+
end
|
2062
|
+
|
2063
|
+
def deserialize(params)
|
2064
|
+
@LoadBalancerId = params['LoadBalancerId']
|
2065
|
+
@ListenerId = params['ListenerId']
|
2066
|
+
unless params['FunctionTargets'].nil?
|
2067
|
+
@FunctionTargets = []
|
2068
|
+
params['FunctionTargets'].each do |i|
|
2069
|
+
functiontarget_tmp = FunctionTarget.new
|
2070
|
+
functiontarget_tmp.deserialize(i)
|
2071
|
+
@FunctionTargets << functiontarget_tmp
|
2072
|
+
end
|
2073
|
+
end
|
2074
|
+
@LocationId = params['LocationId']
|
2075
|
+
@Domain = params['Domain']
|
2076
|
+
@Url = params['Url']
|
2077
|
+
end
|
2078
|
+
end
|
2079
|
+
|
2080
|
+
# DeregisterFunctionTargets返回参数结构体
|
2081
|
+
class DeregisterFunctionTargetsResponse < TencentCloud::Common::AbstractModel
|
2082
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2083
|
+
# @type RequestId: String
|
2084
|
+
|
2085
|
+
attr_accessor :RequestId
|
2086
|
+
|
2087
|
+
def initialize(requestid=nil)
|
2088
|
+
@RequestId = requestid
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
def deserialize(params)
|
2092
|
+
@RequestId = params['RequestId']
|
2093
|
+
end
|
2094
|
+
end
|
2095
|
+
|
2037
2096
|
# DeregisterTargetGroupInstances请求参数结构体
|
2038
2097
|
class DeregisterTargetGroupInstancesRequest < TencentCloud::Common::AbstractModel
|
2039
2098
|
# @param TargetGroupId: 目标组ID。
|
@@ -3971,6 +4030,59 @@ module TencentCloud
|
|
3971
4030
|
end
|
3972
4031
|
end
|
3973
4032
|
|
4033
|
+
# SCF云函数(Serverless Cloud Function)相关信息。
|
4034
|
+
class FunctionInfo < TencentCloud::Common::AbstractModel
|
4035
|
+
# @param FunctionNamespace: 函数命名空间
|
4036
|
+
# @type FunctionNamespace: String
|
4037
|
+
# @param FunctionName: 函数名称
|
4038
|
+
# @type FunctionName: String
|
4039
|
+
# @param FunctionQualifier: 函数的版本名称或别名
|
4040
|
+
# @type FunctionQualifier: String
|
4041
|
+
# @param FunctionQualifierType: 标识 FunctionQualifier 参数的类型,可取值: VERSION(版本)、ALIAS(别名)
|
4042
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4043
|
+
# @type FunctionQualifierType: String
|
4044
|
+
|
4045
|
+
attr_accessor :FunctionNamespace, :FunctionName, :FunctionQualifier, :FunctionQualifierType
|
4046
|
+
|
4047
|
+
def initialize(functionnamespace=nil, functionname=nil, functionqualifier=nil, functionqualifiertype=nil)
|
4048
|
+
@FunctionNamespace = functionnamespace
|
4049
|
+
@FunctionName = functionname
|
4050
|
+
@FunctionQualifier = functionqualifier
|
4051
|
+
@FunctionQualifierType = functionqualifiertype
|
4052
|
+
end
|
4053
|
+
|
4054
|
+
def deserialize(params)
|
4055
|
+
@FunctionNamespace = params['FunctionNamespace']
|
4056
|
+
@FunctionName = params['FunctionName']
|
4057
|
+
@FunctionQualifier = params['FunctionQualifier']
|
4058
|
+
@FunctionQualifierType = params['FunctionQualifierType']
|
4059
|
+
end
|
4060
|
+
end
|
4061
|
+
|
4062
|
+
# SCF云函数(Serverless Cloud Function)作为后端服务
|
4063
|
+
class FunctionTarget < TencentCloud::Common::AbstractModel
|
4064
|
+
# @param Function: 云函数相关信息
|
4065
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4066
|
+
# @type Function: :class:`Tencentcloud::Clb.v20180317.models.FunctionInfo`
|
4067
|
+
# @param Weight: 权重
|
4068
|
+
# @type Weight: Integer
|
4069
|
+
|
4070
|
+
attr_accessor :Function, :Weight
|
4071
|
+
|
4072
|
+
def initialize(function=nil, weight=nil)
|
4073
|
+
@Function = function
|
4074
|
+
@Weight = weight
|
4075
|
+
end
|
4076
|
+
|
4077
|
+
def deserialize(params)
|
4078
|
+
unless params['Function'].nil?
|
4079
|
+
@Function = FunctionInfo.new
|
4080
|
+
@Function.deserialize(params['Function'])
|
4081
|
+
end
|
4082
|
+
@Weight = params['Weight']
|
4083
|
+
end
|
4084
|
+
end
|
4085
|
+
|
3974
4086
|
# 健康检查信息。
|
3975
4087
|
# 注意,自定义探测相关参数 目前只有少量区域灰度支持。
|
3976
4088
|
class HealthCheck < TencentCloud::Common::AbstractModel
|
@@ -6004,6 +6116,33 @@ module TencentCloud
|
|
6004
6116
|
end
|
6005
6117
|
end
|
6006
6118
|
|
6119
|
+
# RegisterFunctionTargets请求参数结构体
|
6120
|
+
class RegisterFunctionTargetsRequest < TencentCloud::Common::AbstractModel
|
6121
|
+
|
6122
|
+
|
6123
|
+
def initialize()
|
6124
|
+
end
|
6125
|
+
|
6126
|
+
def deserialize(params)
|
6127
|
+
end
|
6128
|
+
end
|
6129
|
+
|
6130
|
+
# RegisterFunctionTargets返回参数结构体
|
6131
|
+
class RegisterFunctionTargetsResponse < TencentCloud::Common::AbstractModel
|
6132
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6133
|
+
# @type RequestId: String
|
6134
|
+
|
6135
|
+
attr_accessor :RequestId
|
6136
|
+
|
6137
|
+
def initialize(requestid=nil)
|
6138
|
+
@RequestId = requestid
|
6139
|
+
end
|
6140
|
+
|
6141
|
+
def deserialize(params)
|
6142
|
+
@RequestId = params['RequestId']
|
6143
|
+
end
|
6144
|
+
end
|
6145
|
+
|
6007
6146
|
# RegisterTargetGroupInstances请求参数结构体
|
6008
6147
|
class RegisterTargetGroupInstancesRequest < TencentCloud::Common::AbstractModel
|
6009
6148
|
# @param TargetGroupId: 目标组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.483
|
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-12-
|
11
|
+
date: 2022-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|